summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorThomas Waldmann <tw@waldmann-edv.de>2015-09-06 00:29:46 +0200
committerThomas Waldmann <tw@waldmann-edv.de>2015-09-06 00:29:46 +0200
commit0b1035746e3382663b24308ea2b53e8a3f426dc0 (patch)
treefe71d5ada5242d3d0a0740761a97b24f0e27424e /docs
parent17c43948960110cbea4a5dcd746e286482b1aa20 (diff)
read special files as if they were regular files, update docs, closes #79
do not use the files cache for such special files
Diffstat (limited to 'docs')
-rw-r--r--docs/usage.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/usage.rst b/docs/usage.rst
index 8595ca7f8..27c258504 100644
--- a/docs/usage.rst
+++ b/docs/usage.rst
@@ -210,6 +210,11 @@ Examples
# Even slower, even higher compression (N = 0..9)
$ borg create --compression lzma,N /mnt/backup::repo ~
+ # Backup some LV snapshots (you have to create the snapshots before this
+ # and remove them afterwards). We also backup the output of lvdisplay so
+ # we can see the LV sizes at restore time. See also "borg extract" examples.
+ $ lvdisplay > lvdisplay.txt
+ $ borg create --read-special /mnt/backup::repo lvdisplay.txt /dev/vg0/*-snapshot
.. include:: usage/extract.rst.inc
@@ -229,6 +234,11 @@ Examples
# Extract the "src" directory but exclude object files
$ borg extract /mnt/backup::my-files home/USERNAME/src --exclude '*.o'
+ # Restore LV snapshots (the target LVs /dev/vg0/* of correct size have
+ # to be already available and will be overwritten by this command!)
+ $ borg extract --stdout /mnt/backup::repo dev/vg0/root-snapshot > /dev/vg0/root
+ $ borg extract --stdout /mnt/backup::repo dev/vg0/home-snapshot > /dev/vg0/home
+
Note: currently, extract always writes into the current working directory ("."),
so make sure you ``cd`` to the right place before calling ``borg extract``.