[CentOS] rsync and users

Wed Jan 24 21:33:40 UTC 2007
Mark Schoonover <schoon at amgt.com>

Todd Cary wrote:
> Thanks to the encouragement of some people on this list, I am using
> rsync to synchronize two servers: one is a backup to the other in case
> the primary one fails.  By hand, I inserted the names of the users on
> the primary server into the backup server.  So, now all works well.
> 
> /usr/bin/rsync -av -e ssh /home/ 192.168.0.22:/home/
> 
> My question is what would happen if the users were not on the backup

They just get set to the UID/GID of the source server.

> server? 
> 
> Is there anyway to have the users automatically inserted into passwd
> and group?

I'd investigate NIS to fix this issue.

Thanks!

Mark Schoonover 
IS Manager 
American Geotechnical - California, Nevada and Arizona 
V-> 858.450.4040 F-> 714.685.3909 C-> 858.472.3816