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
Rotate only if there will be a new <interval>.0 folder #34
Conversation
With this bugfix, gaps like a missing <interval>.0 folder will be prevented. See bug rsnapshot#18.
This is a reasonable but notable default behavior change. In some environments, you want to discard all backups past a certain age, even at the cost of braking hardlinking. But in general, I think it's a really good idea. |
@bebehei see my comment on the commit. I understand that there can be other use cases where rotating is wanted. Maybe this PR should be an opt-in, that is, we add a new option to rsnapshot? What do you think @bebehei?
@nkadel If I understand correctly, hardlinking will only be broken in case |
👍 . Even though its a simple thing to check that the last snapshot in the previous interval is there or not before rotating, it makes sense for rsnapshot to do this because it already has access to the number of snapshots in the previous interval.
@nkadel I'm interested in what the concrete use cases for not this commit are?? Regarding the confusion about |
@sam-at-github test case added in #92 |
This PR has been replaced by #92, which is already merged. Closing. |
@myrdd has closed this PR, because seemingly, #92 had been merged. But this is not the case - see #92 (comment) The code changes of this PR and #92 are basically identical. The original problem still persists. Re-open this one? |
With this bugfix, gaps like a missing .0 folder will be prevented.
See bug #18.