From c24c92f4aef407f6d2cb8fb6422e0f1f77ef8880 Mon Sep 17 00:00:00 2001 From: Wang Shilong Date: Thu, 19 Jun 2014 09:27:09 +0800 Subject: btrfs-progs: restore: document updates Add some missing options, also improve some confusing expressions. Signed-off-by: Wang Shilong Signed-off-by: David Sterba --- Documentation/btrfs-restore.txt | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'Documentation') 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 . --t :: -use to read root tree. +-t :: +use to read root tree. --f :: -use to read fs tree. +-f :: +only restore files that are under specified root whose root bytenr is . --u :: -use given superblock mirror identified by . +-u :: +use given superblock mirror identified by , it can be 0,1,2. -r :: -use as root objectid. +only restore files that are under specified root whose objectid is . -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 :: +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 -- cgit v1.2.3