Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save weekly, monthly backups #83

Open
Krysztophe opened this issue Jun 24, 2022 · 2 comments
Open

Save weekly, monthly backups #83

Krysztophe opened this issue Jun 24, 2022 · 2 comments
Assignees

Comments

@Krysztophe
Copy link
Contributor

In addition to the N previous backups, it would be nice to keep N' weekly backups and N'' monthly backups, to be able to look back into the far past.

@orgrim
Copy link
Owner

orgrim commented Jun 24, 2022

Hi,

this looks interesting but quite difficult to implement because we do not have any control on how the runs are scheduled. Maybe a formulae like "keep 1 backup every N", N being 7 when scheduled daily? and so on for month

This would still have to be translate to a form easy to use in a command line option

Regards,

@orgrim orgrim self-assigned this Jun 24, 2022
@Krysztophe
Copy link
Contributor Author

I would just specify:

If present, at least a backup is kept for each of the previous purge_keep_monthly_backups months, and each of the previous purge_keep_weekly_backups weeks.

Eg, if purge_keep_monthly_backups = 2,

  • when purging, do not purge the oldest of the backups younger than 2 months
  • do not purge the oldest of the backups younger than 3 months

It can be tricky, because a 1 week old backup may be kept because of purge_older_than >7 OR purge_keep_weekly_backups >0 , and a 4 weeks old backup may be kept because purge_keep_weekly_backups > 4 OR purge_keep_monthly_backups >0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants