--- title: "protectionpolicy modify" slug: "protectionpolicy-modify" tags: ["5.4"] updated: 2026-10-28T01:53:11Z published: 2026-10-28T01:53:11Z canonical: "docs.vastdata.com/protectionpolicy-modify" --- > ## 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 modify This command modifies a protection policy. ##### Usage ```plaintext protectionpolicy modify --id ID                       [--name POLICY_NAME]                       [--peer-id PEER_ID]                       [--schedule SCHEDULE]                       [--snapshot-prefix SNAPSHOT_PREFIX]                       [--enable-lock] ``` ##### Required Parameters | `--id ID` | Specifies the protection policy to modify. | | --- | --- | ##### Options | `--name POLICY_NAME` | Modifies the name of the protection policy. | | --- | --- | | `--peer-id PEER_ID` | Specifies the replication peer if `--clone-type` is either `CLOUD_REPLICATION` or `NATIVE_REPLICATION`. If `--clone-type` is `CLOUD_REPLICATION`, specify the ID of an S3 replication peer. If `--clone-type` is `NATIVE_REPLICATION`, specify the ID of an async replication peer. Specify the ID as an integer. > [!NOTE] > Note > > You cannot add an async replication peer to an existing local snapshot policy. | | `--schedule SCHEDULE` | 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 `SCHEDULE` in the following format: ```plaintext every