PLAKAR-PRUNE(1)
π¦ PLAKAR-PRUNE(1) π¦
okay bestie, grab a matcha because we're about to talk about the plakar-prune page from the General Commands Manual β yes it's a whole thing and yes you're gonna slay it π
β¨ NAME β¨
plakar-prune β prune snapshots according to a policy π
β¨ SYNOPSIS β¨
plakar prune [-apply] [-policy name] [snapshotID ...]
β¨ DESCRIPTION β¨
so the plakar prune command deletes snapshots from a Plakar repository. yep, actual deletion, we're not playing around here π
and the way it works is lowkey flexible: you can filter snapshots for deletion by age, by tag, or by straight-up naming the snapshot IDs you want gone. it's giving "choose your own adventure" but make it destructive π«Ά
β οΈ real talk: if you don't provide any snapshotID, then either-olderor-tagmust be specified to filter which snapshots get deleted. no filter, no pruning, that's the rule β
also, plakar prune supports the location flags documented in plakar-query(7) β so you can precisely select snapshots. precision queen π
the arguments are as follows:
-applyβ this is the one that actually deletes the matching snapshot. the default is to just show you the snapshot that would be removed but not actually execute the operation. so like, it's a dress rehearsal unless you say otherwise π-policy nameβ use the given policy. peepplakar-policy(1)for how policies are managed, iykyk β¨
β¨ EXIT STATUS β¨
the plakar-prune utility exits 0 on success, and >0 if an error occurs. simple, clean, iconic πΈ
β¨ EXAMPLES β¨
remove a specific snapshot by ID:
$ plakar prune abc123
remove snapshots older than 30 days:
$ plakar prune -days 30
remove snapshots with a specific tag:
$ plakar prune -tag daily-backup
remove snapshots older than 1 year with a specific tag:
$ plakar prune -years 1 -tag daily-backup
β¨ SEE ALSO β¨
plakar(1), plakar-backup(1), plakar-policy(1), plakar-query(7) β go read them, they're literally the supporting cast π
and that's the whole page, bestie π this one's from Debian, dated May 5, 2026 β so go forth and prune responsibly, and remember: no -apply, no actual deleting, periodt ππ
π¦ where this page comes from
- nixos 26.05: plakar 1.1.4
- nixpkgs unstable: plakar 1.1.7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms