--- title: "protectionpolicy create" slug: "protectionpolicy-create" tags: ["5.4"] updated: 2026-10-28T01:53:11Z published: 2026-10-28T01:53:11Z canonical: "docs.vastdata.com/protectionpolicy-create" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.vastdata.com/llms.txt > Use this file to discover all available pages before exploring further. # protectionpolicy create This command creates a protection policy. ## Usage ```plaintext 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 | `--clone-type CLOUD_REPLICATION\|NATIVE_REPLICATION\|LOCAL` | Specifies what type of protection to configure on the path: - `CLOUD_REPLICATION`. Take local snapshots and replicate them to an S3 replication peer. - `NATIVE_REPLICATION`. Take local snapshots and replicate them to an async replication peer. - `LOCAL`. Take snapshots on the local cluster only. | | --- | --- | | `--name POLICY_NAME` | Specifies a name for the protection policy. | | `--schedule SCHEDULE` | 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 `SCHEDULE` in the following format: ```plaintext every