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/

posted @ 2023-06-01 16:25  Mloading  阅读(9)  评论(0)    收藏  举报