Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit 80eaf69

Browse files
committed
backup-retention
1 parent 4072e82 commit 80eaf69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/mongodb.pbpm_backup.sh.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ if grep -q '"ismaster" : true' /tmp/validate; then
7474
fi
7575
print "INFO" "Script ended successfully!"
7676
print "INFO" "Deleting Logical backups"
77+
pbm config --set pitr.enabled=false
7778
pbm delete-backup $MONGO_BACKUP_PARAMETERS --older-than="${BACKUP_PBM_DELETE_DATE}" --force
79+
pbm config --set pitr.enabled=true
7880
print "INFO" "Logical backups deleted"
7981

8082
elif grep -q "Connection refused" /tmp/validate; then

0 commit comments

Comments
 (0)