Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2468

Raspberry Pi OS • Re: rsync files between two Pis that are owned by other than the sending user

$
0
0
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.

Statistics: Posted by MiscBits — Sat Feb 24, 2024 12:46 am



Viewing all articles
Browse latest Browse all 2468

Trending Articles