Michael <cuscotravelservi...@gmail.com> wrote:

> I would like to know how rsync would manage the situation where the UID and
> GID(s), of a file being copied to a Remote system, have been reserved on the
> Remote system. Does rsync search for and allocate the next available IDs?

AFAIK, if you don't specify the "numeric-ids" option, then it will match by 
user/group name - ie it'll do a numeric to name conversion at the source, 
lookup the name at the destination, get the numeric value for the destination, 
and convert. So if user fred is UID 1000 on the source and 1010 on the 
destination, files owned by 1000 on the source will end up as UID 1010 on the 
If there sin't a matching name then AFAIK it'll do no conversion - you may end 
up with files owned by either a different user or no user at all. With the 
above, if user fred doesn't exist on the destination, then files will end up 
owned by UID 1010.

What is fun is copying files on a filesystem from a different system (mounting 
the virtual disks for a VM on the host) and copying them elsewhere while 
forgetting the numeric-ids option. You end up with some "interesting" file 
ownerships !

Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to