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..."
2008
16
May
- Posted by Aaron Rosenfeld at 02:28 pm
- No comments published
- Filed under: Databases, Programming, Servers