-
Notifications
You must be signed in to change notification settings - Fork 35
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
weekly not working correctly at start of year #31
Comments
I can confirm that. Script work OK (thank you) but under the condition described above it matches 20210101 as weekly backup, and losing therefore one of the weekly backups Command: Expecting to keep 20210208-223001, instead it keeps 20210101-223001 Output: `2021-03-10 13:00:02 hostname rotate_backups.cli[1016] INFO Performing a dry run (because of --dry-run option) .. PROBLEM HERE 2021-03-10 13:00:03 hostname rotate_backups[1016] INFO Deleting 20210102-223001 .. Version: |
It seems the weekly parameter is not working correctly at the start of the year.
I have these files:
Invoking rotate-backups with 4 weeks it skips 2021-01-09 and keeps 2021-01-02 instead. Expected behaviour was to keep 2021-01-09 and delete 2021-01-02.
Command
rotate-backups --weekly 4 ...
Output
Increasing to 5 weeks includes 2021-01-09 again.
Command
rotate-backups --weekly 5 ...
Output
Using the latest version 8.1
The text was updated successfully, but these errors were encountered: