Browse Source

docs: quickstart: key modes, cosmetic changes

Thomas Waldmann 9 years ago
parent
commit
e4dc482598
2 changed files with 35 additions and 32 deletions
  1. 16 14
      docs/installation.rst
  2. 19 18
      docs/quickstart.rst

+ 16 - 14
docs/installation.rst

@@ -19,24 +19,24 @@ and tools) followed by the generic installation of |project_name| itself:
 
 Below, we describe different ways to install |project_name|.
 
-- (dist package) - easy and fast, needs a distribution and platform specific
+- **dist package** - easy and fast, needs a distribution and platform specific
   binary package (for your Linux/*BSD/OS X/... distribution).
-- (wheel) - easy and fast, needs a platform specific borgbackup binary wheel,
+- **wheel** - easy and fast, needs a platform specific borgbackup binary wheel,
   which matches your platform [OS and CPU]).
-- (pypi) - installing a source package from pypi needs more installation steps
+- **pypi** - installing a source package from pypi needs more installation steps
   and will compile stuff - try this if there is no binary wheel that works for
   you.
-- (git) - for developers and power users who want to have the latest code or
+- **git** - for developers and power users who want to have the latest code or
   use revision control (each release is tagged).
 
-Even though Python 3 is not the default Python version on many systems, it is
-usually available as an optional install.
+**Python 3**: Even though this is not the default Python version on many systems,
+it is usually available as an optional install.
 
 Virtualenv_ can be used to build and install |project_name| without affecting
 the system Python or requiring root access.
 
 Important:
-If you install into a virtual environment, you need to activate
+If you install into a virtual environment, you need to **activate**
 the virtual env first (``source borg-env/bin/activate``).
 Alternatively, directly run ``borg-env/bin/borg`` (or symlink that into some
 directory that is in your PATH so you can just run ``borg``).
@@ -46,7 +46,7 @@ simple use cases.
 The llfuse_ python package is also required if you wish to mount an
 archive as a FUSE filesystem. Only FUSE >= 2.8.0 can support llfuse.
 
-You only need Cython to compile the .pyx files to the respective .c files
+You only need **Cython** to compile the .pyx files to the respective .c files
 when using |project_name| code from git. For |project_name| releases, the .c
 files will be bundled, so you won't need Cython to install a release.
 
@@ -61,8 +61,8 @@ Mac OS X: You need OS X FUSE >= 3.0.
 
 Installation (dist package)
 ---------------------------
-Some Linux, *BSD and OS X distributions might offer a ready-to-use
-|project_name| package (which can be easily installed in the usual way).
+Some Linux, BSD and OS X distributions might offer a ready-to-use
+`borgbackup` package (which can be easily installed in the usual way).
 
 As |project_name| is still relatively new, such a package might be not
 available for your system yet. Please ask package maintainers to build a
@@ -92,14 +92,15 @@ Installation (wheel)
 This uses the latest binary wheel release.
 
 .. parsed-literal::
+
     # Check https://github.com/borgbackup/borg/issues/147 for the correct
     # platform-specific binary wheel, download and install it:
 
     # system-wide installation, needs sudo/root permissions:
-    sudo pip install borgbackup-*.whl
+    sudo pip install borgbackup.whl
 
     # home directory installation, no sudo/root needed:
-    pip install --user borgbackup-*.whl
+    pip install --user borgbackup.whl
 
 
 Debian Jessie / Ubuntu 14.04 preparations (git/pypi)
@@ -135,9 +136,8 @@ Debian Jessie / Ubuntu 14.04 preparations (git/pypi)
 Korora / Fedora 21 preparations (git/pypi)
 ------------------------------------------
 
-Some of the steps detailled below might be useful also for non-git installs.
-
 .. parsed-literal::
+
     # Python 3.x (>= 3.2) + Headers, Py Package Installer, VirtualEnv
     sudo dnf install python3 python3-devel python3-pip python3-virtualenv
 
@@ -196,6 +196,7 @@ Installation (pypi)
 This uses the latest (source package) release from PyPi.
 
 .. parsed-literal::
+
     virtualenv --python=python3 borg-env
     source borg-env/bin/activate   # always before using!
 
@@ -213,6 +214,7 @@ This uses latest, unreleased development code from git.
 While we try not to break master, there are no guarantees on anything.
 
 .. parsed-literal::
+
     # get |project_name| from github, install it
     git clone |git_url|
 

+ 19 - 18
docs/quickstart.rst

@@ -121,7 +121,7 @@ Repository encryption
 
 Repository encryption is enabled at repository creation time::
 
-    $ borg init --encryption=passphrase|keyfile PATH
+    $ borg init --encryption=repokey|keyfile PATH
 
 When repository encryption is enabled all data is encrypted using 256-bit AES_
 encryption and the integrity and authenticity is verified using `HMAC-SHA256`_.
@@ -130,28 +130,29 @@ All data is encrypted before being written to the repository. This means that
 an attacker who manages to compromise the host containing an encrypted
 archive will not be able to access any of the data.
 
-|project_name| supports two different methods to derive the AES and HMAC keys.
+|project_name| supports different methods to store the AES and HMAC keys.
 
-Passphrase based encryption
-    This method uses a user supplied passphrase to derive the keys using the
-    PBKDF2_ key derivation function. This method is convenient to use since
-    there is no key file to keep track of and secure as long as a *strong*
-    passphrase is used.
+``repokey`` mode
+    The key is stored inside the repository (in its "config" file).
+    Use this mode if you trust in your good passphrase giving you enough
+    protection.
 
-    .. Note::
-        For automated backups the passphrase can be specified using the
-        `BORG_PASSPHRASE` environment variable.
+``keyfile`` mode
+    The key is stored on your local disk (in ``~/.borg/keys/``).
+    Use this mode if you want "passphrase and having-the-key" security.
 
-Key file based encryption
-    This method generates random keys at repository initialization time that
-    are stored in a password protected file in the ``~/.borg/keys/`` directory.
-    The key file is a printable text file. This method is secure and suitable
-    for automated backups.
+In both modes, the key is stored in encrypted form and can be only decrypted
+by providing the correct passphrase.
 
-    .. Note::
-        The repository data is totally inaccessible without the key file
-        so it must be kept **safe**.
+For automated backups the passphrase can be specified using the
+`BORG_PASSPHRASE` environment variable.
 
+**The repository data is totally inaccessible without the key:**
+    Make a backup copy of the key file (``keyfile`` mode) or repo config
+    file (``repokey`` mode) and keep it at a safe place, so you still have
+    the key in case it gets corrupted or lost.
+    The backup that is encrypted with that key won't help you with that,
+    of course.
 
 .. _remote_repos: