[GH-ISSUE #147] [FEATURE] Advanced retention options #119

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

Originally created by @BB-BenBridges on GitHub (Oct 27, 2025).
Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/147

At the moment I can only retain the last 10 days of backups for example. However, what would be nice, for example, is to have a backup task run hourly and then retain the following:

  • 24 x backups for the last 1 day ( hourly )
  • 7 x backups for the last 1 week ( daily )
  • 4 x backups for the last month ( weekly )
  • 12 x backups for the last year ( monthly )
  • 1 x backups for the last 3 years

I hope that make sense? It means my backups can span a long time duration in total, but have a small time period in the times that it matters.

I suppose in theory i could do this with 5 backup tasks, but it seems overkill to run a backup on the database 5 times, would be nicer to roll this into one backup with a more advanced retention period.

Thanks,

Originally created by @BB-BenBridges on GitHub (Oct 27, 2025). Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/147 At the moment I can only retain the last 10 days of backups for example. However, what would be nice, for example, is to have a backup task run hourly and then retain the following: - 24 x backups for the last 1 day ( hourly ) - 7 x backups for the last 1 week ( daily ) - 4 x backups for the last month ( weekly ) - 12 x backups for the last year ( monthly ) - 1 x backups for the last 3 years I hope that make sense? It means my backups can span a long time duration in total, but have a small time period in the times that it matters. I suppose in theory i could do this with 5 backup tasks, but it seems overkill to run a backup on the database 5 times, would be nicer to roll this into one backup with a more advanced retention period. Thanks,
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#119
No description provided.