nomad operator snapshot filter command reference
The operator snapshot filter command removes selected entries from an existing
snapshot file created by the operator snapshot save command. This is useful
for situations where you need to remove objects from a snapshot you want to
restore to a cluster, or to remove a large amount of pending evals when
recovering a cluster from an outage.
This command creates a copy of the original file to filter. It accepts an optional second argument to specify an output file path.
Usage
nomad operator snapshot filter [options] <input file> [<output file>]
Options
-include: Specifies a filter expression used to process the snapshot. Only objects that match the-includefilter will be included. If this is combined with-exclude-types, an object must match the-includeexpression and not be one of the-exclude-typesto appear in the resulting snapshot.-exclude-enterprise: Specifies removing all Nomad Enterprise objects from the snapshot. (Requires a Nomad Enterprise binary.)-exclude-types: Specifies a list of comma-separated numeric internal type IDs to exclude from the snapshot. You can findSnapshotTypeIDs in the Nomad source code at nomad/fsm.go. If this is combined with-exclude-types, an object must match the-includeexpression and not be one of the-exclude-typesto appear in the resulting snapshot.