Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 2004 14:07:35 +0200
From:      Rasmus Brogger <Rasmus.Brogger@uni-c.dk>
To:        Andrew Nelson <andrew__nelson@hotmail.com>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Can't get rsync preserving ownership but rdist6 does?
Message-ID:  <412C8107.4070404@uni-c.dk>
In-Reply-To: <BAY18-F394t9A1vP4nW000a71c7@hotmail.com>
References:  <BAY18-F394t9A1vP4nW000a71c7@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrew Nelson wrote:
> Hi,
> 
> I have a central backup machine with a rsync daemon running with under
> the user/group  of  root/wheel.  I then have a number of other FreeBSD
> machines pushing files to it for backup which is working
> 
> On the client machines,   I use:
> rsync -CavzHpog /etc/namedb/ backup@backups.domainname.com:/archive/namedb
> 
> All the files on the remote machine have the correct permissions but
> are all owned by the 'backup' user.  I used to use rdist6 which would 
> turn the
> UID and GID into numbers where the users didn't exist on the local 
> machine and it
> would all preserce nicely.
> 
> My /usr/local/etc/rsyncd.conf  is below and rsync is started by root
> with "/usr/local/bin/rsync --daemon"
> 
> 
> I'd appreciate any help!
> Thanks,
> Andrew.
> 
> 
> --------------
> # rsyncd conf
> 
> # User & Group for rsync to run as
> uid = root
> gid = wheel
> 
> # Use chroot with rsync
> use chroot = yes
> max connections = 20
> 
> auth users = backup
> secrets file = /usr/local/etc/rsyncd.secrets
> 
> 
> # log and pid file options
> pid file = /var/run/rsyncd.pid
> log file = /var/log/rsync.log
> syslog facility = local5
> 
> hosts allow = <my hostnames>
> hosts deny = *
> 
> [dns]
> path = /archive/namedb/
> comment = Primary Name Server Backup
> secrets file = /usr/local/etc/rsyncd.secrets
> strict modes = true
> read only = false
> 
> _________________________________________________________________
> Protect your inbox from harmful viruses with new ninemsn Premium. Go 
> to   
> http://ninemsn.com.au/premium/landing.asp?banner=emailtag&referrer=hotmail
> 
> _______________________________________________
> freebsd-isp@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-isp
> To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"

rsync has a --numeric-id switch.

I think this is what you're looking for.

/rhb



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?412C8107.4070404>