Repository navigation
Recover files: bring back deleted or changed files from parity - #31
Merged
Merged
Conversation
This was referenced Oct 9, 2026
A page lists the files deleted or changed since the last sync, from snapraid diff, and restores the picked ones as they were at the last sync: snapraid fix -d <disk> -f /<path>, one run per disk so a file of the same path on another disk stays as it is. Wildcards in file names are matched literally. Changed files cover ransomware: their encrypted content is replaced by the version of the last sync. With unit and end-to-end tests and documentation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JuXnquCPdbG5sBbDyin7yF
firsttris
force-pushed
the
claude/recover-files
branch
from
October 9, 2026 11:16
c07a0ab to
1c5edc0
Compare
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.
Adds a recycle bin. Until the next sync, the parity still holds every file as it was at the last sync. The new page Recover files (sidebar, under Dashboard) lists what changed since then and restores the picked files.
What it does
snapraid diff:diffuntil the next sync. SnapRAID sometimes keeps the new modification time to avoid inode mix-ups; the content is the old one, and the page explains this.How
POST /api/snapraid/restoretakes{configPath, files: [{disk, path}]}and runssnapraid fix -d <disk> -f /<path>….*,?and[becomes a one-character class ([*]), so names likex[1] *.binmatch literally.fix -frestores deleted files, and also changed files to the content of the last sync.Tests
usage.md(with a ransomware tip), API row inarchitecture.md,development.md, README feature.mkdocs build --strictpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01JuXnquCPdbG5sBbDyin7yF
Generated by Claude Code