PLAKAR-POLICY(1)
π 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:
addname [option=value...] β creates a brand new source entry identified by name. you can also set extra parameters by tossing inoption=valuepairs πrmname β removes the policy identified by name from the configuration. bye bestie πsetname [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.-jsonand-yamlcontrol the output format, and it's YAML by default πunsetname [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 π
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
- 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