Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Server to server backups?
April 19, 2006, 3:01 am
rate this thread
I wanted to make a mirror of my site and wondered if rsync would be
suitable? I've used it on individual directories and it preserves
permissions, only backs up changed files etc. I don't know if it can be
set to delete files from the backup that no longer exist on the
original server? I'd like to run it as a cronjob so I have an exact
mirror of my site, but maybe there are better solutions to rsync I can
use on a Linux server?
Re: Server to server backups?
from the rsync man page:
To synchronize my samba source trees I use the following Makefile tar-
rsync -avuzb --exclude ’*~’ samba:samba/ .
rsync -Cavuzb . samba:samba/
sync: get put
this allows me to sync with a CVS directory at the other end of the
connection. I then do CVS operations on the remote machine, which saves
a lot of time as the remote CVS protocol isn’t very efficient.
I mirror a directory between my "old" and "new" ftp sites with the com-
rsync -az -e ssh --delete ~ftp/pub/samba nimbus:"~ftp/pub/tridge"
This is launched from cron every few hours.
Dancin' in the ruins tonight
mail: echo firstname.lastname@example.org | perl -pe 'y/a-z/n-za-m/'
Tayo'y Mga Pinoy
- » Looking for Database of Canada Postal Codes v. Lat/Long
- — Previous thread in » Webmaster Forum