rsync --chmod affects the source permissions as well as destination permissions

Graham Leggett via rsync <[email protected]> Tue, 8 Apr 2025 12:54:24 +0100
Newsgroups gmane.network.rsync.general
Message-ID <[email protected]>
Hi all,

Another thing I've found is that my backups have lost their permissions.

I misunderstood the --chmod option, thinking that it specified the permissions at the destination. What actually happens is that it overrides the source permissions, and has a side effect of the destination permissions being the same as the source. It looks like it works, when metadata is lost.

I now need to fix this.

What option will set the permissions on the destination side, while not affecting the permissions being fed into --fake-super on the source side?

The end goal is a simple backup of a source filesystem preserving all users, all groups, all permissions, and all attributes, while the destination is a filesystem of a normal non-root user account.

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