This command modifies a protection policy.
Usage
protectionpolicy modify --id ID [--name POLICY_NAME] [--peer-id PEER_ID] [--schedule SCHEDULE] [--snapshot-prefix SNAPSHOT_PREFIX] [--enable-lock]
Required Parameters
| Specifies the protection policy to modify. |
Options
| Modifies the name of the protection policy. |
| Specifies the replication peer if If If Specify the ID as an integer.
|
| Modifies the schedule for snapshots and replication. The schedule includes a period defined as a number of time units, a start date and time, a retention time limit for local snapshots and, for async replication, a retention time for remote snapshots. Specify every <number><time units> start at YYYY-MM-DD HH:MM:SS keep-local <number><time units> keep-remote <number><time units> Where:
|
| Modifies the prefix to use in the names of snapshots. The name of each snapshot will be <prefix>_<timestamp>, where <prefix> is the prefix specified here and <timestamp> is the time the snapshot is created, in the format |
| Makes the policy indestructible. Once this setting is enabled, deleting or modifying the protection policy requires unlocking the cluster's indestructibility mechanism. |
Example
This example changes the snapshot prefix of replication policy 1 to "vast".
vcli: admin> protectionpolicy modify --id 1 --snapshot-prefix vast