borg-config.1 2.5 KB

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