Title: Bug in automysqlbackup script
Topics: blog, MySQL
Date: 2007-06-14

There is a bug in the MySQL Backup Script v2.5 from http://sourceforge.net/projects/automysqlbackup/, triggered by database name containing spaces. I fixed it by using quotes in the dbdump function:

# Database dump function

dbdump () {

mysqldump --user=$USERNAME --password=$PASSWORD --host=$DBHOST $OPT "$1" > "$2"

return 0

}