I have a damaged btrfs filesystem, and I am using btrfs restore
to restore it. It seems to work.
The problem is that the damaged filesystem is quite huge, and I need only to restore just one directory. I see from the man page the option
-d directory
but the wiki I see -d: ???
. Do you how to use this flag and if it can help me?
-d find dir
. Does that help?. You can also use-D|--dry-run
(only list files that would be recovered) to verify what will happen.check_mounted(): Could not open my_directory
. Do I have to mount it?--path-regex <regex>
option? restore only filenames matching regex, you have to use following syntax (possibly quoted):^/(|home(|/username(|/Desktop(|/.*))))$