rsync 配置加密码
cat /etc/rsyncd.conf
.....
[moduleA]
auth users=userA
secrets file=/etc/rsync.passwd
path=/tmp/pathA
ignore errors
read only=false
list=true
.....
cat /etc/rsync.passwd
userA:passwordA
RSYNC_PASSWORD=passwordA rsync -av xxx.tar rsync://userA@IP/apache/temp/
浙公网安备 33010602011771号