git-annex-numcopies(1)

πŸ“¦
version 10.20261026 Β· 3 versions
, in alpine 3.24, arch rolling, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 ⭐


🌈 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 βœ¨πŸ¦‹πŸŒΈπŸ’