]> arthur.barton.de Git - bup.git/commitdiff
Adds documentation for save's strip option.
authorZoran Zaric <zz@zoranzaric.de>
Mon, 6 Dec 2010 12:00:04 +0000 (13:00 +0100)
committerAvery Pennarun <apenwarr@gmail.com>
Mon, 3 Jan 2011 04:57:11 +0000 (20:57 -0800)
Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
Documentation/bup-save.md

index 9471474cc8a4b29f0cd7ee535b63bb1f3a0310c4..0d151912c3491c8ae79a270f020e168dc776ce0a 100644 (file)
@@ -70,6 +70,21 @@ for `bup-index`(1).
     like k, M, or G to specify multiples of 1024,
     1024*1024, 1024*1024*1024 respectively.
     
+--strip
+:   strips the path that is given from all files and directories.
+    
+    A directory */root/chroot/etc* saved with
+    "bup save -n chroot --strip /root/chroot" would be saved
+    as */etc*.
+    
+--strip-prefix=*path-prefix*
+:   strips the given path-prefix *path-prefix* from all
+    files and directories.
+    
+    A directory */root/chroots/webserver* saved with
+    "bup save -n webserver --strip-path=/root/chroots" would
+    be saved as */webserver/etc*
+    
 
 # EXAMPLE