-
Notifications
You must be signed in to change notification settings - Fork 34
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
Not passing --forget to 'repair snapshots' #365
Comments
I was able to create a dummy repo to reproduce the issue. Here are the steps I followed. Create repo
Generate data and backup
Corrupt backup
Recovery
Actual outputWhen running
If we run
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think there's a bug with
repair snapshots
.I have missing data in my B2-backed restic repo. I'm ok losing the data, but I need to repair snapshots so I can prune again. I'm following the 'Troubleshooting' steps in Restic's documentation.
Reproduction steps:
resticprofile -n <profile> repair index
resticprofile -n <profile> repair snapshot --forget
resticprofile -n <profile> check
Expected behavior
Restic repairs any snapshots with missing data and drops the old, damaged snapshot. Running
check
results in the message 'no errors were found'Actual behavior
Restic repairs any snapshots with missing data and retains the old, damaged snapshot. Running
check
reported repository errors.Version info
Investigation
It seemed like Restic was ignoring the
--forget
flag. I ran the repair again and looked at the processes running. I also tried adding arepair-snapshots
section and settingforget: true
there. Both times when I ranps aux | grep restic
, I saw this:I thought it was weird that
--forget
didn't show up there. So I ranrestic
directly and checked the running processes:After running it directly, I was able to run
resticprofile -n <profile> check
with no errors reported.Summary
It looks like
resticprofile repair snapshots
is dropping the--forget
parameter. It also seems to be ignoring the config option forprofile.repair-snapshots
->forget: true
.The text was updated successfully, but these errors were encountered: