Bug in BackupDB.sh

Bug in BackupDB.sh

I'm an existing production customer running Applications Manager build 8200 on linux.

The bin/BackupDB.sh script contains a bug that prevents it from running to completion at any time in the A.M. The SQL dump filename is generated using the following command:

export name=`date +%F_%k_%M_%S`

The %k causes a space in the resulting filename if the hour is not two digits in length (i.e., anytime in the A.M.). This causes the MysqlZip invocation later in the script to not find the .sql file and error out.

I patched this by changing the command above to use %H instead of %k:

export name=`date +%F_%H_%M_%S`

This causes a two-digit A.M. hour to have a zero in the first position and thus no spaces in the file name.

Would you please fix this in the next service pack so I don't need to remember to reapply the fix with each upgrade?

Thanks,
Brett Peterson
VisionShare, Inc.

















                New to ADSelfService Plus?