git-annex-numcopies(1)
π git-annex-numcopies(1) π
okay bestie, welcome to the General Commands Manual for git-annex-numcopies β yes that's the manual name, we're being official about it π
β¨ NAME β¨
git-annex-numcopies β configure desired number of copies π«Ά
πΈ SYNOPSIS πΈ
git annex numcopies N
π¦ DESCRIPTION π¦
So here's the tea, bestie: this tells git-annex how many copies it should preserve of files, over all repositories. The default is 1.
Run it without a number to get the current value. Literally just vibe-check it, no arguments needed β¨
This configuration is stored in the git-annex branch, so it will be seen by all clones of the repository. Like, every single clone, no cap. π
It can be overridden on a per-file basis by the annex.numcopies setting in .gitattributes files, or can be overridden temporarily with the --numcopies option. So many ways to be in charge of your own destiny π
When git-annex is asked to drop a file, it first verifies that the number of copies can be satisfied among all the other repositories that have a copy of the file. It's doing a lil headcount first, very responsible of it π
π¨ okay so WARNING time, and I need you to actually read this one: in unusual situations, involving special remotes that do not support locking, and concurrent drops of the same content from multiple repositories, git-annex may violate the numcopies setting. π
It still guarantees at least 1 copy is preserved though, so nobody's losing their data fr fr. And this can be configured by using git-annex-mincopies(1) π
β OPTIONS β
- The
git-annex-common-options(1)can be used. π that's it, that's the whole option list, the common options are the moment.
π SEE ALSO π
git-annex(1) git-annex-mincopies(1) git-annex-config(1)
π AUTHOR π
Joey Hess <id@joeyh.name>
and that's the whole page, bestie!! π this was git-annex-numcopies(1), general commands manual energy, go forth and preserve your copies β¨π¦πΈπ
π¦ 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