Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rsync issue

Status
Not open for further replies.

bluedragon2

IS-IT--Management
Jan 24, 2003
2,642
US
I would like to copy rsync home directory information from server A to server B. My constraints: I can only run rsync on server C. I must mount the home directories from server A and B to C. The user groups are different on servers A & B.

When I mount the servers A and B, one gives me uids in the 50000's the other in the 20000's. So, when I rsync, the uid and gid are changed on server B.

Does anyone have any ideas that would help?

Thanks

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
How many logins? How many directories in /home for A, B, and C?

Would it be easier to change the uids and gids to match in all?

Or would it be easier to write a script to to chown and chgrp commands on the directories after the rsync?

Other option may be to use NFS or use one set of /etc/passwd and /etc/shadow and /etc/group files for all servers.

A great teacher, does not provide answers, but methods to teach others "How and where to find the answers"

bsh

35 years Bell, AT&T, Lucent, Avaya
Tier 3 for 25 years and counting
 
This is for around 400 accounts. The problem is that changing groups on servers is not an option. My solution is to write the script to be ran after rsync. Just wondering if their was any other ideas out there, because I have ran out of them... :)

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
I think your solution might be the way to go. Are the home directories likely to be in use at the time this is running? Consider perhaps NOT using the -o and -g options for your rsync (which are implied by -a) so that you don't end up changing all of the file ownerships and changing them back again every time you do the refresh.

Annihilannic.
 
Right, this is going to be a slow transition of users to the new and they will be working on both at times during the transition.

Thanks

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top