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

2013-04-22 11:54:49 +08:00
 kenneth
我有一台Linode服务器,但是不知道如何备份数据好?我想同步到我本地的硬盘
求rsync命令
或同步方案
5138 次点击
所在节点    程序员
20 条回复
lusin
2013-04-22 12:06:13 +08:00
我是想知道如何将本地的数据同步到LINUX服务器

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

主要是不想自己搭git服务器
wangkangluo1
2013-04-22 21:03:59 +08:00
@kenneth 本地目录ls :Drivers 可直接使用rsync通过ssh 与远程同步 rsync -avP -e ssh root@192.68.1.38:/root/paths/test.tar.gz /root /paths
kenneth
2013-04-23 18:23:59 +08:00
cygwin中的rsync为什么同步不下来?大家遇到过?
kenneth
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
2013-04-24 18:14:06 +08:00
@kenneth 你用的指令?
Livid
2013-04-24 18:15:13 +08:00
@lusin 用 Dropbox 或者 AeroFS 应该是最科学的方案了。
feiandxs
2013-04-25 08:12:00 +08:00
ftao
2013-04-25 10:09:06 +08:00
或者考虑新出的 BitTorrent Sync , 挺合适的。
http://labs.bittorrent.com/experiments/sync.html
jint
2013-04-25 10:32:17 +08:00
BitTorrent Sync +1

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/66575

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX