key_import.rst.inc 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_key_import:
  3. borg key import
  4. ---------------
  5. .. code-block:: none
  6. borg [common options] key import [options] [REPOSITORY] [PATH]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-------------------------------------------------------+----------------+----------------------------------------------------------+
  10. | **positional arguments** |
  11. +-------------------------------------------------------+----------------+----------------------------------------------------------+
  12. | | ``REPOSITORY`` | |
  13. +-------------------------------------------------------+----------------+----------------------------------------------------------+
  14. | | ``PATH`` | path to the backup ('-' to read from stdin) |
  15. +-------------------------------------------------------+----------------+----------------------------------------------------------+
  16. | **options** |
  17. +-------------------------------------------------------+----------------+----------------------------------------------------------+
  18. | | ``--paper`` | interactively import from a backup done with ``--paper`` |
  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. REPOSITORY
  32. PATH
  33. path to the backup ('-' to read from stdin)
  34. options
  35. --paper interactively import from a backup done with ``--paper``
  36. :ref:`common_options`
  37. |
  38. Description
  39. ~~~~~~~~~~~
  40. This command restores a key previously backed up with the export command.
  41. If the ``--paper`` option is given, the import will be an interactive
  42. process in which each line is checked for plausibility before
  43. proceeding to the next line. For this format PATH must not be given.
  44. For repositories using keyfile encryption, the key file which ``borg key
  45. import`` writes to depends on several factors. If the ``BORG_KEY_FILE``
  46. environment variable is set and non-empty, ``borg key import`` creates
  47. or overwrites that file named by ``$BORG_KEY_FILE``. Otherwise, ``borg
  48. key import`` searches in the ``$BORG_KEYS_DIR`` directory for a key file
  49. associated with the repository. If a key file is found in
  50. ``$BORG_KEYS_DIR``, ``borg key import`` overwrites it; otherwise, ``borg
  51. key import`` creates a new key file in ``$BORG_KEYS_DIR``.