This is forked off the AutoMySQLBackup.sh program hosted here - http://sourceforge.net/projects/automysqlbackup/