'rsync -a' not preserving ownership

Wayne Davison wayne@opencoder.net
Tue Jan 4 05:23:28 GMT 2022


On Mon, Jan 3, 2022 at 8:17 AM <cygwin@kosowsky.org> wrote:
> So, why is 'cp -a' able to preserve ownership while 'rsync -a' fails
> and sets ownership to the login name?

Rsync is rather old-school Unix-oriented, so it only checks if its uid
is 0 to see if it should try to chown things.  You can give it the
--super option to tell it to try root things when you're a non-0 user,
which works in my testing.

..wayne..


More information about the Cygwin mailing list