如何解决rsync 的排除不根据模式排除?
使用 rsync 时通过
rsync --delete --exclude=".._*" -vahE ~/Desktop /Volumes/BLUE/Sync/Desktop
命令,结果我收到这个错误
...
Desktop/Relax/quotes/._Screenshot 2020-12-29 at 09.11.03.png
Desktop/Relax/quotes/._Screenshot 2020-12-29 at 09.11.30.png
copyfile(.._Desktop.gTnUtf,./Desktop,COPYFILE_UNPACK) failed:45
sent 620.36K bytes received 798 bytes 248.46K bytes/sec
total size is 221.46M speedup is 356.53
rsync error: some files could not be transferred (code 23) at /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-55/rsync/main.c(996) [sender=2.6.9]
我尝试了排除模式来摆脱 .._Desktop.gTnUtf,./Desktop
,但没有成功。
有什么帮助吗?
解决方法
所以我找到的解决方案是安装更新版本的 rsync,就像我通过 brew 所做的一样。
只有一个问题是brew不会替换系统包,但这不是问题。
我运行了 brew info rsync
并获得了命令的位置。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。