borg-repo-space(1)
π borg-repo-space β the manual page, bestie edition π
okay so you found borg-repo-space, which is a page from the borg backup tool (section 1 of the manual, iykyk). sit down, grab a strawberry, and let me tell you about the little command that saves you when your disk is being dramatic. π
β¨ NAME β¨
borg-repo-space β it manages the reserved space in the repository. that's it, that's the whole job. π
β¨ SYNOPSIS β¨
borg [common options] repo-space [options]
β¨ DESCRIPTION β¨
okay so this command manages the reserved space in a repository.
here's the tea, and it's important tea: Borg literally cannot work in disk-full conditions. π it can't lock a repository, which means it can't run prune, delete, or compact operations to free up disk space. it's giving "stuck in a parking lot with no exit." π
so, to avoid ever running into that dead-end situation, you can put some objects into a repository that justβ¦ take up disk space. like a little emergency stash. π«Ά then, if you do ever run into a disk-full situation, you can free that space, and after that Borg will be able to run normally, so you can free up even more disk space using borg prune / borg delete / borg compact. and after all that? do not forget to reserve space again, in case you run into that situation again later. bestie, it will happen again. reserve the space. π
Examples, because visuals help:
# Create a new repository:
$ borg repo-create ...
# Reserve approx. 1 GiB of space for emergencies:
$ borg repo-space --reserve 1G
# Check the amount of reserved space in the repository:
$ borg repo-space
# EMERGENCY! Free all reserved space to get things back to normal:
$ borg repo-space --free
$ borg prune ...
$ borg delete ...
$ borg compact -v # only this actually frees space of deleted archives
$ borg repo-space --reserve 1G # reserve space again for next time
π¨ reminder from your girl: it's borg compact -v that actually frees the space of the deleted archives. the rest is just vibes and bookkeeping.
one more thing: reserved space is always rounded up to full reservation blocks of 64 MiB. so it's chunky, not granular. no cap. πΈ
β¨ OPTIONS β¨
see borg-common(1) for the common options of Borg commands. those apply to everybody, they're the shared wardrobe. π
β¨ options β¨
--reserveSPACE β how much space you wanna reserve (e.g.100M,1G). Default:0. π--freeβ free all the reserved space. and then, bestie, do not forget to reserve space again later. do not leave the house without it. π
β¨ SEE ALSO β¨
β¨ Author β¨
The Borg Collective π
2026-10-07 β that's the date on this page, and this was borg-repo-space(1) out of the borg backup tool. now go reserve your space before something goes disk-full and ruins your whole day. mwah. πβ¨π¦
π¦ 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