rsync --chmod affects the source permissions as well as destination permissions
Graham Leggett
minfrin at sharp.fm
Tue Apr 8 11:54:24 UTC 2025
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
--
More information about the rsync
mailing list