Check out this script
http://kent.dl.sourceforge.net/sourc...lbackup.sh.2.5
I use it my self and it works great you can have the databases emailed to you and it backs upto a folder with date etc which you could then rsync or what ever to another machine as well
I use this one too for full backup which make restoring easy
#!/bin/sh
/usr/local/bin/mysqldump -u root --password=password --all-databases | gzip > /usr/backups/fullmysql/backup.`date +%y%m
%d`.sql.gz
/usr/local/bin/mutt -s "Mysql Dump all db" -a /usr/backups/fullmysql/backup.`date +%y%m%d`.sql.gz
emailme@domain.org.uk
< /root/text_foremail.txt
text_foremail.txt just contains some text that appears in the body of the email to remind me to do stuff.
I am not very good at scripting but it works ok
Recent comments
1 day 4 hours ago
1 day 11 hours ago
1 day 15 hours ago
1 day 16 hours ago
2 days 1 hour ago
2 days 10 hours ago
2 days 11 hours ago
2 days 15 hours ago
2 days 19 hours ago
2 days 19 hours ago