2017-12-09 12:41:03 +00:00
|
|
|
.. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
|
|
|
|
|
|
|
|
.. _borg_config:
|
|
|
|
|
|
|
|
borg config
|
|
|
|
-----------
|
|
|
|
.. code-block:: none
|
|
|
|
|
2019-02-24 19:39:42 +00:00
|
|
|
borg [common options] config [options] REPOSITORY [NAME] [VALUE]
|
2017-12-09 12:41:03 +00:00
|
|
|
|
|
|
|
.. only:: html
|
|
|
|
|
|
|
|
.. class:: borg-options-table
|
|
|
|
|
|
|
|
+-------------------------------------------------------+----------------------+----------------------------------------+
|
|
|
|
| **positional arguments** |
|
|
|
|
+-------------------------------------------------------+----------------------+----------------------------------------+
|
|
|
|
| | ``REPOSITORY`` | repository to configure |
|
|
|
|
+-------------------------------------------------------+----------------------+----------------------------------------+
|
|
|
|
| | ``NAME`` | name of config key |
|
|
|
|
+-------------------------------------------------------+----------------------+----------------------------------------+
|
|
|
|
| | ``VALUE`` | new value for key |
|
|
|
|
+-------------------------------------------------------+----------------------+----------------------------------------+
|
|
|
|
| **optional arguments** |
|
|
|
|
+-------------------------------------------------------+----------------------+----------------------------------------+
|
|
|
|
| | ``-c``, ``--cache`` | get and set values from the repo cache |
|
|
|
|
+-------------------------------------------------------+----------------------+----------------------------------------+
|
|
|
|
| | ``-d``, ``--delete`` | delete the key from the config file |
|
|
|
|
+-------------------------------------------------------+----------------------+----------------------------------------+
|
2019-02-24 19:39:42 +00:00
|
|
|
| | ``-l``, ``--list`` | list the configuration of the repo |
|
|
|
|
+-------------------------------------------------------+----------------------+----------------------------------------+
|
2017-12-09 12:41:03 +00:00
|
|
|
| .. class:: borg-common-opt-ref |
|
|
|
|
| |
|
|
|
|
| :ref:`common_options` |
|
|
|
|
+-------------------------------------------------------+----------------------+----------------------------------------+
|
|
|
|
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<script type='text/javascript'>
|
|
|
|
$(document).ready(function () {
|
|
|
|
$('.borg-options-table colgroup').remove();
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
.. only:: latex
|
|
|
|
|
|
|
|
REPOSITORY
|
|
|
|
repository to configure
|
|
|
|
NAME
|
|
|
|
name of config key
|
|
|
|
VALUE
|
|
|
|
new value for key
|
|
|
|
|
|
|
|
|
|
|
|
optional arguments
|
2019-02-24 19:39:42 +00:00
|
|
|
-c, --cache get and set values from the repo cache
|
|
|
|
-d, --delete delete the key from the config file
|
|
|
|
-l, --list list the configuration of the repo
|
2017-12-09 12:41:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
:ref:`common_options`
|
|
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
|
|
|
This command gets and sets options in a local repository or cache config file.
|
|
|
|
For security reasons, this command only works on local repositories.
|
|
|
|
|
2019-02-24 19:39:42 +00:00
|
|
|
To delete a config value entirely, use ``--delete``. To list the values
|
|
|
|
of the configuration file or the default values, use ``--list``. To get and existing
|
|
|
|
key, pass only the key name. To set a key, pass both the key name and
|
|
|
|
the new value. Keys can be specified in the format "section.name" or
|
|
|
|
simply "name"; the section will default to "repository" and "cache" for
|
|
|
|
the repo and cache configs, respectively.
|
|
|
|
|
2017-12-09 12:41:03 +00:00
|
|
|
|
|
|
|
By default, borg config manipulates the repository config file. Using ``--cache``
|
|
|
|
edits the repository cache's config file instead.
|