Fixed issue with tracking how many weekly and monthly backups should be kept

This commit is contained in:
atcommander
2022-08-03 17:05:39 +00:00
committed by Pau Rodriguez-Estivill
parent 74b7f40483
commit 7313a50839
+3 -3
View File
@@ -161,15 +161,15 @@ cleanup_backups () {
do
if [ $folder == "weekly" ]
then
KEEP=$KEEP_WEEKS
KEEP=$BACKUP_KEEP_WEEKS
DELETE=$BACKUP_DELETE_WEEKS
elif [ $folder == 'monthly' ]
then
KEEP=$KEEP_MONTHS
KEEP=$BACKUP_KEEP_MONTHS
DELETE=$BACKUP_DELETE_MONTHS
elif [ $folder == 'daily' ]
then
KEEP=$KEEP_DAYS
KEEP=$BACKUP_KEEP_DAYS
DELETE=$BACKUP_DELETE_DAYS
fi