Aaron Rosenfeld / 14 posts / 9 comments / feed / comments feed

It isn't pretty but I wrote this little script which saves 10 full mySQL backups (compressed) to a specified directory.

export DIR="BACKUP DIRECTORY HERE"
export UNAME="MYSQL USERNAME HERE"
export PASS="MYSQL PASSWORD HERE"
### End Config ###
printf "Starting at "
date "+%m-%d-%Y %H:%M:%S"
printf "Rotating Backup files..."