From 43b4fda393b0f1f9c49c71306d15bd65fa4d655f Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 15 Apr 2016 03:38:43 +0200 Subject: [PATCH] docs: fix confusing usage of "repo" as archive name --- docs/quickstart.rst | 6 +++--- docs/usage.rst | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 15b8c75dd..1d15f5d23 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -134,17 +134,17 @@ or high compression: If you have a fast repo storage and you want some compression: :: - $ borg create --compression lz4 /path/to/repo::repo ~ + $ borg create --compression lz4 /path/to/repo::arch ~ If you have a less fast repo storage and you want a bit more compression (N=0..9, 0 means no compression, 9 means high compression): :: - $ borg create --compression zlib,N /path/to/repo::repo ~ + $ borg create --compression zlib,N /path/to/repo::arch ~ If you have a very slow repo storage and you want high compression (N=0..9, 0 means low compression, 9 means high compression): :: - $ borg create --compression lzma,N /path/to/repo::repo ~ + $ borg create --compression lzma,N /path/to/repo::arch ~ You'll need to experiment a bit to find the best compression for your use case. Keep an eye on CPU load and throughput. diff --git a/docs/usage.rst b/docs/usage.rst index 6a59ef3ea..a9e5bda75 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -290,16 +290,16 @@ Examples $ dd if=/dev/sdx bs=10M | borg create /path/to/repo::my-sdx - # No compression (default) - $ borg create /path/to/repo::repo ~ + $ borg create /path/to/repo::arch ~ # Super fast, low compression - $ borg create --compression lz4 /path/to/repo::repo ~ + $ borg create --compression lz4 /path/to/repo::arch ~ # Less fast, higher compression (N = 0..9) - $ borg create --compression zlib,N /path/to/repo::repo ~ + $ borg create --compression zlib,N /path/to/repo::arch ~ # Even slower, even higher compression (N = 0..9) - $ borg create --compression lzma,N /path/to/repo::repo ~ + $ borg create --compression lzma,N /path/to/repo::arch ~ # Format tags available for archive name: # {now}, {utcnow}, {fqdn}, {hostname}, {user}, {pid} @@ -696,16 +696,16 @@ After the backup has completed, you remove the snapshots again. :: $ # create snapshots here $ lvdisplay > lvdisplay.txt - $ borg create --read-special /path/to/repo::repo lvdisplay.txt /dev/vg0/*-snapshot + $ borg create --read-special /path/to/repo::arch lvdisplay.txt /dev/vg0/*-snapshot $ # remove snapshots here Now, let's see how to restore some LVs from such a backup. :: - $ borg extract /path/to/repo::repo lvdisplay.txt + $ borg extract /path/to/repo::arch lvdisplay.txt $ # create empty LVs with correct sizes here (look into lvdisplay.txt). $ # we assume that you created an empty root and home LV and overwrite it now: - $ borg extract --stdout /path/to/repo::repo dev/vg0/root-snapshot > /dev/vg0/root - $ borg extract --stdout /path/to/repo::repo dev/vg0/home-snapshot > /dev/vg0/home + $ borg extract --stdout /path/to/repo::arch dev/vg0/root-snapshot > /dev/vg0/root + $ borg extract --stdout /path/to/repo::arch dev/vg0/home-snapshot > /dev/vg0/home Append-only mode