mirror of
https://github.com/luzifer-docker/mariadb-backup.git
synced 2024-11-09 15:20:02 +00:00
Fix: Also delete grants backups
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
692d1f3cd5
commit
a26d9a3bd3
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ while [ 1 ]; do
|
|||
# Cleanup old backups
|
||||
step "Removing old backups..."
|
||||
find "${TARGET_DIR}" -name '*.sql.gz' -mtime "${DELETE_OLDER_THAN}" -delete
|
||||
find "${TARGET_DIR}" -name '*.sql' -mtime "${DELETE_OLDER_THAN}" -delete
|
||||
|
||||
# Sleep until next full hour
|
||||
step "I'm done, see ya next hour!"
|
||||
|
|
Loading…
Reference in a new issue