我从 rsync 中收到了一个令人困惑的错误,并且我从网络搜索中发现的最初内容(以及所有常见的 chmod'ing)并没有解决它:
rsync: failed to set times on "/foo/bar": Operation not permitted (1)
rsync error: some files could not be transferred (code 23)
at /SourceCache/rsync/rsync-35.2/rsync/main.c(992) [sender=2.6.9]
尽管有这个错误,它似乎仍在工作,但最好摆脱它。
最佳答案
如果 /foo/bar
位于 NFS(或者可能是某些 FUSE 文件系统)上,则可能是问题所在。
无论哪种方式,在命令行中添加 -O
/--omit-dir-times
将避免它尝试在目录上设置修改时间。
关于rsync错误: failed to set times on "/foo/bar": Operation not permitted,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/667992/