Restore files from a btrfs filesystem using a specific root tree bytenr (see btrfs-find-root)

btrfs restore

  • Try to salvage files from a damaged btrfs filesystem.
    More information: <https://btrfs.readthedocs.io/en/latest/btrfs-restore.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

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

click the source code to copy install btrfs restore on any operating system with command-not-found.com