2
0

key_import.rst.inc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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] [PATH]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-------------------------------------------------------+-------------+----------------------------------------------------------+
  10. | **positional arguments** |
  11. +-------------------------------------------------------+-------------+----------------------------------------------------------+
  12. | | ``PATH`` | path to the backup ('-' to read from stdin) |
  13. +-------------------------------------------------------+-------------+----------------------------------------------------------+
  14. | **options** |
  15. +-------------------------------------------------------+-------------+----------------------------------------------------------+
  16. | | ``--paper`` | interactively import from a backup done with ``--paper`` |
  17. +-------------------------------------------------------+-------------+----------------------------------------------------------+
  18. | .. class:: borg-common-opt-ref |
  19. | |
  20. | :ref:`common_options` |
  21. +-------------------------------------------------------+-------------+----------------------------------------------------------+
  22. .. raw:: html
  23. <script type='text/javascript'>
  24. $(document).ready(function () {
  25. $('.borg-options-table colgroup').remove();
  26. })
  27. </script>
  28. .. only:: latex
  29. PATH
  30. path to the backup ('-' to read from stdin)
  31. options
  32. --paper interactively import from a backup done with ``--paper``
  33. :ref:`common_options`
  34. |
  35. Description
  36. ~~~~~~~~~~~
  37. This command restores a key previously backed up with the export command.
  38. If the ``--paper`` option is given, the import will be an interactive
  39. process in which each line is checked for plausibility before
  40. proceeding to the next line. For this format PATH must not be given.
  41. For repositories using keyfile encryption, the key file which ``borg key
  42. import`` writes to depends on several factors. If the ``BORG_KEY_FILE``
  43. environment variable is set and non-empty, ``borg key import`` creates
  44. or overwrites that file named by ``$BORG_KEY_FILE``. Otherwise, ``borg
  45. key import`` searches in the ``$BORG_KEYS_DIR`` directory for a key file
  46. associated with the repository. If a key file is found in
  47. ``$BORG_KEYS_DIR``, ``borg key import`` overwrites it; otherwise, ``borg
  48. key import`` creates a new key file in ``$BORG_KEYS_DIR``.