2016-10-01 16:23:36 +00:00
|
|
|
.. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
|
|
|
|
|
|
|
|
.. _borg_key_import:
|
|
|
|
|
|
|
|
borg key import
|
|
|
|
---------------
|
2017-06-06 22:44:53 +00:00
|
|
|
.. code-block:: none
|
2016-10-01 16:23:36 +00:00
|
|
|
|
2017-07-23 15:12:01 +00:00
|
|
|
borg [common options] key import [options] [REPOSITORY] [PATH]
|
2016-10-01 16:23:36 +00:00
|
|
|
|
2017-06-20 13:22:24 +00:00
|
|
|
.. only:: html
|
2017-06-20 09:49:26 +00:00
|
|
|
|
2017-06-20 13:22:24 +00:00
|
|
|
.. class:: borg-options-table
|
2016-10-01 16:23:36 +00:00
|
|
|
|
2017-06-20 13:22:24 +00:00
|
|
|
+-------------------------------------------------------+----------------+----------------------------------------------------------+
|
|
|
|
| **positional arguments** |
|
|
|
|
+-------------------------------------------------------+----------------+----------------------------------------------------------+
|
|
|
|
| | ``REPOSITORY`` | |
|
|
|
|
+-------------------------------------------------------+----------------+----------------------------------------------------------+
|
2017-07-23 15:12:01 +00:00
|
|
|
| | ``PATH`` | path to the backup ('-' to read from stdin) |
|
2017-06-20 13:22:24 +00:00
|
|
|
+-------------------------------------------------------+----------------+----------------------------------------------------------+
|
|
|
|
| **optional arguments** |
|
|
|
|
+-------------------------------------------------------+----------------+----------------------------------------------------------+
|
|
|
|
| | ``--paper`` | interactively import from a backup done with ``--paper`` |
|
|
|
|
+-------------------------------------------------------+----------------+----------------------------------------------------------+
|
|
|
|
| .. class:: borg-common-opt-ref |
|
|
|
|
| |
|
|
|
|
| :ref:`common_options` |
|
|
|
|
+-------------------------------------------------------+----------------+----------------------------------------------------------+
|
2016-10-01 16:23:36 +00:00
|
|
|
|
2017-06-20 13:22:24 +00:00
|
|
|
.. raw:: html
|
2017-06-20 09:49:26 +00:00
|
|
|
|
2017-06-20 13:22:24 +00:00
|
|
|
<script type='text/javascript'>
|
2017-06-20 13:48:30 +00:00
|
|
|
$(document).ready(function () {
|
2017-06-20 13:22:24 +00:00
|
|
|
$('.borg-options-table colgroup').remove();
|
|
|
|
})
|
|
|
|
</script>
|
2016-10-01 16:23:36 +00:00
|
|
|
|
2017-06-20 13:22:24 +00:00
|
|
|
.. only:: latex
|
2017-06-20 09:53:36 +00:00
|
|
|
|
2017-06-20 13:22:24 +00:00
|
|
|
REPOSITORY
|
2017-06-20 09:53:36 +00:00
|
|
|
|
2017-06-20 13:22:24 +00:00
|
|
|
PATH
|
2017-07-23 15:12:01 +00:00
|
|
|
path to the backup ('-' to read from stdin)
|
2017-06-20 13:22:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
optional arguments
|
|
|
|
--paper interactively import from a backup done with ``--paper``
|
|
|
|
|
|
|
|
|
|
|
|
:ref:`common_options`
|
|
|
|
|
|
2016-10-01 16:23:36 +00:00
|
|
|
|
|
|
|
Description
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
2018-01-03 14:54:52 +00:00
|
|
|
This command restores a key previously backed up with the export command.
|
2016-10-01 16:23:36 +00:00
|
|
|
|
|
|
|
If the ``--paper`` option is given, the import will be an interactive
|
|
|
|
process in which each line is checked for plausibility before
|
2020-10-04 18:32:38 +00:00
|
|
|
proceeding to the next line. For this format PATH must not be given.
|
|
|
|
|
|
|
|
For repositories using keyfile encryption, the key file which ``borg key
|
|
|
|
import`` writes to depends on several factors. If the ``BORG_KEY_FILE``
|
|
|
|
environment variable is set and non-empty, ``borg key import`` creates
|
|
|
|
or overwrites that file named by ``$BORG_KEY_FILE``. Otherwise, ``borg
|
|
|
|
key import`` searches in the ``$BORG_KEYS_DIR`` directory for a key file
|
|
|
|
associated with the repository. If a key file is found in
|
|
|
|
``$BORG_KEYS_DIR``, ``borg key import`` overwrites it; otherwise, ``borg
|
|
|
|
key import`` creates a new key file in ``$BORG_KEYS_DIR``.
|