borg-config.1 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .
  4. .nr rst2man-indent-level 0
  5. .
  6. .de1 rstReportMargin
  7. \\$1 \\n[an-margin]
  8. level \\n[rst2man-indent-level]
  9. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  10. -
  11. \\n[rst2man-indent0]
  12. \\n[rst2man-indent1]
  13. \\n[rst2man-indent2]
  14. ..
  15. .de1 INDENT
  16. .\" .rstReportMargin pre:
  17. . RS \\$1
  18. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  19. . nr rst2man-indent-level +1
  20. .\" .rstReportMargin post:
  21. ..
  22. .de UNINDENT
  23. . RE
  24. .\" indent \\n[an-margin]
  25. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  26. .nr rst2man-indent-level -1
  27. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  28. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  29. ..
  30. .TH "BORG-CONFIG" "1" "2025-04-18" "" "borg backup tool"
  31. .SH NAME
  32. borg-config \- get, set, and delete values in a repository or cache config file
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] config [options] [REPOSITORY] [NAME] [VALUE]
  36. .SH DESCRIPTION
  37. .sp
  38. This command gets and sets options in a local repository or cache config file.
  39. For security reasons, this command only works on local repositories.
  40. .sp
  41. To delete a config value entirely, use \fB\-\-delete\fP\&. To list the values
  42. of the configuration file or the default values, use \fB\-\-list\fP\&. To get an existing
  43. key, pass only the key name. To set a key, pass both the key name and
  44. the new value. Keys can be specified in the format \(dqsection.name\(dq or
  45. simply \(dqname\(dq; the section will default to \(dqrepository\(dq and \(dqcache\(dq for
  46. the repo and cache configs, respectively.
  47. .sp
  48. By default, borg config manipulates the repository config file. Using \fB\-\-cache\fP
  49. edits the repository cache\(aqs config file instead.
  50. .SH OPTIONS
  51. .sp
  52. See \fIborg\-common(1)\fP for common options of Borg commands.
  53. .SS arguments
  54. .INDENT 0.0
  55. .TP
  56. .B REPOSITORY
  57. repository to configure
  58. .TP
  59. .B NAME
  60. name of config key
  61. .TP
  62. .B VALUE
  63. new value for key
  64. .UNINDENT
  65. .SS options
  66. .INDENT 0.0
  67. .TP
  68. .B \-c\fP,\fB \-\-cache
  69. get and set values from the repo cache
  70. .TP
  71. .B \-d\fP,\fB \-\-delete
  72. delete the key from the config file
  73. .TP
  74. .B \-l\fP,\fB \-\-list
  75. list the configuration of the repo
  76. .UNINDENT
  77. .SH EXAMPLES
  78. .sp
  79. \fBNOTE:\fP
  80. .INDENT 0.0
  81. .INDENT 3.5
  82. The repository & cache config files are some of the only directly manipulable
  83. parts of a repository that aren\(aqt versioned or backed up, so be careful when
  84. making changes!
  85. .UNINDENT
  86. .UNINDENT
  87. .INDENT 0.0
  88. .INDENT 3.5
  89. .sp
  90. .EX
  91. # find cache directory
  92. $ cd ~/.cache/borg/$(borg config /path/to/repo id)
  93. # reserve some space
  94. $ borg config /path/to/repo additional_free_space 2G
  95. # make a repo append\-only
  96. $ borg config /path/to/repo append_only 1
  97. .EE
  98. .UNINDENT
  99. .UNINDENT
  100. .SH SEE ALSO
  101. .sp
  102. \fIborg\-common(1)\fP
  103. .SH AUTHOR
  104. The Borg Collective
  105. .\" Generated by docutils manpage writer.
  106. .