diff options
author | Wang Shilong <wangsl.fnst@cn.fujitsu.com> | 2014-06-19 09:27:09 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-08-22 14:43:10 +0200 |
commit | c24c92f4aef407f6d2cb8fb6422e0f1f77ef8880 (patch) | |
tree | 534a3643945d361d7b694229c14c56b624b842f4 /Documentation | |
parent | 958bd97a55eed38c295687c2e85f9fb135f89eb3 (diff) |
btrfs-progs: restore: document updates
Add some missing options, also improve some confusing
expressions.
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/btrfs-restore.txt | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/Documentation/btrfs-restore.txt b/Documentation/btrfs-restore.txt index d774343b..2fa28018 100644 --- a/Documentation/btrfs-restore.txt +++ b/Documentation/btrfs-restore.txt @@ -24,7 +24,7 @@ https://btrfs.wiki.kernel.org/index.php/Restore OPTIONS ------- -s:: -get snapshots. +get snapshots, btrfs restore skips snapshots in default. -x:: get extended attributes. @@ -38,17 +38,17 @@ ignore errors. -o:: overwrite directories/files in <path>. --t <location>:: -use <location> to read root tree. +-t <bytenr>:: +use <bytenr> to read root tree. --f <offset>:: -use <offset> to read fs tree. +-f <bytenr>:: +only restore files that are under specified root whose root bytenr is <bytenr>. --u <block>:: -use given superblock mirror identified by <block>. +-u <mirror>:: +use given superblock mirror identified by <mirror>, it can be 0,1,2. -r <rootid>:: -use <rootid> as root objectid. +only restore files that are under specified root whose objectid is <rootid>. -d:: find dir. @@ -56,6 +56,16 @@ find dir. -l:: list tree roots. +-D|--dry-run:: +dry run (only list files that would be recovered). + +--path-regex <regex>:: +restore only filenames matching regex, you have to use following syntax (possibly quoted): +^/(|home(|/username(|/Desktop(|/.*))))$ + +-c:: +ignore case (--path-regrex only). + EXIT STATUS ----------- *btrfs restore* returns a zero exist status if it succeeds. Non zero is |