If you check configuration files into a repository, you'll needed a way to keep the username and password out of the configuration file. One way to do this is to take advantage of the ~/.my.cnf used by mysql and mysqldump by default.
With this patch you can set
And automysqlbackup will use the username and password specified in the ~/.my.cnf of the user running the script.
# This will be passed to all mysql clients [client] socket = /var/run/mysqld/mysqld.sock user=dbuser password=dbpassword