volume snapshot modify-snaplock-expiry-time
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.
Parameters
-vserver <vserver name>- Vserver-
This specifies the Vserver that contains the volume on which the snapshot is located.
-volume <volume name>- Volume-
This specifies the volume where a snapshot is to be located.
-snapshot <text>- Snapshot-
This specifies the name of the snapshot 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 locked by SnapLock.
If this option value is
infinite, then a retention period that never expires is applied to the snapshot.
Examples
The following example extends the retention period of a snapshot 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 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