rsync 出現錯誤?

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/

出現這兩個錯誤?是怎麼回事?

阅读 2.7k
1 个回答

你的xxx用户没有对/var/www/html下的文件操作的权限,要给权限才行

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进