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

Destructive rotation bugs #284

Open
sgpinkus opened this issue Jun 5, 2021 · 0 comments
Open

Destructive rotation bugs #284

sgpinkus opened this issue Jun 5, 2021 · 0 comments
Labels

Comments

@sgpinkus
Copy link
Member

sgpinkus commented Jun 5, 2021

There are three closely related bugs to do with destructive rotations:

  1. With sync_first=1, link_dest=1 doing a "alpha" backup without a sync results in a "gap" in alpha interval backups, and potential loss of a backup without a replacement. Running alpha many times without sync can eventually leads to loss of all alpha level backups.
  2. The same problem occurs at "beta" level with or without sync_first set. The consequences for bug 2 are somewhat less sever because "beta" level backups are older by definition.
  3. sync_first=1, link_dest=0 doing a "alpha" backup without a sync results in a duplicate, not a backup. Many times -> many duplicates. An inexperienced user can be easily be misled to believe they have many backups when in fact they have many copies of the same stale backup.
sync_first link_dest BUG 1 BUG 2 BUG 3
0 0 N Y N
0 1 N Y N
1 0 N Y Y
1 1 Y Y N

The fix to bugs 1 and 3 is to always make sure you only do a "alpha" back up after a successful sync back when sync_first is enable. I.e. rsnapshot sync && rsnapshot alpha. A similar work around can be applied to bug 2: rsnapshot beta && rsnapshot alpha although this is slightly more cumbersome to setup as, say, a cronjob. In any case this is less than ideal, and can trip up inexperienced users. Ideally it should be fixed. The issue has been raised many times and there are a few PRs claiming to solve or partially solve the problem:

If and when this will be addressed is YTBD.

@sgpinkus sgpinkus changed the title Destructive Rotations Destructive rotation bugs Jun 5, 2021
@sgpinkus sgpinkus added the bug label Jun 5, 2021
@sgpinkus sgpinkus pinned this issue Jun 5, 2021
@rsnapshot rsnapshot deleted a comment from cbean Sep 6, 2022
@rsnapshot rsnapshot locked and limited conversation to collaborators Sep 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant