Skip to main content

volume snapshot modify-snaplock-expiry-time

Contributors
Suggest changes

Modify expiry time of a SnapLock Snapshot copy

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

Description

The volume snapshot modify-snapshot-expiry-time extends snaplock expiry time of an existing Snapshot copy.

Parameters

-vserver <vserver name> - Vserver

This specifies the Vserver that contains the volume on which the Snapshot copy is located.

-volume <volume name> - Volume

This specifies the volume where a Snapshot copy is to be located.

-snapshot <text> - Snapshot

This specifies the name of the Snapshot copy locked by SnapLock whose snaplock expiry time needs to be modified.

[-expiry-time {MM/DD/YYYY HH:MM:SS [{+|-}hh:mm] | infinite}] - SnapLock Expiry Time

Specifies the new snaplock expiry that is applied to Snapshot copy locked by SnapLock.

If this option value is infinite , then a retention period that never expires is applied to the Snapshot copy.

Examples

The following example extends the retention period of a Snapshot copy snap1 to "03/03/2020 00:00:00" :

cluster1::> volume snapshot modify-snaplock-expiry-time -vserver vs1 -volume vol1 -snapshot snap1 -expiry-time "03/03/2020 00:00:00"
        cluster1::>

The following example extends the retention period of a Snapshot copy snap2 to infinite :

cluster1::>  volume snapshot modify-snaplock-expiry-time -vserver vs1 -volume vol1 -snapshot snap2 -expiry-time infinite
         cluster1::>
cluster1::> volume snapshot show -vserver vs1 -fields snaplock-expiry-time
         vserver volume snapshot snaplock-expiry-time
         ------- ------ -------- ------------------------
         vs1     vol1   snap1    3/3/2020 00:00:00 +05:30
         vs1     vol1   snap2    infinite