[Automysqlbackup-users] Daily Logs Don't Rotate Unless Compressed w/ gzip
Automatic MySQL Backup
Brought to you by:
wipe_out
From: Rob R. <ro...@ro...> - 2004-11-03 23:56:23
|
Thanks for the useful script. There is a bug in automysqlbackup v2.0 where daily backups aren't rotated if you do not use gzip for compression. Compare the rotation call in weekly vs. that in daily. Daily doesn't look for a wildcard extension, but .gz instead eval rm -fv "$BACKUPDIR/weekly/$DB/week.$REMW.*" eval rm -fv "$BACKUPDIR/daily/$DB/*.$DOW.sql.gz" I believe the daily rotation eval statement ( line 453 for me ) should read eval rm -fv "$BACKUPDIR/daily/$DB/*.$DOW.sql.*" |