config.rst.inc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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] [NAME] [VALUE]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-------------------------------------------------------+----------------------+----------------------------------------+
  10. | **positional arguments** |
  11. +-------------------------------------------------------+----------------------+----------------------------------------+
  12. | | ``NAME`` | name of config key |
  13. +-------------------------------------------------------+----------------------+----------------------------------------+
  14. | | ``VALUE`` | new value for key |
  15. +-------------------------------------------------------+----------------------+----------------------------------------+
  16. | **options** |
  17. +-------------------------------------------------------+----------------------+----------------------------------------+
  18. | | ``-c``, ``--cache`` | get and set values from the repo cache |
  19. +-------------------------------------------------------+----------------------+----------------------------------------+
  20. | | ``-d``, ``--delete`` | delete the key from the config file |
  21. +-------------------------------------------------------+----------------------+----------------------------------------+
  22. | | ``-l``, ``--list`` | list the configuration of the repo |
  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. NAME
  36. name of config key
  37. VALUE
  38. new value for key
  39. options
  40. -c, --cache get and set values from the repo cache
  41. -d, --delete delete the key from the config file
  42. -l, --list list the configuration of the repo
  43. :ref:`common_options`
  44. |
  45. Description
  46. ~~~~~~~~~~~
  47. This command gets and sets options in a local repository or cache config file.
  48. For security reasons, this command only works on local repositories.
  49. To delete a config value entirely, use ``--delete``. To list the values
  50. of the configuration file or the default values, use ``--list``. To get and existing
  51. key, pass only the key name. To set a key, pass both the key name and
  52. the new value. Keys can be specified in the format "section.name" or
  53. simply "name"; the section will default to "repository" and "cache" for
  54. the repo and cache configs, respectively.
  55. By default, borg config manipulates the repository config file. Using ``--cache``
  56. edits the repository cache's config file instead.