Recovering folders with ddrescue

Resolved

I have a folder I would like to recover with ddrescue but I don't have a drive big enough for a full drive copy. How would I recover a single folder. eg. /home/

Posted May 31, 2021, 5:14 PM UTC

16
pi3832v2•

ddrescue is for hardware failures. It doesn't sound like that's what you've got.

1
voidwalker604OP•

could you recommend some free software for recovering deleted files then?

1
doc_willis•
2
voidwalker604OP•

thanks for the help

1
pi3832v2•

Sorry, I don't know. You might need to figure out what filesystem you're using. Then you can search for an undelete utility for that filesystem.

1
tuxfan77•

ddrescue can work also with single files. You can use two runs of find, first to recreate the directory structure and the second to recurse on the files. folders. You can just use ddrescue /home /mnt/backup/home, where /mnt/backup/home is the folder that you want to copy to.

1