This is just a simple script I put together to backup a MySQL database. It's mainly designed to be run as a cron job, but can be run manually too.