mirror of
https://github.com/prodrigestivill/docker-postgres-backup-local.git
synced 2026-05-31 08:37:58 +00:00
Fixed issue with tracking how many weekly and monthly backups should be kept
This commit is contained in:
committed by
Pau Rodriguez-Estivill
parent
74b7f40483
commit
7313a50839
@@ -161,16 +161,16 @@ cleanup_backups () {
|
||||
do
|
||||
if [ $folder == "weekly" ]
|
||||
then
|
||||
KEEP=$KEEP_WEEKS
|
||||
DELETE=$BACKUP_DELETE_WEEKS
|
||||
KEEP=$BACKUP_KEEP_WEEKS
|
||||
DELETE=$BACKUP_DELETE_WEEKS
|
||||
elif [ $folder == 'monthly' ]
|
||||
then
|
||||
KEEP=$KEEP_MONTHS
|
||||
DELETE=$BACKUP_DELETE_MONTHS
|
||||
KEEP=$BACKUP_KEEP_MONTHS
|
||||
DELETE=$BACKUP_DELETE_MONTHS
|
||||
elif [ $folder == 'daily' ]
|
||||
then
|
||||
KEEP=$KEEP_DAYS
|
||||
DELETE=$BACKUP_DELETE_DAYS
|
||||
KEEP=$BACKUP_KEEP_DAYS
|
||||
DELETE=$BACKUP_DELETE_DAYS
|
||||
fi
|
||||
|
||||
for DB in ${POSTGRES_DBS}
|
||||
|
||||
Reference in New Issue
Block a user