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.*"
|