This command creates a protection policy.
Usage
protectionpolicy create --clone-type CLOUD_REPLICATION|LOCAL|NATIVE_REPLICATION --name POLICY_NAME --schedule SCHEDULE --snapshot-prefix PREFIX [--peer-id PEER_ID] [--enable-lock]
Required Parameters
| Specifies what type of protection to configure on the path:
|
| Specifies a name for the protection policy. |
| Defines 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:
Example: |
| Specifies 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. |
Options
| Specifies the replication peer if If If Specify the ID as an integer. |
Example
vcli: admin> protectionpolicy create --schedule every 90m start at 2025-07-27 20:10:35 keep-local 10h keep-remote 10d --prefix Snapdir1 --clone-type NATIVE_REPLICATION --name protect-pol1 --peer-id 1