fix restic unlock success detection#284
Merged
Merged
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Contributor
Author
|
Quick test update from my side. I built this branch into a custom image and rolled it out to a test What I checked in the test container:
That cron-equivalent run went through:
In this test run I did not hit the previous pattern: |
Closed
itzg
approved these changes
Mar 19, 2026
Owner
itzg
left a comment
There was a problem hiding this comment.
Thanks! Ready for me to merge this?
Closed
Contributor
Author
Yes, that works fine for me. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
restic unlockexit status instead of matchingsuccessin stdoutrestic unlockoutput when presentContext
In a
docker-mc-backupcontainer usingBACKUP_METHOD=resticwith an S3-compatibleRESTIC_REPOSITORY, the scheduled backup path repeatedly logged:However, in the same container:
backup nowsucceededrestic list locksreturned no output and exited0immediately after the scheduled failurerestic unlock -vreturned no output and exited0immediately after the scheduled failureThe existing logic requires
restic unlockstdout to containsuccess, which can misclassify a successful unlock when the command exits0without printing that string.