From 3f93e37473bfba0b6cfe2391dea4a774651c6473 Mon Sep 17 00:00:00 2001 From: = Date: Thu, 15 Dec 2022 10:00:18 +0100 Subject: [PATCH] search for files, not dirs --- podman/files/mysql-dump.sh.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podman/files/mysql-dump.sh.jinja b/podman/files/mysql-dump.sh.jinja index 131f970..17a0063 100644 --- a/podman/files/mysql-dump.sh.jinja +++ b/podman/files/mysql-dump.sh.jinja @@ -11,5 +11,5 @@ for db in ${databases[@]}; do fi done # Delete the files older than 3 days -find $BACKUP_DIR/* -type d -name *-sql.gz -mtime +3 -exec rm {} \; +find $BACKUP_DIR/* -type f -name *-sql.gz -mtime +3 -exec rm {} \;