linux服务端配置
[root@smart98 rsync]# cat rsyncd.conf
pid file=/opt/app/rsync/run/rsync.pid
port=873
address=192.168.0.98
uid=root
gid=root
use chroot=yes
read only=no
hosts allow=192.168.0.0/255.255.255.0
hosts deny=*
max connections=10
motd file=/opt/app/rsync/rsyncd.motd
log file=/opt/app/rsync/logs/rsyncd.log
timeout=300
[www]
path=/usr/local/apache2/htdocs/
list=yes
ignore errors
auth users=root,koscom
uid=root
gid=root
secrets file=/opt/app/rsync/linux.pas
read only=no

windows客户端 同步测试
C:\Program Files\cwRsync\bin>rsync -vzrtopg --progress --delete root@192.168.0.98::www /cygdrive/d/123 --password-file=/cygdrive/c/456