borg-config(1)
π borg-config β get, set, and delete values in a repository or cache config file
okay bestie, welcome to borg-config(1) from the borg backup tool β she's a tiny little command with main character energy and she's about to let you poke at config files directly. π
β¨ SYNOPSIS β¨
borg [common options] config [options] [REPOSITORY] [NAME] [VALUE]
like, that's the whole vibe. short. iconic. slays. π
π¦ DESCRIPTION π¦
so basically this command gets and sets options in a local repository or cache config file. π
For security reasons, this command only works on local repositories. no remote shenanigans, sorry babe, it's β¨ local only β¨.
here's the tea on how to use her:
- wanna delete a config value entirely? use
--delete. - wanna list the values of the configuration file, or the default values? use
--list. π - wanna get an existing key? just pass the key name, nothing else.
- wanna set a key? pass both the key name and the new value. periodt.
keys can be written in the format "section.name" or just plain "name" β and when you don't give a section, it defaults to "repository" for the repo config and "cache" for the cache config. lowkey convenient, highkey true. π
and by default, borg config manipulates the repository config file. if you wanna edit the repository cache's config file instead, hit her with --cache. π§
πΈ OPTIONS πΈ
btw check borg-common(1) for the common options of Borg commands β those are shared with all the other borg girlies. π«Ά
π arguments
REPOSITORYβ the repository you're configuring, bestie. that's the one.NAMEβ the name of the config key. just the name.VALUEβ the new value for the key. the glow-up you're applying to it. β¨
π options
-c,--cacheβ get and set values from the repo cache instead. cache mode activated. π-d,--deleteβ delete the key from the config file. bye bestie, gone, no notes. π-l,--listβ list the configuration of the repo. show me everything. π
π₯ EXAMPLES π₯
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! π fr fr, no undo, no safety net, no cap.
find the cache directory:
# find cache directory
$ cd ~/.cache/borg/$(borg config /path/to/repo id)
reserve some space:
# reserve some space
$ borg config /path/to/repo additional_free_space 2G
make a repo append-only:
# make a repo append-only
$ borg config /path/to/repo append_only 1
set storage quota to 50 GB:
# set storage quota to 50 GB
$ borg config /path/to/repo storage_quota 50G
set maximum segment size to 100 MiB (see "Adjusting segment size" in Usage Notes):
# set maximum segment size to 100 MiB (see "Adjusting segment size" in Usage Notes)
$ borg config /path/to/repo max_segment_size 104857600
ate. every single one. π₯
π SEE ALSO π
iykyk. π
π Author π
The Borg Collective
and that's the whole page, bestie!! π¦ this diva is borg-config(1) from the borg backup tool, and she was written by The Borg Collective, dated 2026-07-18. go forth and configure responsibly, mwah π
β¨πΈ
π¦ where this page comes from
- alpine 3.24: borgbackup-doc 1.4.5-r0 Β· BSD-3-Clause
- arch rolling: borg 1.4.5-1 Β· BSD
- ubuntu stonking: borgbackup 1.4.5-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms