key_export.rst.inc 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_key_export:
  3. borg key export
  4. ---------------
  5. .. code-block:: none
  6. borg [common options] key export [options] [REPOSITORY] [PATH]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-------------------------------------------------------+----------------+------------------------------------------------------------------------+
  10. | **positional arguments** |
  11. +-------------------------------------------------------+----------------+------------------------------------------------------------------------+
  12. | | ``REPOSITORY`` | |
  13. +-------------------------------------------------------+----------------+------------------------------------------------------------------------+
  14. | | ``PATH`` | where to store the backup |
  15. +-------------------------------------------------------+----------------+------------------------------------------------------------------------+
  16. | **optional arguments** |
  17. +-------------------------------------------------------+----------------+------------------------------------------------------------------------+
  18. | | ``--paper`` | Create an export suitable for printing and later type-in |
  19. +-------------------------------------------------------+----------------+------------------------------------------------------------------------+
  20. | | ``--qr-html`` | Create an html file suitable for printing and later type-in or qr scan |
  21. +-------------------------------------------------------+----------------+------------------------------------------------------------------------+
  22. | .. class:: borg-common-opt-ref |
  23. | |
  24. | :ref:`common_options` |
  25. +-------------------------------------------------------+----------------+------------------------------------------------------------------------+
  26. .. raw:: html
  27. <script type='text/javascript'>
  28. $(document).ready(function () {
  29. $('.borg-options-table colgroup').remove();
  30. })
  31. </script>
  32. .. only:: latex
  33. REPOSITORY
  34. PATH
  35. where to store the backup
  36. optional arguments
  37. --paper Create an export suitable for printing and later type-in
  38. --qr-html Create an html file suitable for printing and later type-in or qr scan
  39. :ref:`common_options`
  40. |
  41. Description
  42. ~~~~~~~~~~~
  43. If repository encryption is used, the repository is inaccessible
  44. without the key. This command allows one to backup this essential key.
  45. Note that the backup produced does not include the passphrase itself
  46. (i.e. the exported key stays encrypted). In order to regain access to a
  47. repository, one needs both the exported key and the original passphrase.
  48. There are three backup formats. The normal backup format is suitable for
  49. digital storage as a file. The ``--paper`` backup format is optimized
  50. for printing and typing in while importing, with per line checks to
  51. reduce problems with manual input. The ``--qr-html`` creates a printable
  52. HTML template with a QR code and a copy of the ``--paper``-formatted key.
  53. For repositories using keyfile encryption the key is saved locally
  54. on the system that is capable of doing backups. To guard against loss
  55. of this key, the key needs to be backed up independently of the main
  56. data backup.
  57. For repositories using the repokey encryption the key is saved in the
  58. repository in the config file. A backup is thus not strictly needed,
  59. but guards against the repository becoming inaccessible if the file
  60. is damaged for some reason.