git-annex-expire(1)
π git-annex-expire β expire inactive repositories π
okay bestie, welcome to the General Commands Manual page for git-annex-expire, and honestly? this one is a whole vibe. it's the "ghost your inactive repos" command. let's get into it π«Ά
β¨ NAME β¨
git-annex-expire β expire inactive repositories. yes, literally expire them. like a gym membership nobody's used since 2023 π
πΈ SYNOPSIS πΈ
git annex expire [repository:]time ...
π¦ DESCRIPTION π¦
so here's the tea: this command expires repositories that have not performed some activity within a specified time period. and what does "expiring" even mean? it means the repo gets marked as dead. periodt π
but wait, it's not just one-way. de-expiration is also a thing! if a dead repository performed some activity recently, it gets marked as semitrusted again. so it's giving resurrection arc, we love that for them β¨
this is lowkey a lifesaver when it's not possible to keep track of the state of repositories manually. think about it: a distributed network of repositories where nobody can directly access all the repositories to check their status. who has the time?? not you, bestie, that's who π
so how do you even point at a repository? you can specify it using the name of a remote, or the description or uuid of the repository. pick your fighter π
now, the time. it's in the form "60d" or "1y". and a time of "never" will disable expiration entirely β no cap, that's the off switch π₯
and here's a lil detail that matters: if a time is specified without a repository, it is used as the default value for all repositories. but ngl there's a plot twist β the current repository is never expired. main character protection, fr fr π
π OPTIONS π
--no-actβ prints out what would be done, but doesn't actually expire or unexpire any repositories. it's the "window shopping" mode, the "add to cart but never checkout" energy π--activity=Nameβ specify the activity that a repository must have performed to avoid being expired. the default is any activity.
currently, the only activity that can be performed to avoid expiration is --activity=Fsck which corresponds to git annex fsck. and heads up bestie, note that fscking a remote updates the expiration of the remote repository, not the local repository. the way that's so easy to get twisted π
the first version of git-annex that recorded fsck activity was 5.20150405. historic. iconic. she was there π
--jsonβ enable JSON output. this is intended to be parsed by programs that use git-annex. each line of output is a JSON object. robot-readable, machine-coded, slay π€β¨--json-error-messagesβ messages that would normally be output to standard error are included in the JSON instead. no stderr crumbs left behind, everything goes in the JSON box π¦
also the git-annex-common-options(1) can be used. go check her out π
π SEE ALSO π
π AUTHOR π
Joey Hess <id@joeyh.name>
ok that's the whole page, you ate that π go forth and expire responsibly bestie, and remember: a dead repo can always come back. we love a redemption arc π¦
and that's a wrap on the git-annex-expire(1) manual page, straight from the General Commands Manual β mwah, take care of your repos, ily, bye ππβ¨
π¦ 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