Use the -o (Oscar) or --owner option to preserver the owner and -g or --group to preserve the group.
The user(s) must exist on the remote Pi but the uid may be different.
The remote rsync needs to be run as root for this to work.
IIRC you need to use the -p option when using ANY owner / group / permissions parameters.
I thought the -a did this TBH
Rsync has the ability to set user / group mappings (usermap / groupmap) and chown to set the user / group but I've never tried them.
The user(s) must exist on the remote Pi but the uid may be different.
The remote rsync needs to be run as root for this to work.
IIRC you need to use the -p option when using ANY owner / group / permissions parameters.


Rsync has the ability to set user / group mappings (usermap / groupmap) and chown to set the user / group but I've never tried them.
Statistics: Posted by MiscBits — Sat Feb 24, 2024 12:46 am