From owner-freebsd-isp@FreeBSD.ORG Wed Aug 25 12:07:40 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECD2416A4CE for ; Wed, 25 Aug 2004 12:07:40 +0000 (GMT) Received: from mx1.uni-c.dk (mx1.uni-c.dk [130.228.5.194]) by mx1.FreeBSD.org (Postfix) with SMTP id F2CFE43D2D for ; Wed, 25 Aug 2004 12:07:39 +0000 (GMT) (envelope-from Rasmus.Brogger@uni-c.dk) Received: (qmail 21762 invoked by uid 64014); 25 Aug 2004 12:07:30 -0000 Received: from Rasmus.Brogger@uni-c.dk by mx1 by uid 64011 with qmail-scanner-1.22 (uvscan: v4.1.60/v4294. avp: 4.0.3.0. Clear:RC:1(130.228.13.48):. Processed in 1.921316 secs); 25 Aug 2004 12:07:30 -0000 Received: from rhb.uni-c.dk (HELO ?130.228.13.48?) (130.228.13.48) by 0 with SMTP; 25 Aug 2004 12:07:28 -0000 Message-ID: <412C8107.4070404@uni-c.dk> Date: Wed, 25 Aug 2004 14:07:35 +0200 From: Rasmus Brogger User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040721) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Nelson References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-isp@freebsd.org Subject: Re: Can't get rsync preserving ownership but rdist6 does? X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2004 12:07:41 -0000 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 = > 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