Add backup file history - #5
Merged
1 commit merged intoSep 24, 2026
Merged
1 commit merged into
1 commit merged into
Conversation
Search every Restic snapshot for a file name, path or pattern from Backup & Restore. One reviewed, read-only job lists snapshots and runs `restic find`, wrapped into a single JSON document so versions carry their snapshot times. The pattern is a positional argument to a fixed script, rejected if empty, multi-line or starting with a hyphen. Results are grouped by path, newest first, with each copy marked first saved, changed (size or mtime differs) or same as previous, and a notice when newer snapshots of the same host and path lack the file. "Restore this version" prefills the existing never-overwrite restore. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FV3o3TZ5zZ2ACWD2S7EZdc
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
Backup & Restore → File history finds every saved copy of a file across all Restic snapshots and restores the version you choose.
/…or~/…) or a*/?pattern, with optional Ignore case. It's one reviewed, read-only job: a fixedsh -cscript runsrestic snapshots --json, thenrestic find --json -- <pattern>, and wraps both into one JSON document.findoutput has no snapshot times, so this keeps it to one review and one unlock. The pattern is passed as a positional argument and never spliced into the script, and it's rejected if empty, multi-line, over 1024 characters or starting with-.Tests
$(touch x); *.kdbx) is passed literally as an argument. The real temporary-repository Restic test now runs the search too: exact path, case-insensitive name, and no match.-D warnings, build.Not yet verified
Visual layout in the desktop app and a search against a large real repository. Worth one manual try before release.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FV3o3TZ5zZ2ACWD2S7EZdc