snapmirror policy remove-rule
Remove a rule from SnapMirror policy
Availability: This command is available to cluster and Vserver administrators at the admin privilege level.
Description
The snapmirror policy remove-rule
command removes a rule from a SnapMirror policy. On the destination of a SnapMirror relationship with snapmirror policy
of type vault
or mirror-vault
, all snapshots with a SnapMirror label matching the rule being removed are no longer processed by SnapMirror and might need to be deleted manually. A snapmirror policy
of type vault
must have at least one rule if that policy is associated with a SnapMirror relationship. A SnapMirror policy with rules must have at least one rule without a schedule.
Parameters
-vserver <vserver name>
- Vserver Name-
Specifies the Vserver for the SnapMirror policy.
-policy <sm_policy>
- SnapMirror Policy Name-
Specifies the SnapMirror policy name.
-snapmirror-label <text>
- Snapshot Copy Label-
This parameter specifies the rule that is removed from the SnapMirror policy.
The rule for SnapMirror label
sm_created
cannot be removed from SnapMirror policies of typeasync-mirror
ormirror-vault
.
Examples
The following example removes a rule named nightly
from a SnapMirror policy named TieredBackup
on Vserver vs0.example.com
:
vs0.example.com::> snapmirror policy remove-rule -vserver vs0.example.com -policy TieredBackup -snapmirror-label nightly