6 btrfs-restore - try to restore files from a damaged btrfs filesystem(unmounted)
10 *btrfs restore* [options] <device> <path> | -l <device>
14 *btrfs restore* is used to try to salvage files from a damaged filesystem and
15 restore them into <path> or just list the tree roots.
17 Since current `btrfs-check`(8) or `btrfs-rescue`(8) only has very limited usage,
18 *btrfs restore* is normally a better choice.
20 NOTE: It is recommended to read the following btrfs wiki page if your data is
21 not salvaged with default option: +
22 https://btrfs.wiki.kernel.org/index.php/Restore
30 get extended attributes.
39 overwrite directories/files in <path>.
42 use <location> to read root tree.
45 use <offset> to read fs tree.
48 use given superblock mirror identified by <block>.
51 use <rootid> as root objectid.
61 *btrfs restore* returns a zero exist status if it succeeds. Non zero is
62 returned in case of failure.
66 *btrfs* is part of btrfs-progs.
67 Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for