mirror of
https://github.com/prodrigestivill/docker-postgres-backup-local.git
synced 2026-07-14 14:17:52 +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,15 +161,15 @@ cleanup_backups () {
|
|||||||
do
|
do
|
||||||
if [ $folder == "weekly" ]
|
if [ $folder == "weekly" ]
|
||||||
then
|
then
|
||||||
KEEP=$KEEP_WEEKS
|
KEEP=$BACKUP_KEEP_WEEKS
|
||||||
DELETE=$BACKUP_DELETE_WEEKS
|
DELETE=$BACKUP_DELETE_WEEKS
|
||||||
elif [ $folder == 'monthly' ]
|
elif [ $folder == 'monthly' ]
|
||||||
then
|
then
|
||||||
KEEP=$KEEP_MONTHS
|
KEEP=$BACKUP_KEEP_MONTHS
|
||||||
DELETE=$BACKUP_DELETE_MONTHS
|
DELETE=$BACKUP_DELETE_MONTHS
|
||||||
elif [ $folder == 'daily' ]
|
elif [ $folder == 'daily' ]
|
||||||
then
|
then
|
||||||
KEEP=$KEEP_DAYS
|
KEEP=$BACKUP_KEEP_DAYS
|
||||||
DELETE=$BACKUP_DELETE_DAYS
|
DELETE=$BACKUP_DELETE_DAYS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user