The the password, or the backup file's name may contain a blank space. If one of them do, the database backup will fail due to an error in the mysqldump line genereted.
As an example, if the password is "my password", the line will be generated as:
mysqldump -all --databases mya2billing -ua2billinguser -pmy password > /tmp/test.sql
or if the file name is "my backup.sql",
we get:
mysqldump -all --databases mya2billing -ua2billinguser -pa2billing > /tmp/my backup.sql
I have made a patch to fix this.
The patch will generate the line as:
mysqldump -all --databases mya2billing -u'a2billinguser' -p'my password' > '/tmp/test.sql'
or
mysqldump -all --databases mya2billing -u'a2billinguser' -p'a2billing' > '/tmp/my backup.sql'