rsync错误:无法在"/foo/bar"上设置时间:不允许操作 [英] rsync error: failed to set times on "/foo/bar": Operation not permitted
本文介绍了rsync错误:无法在"/foo/bar"上设置时间:不允许操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从rsync收到一个令人困惑的错误,并且从网络搜索(以及所有常见的chmod'ing)中发现的初始问题无法解决该问题:
I'm getting a confusing error from rsync and the initial things I'm finding from web searches (as well as all the usual chmod'ing) are not solving it:
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]
尽管存在该错误,它似乎仍然可以正常工作,但是摆脱它会很好.
It seems to be working despite that error, but it would be nice to get rid of that.
推荐答案
如果/foo/bar
在NFS(或某些FUSE文件系统)上,则可能是问题所在.
If /foo/bar
is on NFS (or possibly some FUSE filesystem), that might be the problem.
无论哪种方式,在命令行中添加-O
/--omit-dir-times
都会避免尝试在目录上设置修改时间.
Either way, adding -O
/ --omit-dir-times
to your command line will avoid it trying to set modification times on directories.
这篇关于rsync错误:无法在"/foo/bar"上设置时间:不允许操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文