V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
kenneth
V2EX  ›  程序员

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

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

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

    or seafile/aerofs/dropbox


    1L的话反过来就行。
    iZr
        3
    iZr  
       2013 年 4 月 22 日
    @feiandxs haha .
    feiandxs
        4
    feiandxs  
       2013 年 4 月 22 日
    对了楼主,这种问题下次问之前可以多搜索搜索。真的。
    尤其不要在cpyug的邮件列表里问这么初级的问题,以及就算你实在憋不住要问,请加[OT]标签。谢谢。
    c4tn
        5
    c4tn  
       2013 年 4 月 22 日
    最简单的下载一个winscp
    kenneth
        6
    kenneth  
    OP
       2013 年 4 月 22 日
    @feiandxs 谢谢建议,不过确实搜索到很多没用的信息,总是配置不成功。我要努力,慢慢提高水平。
    cnxh
        7
    cnxh  
       2013 年 4 月 22 日
    dropbox + cron
    wangkangluo1
        8
    wangkangluo1  
       2013 年 4 月 22 日
    集成软件: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 年 4 月 22 日
    @wangkangluo1 想问下如果本地是windows的如何写路径呢?能否用rsync?
    feiandxs
        10
    feiandxs  
       2013 年 4 月 22 日
    @kenneth 前面说了,windows下用cwrsync
    路径设置参看示例说明,要转换一下路径写法。
    具体怎么转换我记不清了。
    aisk
        11
    aisk  
       2013 年 4 月 22 日
    @feiandxs 问了也罢,关键还到处去问
    shierji
        12
    shierji  
       2013 年 4 月 22 日   ❤️ 1
    我都是用github中转这边push那边pull= =

    主要是不想自己搭git服务器
    wangkangluo1
        13
    wangkangluo1  
       2013 年 4 月 22 日
    @kenneth 本地目录ls :Drivers 可直接使用rsync通过ssh 与远程同步 rsync -avP -e ssh [email protected]:/root/paths/test.tar.gz /root /paths
    kenneth
        14
    kenneth  
    OP
       2013 年 4 月 23 日
    cygwin中的rsync为什么同步不下来?大家遇到过?
    kenneth
        15
    kenneth  
    OP
       2013 年 4 月 24 日
    @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 年 4 月 24 日
    @kenneth 你用的指令?
    Livid
        17
    Livid  
    MOD
    PRO
       2013 年 4 月 24 日
    @lusin 用 Dropbox 或者 AeroFS 应该是最科学的方案了。
    ftao
        19
    ftao  
       2013 年 4 月 25 日
    或者考虑新出的 BitTorrent Sync , 挺合适的。
    http://labs.bittorrent.com/experiments/sync.html
    jint
        20
    jint  
       2013 年 4 月 25 日 via Android
    BitTorrent Sync +1
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5481 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 06:39 · PVG 14:39 · LAX 22:39 · JFK 01:39
    ♥ Do have faith in what you're doing.