鍍金池/ 問答/Linux  網(wǎng)絡(luò)安全/ rsync 出現(xiàn)錯誤?

rsync 出現(xiàn)錯誤?

rsync: failed to set times on "/var/www/html/.": Operation not permitted (1)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-45/rsync/main.c(992) [sender=2.6.9]

我的指令是

rsync -azvr --exclude .git --exclude '.ftpconfig' --exclude '.DS_Store' /xxx/xxx/xxxxx/ xxx@xxx.xx.xx.xx:/var/www/html/

出現(xiàn)這兩個錯誤?是怎麼回事?

回答
編輯回答
玄鳥

你的xxx用戶沒有對/var/www/html下的文件操作的權(quán)限,要給權(quán)限才行

2018年7月5日 19:59