PLAKAR-QUERY(7)

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

πŸ’… 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: -thuesdays and -per-thuesday are 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” where YYYY is a year, mm a month, DD a day, HH a hour in 24 hour format number, MM minutes and SS the number of seconds. Alternatively, human-style intervals like β€œhalf an hour”, β€œa month” or 2h30m are 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 of name, category, environment, perimeter, job, tag, origin, type or root. 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