Table of Contents

Backup Options

Rsync

$ rsync -avz -e "ssh -i /home/thisuser/cron/thishost-rsync-key" remoteuser@remotehost:/remote/dir /this/dir/
  • Or, with your ~/.ssh/config setup for your identity file
Host remotehost
User remoteuser
Compression yes
Protocol 2
RSAAuthentication yes
StrictHostKeyChecking no
ForwardAgent yes
ForwardX11 yes
IdentityFile /home/localuser/.ssh/id_remotehost_dsa
  • then you can do this
rsync -e ssh -avz --delete /home/folder1/ server02:/home/folder

Unison

cd /bin
wget http://www.cis.upenn.edu/~bcpierce/unison/download/stable/latest/unison.linux-textui
mv unison.linux-textui unison
chmod +x unison

Then run this example at the first cluster to sync /var/www/html/ directories on both:

unison /var/www/html ssh://server02//var/www/html -batch

You can put as many of these as you like in the crontab (crontab -e), 1st run is slow, rest are fast.

Sys Recovery

http://www.microwerks.net/~hugo/ - mondo, disaster recovery | http://mkcdrec.ota.be/ - mkcdrec, make cdrom recovery

gentoo recommendation ssh keys and rdiff - also see flexbackup in the doc adv Bash script example to include dates in file names

 
howto/backup.txt · Last modified: 2005/08/28 01:06 by bw
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki