windows下使用rsync

1下载
cwRsync Server
http://www.xiazaiba.com/html/4325.html

安装后在C:\Program Files\ICW

2.配置服务器
C:\Program Files\ICW\rsyncd.conf
内容如下
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
[d]
charset=UTF-8
path = /cygdrive/d
read only = true
list = no
auth users =backup
secrets file = etc/rsyncd.secrets
uid = 0
gid = 0
3.配置密码
C:\Program Files\ICW\etc\rsyncd.secrets
内容如下

backup:123456
4.在windows服务中开启名为RsyncServer的服务

4.客户端使用
密码文件/etc/rsync.pass
内容:123456(密码)
排名文件名paichu.list 一个文件夹一行



#列出
#rsync -avz --list-only --exclude-from=paichu.list backup@127.0.0.1::d /d01/www/other --password-file=/etc/rsync.pass
#传输
rsync -avz --progress --delete --exclude-from=paichu.list backup@127.0.0.1::d /d01/www/other --password-file=/etc/rsync.pass
chmod -R 777 /d01/www/other
posted @ 2014-10-31 13:41  上官伟斌  阅读(311)  评论(0)    收藏  举报