A newer version is available. For the latest information, see the
current release documentation.
Snapshot Selection
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Snapshot Selection
editSummary
editThe snapshots subcommand allows the show and delete commands to obtain a list of snapshots to act on.
Options:
--newer-than INTEGER Include only snapshots newer than n
time_units
--older-than INTEGER Include only snapshots older than n
time_units
--prefix TEXT Include only snapshots beginning with
prefix.
--suffix TEXT Include only snapshots ending with suffix.
--time-unit [hours|days|weeks|months]
Unit of time to reckon by
--timestring TEXT Python strftime string to match your
snapshot's definition, e.g. 20140715020304
would be %Y%m%d%H%M%S
--regex TEXT Provide your own regex, e.g
'^prefix-.*-suffix$'
--exclude TEXT Exclude matching snapshots. Can be invoked
multiple times.
--snapshot TEXT Include the provided snapshot in the list.
Can be invoked multiple times.
--all-snapshots Do not filter snapshots. Act on all
snapshots.
--repository TEXT Repository name.
--help Show this message and exit.