vserver consistency-group snapshot modify-snaplock-expiry-time
Modify SnapLock expiry time of a consistency group snapshot
Availability: This command is available to cluster and Vserver administrators at the admin privilege level.
Description
The vserver consistency-group snapshot modify-snaplock-expiry-time
command modifies a snapshot of a specified consistency group.
Parameters
-vserver <Vserver Name>
- Vserver Name-
This parameter specifies the Vserver that contains the consistency group on which the snapshot is to be modified.
-consistency-group <text>
- Consistency Group Name-
This parameter specifies the consistency group where a snapshot is to be modified.
-snapshot <snapshot name>
- Snapshot Name-
This parameter specifies the name of the snapshot that is 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::> vserver consistency-group snapshot modify-snaplock-expiry-time -vserver vs1 -consistency-group dst -snapshot s1 -expiry-time "03/03/2020 00:00:00" cluster1::>
The following example extends the retention period of a snapshot snap2
to infinite
:
cluster1::> vserver consistency-group snapshot modify-snaplock-expiry-time -vserver vs1 -consistency-group dst -snapshot s2 -expiry-time infinite cluster1::>
cluster1::> vserver consistency-group snapshot show -vserver vs1 -fields snaplock-expiry-time (vserver consistency-group snapshot show) vserver consistency-group parent-consistency-group snapshot snaplock-expiry-time ------- ----------------- ------------------------ -------- ------------------------- vs1 dst - s1 3/3/2020 00:00:00 +05:30 vs1 dst - s2 infinite