Ticket #53 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

The database backup in a2billing fails sometimes

Reported by: asiby Assigned to: asiby
Priority: critical Milestone: milestone Version 1.3
Component: Admin UI Version: Branch 1.3.x
Keywords: database backup Cc:

Description

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'

Attachments

backup.diff (0.9 kB) - added by asiby on 07/13/07 02:17:56.

Change History

07/13/07 02:17:56 changed by asiby

  • attachment backup.diff added.

07/18/07 07:18:42 changed by anonymous

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in Changeset [82]



Google