Recovering folders with ddrescue
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
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
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.
ddrescueis for hardware failures. It doesn't sound like that's what you've got.could you recommend some free software for recovering deleted files then?
testdiskhttps://itsfoss.com/recover-deleted-files-linux/
thanks for the help
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.