PLAKAR-POLICY(1)

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

πŸ’… PLAKAR-POLICY β€” bestie edition ✨

okay so real talk, this is the plakar-policy page from the General Commands Manual β€” it's giving "I manage your retention policies and I do it flawlessly" energy πŸ‘‘

✨ NAME ✨

plakar-policy β€” literally the command that manages your Plakar retention policies πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

plakar policy subcommand ...

πŸ’– DESCRIPTION πŸ’–

so <pink>plakar policy</pink> is the main character here, and its whole job is managing the retention policies for <purple>plakar-prune(1)</purple> 🫢

the configuration is a set of named entries, and each one describes a retention policy. that's it, that's the vibe ✨

here's the subcommand lineup, no cap:

  • add name [option=value ...] β€” creates a brand new source entry identified by name. you can also set extra parameters by tossing in option=value pairs πŸ’…
  • rm name β€” removes the policy identified by name from the configuration. bye bestie πŸ‘‹
  • set name [option=value ...] β€” sets the option to value for the source identified by name. and yes, you can stack multiple option/value pairs, go off πŸ”₯
  • show [-json] [-yaml] [name ...] β€” displays the current sources configuration. -json and -yaml control the output format, and it's YAML by default πŸ‘‘
  • unset name [option ...] β€” removes the option for the policy identified by name πŸ™ˆ

the available options are described in <purple>plakar-query(7)</purple> β€” each option corresponds to the similarly named flag. iykyk 🌸

⭐ EXIT STATUS ⭐

plakar-policy exits 0 on success, and >0 if an error occurs. success = slay, error = πŸ’€

πŸ“ EXAMPLES πŸ“

create a policy called weekly that keeps one backup per week and discards backups older than three months β€” obsessed with her honestly:

$ plakar policy add weekly
$ plakar policy set weekly since='3 months'
$ plakar policy set weekly per-week=1

then prune snapshots according to that weekly policy:

$ plakar prune -policy weekly

🌈 SEE ALSO 🌈

plakar(1), plakar-prune(1)


Debian Β· September 11, 2025 β€” that's the source, the version and the date, all wrapped up with a bow πŸŽ€ this page ate and left no crumbs, mwah πŸ’œπŸ§š

πŸ“¦ where this page comes from