Archives for: September 2011

MySQL Backup script

Doing this on FreeBSD so you might need to modify the bash location for other OS choices #!/usr/local/bin/bash backupdir=/home/backup/ backupfile=`date +backup-%d-%m-%y_%H.sql` tarfile=mysqlbackup.tar cd $backupdir mysqldump --opt -A -h localhost --pas… more »