| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 | .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!.. _borg_key_export:borg key export---------------.. code-block:: none    borg [common options] key export [options] [REPOSITORY] [PATH].. only:: html    .. class:: borg-options-table    +-------------------------------------------------------+----------------+------------------------------------------------------------------------+    | **positional arguments**                                                                                                                        |    +-------------------------------------------------------+----------------+------------------------------------------------------------------------+    |                                                       | ``REPOSITORY`` |                                                                        |    +-------------------------------------------------------+----------------+------------------------------------------------------------------------+    |                                                       | ``PATH``       | where to store the backup                                              |    +-------------------------------------------------------+----------------+------------------------------------------------------------------------+    | **options**                                                                                                                                     |    +-------------------------------------------------------+----------------+------------------------------------------------------------------------+    |                                                       | ``--paper``    | Create an export suitable for printing and later type-in               |    +-------------------------------------------------------+----------------+------------------------------------------------------------------------+    |                                                       | ``--qr-html``  | Create an html file suitable for printing and later type-in or qr scan |    +-------------------------------------------------------+----------------+------------------------------------------------------------------------+    | .. class:: borg-common-opt-ref                                                                                                                  |    |                                                                                                                                                 |    | :ref:`common_options`                                                                                                                           |    +-------------------------------------------------------+----------------+------------------------------------------------------------------------+    .. raw:: html        <script type='text/javascript'>        $(document).ready(function () {            $('.borg-options-table colgroup').remove();        })        </script>.. only:: latex    REPOSITORY    PATH        where to store the backup    options        --paper       Create an export suitable for printing and later type-in        --qr-html     Create an html file suitable for printing and later type-in or qr scan    :ref:`common_options`        |Description~~~~~~~~~~~If repository encryption is used, the repository is inaccessiblewithout the key. This command allows one to backup this essential key.Note that the backup produced does not include the passphrase itself(i.e. the exported key stays encrypted). In order to regain access to arepository, one needs both the exported key and the original passphrase.There are three backup formats. The normal backup format is suitable fordigital storage as a file. The ``--paper`` backup format is optimizedfor printing and typing in while importing, with per line checks toreduce problems with manual input. The ``--qr-html`` creates a printableHTML template with a QR code and a copy of the ``--paper``-formatted key.For repositories using keyfile encryption the key is saved locallyon the system that is capable of doing backups. To guard against lossof this key, the key needs to be backed up independently of the maindata backup.For repositories using the repokey encryption the key is saved in therepository in the config file. A backup is thus not strictly needed,but guards against the repository becoming inaccessible if the fileis damaged for some reason.Examples::    borg key export /path/to/repo > encrypted-key-backup    borg key export --paper /path/to/repo > encrypted-key-backup.txt    borg key export --qr-html /path/to/repo > encrypted-key-backup.html    # Or pass the output file as an argument instead of redirecting stdout:    borg key export /path/to/repo encrypted-key-backup    borg key export --paper /path/to/repo encrypted-key-backup.txt    borg key export --qr-html /path/to/repo encrypted-key-backup.html
 |