git-annex-mincopies(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-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 setting mincopies. Set numcopies as well, and set it to a larger number, and keep mincopies at the bare minimum you're comfortable with. why? because setting mincopies to a large number instead of setting numcopies will, in some cases, prevent dropping content in entirely safe situations. and bestie, nobody wants that πŸ’€

✨ OPTIONS ✨


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