Date: Sun, 28 Apr 2002 18:07:03 -0400 From: ScaryG <freymann@scaryg.shacknet.nu> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: rysnc remote backups Message-ID: <20020428180703.6e3b5bb5.freymann@scaryg.shacknet.nu>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020428180703.6e3b5bb5.freymann>