rsync backup

-can use alternate ports, e.g.:
rsync -avz --stats --progress -e "ssh -p 1234 -o CheckHostIP=no" root@sv.cfaw.info:/backups/cfa.net .

Here are some rsync links:
-Fairly recent tutorial: http://www.fredshack.com/docs/rsync.html
-Snapshot-type backups using hard links: http://www.mikerubel.org/computers/rsync_snapshots/

Backing up my website via rsync
RSOPTIONS=" --exclude *.tmp --exclude *.temp --archive -vv --delete --compress --sparse --stats --progress --rsh=ssh"
RSREMOTE="root@andrewfountain.net:"
rsync $RSOPTIONS $RSREMOTE/dev /backups/rimu1
#rsync $RSOPTIONS $RSREMOTE/proc /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/.spamassassin /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/bin /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/opt /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/usr /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/lib /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/root /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/media /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/selinux /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/etc /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/home /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/sbin /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/boot /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/var /backups/rimu1
rsync $RSOPTIONS $RSREMOTE/srv /backups/rimu1

#on web host:
MYPASS=mypassword
mysqldump --compress -u root -p$MYPASS --add-drop-table --extended-insert --quote-names --all-databases | bzip2 -9 > /root/mysqlbackup.sql.bz
#then get it with
scp root@andrewfountain.net:/root/mysqlbackup.sql.bz /backups/mysql/2008-01-31.sql.bz

Here is a link to using PHP to do the MySQL dump: http://matthewhelmke.net/index.php/2008/02/01/31-automatic-mysql-backups...

cfaw.info

MYPASS=mypassword
nice mysqldump --compress -u root -p$MYPASS --add-drop-table --extended-insert --quote-names --all-databases | bzip2 -9 > /root/mysqlbackup.sql.bz
#and the following commands from the backup machine:
scp root@www.cfaw.info:/root/mysqlbackup.sql.bz /backups/cfaw.info/backup_$(date +"%Y%m%d").sql.bz
RSOPTIONS=" --exclude *.tmp --exclude *.temp --archive -vv --delete --compress --sparse --stats --progress --rsh=ssh"
RSREMOTE="root@www.cfaw.info:"
rsync $RSOPTIONS $RSREMOTE/usr/share/drupal/ /backups/cfaw.info/drupal #all drupal code
rsync $RSOPTIONS $RSREMOTE/var/www/html/ /backups/cfaw.info/html #cfaw.info
rsync $RSOPTIONS $RSREMOTE/home/l1nk /backups/cfaw.info/l1nk #l1nk.org
rsync $RSOPTIONS $RSREMOTE/home/spirittruth /backups/cfaw.info/spirittruth #spirit-truth.org

corporatefinanceassociates.net

MYPASS=mypassword
nice mysqldump --compress -u root -p$MYPASS --add-drop-table --extended-insert --quote-names --all-databases | bzip2 -9 > /root/mysqlbackup.sql.bz
#and the following commands from the backup machine:
scp root@corporatefinanceassociates.net:/root/mysqlbackup.sql.bz /backups/cfaw.ca/backup_$(date +"%Y%m%d").sql.bz
RSOPTIONS=" --exclude *.tmp --exclude *.temp --archive -vv --delete --compress --sparse --stats --progress --rsh=ssh"
RSREMOTE="root@corporatefinanceassociates.net:"
rsync $RSOPTIONS $RSREMOTE/usr/share/drupal/ /backups/cfaw.ca/drupal #all drupal code
rsync $RSOPTIONS $RSREMOTE/var/www/html/ /backups/cfaw.ca/html #cfaw.ca
rsync $RSOPTIONS $RSREMOTE/home/quadruple /backups/cfaw.ca/quadruple #drup.org