config.rst.inc 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. | **optional arguments** |
  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. | .. class:: borg-common-opt-ref |
  25. | |
  26. | :ref:`common_options` |
  27. +-------------------------------------------------------+----------------------+----------------------------------------+
  28. .. raw:: html
  29. <script type='text/javascript'>
  30. $(document).ready(function () {
  31. $('.borg-options-table colgroup').remove();
  32. })
  33. </script>
  34. .. only:: latex
  35. REPOSITORY
  36. repository to configure
  37. NAME
  38. name of config key
  39. VALUE
  40. new value for key
  41. optional arguments
  42. -c, --cache get and set values from the repo cache
  43. -d, --delete delete the key from the config file
  44. :ref:`common_options`
  45. |
  46. Description
  47. ~~~~~~~~~~~
  48. This command gets and sets options in a local repository or cache config file.
  49. For security reasons, this command only works on local repositories.
  50. To delete a config value entirely, use ``--delete``. To get an existing key, pass
  51. only the key name. To set a key, pass both the key name and the new value. Keys
  52. can be specified in the format "section.name" or simply "name"; the section will
  53. default to "repository" and "cache" for the repo and cache configs, respectively.
  54. By default, borg config manipulates the repository config file. Using ``--cache``
  55. edits the repository cache's config file instead.