windows下rsync server使用
web 站点的数据备份
rsync for windows download :
http://switch.dl.sourceforge.net/sourceforge/sereds/cwRsync_Server_2.0.10_Installer.zip
选择安装路径 D:\cwRsyncServer , 注: rsync 是作为cgywin的一个包装到windows下的
安装时 Rsync 会做下面的工作
a. 新建一个用户SvcwRsync 并且这个用户是管理员用户
b. 设置好安装目录的权限 D:\cwRsyncServer , 请不要自行更改权限
c. 创建服务RsyncServer
cygrunsrv.exe -I “Rsync” -p /cygdrive/d/cwRsyncServer/bin/rsync.exe -a “–config=/cygdrive/d/cwRsyncServer/etc/rsyncd.conf –daemon –no-detach”
-f “Rsync” -u Administrator -w 123456
| ################# #rsyncd.conf ################# use chroot = false # Module definitions [a.b] ### |
http://www.stcore.com/html/2006/0216/112591.html
http://bbs.chinaunix.net/viewthread.php?tid=346603&extra=&page=1
rsync -vrtz a.b@61.129.70.*::a.b bak # 下载
rsync -vrtz a.b@61.129.70.*::a.b/conf/apache_configuration bak # 下载一部分