search for files, not dirs

This commit is contained in:
= 2022-12-15 10:00:18 +01:00
parent 1f6067234e
commit 3f93e37473

View File

@ -11,5 +11,5 @@ for db in ${databases[@]}; do
fi fi
done done
# Delete the files older than 3 days # 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 {} \;