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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rsync file ownership

Status
Not open for further replies.

rzs0502

IS-IT--Management
Nov 18, 2002
708
Hi All,

I am running rsync in daemon mode to sync home directories from Prod to DRP as root.
MOST of the user ID's are matched between the two servers, but there are a handful of old users who aren't so fortunate.

I'm not using the 'use chroot' option and rsyncd.conf has
uid=root
gid=root

From the client side I use -valtzrpog flags

I thought rsync does not to username uid matching by default, so it would not be a problem.

Anyone have an idea how I can get around this without having to change uid's or run chown?

Thanks a lot....!




"If you always do what you've always done, you will always be where you've always been."
 
Is there any reason you are running rsync is daemon mode? In the case of performing server to server backups all you need to do is set-up a simple cronjob like the example below.
Code:
# replicate webroot to off-site backup server
0 */6 * * * /usr/local/bin/rsync -avogpt --delete -e ssh /home/[URL unfurl="true"]www rsync@192.168.0.40:/home/backup/www[/URL]

M. Brooks
 
I also prefer running rsync via ssh with key exchange.
For some reason this client insists on daemon mode.
I'm not sure, but I had commented out
# use chroot = true
thinking that the default is false(?)

I've now changed that to explicitly use chroot = false

Will now monitor the next sync.

Thanks Brooks!


"If you always do what you've always done, you will always be where you've always been."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top