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

Add option to specify which day the weekly backup should cover #39

Open
vilitux opened this issue Aug 31, 2020 · 0 comments
Open

Add option to specify which day the weekly backup should cover #39

vilitux opened this issue Aug 31, 2020 · 0 comments

Comments

@vilitux
Copy link
Member

vilitux commented Aug 31, 2020

Would be nice to be able to specify on which day the weekly backup should be created (or, as bonus, time?). This can be nice in combination with other backup strategies for e.g. MariaDB, where we do weekly backup of databases on sunday (+ binlogs every day to cover the whole week).

Creating a weekly backup in planb on saturday (or sunday before mariadb backup if time option = yes), would then give us the mariabackup + binlogs till saturday/sunday.

Urth added a commit that referenced this issue Sep 2, 2020
Fix #38 by always clamping dates to a sane value for the given period.
Previously the targetted desired date for a given retention period would
depend on the day the backup was performed. As a result it shifted each
day by one day causing unstable intervals in between.

So a weekly retention period interval could be vary between 6 to 8 days.
For example weekly backups are now clamped to sundays (hardcoded, #39)
and as a result the best matching snapshot no longer shifts day by day.

This uses dateutil to perform the weekday clamping.
Add Django 3.1 as a supported version in the setup requirements.
Urth added a commit that referenced this issue Sep 2, 2020
Fix #38 by always clamping dates to a sane value for the given period.
Previously the targetted desired date for a given retention period would
depend on the day the backup was performed. As a result it shifted each
day by one day causing unstable intervals in between.

So a weekly retention period interval could be vary between 6 to 8 days.
For example weekly backups are now clamped to sundays (hardcoded, #39)
and as a result the best matching snapshot no longer shifts day by day.

This uses dateutil to perform the weekday clamping.
Add Django 3.1 as a supported version in the setup requirements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant