PLAKAR-QUERY(7)
π PLAKAR-QUERY π
okay bestie, welcome to plakar-query(7) from the Miscellaneous Information Manual. this is the group-chat rundown of query flags shared among many Plakar subcommands. no cap, itβs giving βfilter your snapshots, but make it cute.β π«Ά
β¨ NAME β¨
plakar-query β query flags shared among many Plakar subcommands
πΈ DESCRIPTION πΈ
What follows is a set of command line arguments that many plakar(1) subcommands provide to filter snapshots. lowkey iconic of them, honestly.
There are two kind of flags, bestie:
- matchers β these allow you to select snapshots. If combined, the result is the union of the various matchers.
- filters β these instead filter the output of the matchers by yielding snapshots matching only certain criterias. If combined, the result is the intersection of the various filters.
If no matcher is given, all the snapshots are implicitly selected, and then filtered according to the given filters, if any.
The matchers are divided into:
β° matchers: snapshots from the last n unit of time
-minutes nβ selects snapshots from the last n minutes.-hours nβ selects snapshots from the last n hours.-days nβ selects snapshots from the last n days.-weeks nβ selects snapshots from the last n weeks.-months nβ selects snapshots from the last n months.-years nβ selects snapshots from the last n years.
ποΈ matchers: snapshots done during the last n days of the week
-mondays nβ selects snapshots that were done during the last n Mondays.-thuesdays nβ selects snapshots that were done during the last n Tuesdays.-wednesdays nβ selects snapshots that were done during the last n Wednesdays.-thursdays nβ selects snapshots that were done during the last n Thursdays.-fridays nβ selects snapshots that were done during the last n Fridays.-saturdays nβ selects snapshots that were done during the last n Saturdays.-sundays nβ selects snapshots that were done during the last n Sundays.
bestie, yes:-thuesdaysand-per-thuesdayare spelled exactly like that here. keep the exact option names in your command, okay? π
π matchers: at most n snapshots per time period
-per-minute nβ selects at most n snapshots per minute.-per-hour nβ selects at most n snapshots per hour.-per-day nβ selects at most n snapshots per day.-per-week nβ selects at most n snapshots per week.-per-month nβ selects at most n snapshots per month.-per-year nβ selects at most n snapshots per year.-per-monday nβ selects at most n snapshots per Monday.-per-thuesday nβ selects at most n snapshots per Tuesday.-per-wednesday nβ selects at most n snapshots per Wednesday.-per-thursday nβ selects at most n snapshots per Thursday.-per-friday nβ selects at most n snapshots per Friday.-per-saturday nβ selects at most n snapshots per Saturday.-per-sunday nβ selects at most n snapshots per Sunday.
π filters
-before dateβ select snapshots older than given date. The date may be in RFC3339 format, asβYYYY-mm-DD HH:MMβ,βYYYY-mm-DD HH:MM:SSβ,βYYYY-mm-DDβ, orβYYYY/mm/DDβwhereYYYYis a year,mma month,DDa day,HHa hour in 24 hour format number,MMminutes andSSthe number of seconds. Alternatively, human-style intervals like βhalf an hourβ, βa monthβ or2h30mare also accepted.-category nameβ select snapshot whose category is name.-environment nameβ select snapshot whose environment is name.-group-by keyβ partition the filtered snapshots by key and apply retention matchers (-days,-per-day, ...) independently within each group instead of across the whole result set. key must be one ofname,category,environment,perimeter,job,tag,origin,typeorroot. Multi-valued keys (tag,origin,type,root) fan out: a snapshot participates in every group it belongs to and is kept in the result if any group keeps it.-job nameβ select snapshot whose job is name.-latestβ select only the latest snapshot.-name nameβ select snapshots whose name is name.-perimeter nameβ select snapshots whose perimeter is name.-root pathβ select snapshots whose root directory is path. May be specified multiple times; snapshots are selected if any of the given paths matches.-since dateβ select snapshots newer than the given date. The accepted format is the same as-before.-tag nameβ select snapshots tagged with name. May be specified multiple times, and multiple tags may be given at the same time if comma-separated. If a tag name is prefixed with an exclamation mark!, the matching is inverted and the snapshot is ignored if it contains said tag.
xoxo bestie, thatβs the whole page π source/version: Debian; date: November 28, 2025. plakar-query(7) out. π
π¦ 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