A non-recursive approach to using ddrescue
on a directory.
Chances are, if you have a currupted set of memory, it's not just a few files. It's probably a whole disk.
Wanna save it? You can use ddrescue
, but that doesn't work on directories, only files. If you want to use
it on a whole big directory, you'll need to do each file one by one. That's exactly what this script does.
$ fish ddrfind.fish
Hey. This is exactly what I was looking for but ran into a problem. Never used fish or ddrescue before...
I try to copy a folder from the failing drive to another disk using:
ddrfind '/media/[user]/xyz/! DL Save/2022-12/' /media/[user]/Backups/WD-Updates/
But everytime I try it, the script keeps creating "media/[user]/Backups/WD-Updates/" as new folders inside the source folder (2022-12) instead of on the backup drive and starts copying to the already damaged drive...
I know, I must be missing something pretty simple here, but I just can't figure out how to route the output to the new drive...