postgres old dump remove fix

This commit is contained in:
Tommaso Piccioli 2018-11-19 17:47:19 +01:00
parent ac7793d614
commit 0ac74bb9cf
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ create_backup_dirs() {
cleanup_old_backups() {
# Remove the old backups
find ${HISTDIR} -ctime +${N_DAYS_TO_SPARE} -type f -exec rm -f {} \;
find ${HISTDIR} -atime +${N_DAYS_TO_SPARE} -type f -exec rm -f {} \;
# TODELETE=$( /bin/ls "${HISTDIR}/" | awk -F '.' '{print $NF}' | sort -ruV | tail -n +${N_DAYS_TO_SPARE} )
# for i in ${TODELETE}
# do