search for files, not dirs
This commit is contained in:
parent
1f6067234e
commit
3f93e37473
@ -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 {} \;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user