From owner-freebsd-isp@FreeBSD.ORG Wed Aug 25 05:09:28 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 7E33D16A4CE for ; Wed, 25 Aug 2004 05:09:28 +0000 (GMT) Received: from hotmail.com (bay18-f39.bay18.hotmail.com [65.54.187.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70D0643D48 for ; Wed, 25 Aug 2004 05:09:28 +0000 (GMT) (envelope-from andrew__nelson@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 24 Aug 2004 22:09:28 -0700 Received: from 203.12.22.37 by by18fd.bay18.hotmail.msn.com with HTTP; Wed, 25 Aug 2004 05:09:27 GMT X-Originating-IP: [203.12.22.37] X-Originating-Email: [andrew__nelson@hotmail.com] X-Sender: andrew__nelson@hotmail.com From: "Andrew Nelson" To: freebsd-isp@freebsd.org Date: Wed, 25 Aug 2004 15:09:27 +1000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 25 Aug 2004 05:09:28.0383 (UTC) FILETIME=[B27724F0:01C48A61] Subject: 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 05:09:28 -0000 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