Register now and start sharing your code snippets.
-->
MySQL backup with Auto MySQL Backup
Shell Script (Bash) posted 7 months ago by christian
http://sourceforge.net/projects/automysqlbackup/
1 cd /etc/mysql 2 wget http://garr.dl.sourceforge.net/sourceforge/automysqlbackup/automysqlbackup.sh.2.5 3 4 ln -s automysqlbackup.sh.2.5 backup-script 5 chmod 740 backup-script 6 7 vim backup-script
Next tell cron to run it 4 in the morning:
1 crontab -e
Add the following line:
1 0 4 * * * /etc/mysql/backup-script