2008
28
Aug
- Posted by Aaron Rosenfeld at 12:06 pm
- No comments published
- Filed under: Databases, Servers, Web Development
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..."