PLAKAR-PRUNE(1)

πŸ“¦ version 1.1.7, in nixos 26.05, nixpkgs unstable

πŸ¦‹ 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 -older or -tag must 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. peep plakar-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