gpt4 book ai didi

windows - Rsync 未正确设置 Windows 文件夹的权限

转载 作者:可可西里 更新时间:2023-11-01 13:47:40 26 4
gpt4 key购买 nike

我在 Windows 7 上使用 rsync(尤其是 cwrsync)。我正在使用一个简单的命令:

rsync -r --perms --delete /cygdrive/c/Users/Michael/Documents/Personal/ /cygdrive/c/Users/Michael/Documents/Personal_Backup/

递归复制工作正常,除非我要(右键单击/属性/安全选项卡)在目标上由 rsync 创建的任何文件夹上;我收到以下弹出消息:

The permissions on {folderName} are incorrectly ordered, which may cause some entries to be ineffective.

我也尝试了 --acls 选项,但出现以下错误:

recv_acl_access: value out of range: ff rsync error: error in rsync protocol data stream (code 12) at acls.c(690) [Receiver=3.0. rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(610) [sender=3.0.8]

无论如何,我只是想正确使用rsync,这样在Windows中查看Security权限就不会报错。

最佳答案

迈克尔,

This solution建议您不要使用 --perms,而应使用 --chmod=ugo=rwX

祝你好运!

多坦

关于windows - Rsync 未正确设置 Windows 文件夹的权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6649527/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com