DIRVISH-EXPIRE(8)
π DIRVISH-EXPIRE π
okay bestie, sit down, hydrate, and let me tell you about dirvish-expire from the System Manager's Manual section (section 8, for the sysadmin girlies β¨). this is the little tool that goes through your dirvish vaults and yeets the expired images. no cap.
πΈ NAME πΈ
dirvish-expire β delete expired dirvish images ποΈβ¨
π SYNOPSIS π
dirvish-expire[OPTIONS]
π¦ DESCRIPTION π¦
so what it does is delete dirvish image trees, or whole images, that have expired. like, their time is up, they had their moment, we love them, bye π
every image has a summary file, and dirvish-expire checks each one for the Expire: field. if that field says the image has expired, then dirvish-expire will delete that image out of the vault. periodt.
by default, all subdirectories of all banks get treated as vaults, and everything inside them β except the directory literally named dirvish β gets checked for summary files. so it's thorough. it's giving thorough.
the removal of one image will have no effect on the other images. they don't gossip, they don't take it personally. π«Ά
here's the safety girlie behaviour though, and this part is important: dirvish-expire will NOT delete an image unless it finds at least one image in that branch that has an <strong>intact image tree</strong> and Status: success in the summary that is <strong>not expired</strong>. so it never leaves you with nothing. it checks the vibe first. π₯
β¨ OPTIONS β¨
general rules first, bestie, because they apply to everything below:
- each option on the command line may be specified <strong>any number of times</strong>.
- those options that support lists in the config files will <strong>accumulate</strong> all of their arguments β otherwise each specification will <strong>override</strong> the ones before it. (so sometimes it stacks, sometimes it replaces. iykyk.)
- each option may be <strong>unambiguously abbreviated</strong>. you can be lazy, just not ambiguous about it. π
now the actual options:
--timetime_expression β execute as though time_expression were the current time. β°
time_expression is processed by Time::Parsedate(3pm), so relative time and date strings are permitted. see Time::Parsedate(3pm) for more details.
--treeβ only delete the image tree. leave in place the rest of the image directory with summary, log and any other image administrative files. π³ so the tree goes, the paperwork stays.--vaultvault β restrict expiration to the specified vault. π¦ one vault only, main character energy.--no-runβ don't actually do anything. just display what <strong>would have</strong> happened. π the ultimate dry run, the "not me, I'm just watching" of flags.--quietβ run quietly, only report errors. π€«
normally dirvish-expire will report the images deleted. with this, it won't. silence is golden.
π EXIT CODES π
to facilitate further automation and integration of dirvish-expire with other tools, dirvish-expire provides rationalised exit codes. the exit codes are <strong>range based</strong>. while the code for a specific error may change from one version to another, it will remain within the specified range. so don't test for specific exit codes β instead test for a <strong>range</strong> of values. to the degree possible, higher value ranges indicate more severe errors. π
0β success π200-219β an error was encountered in loading a configuration file. π220-254β an error was detected in the configuration. π255β incorrect usage. π
π FILES π
/etc/dirvish/master.confβ alternate master configuration file./etc/dirvish.confβ master configuration file.bank/vault/image/summaryβ image creation summary.bank/vault/image/treeβ actual image of source directory tree.
π SEE ALSO π
π§ BUGS π§
dirvish-expire will walk the file hierarchy of <strong>all banks</strong> or the <strong>specified vault</strong> looking for summary files. anything non-dirvish in there may cause excess file-walking. πΆββοΈπΆββοΈπΆββοΈ so like, keep your vaults clean, bestie. don't put your random stuff in there and then act surprised.
and that's the whole page, gorgeous π that was DIRVISH-EXPIRE(8) from the System Manager's Manual, and yes, the footer says the exact same thing β DIRVISH-EXPIRE(8) β so we've come full circle, iconic, no notes. go forth and expire responsibly πβ¨
π¦ where this page comes from
- debian bookworm: dirvish 1.2.1-2.1
- debian trixie: dirvish 1.2.1-2.1
- fedora 43: dirvish 1.2.1-34.fc43 Β· OSL-2.0
- fedora 44: dirvish 1.2.1-36.fc44 Β· OSL-2.0
- nixos 26.05: dirvish 1.2.1
- nixpkgs unstable: dirvish 1.2.1
- opensuse-leap 16.0: dirvish 1.2.1-bp160.1.9 Β· OSL-2.0
- ubuntu jammy: dirvish 1.2.1-2.1
- ubuntu noble: dirvish 1.2.1-2.1
- ubuntu resolute: dirvish 1.2.1-2.1build1
- ubuntu stonking: dirvish 1.2.1-2.2 Β· OSL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms