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 πŸ‘‘

borg-common(1)

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