iT邦幫忙

1

rsync 複製檔案到遠端出現錯誤?

  • 分享至 

  • twitterImage
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 '.DS_Store' /xxx/xxx/xxxxx/ xxx@xxx.xx.xx.xx:/var/www/html/

會出現以上錯誤?是哪裡設定有問題?如何解決呢?

hsiang11 iT邦好手 1 級 ‧ 2018-03-26 14:21:35 檢舉
會不會是本端或遠端資料夾權限不足無法寫入
/var/www/html/
去查查資料夾是否帳號有權限 也可以開個777先測看看
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
bizpro
iT邦大師 1 級 ‧ 2018-03-27 12:37:51
最佳解答

遠端是NFS? 如果是, 請加-O:

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

我要發表回答

立即登入回答