V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
kenneth
V2EX  ›  程序员

如何把Linode上的数据同步到本地?

  •  
  •   kenneth · 2013-04-22 11:54:49 +08:00 · 5101 次点击
    这是一个创建于 3993 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我有一台Linode服务器,但是不知道如何备份数据好?我想同步到我本地的硬盘
    求rsync命令
    或同步方案
    20 条回复    1970-01-01 08:00:00 +08:00
    lusin
        1
    lusin  
       2013-04-22 12:06:13 +08:00
    我是想知道如何将本地的数据同步到LINUX服务器

    网站本地更新频繁,数据如何自动同步到服务器:)
    feiandxs
        2
    feiandxs  
       2013-04-22 12:11:16 +08:00
    在key设置好的情况下
    rsync -avz user@linode_ip:/dir/data/* ~/backup/
    加入cron执行
    windows下安装cwrsync的客户端用计划任务执行

    or seafile/aerofs/dropbox


    1L的话反过来就行。
    iZr
        3
    iZr  
       2013-04-22 12:21:18 +08:00
    @feiandxs haha .
    feiandxs
        4
    feiandxs  
       2013-04-22 12:59:13 +08:00
    对了楼主,这种问题下次问之前可以多搜索搜索。真的。
    尤其不要在cpyug的邮件列表里问这么初级的问题,以及就算你实在憋不住要问,请加[OT]标签。谢谢。
    c4tn
        5
    c4tn  
       2013-04-22 13:34:58 +08:00
    最简单的下载一个winscp
    kenneth
        6
    kenneth  
    OP
       2013-04-22 13:46:15 +08:00
    @feiandxs 谢谢建议,不过确实搜索到很多没用的信息,总是配置不成功。我要努力,慢慢提高水平。
    cnxh
        7
    cnxh  
       2013-04-22 13:48:28 +08:00
    dropbox + cron
    wangkangluo1
        8
    wangkangluo1  
       2013-04-22 15:30:15 +08:00
    集成软件:http://wangkangle.com/pub/tools/MobaXterm_Personal_4.0.exe
    rsync -avP -e ssh [email protected]:/root/paths/test.tar.gz ./
    kenneth
        9
    kenneth  
    OP
       2013-04-22 16:33:19 +08:00
    @wangkangluo1 想问下如果本地是windows的如何写路径呢?能否用rsync?
    feiandxs
        10
    feiandxs  
       2013-04-22 18:06:59 +08:00
    @kenneth 前面说了,windows下用cwrsync
    路径设置参看示例说明,要转换一下路径写法。
    具体怎么转换我记不清了。
    aisk
        11
    aisk  
       2013-04-22 18:47:12 +08:00
    @feiandxs 问了也罢,关键还到处去问
    shierji
        12
    shierji  
       2013-04-22 19:03:57 +08:00   ❤️ 1
    我都是用github中转这边push那边pull= =

    主要是不想自己搭git服务器
    wangkangluo1
        13
    wangkangluo1  
       2013-04-22 21:03:59 +08:00
    @kenneth 本地目录ls :Drivers 可直接使用rsync通过ssh 与远程同步 rsync -avP -e ssh [email protected]:/root/paths/test.tar.gz /root /paths
    kenneth
        14
    kenneth  
    OP
       2013-04-23 18:23:59 +08:00
    cygwin中的rsync为什么同步不下来?大家遇到过?
    kenneth
        15
    kenneth  
    OP
       2013-04-24 15:57:42 +08:00
    @feiandxs
    @wangkangluo1

    还是同步不下来啊?哪里错了?
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=
    3.0.9]
    rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
    rsync error: error in rsync protocol data stream (code 12) at io.c(610) [Receive
    r=3.0.8]
    wangkangluo1
        16
    wangkangluo1  
       2013-04-24 18:14:06 +08:00
    @kenneth 你用的指令?
    Livid
        17
    Livid  
    MOD
       2013-04-24 18:15:13 +08:00
    @lusin 用 Dropbox 或者 AeroFS 应该是最科学的方案了。
    ftao
        19
    ftao  
       2013-04-25 10:09:06 +08:00
    或者考虑新出的 BitTorrent Sync , 挺合适的。
    http://labs.bittorrent.com/experiments/sync.html
    jint
        20
    jint  
       2013-04-25 10:32:17 +08:00 via Android
    BitTorrent Sync +1
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1025 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:36 · PVG 03:36 · LAX 12:36 · JFK 15:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.