Revision: 11566
Updated Code
at February 9, 2009 10:51 by troynt
Updated Code
#!/bin/sh date=`date -I` day=`date +%d` bak=~/backup-$date.sql.gz mysqldump --user=root --password=PASSWORD --all-databases --opt --skip-add-locks | gzip > $bak ionice -c3 scp -q $bak tr0ycom:~/backups/linode/mysql ionice -c3 rm $bak export PASSPHRASE=PASSWORD if [ $day = 01 ] then ionice -c3 duplicity --full /home/ scp://tr0ycom/backups/linode/home ionice -c3 duplicity --remove-older-than 2M /home/ scp://tr0ycom/backups/linode/home else ionice -c3 duplicity /home/ scp://tr0ycom/backups/linode/home fi
Revision: 11565
Updated Code
at February 9, 2009 10:08 by troynt
Updated Code
#!/bin/sh timestamp=`date -I` day=`date +%d` bak=~/backup-$timestamp.sql.gz mysqldump --user=root --password=PASSWORD --all-databases --opt --skip-add-locks | gzip > $bak ionice -c3 scp -q $bak tr0ycom:~/backups/linode/mysql ionice -c3 rm $bak export PASSPHRASE=PASSWORD if [ $day = 01 ] then ionice -c3 duplicity --full --remove-older-than 2M scp://tr0ycom/backups/linode/home else ionice -c3 duplicity scp://tr0ycom/backups/linode/home fi
Revision: 11564
Updated Code
at February 9, 2009 09:58 by troynt
Updated Code
#!/bin/sh date=`date -I` day=`date +%d` bak=~/backup-$date.sql.gz mysqldump --user=root --password=PASSWORD --all-databases --opt --skip-add-locks | gzip > $bak ionice -c3 scp -q $bak tr0ycom:~/backups/linode/mysql ionice -c3 rm $bak export PASSPHRASE=PASSWORD if [ $day = 01 ] then ionice -c3 duplicity --full --remove-older-than 2M scp://tr0ycom/backups/linode/home else ionice -c3 duplicity scp://tr0ycom/backups/linode/home fi
Revision: 11563
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 9, 2009 09:57 by troynt
Initial Code
#!/bin/sh date=`date -I` day=`date +%d` bak=~/backup-$date.sql.gz mysqldump --user=root --password=PASSWORD --all-databases --opt --skip-add-locks | gzip > $bak ionice -c3 scp -q $bak tr0ycom:~/backups/linode/mysql ionice -c3 rm $bak export PASSPHRASE=PASSWORD if [ $day = 01 ] then ionice -c3 duplicity --full --remove-older-than 1M scp://tr0ycom/backups/linode/home else ionice -c3 duplicity scp://tr0ycom/backups/linode/home fi
Initial URL
Initial Description
Initial Title
Duplicity Backup
Initial Tags
Initial Language
Bash