From owner-freebsd-questions Sun Apr 28 15: 6:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tomts7-srv.bellnexxia.net (tomts7.bellnexxia.net [209.226.175.40]) by hub.freebsd.org (Postfix) with ESMTP id 87DE137B421 for ; Sun, 28 Apr 2002 15:05:52 -0700 (PDT) Received: from scaryg.shacknet.nu ([64.231.138.102]) by tomts7-srv.bellnexxia.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20020428220551.FPET4008.tomts7-srv.bellnexxia.net@scaryg.shacknet.nu> for ; Sun, 28 Apr 2002 18:05:51 -0400 Received: from localhost ([::1] helo=scaryg.shacknet.nu) by scaryg.shacknet.nu with smtp (Exim 3.35 #1) id 171wox-0000IJ-00 for freebsd-questions@freebsd.org; Sun, 28 Apr 2002 18:07:03 -0400 Date: Sun, 28 Apr 2002 18:07:03 -0400 From: ScaryG To: FreeBSD Questions Subject: rysnc remote backups Message-Id: <20020428180703.6e3b5bb5.freymann@scaryg.shacknet.nu> X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-portbld-freebsd4.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm trying to figure out how I can rsync to backup some remote files.. On the "server" I have created a /usr/local/etc/rsync.conf file with motd file = /usr/local/etc/rsyncd.motd log file = /var/log/rsyncd.log pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock [web] path = /files/web comment = web backups uid = gerald gid = operator read only = no list = yes max connections = 2 auth users = gerald,freymann secrets file = /usr/local/etc/rsyncd.secrets hosts allow = 10.0.0.1 (the 10.0.0.1 is for example purposes only, but is the remote IP) In the /usr/local/etc/rsyncd.secrets files is: gerald:passwd and I'm running Rsync in --daemon mode. Now, on the remote system, when I execute: cd /web /usr/local/bin/rsync -avz --rsh=/usr/bin/ssh *.php gerald@myhost.com:web /usr/local/bin/rsync -avz --rsh=/usr/bin/ssh *.pl gerald@myhost.com:web it copies the files but into a web directory in the home directory of user gerald. It's not using the "web" nickname in the rsync.conf file and putting the files into /files/web where I want them ('cause that's a larger partition). Any ideas? =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Scary Gerry -- Senior Systems Manager freymann@scaryg.shacknet.nu -For web-hosting, DNS Services or PHP & MySql programming see www.interpool.ca -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message