key_export.rst.inc 4.6 KB

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