Fix: Also delete grants backups

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-04-22 20:39:39 +02:00
parent 692d1f3cd5
commit a26d9a3bd3
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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!"