diff --git a/templates/postgresql-backup.sh.j2 b/templates/postgresql-backup.sh.j2
index ad19c58..082fdde 100755
--- a/templates/postgresql-backup.sh.j2
+++ b/templates/postgresql-backup.sh.j2
@@ -46,7 +46,7 @@ create_backup_dirs() {
 
 cleanup_old_backups() {
 	# Remove the old backups
-	find ${HISTDIR} -atime +${N_DAYS_TO_SPARE} -type f -exec rm -f {} \;
+	find ${HISTDIR} -mtime +${N_DAYS_TO_SPARE} -type f -exec rm -fv {} \;
 	# TODELETE=$( /bin/ls "${HISTDIR}/" | awk -F '.' '{print $NF}' | sort -ruV | tail -n +${N_DAYS_TO_SPARE} )
 	# for i in ${TODELETE}
 	# do