rsync错误: failed to set times on "/foo/bar": Operation not permitted

标签 rsync file-transfer

我从 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/

相关文章:

linux - 如何在子文件夹中同步文件模式

.net - TCP 慢启动算法是许多单个文件传输缓慢的原因吗?

networking - 通过 SFTP 将文件发送到 Docker 容器

linux - 如何使 rsync 从 STDIN 读取 SRC?

rsync - 使用 rsync 移动镜像文件

cron - 仅在rsync尚未运行时才运行的rsync cronjob

c# - 使用套接字传输文件

ubuntu - 什么用户在启动新的 ubuntu EC2 实例时运行用户数据脚本?

ios - 将文件从 ios 应用程序传输到 PC 上运行的应用程序

Python - 操作系统错误 : [WinError 17] The system cannot move the file to a different disk drive: