> V1.0.4 > Commands > Plakar query
Version v1.0.4

query

PLAKAR-QUERY(7) Miscellaneous Information Manual PLAKAR-QUERY(7)

plakar-queryquery flags shared among many Plakar subcommands

What follows is a set of command line arguments that many plakar(1) subcommands provide to filter snapshots.

There are two kind of flags:

matchers
These allow 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:

The filters are:

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.

name
Select snapshot whose category is name.
name
Select snapshot whose environment is name.
name
Select snapshot whose job is name.
Select only the latest snapshot.
name
Select snapshots whose name is name.
name
Select snapshots whose perimeter is name.
path
Select snapshots whose root directory is path. May be specified multiple time, snapshots are selected if any of the given paths matches.
date
Select snapshots newer than the given date. The accepted format is the same as -before.
name
Select snapshots tagged with name. May be specified multiple times, and multiple tags may be given at the same time if comma-separated.
Plakar September 10, 2025 PLAKAR-QUERY(7)