config.rst.inc 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_config:
  3. borg config
  4. -----------
  5. .. code-block:: none
  6. borg [common options] config [options] [REPOSITORY] [NAME] [VALUE]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-------------------------------------------------------+----------------------+----------------------------------------+
  10. | **positional arguments** |
  11. +-------------------------------------------------------+----------------------+----------------------------------------+
  12. | | ``REPOSITORY`` | repository to configure |
  13. +-------------------------------------------------------+----------------------+----------------------------------------+
  14. | | ``NAME`` | name of config key |
  15. +-------------------------------------------------------+----------------------+----------------------------------------+
  16. | | ``VALUE`` | new value for key |
  17. +-------------------------------------------------------+----------------------+----------------------------------------+
  18. | **options** |
  19. +-------------------------------------------------------+----------------------+----------------------------------------+
  20. | | ``-c``, ``--cache`` | get and set values from the repo cache |
  21. +-------------------------------------------------------+----------------------+----------------------------------------+
  22. | | ``-d``, ``--delete`` | delete the key from the config file |
  23. +-------------------------------------------------------+----------------------+----------------------------------------+
  24. | | ``-l``, ``--list`` | list the configuration of the repo |
  25. +-------------------------------------------------------+----------------------+----------------------------------------+
  26. | .. class:: borg-common-opt-ref |
  27. | |
  28. | :ref:`common_options` |
  29. +-------------------------------------------------------+----------------------+----------------------------------------+
  30. .. raw:: html
  31. <script type='text/javascript'>
  32. $(document).ready(function () {
  33. $('.borg-options-table colgroup').remove();
  34. })
  35. </script>
  36. .. only:: latex
  37. REPOSITORY
  38. repository to configure
  39. NAME
  40. name of config key
  41. VALUE
  42. new value for key
  43. options
  44. -c, --cache get and set values from the repo cache
  45. -d, --delete delete the key from the config file
  46. -l, --list list the configuration of the repo
  47. :ref:`common_options`
  48. |
  49. Description
  50. ~~~~~~~~~~~
  51. This command gets and sets options in a local repository or cache config file.
  52. For security reasons, this command only works on local repositories.
  53. To delete a config value entirely, use ``--delete``. To list the values
  54. of the configuration file or the default values, use ``--list``. To get an existing
  55. key, pass only the key name. To set a key, pass both the key name and
  56. the new value. Keys can be specified in the format "section.name" or
  57. simply "name"; the section will default to "repository" and "cache" for
  58. the repo and cache configs, respectively.
  59. By default, borg config manipulates the repository config file. Using ``--cache``
  60. edits the repository cache's config file instead.