1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-29 03:06:12 +00:00
borg/docs/man/borg-config.1

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

108 lines
2.6 KiB
Groff
Raw Normal View History

2017-12-13 03:40:20 +00:00
.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
2023-06-11 21:10:23 +00:00
.TH "BORG-CONFIG" 1 "2023-06-11" "" "borg backup tool"
2022-06-23 23:19:19 +00:00
.SH NAME
borg-config \- get, set, and delete values in a repository or cache config file
2017-12-13 03:40:20 +00:00
.SH SYNOPSIS
.sp
2022-06-23 23:19:19 +00:00
borg [common options] config [options] [NAME] [VALUE]
2017-12-13 03:40:20 +00:00
.SH DESCRIPTION
.sp
This command gets and sets options in a local repository or cache config file.
For security reasons, this command only works on local repositories.
.sp
2019-02-24 19:40:07 +00:00
To delete a config value entirely, use \fB\-\-delete\fP\&. To list the values
of the configuration file or the default values, use \fB\-\-list\fP\&. To get and existing
key, pass only the key name. To set a key, pass both the key name and
2022-09-10 14:03:27 +00:00
the new value. Keys can be specified in the format \(dqsection.name\(dq or
simply \(dqname\(dq; the section will default to \(dqrepository\(dq and \(dqcache\(dq for
2019-02-24 19:40:07 +00:00
the repo and cache configs, respectively.
2017-12-13 03:40:20 +00:00
.sp
By default, borg config manipulates the repository config file. Using \fB\-\-cache\fP
edits the repository cache\(aqs config file instead.
.SH OPTIONS
.sp
See \fIborg\-common(1)\fP for common options of Borg commands.
.SS arguments
.INDENT 0.0
.TP
.B NAME
name of config key
.TP
.B VALUE
new value for key
.UNINDENT
2022-11-26 21:23:46 +00:00
.SS options
2017-12-13 03:40:20 +00:00
.INDENT 0.0
.TP
2022-06-23 23:19:19 +00:00
.B \-c\fP,\fB \-\-cache
2017-12-13 03:40:20 +00:00
get and set values from the repo cache
.TP
2022-06-23 23:19:19 +00:00
.B \-d\fP,\fB \-\-delete
2017-12-13 03:40:20 +00:00
delete the key from the config file
2019-02-24 19:40:07 +00:00
.TP
2022-06-23 23:19:19 +00:00
.B \-l\fP,\fB \-\-list
2019-02-24 19:40:07 +00:00
list the configuration of the repo
2017-12-13 03:40:20 +00:00
.UNINDENT
.SH EXAMPLES
.sp
\fBNOTE:\fP
.INDENT 0.0
.INDENT 3.5
The repository & cache config files are some of the only directly manipulable
parts of a repository that aren\(aqt versioned or backed up, so be careful when
making changes!
.UNINDENT
.UNINDENT
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
# find cache directory
2022-06-23 23:19:19 +00:00
$ cd ~/.cache/borg/$(borg config id)
2017-12-13 03:40:20 +00:00
# reserve some space
2022-06-23 23:19:19 +00:00
$ borg config additional_free_space 2G
2017-12-13 03:40:20 +00:00
# make a repo append\-only
2022-06-23 23:19:19 +00:00
$ borg config append_only 1
2017-12-13 03:40:20 +00:00
.ft P
.fi
.UNINDENT
.UNINDENT
.SH SEE ALSO
.sp
\fIborg\-common(1)\fP
.SH AUTHOR
The Borg Collective
.\" Generated by docutils manpage writer.
.