Skip to main content

volume snapshot policy modify-schedule

Contributors
Suggest changes

Modify a schedule within snapshot policy

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The volume snapshot policy modify-schedule command modifies the maximum number of snapshots that can be taken by a snapshot policy's schedule.

Parameters

-vserver <vserver name> - Vserver Name

This specifies the Vserver on which a snapshot policy schedule is to be modified.

-policy <snapshot policy> - Snapshot Policy Name

This specifies the snapshot policy whose schedule is to be modified.

-schedule <text> - Schedule Name

This specifies the schedule that is to be modified.

[-newcount <integer>] - Maximum Snapshot Copies for Schedule

This specifies the maximum number of snapshots that can be taken by the specified schedule. The total count of all the snapshots to be retained for the policy cannot be more than 1023.

[-newsnapmirror-label <text>] - Label for SnapMirror Operations

This specifies the SnapMirror Label identified with a snapshot when it is created for the specified schedule. The SnapMirror Label is used by the Vaulting subsystem when you back up snapshots to the Vault Destination. If an empty label ("") is specified, the existing label will be deleted.

[-newretention-period <snaplock minmax period>] - SnapLock Retention Period

This specifies the retention period for snapshots created by the schedule.

Examples

The following example changes the maximum number of snapshots from five to four for a schedule named midnight on a snapshot policy named snappolicy_nightly on Vserver vs0:

cluster1::> volume snapshot policy modify-schedule -vserver vs0 -policy snappolicy_nightly -schedule midnight -newcount 4 -newretention-period "7 days"