git-annex-maxsize(1)
π git-annex-maxsize β the manual page, but make it a group chat π
okay bestie, so this is the man page for git-annex-maxsize, straight out of the General Commands Manual. It's literally the command that sets how much annexed stuff a repo is allowed to hold. Buckle up, it's short and it's iconic. β¨
πΈ NAME πΈ
git-annex-maxsize β configure maximum size of a repository. That's the whole vibe: you're telling a repo how big it's allowed to dream. π
π SYNOPSIS π
git annex maxsize repository size
git annex maxsize repository
git annex maxsize
three whole modes, pick your fighter. β¨
π¦ DESCRIPTION π¦
So here's the tea: this configures the maximum combined size of annexed files that can be stored in a repository. Combined, bestie. All of them together. π
The three modes, explained with love:
- run it with a repository but no size β it shows you the maxsize that's currently configured. Just a lil peek. π
- run it with no parameters at all β it gives you an overview of the size and maxsize of all repositories. Like a whole census. π
- run it with both β it sets the thing. main character move. π
Now, how do you point at a repository? You can name it by git remote name, or by uuid. And if you mean the current repository, you just say "here". Yes, literally the word. π«Ά
The size? Any units you want, bestie. The page gives two examples and I'm keeping them verbatim: "100 gigabytes" or "0.8TB". Slay. π
β οΈ IMPORTANT CAVEAT, NO CAP: this is advisory only. It does not prevent git-annex from trying to store more data in a repository. It's a suggestion, not a bouncer. π«
When a repository has a preferred content expression configured using "balanced" or "sizebalanced", it will take the maxsize into account when checking preferred content. But it's still possible for the maxsize to be exceeded β for example, when there are multiple writers to the same repository. Chaos. Multiple people, one repo, nobody listening. π
So if you want a hard repository size limit, you have to enforce it some other way β like putting the repository on a partition of the desired size. Then you can use this command to tell git-annex about that size limit. You bring the wall, this command brings the memo. π§±
Here's the example the page gives, and it's a good one: say a git repository is on a 1 terabyte drive, and it's the only thing stored on that drive, and annex.diskreserve is configured to 1 gigabyte β then it would make sense to run:
git-annex maxsize here "999 gigabytes"
math is mathing, bestie. 1TB minus 1GB of reserve, roughly, and you've got your number. π₯
And to stop checking maximum size of a repository, just set the maxsize to 0. Zero. Done. Bye. βοΈ
β¨ OPTIONS β¨
--bytesβ displays the maximum size in bytes, which disables the default nicer units. You want the raw number? You get the raw number. π--jsonβ enable JSON output. For the girlies piping things into other things. π€
also, the git-annex-common-options(1) can be used too. so many options, so little time. π
π SEE ALSO π
go read those next, bestie, they're the supporting cast. π
π AUTHOR π
Joey Hess <id@joeyh.name>
the legend themselves. we love them, we thank them. π«Ά
and that's the whole page!! this was git-annex-maxsize(1) from the General Commands Manual, and the footer was literally just the page name again, git-annex-maxsize(1) β no version, no date, just the name echoing back at you like a vibe check. π
β¨ go set some sizes, bestie, you've got this!! πΈπ¦π
π¦ where this page comes from
- alpine 3.24: git-annex-doc 10.20261026-r0 Β· AGPL-3.0-or-later
- arch rolling: git-annex 10.20261026-2 Β· AGPL-3.0-only
- debian trixie: git-annex 10.20250416-2 Β· AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2+deb13u1 Β· AGPL-3.0-or-later
- epel 10: git-annex 10.20250320-1.el10_0 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250630-4.fc43 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250929-5.fc43 Β· AGPL-3.0-or-later
- fedora 44: git-annex 10.20260115-1.fc44 Β· AGPL-3.0-or-later
- nixos 26.05: git-annex 10.20260421
- nixpkgs unstable: git-annex 10.20260421
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- ubuntu questing: git-annex 10.20250721-1
- ubuntu resolute: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- ubuntu stonking: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms