windows下rsync server使用
时间:2006-11-20 来源:ruiqingzheng
web 站点的数据备份 rsync 官方站点
http://rsync.samba.org/
http://samba.anu.edu.au/rsync/download.html
[ WINDOWS 2003 RSYNC 服务端 ]
rsync for windows download :
http://switch.dl.sourceforge.net/sourceforge/sereds/cwRsync_Server_2.0.10_Installer.zip 1. 安装
选择安装路径 D:\cwRsyncServer , 注: rsync 是作为cgywin的一个包装到windows下的
安装时 Rsync 会做下面的工作
a. 新建一个用户SvcwRsync 并且这个用户是管理员用户
b. 设置好安装目录的权限 D:\cwRsyncServer , 请不要自行更改权限
c. 创建服务RsyncServer 低版本中可能需要手工做上面的步骤 , 并需要象下面一样手工创建服务 , 但是这里3个步骤安装程序都已经做好了
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
2. 修改rsync服务的配置文件 .
#################
use chroot = false
# Module definitions
[a.b]
### |
5. 在服务里面启动 RsyncServer 服务 正常的话可以看到873端口在listening 参考
http://www.stcore.com/html/2006/0216/112591.html
http://bbs.chinaunix.net/viewthread.php?tid=346603&extra=&page=1 rsync 客户端使用 如 rsync -vrtz conf [email protected].*::a.b # 上传
rsync -vrtz [email protected].*::a.b bak # 下载
rsync -vrtz [email protected].*::a.b/conf/apache_configuration bak # 下载一部分