07. 21.
本文系转载:http://my.huhoo.net/archives/2008/12/rsync.html
经常copy大文件,由于服务器、路由等网络的不确定性,老是出现
remote server not responding.
于是查了下资料,发现rsync这个工具支持断点续传功能,这里介绍一下。
rsync也分服务器端和客户端,使用man查看帮助信息,我们发现rsync有六种不同的工作模式:
Local: rsync [OPTION...] SRC... [DEST]
Access via remote shell:
Pull: rsync [OPTION...] [USER@]HOST:SRC... [DEST]
Push: rsync [OPTION...] SRC... [USER@]HOST:DESTAccess via rsync daemon:
Pull: rsync [OPTION...] [USER@]HOST::SRC... [DEST]
rsync [OPTION...] rsync://[USER@]HOST[:PORT]/SRC... [DEST]
Push: rsync [OPTION...] SRC... [USER@]HOST::DEST
rsync [OPTION...] SRC... rsync://[USER@]HOST[:PORT]/DESTList remote files: rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]
07. 3.
今天从一台centos4的server上同步一台freebsd server的数据, 使用的rsync
结果报错如下:
bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(635) [sender=3.0.2]
一开始很苦恼, 想着这机器明显是安装有rsync, 怎么能说"rsync: command not found"呢??
阅读全文 »
hao32