windows rsync更换端口

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  #存放用户名密码的认证文件路径