snapraid-btrfs icon indicating copy to clipboard operation
snapraid-btrfs copied to clipboard

snapraid-btrfs fix does not restore files

Open docbill opened this issue 1 year ago • 1 comments

# rm -rf /mnt/disk6/media/Videos/A/
# snapraid-btrfs fix -m -f /mnt/disk6/media/Videos/0-9/
Self test...
Loading state from /mnt/snapraid-content/disk1/snapraid.content...
Searching disk d1...
Searching disk d2...
Searching disk d4...
Searching disk d5...
Searching disk d6...
Selecting...
Scanning disk d1...
Scanning disk d2...
Scanning disk d4...
Scanning disk d5...
Scanning disk d6...
Using 1577 MiB of memory for the file-system.
Initializing...
Selecting...
Fixing...
Nothing to do
Everything OK

Perhaps this is only good for replacing missing snapshots? So I tried that too:

# cd /mnt/disk6/.snapshots/
# mv 24 24.save
# snapraid-btrfs fix -m -f /mnt/disk6/.snapshots/24/snapshot/media/Videos 
Self test...
Loading state from /mnt/snapraid-content/disk1/snapraid.content...
Searching disk d1...
Searching disk d2...
Searching disk d4...
Searching disk d5...
Searching disk d6...
Selecting...
Scanning disk d1...
Scanning disk d2...
Scanning disk d4...
Scanning disk d5...
Scanning disk d6...
Using 1577 MiB of memory for the file-system.
Initializing...
Selecting...
Fixing...
Nothing to do
Everything OK

I thought maybe snapshot 24 was the wrong one to recover, so I tried some of the others, but all find nothing to do...

docbill avatar Jun 15 '24 15:06 docbill

I’d like to confirm I also have an issue with this - I can restore files using: snapraid-btrfs fix (which works as expected) but responds ‘Nothing to do Everything OK’ when specifying an individual file using the -f parameter: snapraid-btrfs fix -f /path/to/file.txt

DhananjayRamachandran avatar Sep 04 '25 15:09 DhananjayRamachandran