I have an rsync job running in one server that keeps folders in sync. The job is running as root in one server and transferred to a backup server as normal user.
In the origin server one folder (weirdly enough) didn't have x permissions. On the origin server this wasn't a problem because it was run as root but on the remote server because I was using the
-a parameter it kept giving errors and it could not update it after the first time.
This is understandable and I think I know how to fix it, which is by using
rsync -rlDt in this way the permissions for the original server would not get applied on the destination.
What if I want to have the best of both worlds with my setup though? What if I want to keep permissions as much as possible but perhaps change them (or override - this should be possible as the owner is the destination user) when encountering issues like this one? Is this possible?