I found the answer to my own question.
Deploying a Retention Period to SnapMirror Snapshots
To set a retention period for SnapMirror snapshots, follow these steps:
- Modify SnapMirror Policy: You can add a rule to an existing SnapMirror policy to specify the retention period for snapshots replicated to the destination volume. Use the following command:
- snapmirror policy add-rule -vserver <SVM name> -policy <policy name> -snapmirror-label <label name> -keep <number of snapshots> -retention-period [<integer> days|months|years]
For example, to apply a retention period of 6 months to a policy named "lockvault":
snapmirror policy add-rule -vserver vs1 -policy lockvault -snapmirror-label test1 -keep 10 -retention-period "6 months"
- Retention Period Precedence: The specified retention period will take precedence over the keep count. This means that snapshots that have not reached their expiry will be retained even if the keep count is exceeded.
- Default Retention: If no specific retention period is set, the default retention period of the destination volume will apply.
By following these steps, you can effectively manage the retention of SnapMirror snapshots.