]> arthur.barton.de Git - bup.git/commitdiff
Adds examples for strip, strip-prefix and graft to bup save's documentation
authorZoran Zaric <zz@zoranzaric.de>
Tue, 4 Jan 2011 02:22:28 +0000 (03:22 +0100)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 4 Jan 2011 21:09:26 +0000 (13:09 -0800)
Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
Documentation/bup-save.md

index caadd4e99ed9d308b20c7b86dcb42967c002df4a..b8edd8d1fce96b73d7077d051bd022082250cfb8 100644 (file)
@@ -98,14 +98,49 @@ for `bup-index`(1).
     would be saved as */chroots/a/etc*
 
 # EXAMPLE
-    
+
     $ bup index -ux /etc
     Indexing: 1981, done.
-    
+
     $ bup save -r myserver: -n my-pc-backup --bwlimit=50k /etc
     Reading index: 1981, done.
-    Saving: 100.00% (998/998k, 1981/1981 files), done.    
-    
+    Saving: 100.00% (998/998k, 1981/1981 files), done.
+
+
+
+    $ ls /home/joe/chroots/httpd
+    bin var
+
+    $ bup index -ux /home/joe/chroots/httpd
+    Indexing: 1337, done.
+
+    $ bup save --strip -n joes-httpd-chroot /home/joe/chroots/httpd
+    Reading index: 1337, done.
+    Saving: 100.00% (998/998k, 1337/1337 files), done.
+
+    $ bup ls joes-httpd-chroot/latest/
+    bin/
+    var/
+
+
+    $ bup save --strip-prefix=/home/joe/chroots -n joes-chroots \
+         /home/joe/chroots/httpd
+    Reading index: 1337, done.
+    Saving: 100.00% (998/998k, 1337/1337 files), done.
+
+    $ bup ls joes-chroots/latest/
+    httpd/
+
+
+    $ bup save --graft /home/joe/chroots/httpd=/http-chroot \
+         -n joe
+         /home/joe/chroots/httpd
+    Reading index: 1337, done.
+    Saving: 100.00% (998/998k, 1337/1337 files), done.
+
+    $ bup ls joe/latest/
+    http-chroot/
+
 
 # SEE ALSO