Menu

#84 CONFIG_mysql_dump_latest hast extra suffix and breaks

v3.0_testing
open
nobody
None
5
2015-06-04
2015-06-04
Dan Elder
No

The suffix is included twice when CONFIG_mysql_dump_latest= is enabled and compression is used:

cp: cannot stat '/var/backup/db/fullschema/fullschema_daily_2015-06-04_17h38m_Thursday.sql.gz.gz.enc': No such file or directory
Warning: Using a password on the command line interface can be insecure.
cp: cannot stat '/var/backup/db/status/status_daily_2015-06-04_17h38m_Thursday.txt.gz.gz.enc': No such file or directory
Warning: Using a password on the command line interface can be insecure.
cp: cannot stat '/var/backup/db/daily/alvin/daily_alvin_2015-06-04_17h38m_Thursday.sql.gz.gz.enc': No such file or directory

It's a simple fix though on line 307:

root@db1:/usr/local/bin# diff automysqlbackup automysqlbackup.orig
307c307
< cp -al "${1}.enc" "${CONFIG_backup_dir}"/latest/


    cp -al "${1}${suffix}.enc" "${CONFIG_backup_dir}"/latest/

2255c2255
< # END __main


END __main

\ No newline at end of file

Discussion


Log in to post a comment.