[GH-ISSUE #121] Dynamic Retention with minimum number of backups to retain #100

Open
opened 2026-02-26 21:34:26 +03:00 by kerem · 3 comments
Owner

Originally created by @gautamsi on GitHub (May 25, 2025).
Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/121

I had a situation, the backup was failing for few days and I was away from home. when I got back home, everything was deleted as the retention days are passed.

At least having minimum backups to keep will at least provide some backups. Having retention days count from last successful backup should also be helpful. in this case if the backups did not go through then the last backup would not be deleted.

Dynamic retention
this could be like 7 daily backups, 4 weekly backups, 12 monthly backups to keep, takes less backup space and have older data to restore from in any case.

Originally created by @gautamsi on GitHub (May 25, 2025). Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/121 I had a situation, the backup was failing for few days and I was away from home. when I got back home, everything was deleted as the retention days are passed. At least having minimum backups to keep will at least provide some backups. Having retention days count from last successful backup should also be helpful. in this case if the backups did not go through then the last backup would not be deleted. Dynamic retention this could be like 7 daily backups, 4 weekly backups, 12 monthly backups to keep, takes less backup space and have older data to restore from in any case.
Author
Owner

@eduardolat commented on GitHub (May 26, 2025):

I'll add more flexibility when configuring retention, including the "minimum number of backups to retain" option

<!-- gh-comment-id:2910336412 --> @eduardolat commented on GitHub (May 26, 2025): I'll add more flexibility when configuring retention, including the "minimum number of backups to retain" option
Author
Owner

@herrschmidt commented on GitHub (Jun 8, 2025):

Dynamic retention this could be like 7 daily backups, 4 weekly backups, 12 monthly backups to keep, takes less backup space and have older data to restore from in any case.

This would be so great!

<!-- gh-comment-id:2954295142 --> @herrschmidt commented on GitHub (Jun 8, 2025): > Dynamic retention this could be like 7 daily backups, 4 weekly backups, 12 monthly backups to keep, takes less backup space and have older data to restore from in any case. This would be so great!
Author
Owner

@dcrystalj commented on GitHub (Oct 14, 2025):

can you please confirm currently we don't have option to keep weekly/monthly/yearly backups, or is this done automatically ?

<!-- gh-comment-id:3401051923 --> @dcrystalj commented on GitHub (Oct 14, 2025): can you please confirm currently we don't have option to keep weekly/monthly/yearly backups, or is this done automatically ?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pgbackweb#100
No description provided.