rsync同步報錯

使用rsync同步報錯

使用指令rsync -avz --delete /var/www/html [email protected]::wwwroot --password-file=/etc/rsync.passwd

rsync: opendir "/html" (in wwwroot) failed: Permission denied (13)
rsync: recv_generator: failed to stat "/html/3.txt" (in wwwroot): Permission denied (13)

由於對方服務器沒有關閉selinux 。要將 /etc/selinux/config 設置 selinux = disabled 即可解決改問題。

 

注:

只使用指令 rsync -avz --delete /var/www/html [email protected]::wwwroot 也是同理。

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章