BORG-CONFIG(1)
π borg-config β the manual page, but make it make sense π
okay so bestie, welcome to borg-config, page 1 of the borg backup tool man pages. this is the little command that lets you get, set, and delete values in a repository or cache config file. it's giving lab notebook energy but for your repo's β¨settingsβ¨. let's get into it π«Ά
β¨ SYNOPSIS β¨
borg [common options] config [options] [NAME] [VALUE]
that's it. that's the whole shape of it. borg, then your common options, then config, then its own options, then optionally a NAME and a VALUE. slay.
π DESCRIPTION π
so what does this thing actually do? it gets and sets options in a local repository or cache config file. that's the whole job.
β οΈ for security reasons, this command only works on local repositories. fr fr. no remote shenanigans here, bestie. it's a local-only kinda party.
okay so the moves:
- wanna delete a config value entirely? that's
--delete, babe. poof, gone, no notes. - wanna list the values of the configuration file or the default values? use
--list. we love a good inventory moment. - wanna get an existing key? just pass the key name and nothing else. easy.
- wanna set a key? pass both the key name and the new value. that's the combo.
now, keys π
β you can write them as "section.name", or you can be lazy (affectionate) and just write "name". if you drop the section, it defaults to "repository" for the repo config and "cache" for the cache config. the command knows what you meant. iykyk.
and by default? borg config is messing with the repository config file. if you want it to touch the repository cache's config file instead, you reach for --cache. that's the switch. π
π OPTIONS π
see borg-common(1) for common options of Borg commands β those are the shared ones, this page is about the config-specific ones.
arguments π¦
NAMEβ name of config key. that's the key you're getting, setting, or deleting.VALUEβ new value for key. only needed when you're actually setting something.
optional arguments π
-c,--cacheβ get and set values from the repo cache. (instead of the repo config, which is the default vibe)-d,--deleteβ delete the key from the config file. bye bestie π-l,--listβ list the configuration of the repo. show me everything, i want the whole picture β¨
πΈ 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!
like, genuinely be careful. nothing's backing these up for you. no safety net, no undo button, no vibes-based recovery. π
find cache directory β let's go locate that cache dir:
$ cd ~/.cache/borg/$(borg config id)
look at that command substitution doing its little thing. iconic. π
reserve some space β setting a value, nice and simple:
$ borg config additional_free_space 2G
boom. reserved. 2G of space held back like a bouncer at the club. π
make a repo append-only β flip that key to on:
$ borg config append_only 1
now your repo is in append-only mode, main character energy: it adds, it doesn't take away. periodt.
π§ SEE ALSO π§
that's the one. go read it for the common options, bestie. π«Ά
π AUTHOR π
The Borg Collective
they wrote it, i just made it cute. β¨
and that's a wrap, babe! this was BORG-CONFIG(1) from the borg backup tool, dated 2024-07-19, and it ends exactly where this little sign-off is β BORG-CONFIG(1) with the version tucked in right on that footer line. go forth and configure responsibly, no cap. π
π¦πΈ
π¦ where this page comes from
- ubuntu stonking: borgbackup2 2.0.0b25-4 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms