服务器配置信息:
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
port = 8174
uid = 0
gid = 0
fake super = yes
# 认证的用户名,如果没有这行则表明是匿名,此用户与系统无关
auth users = ruser
# 密码和用户名对比表,密码文件自己生成,格式为:用户名:明文密码
secrets file = /cygdrive/d/ICW/rsync.pas
# Module definitions
# Remember cygwin naming conventions : c:work becomes /cygwin/c/work
#
[webfiles]
path = /cygdrive/d/www
exclude from = rsync.exclude
read only = false
transfer logging = yes
lock file = rsyncd.lock
#!/bin/bash
#rsync.pas只记录密码,不需要用户
rsync -arv --password-file=/etc/rsync.pas rsync://ruser@127.0.0.1:8174/webfiles /www
chown -hR www:www /www
以上配置,即可成功。网上很多设置什么windows服务端600的问题,根本就不存在。
参考:https://www.cnblogs.com/scige/p/4675526.html