This command displays all snapshot policies and their details.
Usage
snapshotpolicy list --path PATH --schedule SCHEDULE --last-operation-state LAST_OPERATION_STATE --enabled --disabled
Options
Filters the list by snapshot path. |
|
Filters the list by snapshot schedule. Specify using cron format. Wrap in quotes. For example: |
|
Filters the list by state of last policy operation. Possible values for
|
|
Filters the list to show only enabled snapshot policies. |
|
Filters the list to show only disabled snapshot policies. |
Example
vcli: admin> snapshotpolicy list --last-operation-state INIT +----+----------+------+--------------+----------------------------------+--------+-----------------------+----------------------+---------+ | ID | Name | Path | Schedule | Humanize-schedule | Prefix | Max-created-snapshots | Last-operation-state | Enabled | +----+----------+------+--------------+----------------------------------+--------+-----------------------+----------------------+---------+ | 1 | snapol1 | / | 00 22 01 * * | At 22:00, on day 01 of the month | None | 4 | INIT | True | | 2 | snappol2 | / | 40 13 27 * * | At 13:40, on day 27 of the month | None | 2 | INIT | True | | 3 | snappol3 | / | 45 13 * * 2 | At 13:45, only on Tuesday | None | 2 | INIT | True | +----+----------+------+--------------+----------------------------------+--------+-----------------------+----------------------+---------+
Comments
0 comments
Article is closed for comments.