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 {} \;