Windows 服务端:
use chroot = false
 
strict modes = false
 
hosts allow = *
 
log file = rsyncd.log

port = 1873

UID = 0
GID = 0 
# Module definitions
 
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
 
#
 
[test]
 
path = /cygdrive/c/work
 
read only = no
 
transfer logging = yes
 
[api]
 
path = /cygdrive/d/api
 
read only = false
 
list = no  #不允许列出文件
 
hosts allow = *  #允许连接IP,多个IP中间用英文状态下逗号隔,不限制IP填写 *即可
 
auth users = root
#允许连接的用户名
 
secrets file = /etc/rsyncd.secrets  #存放用户名密码的认证文件路径



/etc/rsyncd.secrets 
root:kjk1xx3xxxx


linux 客户端:
rsync  -avz  --port=1873 --password-file=/etc/rsyncdwin.secrets  /data01/applog_backup/*catalina.out  root@192.168.33.29::api