git-annex-mincopies(1)
π git-annex-mincopies β configure minimum number of copies π
okay bestie, welcome to the page for git-annex-mincopies, straight outta the git-annex General Commands Manual β¨
πΈ SYNOPSIS πΈ
git annex mincopies N
π DESCRIPTION π
so basically this tells git-annex how many copies of your files it is required to preserve, counted over all repositories. the default is 1. that's it, that's the vibe π
Run it with no number at all and it'll just hand you the current value. lowkey the easiest way to check yourself before you wreck yourself π«Ά
This config lives in the git-annex branch, which means every single clone of the repository is gonna see it. no secrets here, it's giving transparency. BUT β you can override it on a per-file basis with the annex.mincopies setting in .gitattributes files, or you can override it temporarily with the --mincopies option. flexible queen behavior fr fr β¨
Now, this supplements the git-annex-numcopies(1) setting, it doesn't replace it. here's the tea: in unusual situations β and we mean situations involving special remotes that do not support locking, plus concurrent drops of the same content from multiple repositories β git-annex may violate the numcopies setting. yeah. it can happen. π In those unusual situations though, git-annex makes sure the number of copies never goes below mincopies. so it's like a floor, a safety net, a little seatbelt π
β οΈ real talk: it is a good idea to not rely only on settingmincopies. Setnumcopiesas well, and set it to a larger number, and keepmincopiesat the bare minimum you're comfortable with. why? because settingmincopiesto a large number instead of settingnumcopieswill, in some cases, prevent dropping content in entirely safe situations. and bestie, nobody wants that π
β¨ OPTIONS β¨
- the
git-annex-common-options(1)can be used. that's the whole list. slay π¦
π SEE ALSO π
π AUTHOR π
- Joey Hess
<id@joeyh.name>β icon, legend, ate and left no crumbs π
that's the whole page, bestie π this was git-annex-mincopies(1) from the git-annex General Commands Manual β go forth, set your minimums, protect your copies, and stay iconic πΈβ¨π
π¦ 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 noble: git-annex 10.20240129-1build1 Β· AGPL-3.0-or-later
- 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