On 05 May 2025, at 20:14, Derek Martin <demar...@akamai.com> wrote: > If I understand correctly, I believe using --chmod without using > --perms (or with --no-p) will do what you want. Typical command lines > often use -a which equates to -rlptgoD (i.e. it includes -p/--perms). > So you either need to not use -a and instead use the remaining > combination of options explicitly, or use --no-p. > > See the man page, specifically the sections for --perms and -a.
When I stepped this through the debugger I found that this was not the case. The flaw is on this line: https://github.com/RsyncProject/rsync/blob/de4c5f7bb004d972045a2667f8d7a523386fc0e6/rsync.c#L579 The value of --chmod is being written to the fake xattrs, and this breaks the backups. The alternative is not to have --chmod, but this makes the backups inaccessible to the people needing to restore the backups. The fix is here: https://github.com/RsyncProject/rsync/pull/751 Regards, Graham --
-- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html