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

bugfix determination of the first backup to retain #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

t-ru
Copy link

@t-ru t-ru commented Sep 12, 2022

today = 2022-09-12. bd = 2. old code selects the last backup prior 2022-09-10. the selected backup is 2022-02-09 23:59:59 or older. the result is that the last backup prior 2022-09-10 will not be deleted. And this is wrong. Change the sql to select the first backup to retain. This results in correct deletion of all backups prio 2022-09-10.

sample: 
today = 2022-09-12. bd = 2. old code selects the last backup prior 2022-09-10. the selected backup is 2022-02-09 23:59:59 or older.
the result is that the last backup prior 2022-09-10 will not be deleted. An this this is wrong. change the sql to select the first backup to keep. 
this results in correct deletion of all backups prio 2022-09-10.
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

Successfully merging this pull request may close these issues.

1 participant