mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-24 00:37:56 +00:00
5b47cf6fa5
This command works similarly to "git config" - it parses repo and cache configs to get, set, and delete values. It only works on local repos so a malicious client can't e.g. override their storage quota or reset the append_only flag. Add tests for borg config Add documentation for borg config Change manual config edits -> borg config There were a couple places in the documentation where it was advised to edit the repository or cache config file, a process that is stream- lined by borg config.
22 lines
488 B
ReStructuredText
22 lines
488 B
ReStructuredText
.. include:: config.rst.inc
|
|
|
|
.. note::
|
|
|
|
The repository & cache config files are some of the only directly manipulable
|
|
parts of a repository that aren't versioned or backed up, so be careful when
|
|
making changes\!
|
|
|
|
Examples
|
|
~~~~~~~~
|
|
::
|
|
|
|
# find cache directory
|
|
$ cd ~/.cache/borg/$(borg config /path/to/repo id)
|
|
|
|
# reserve some space
|
|
$ borg config /path/to/repo additional_free_space 2G
|
|
|
|
# make a repo append-only
|
|
$ borg config /path/to/repo append_only 1
|
|
|
|
|