borg-config.1 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 "2023-09-14" "" "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] [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 and 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 NAME
  57. name of config key
  58. .TP
  59. .B VALUE
  60. new value for key
  61. .UNINDENT
  62. .SS options
  63. .INDENT 0.0
  64. .TP
  65. .B \-c\fP,\fB \-\-cache
  66. get and set values from the repo cache
  67. .TP
  68. .B \-d\fP,\fB \-\-delete
  69. delete the key from the config file
  70. .TP
  71. .B \-l\fP,\fB \-\-list
  72. list the configuration of the repo
  73. .UNINDENT
  74. .SH EXAMPLES
  75. .sp
  76. \fBNOTE:\fP
  77. .INDENT 0.0
  78. .INDENT 3.5
  79. The repository & cache config files are some of the only directly manipulable
  80. parts of a repository that aren\(aqt versioned or backed up, so be careful when
  81. making changes!
  82. .UNINDENT
  83. .UNINDENT
  84. .INDENT 0.0
  85. .INDENT 3.5
  86. .sp
  87. .nf
  88. .ft C
  89. # find cache directory
  90. $ cd ~/.cache/borg/$(borg config id)
  91. # reserve some space
  92. $ borg config additional_free_space 2G
  93. # make a repo append\-only
  94. $ borg config append_only 1
  95. .ft P
  96. .fi
  97. .UNINDENT
  98. .UNINDENT
  99. .SH SEE ALSO
  100. .sp
  101. \fIborg\-common(1)\fP
  102. .SH AUTHOR
  103. The Borg Collective
  104. .\" Generated by docutils manpage writer.
  105. .