btrfs restore

Try to salvage files from a damaged btrfs filesystem. More information: https://btrfs.readthedocs.io/en/latest/btrfs-restore.html.

sudo btrfs restore path/to/btrfs_device path/to/target_directory

sudo btrfs restore --dry-run path/to/btrfs_device path/to/target_directory

sudo btrfs restore --path-regex regex -c path/to/btrfs_device path/to/target_directory

sudo btrfs restore -t bytenr path/to/btrfs_device path/to/target_directory

sudo btrfs restore --metadata --xattr --symlinks --overwrite path/to/btrfs_device path/to/target_directory