Create backup policies for Unix file systems
Before you use SnapCenter to back up Unix file systems, you must create a backup policy for the resource or the resource group that you want to back up. A backup policy is a set of rules that governs how you manage, schedule, and retain backups. You can also specify the replication, script, and backup type settings. Creating a policy saves time when you want to reuse the policy on another resource or resource group.
-
You must have prepared for data protection by completing tasks such as installing SnapCenter, adding hosts, discovering the file systems, and creating storage system connections.
-
If you are replicating Snapshots to a mirror or vault secondary storage, the SnapCenter administrator must have assigned the SVMs to you for both the source and destination volumes.
-
Review the SnapMirror active sync specific prerequisites and limitations. For information, refer Object limits for SnapMirror active sync.
-
SnapLock
-
If 'Retain the backup copies for a specific number of days' option is selected, then the SnapLock retention period must be lesser than or equal to the mentioned retention days.
Specifying a Snapshot locking period prevents deletion of the Snapshots until the retention period expires. This could lead to retaining a larger number of Snapshots than the count specified in the policy.
For ONTAP 9.12.1 and below version, the clones created from the SnapLock Vault Snapshots as part of restore will inherit the SnapLock Vault expiry time. Storage admin should manually cleanup the clones post the SnapLock expiry time.
-
-
In the left navigation pane, click Settings.
-
In the Settings page, click Policies.
-
Select Unix File Systems from the drop-down list.
-
Click New.
-
In the Name page, enter the policy name and details.
-
In the Backup and Replication page, perform the following actions:
-
Specify the backup settings.
-
Specify the schedule frequency by selecting On demand, Hourly, Daily, Weekly, or Monthly.
-
In the Select secondary replication options section, select one or both of the following secondary replication options:
For this field… Do this… Update SnapMirror after creating a local Snapshot copy
Select this field to create mirror copies of the backup sets on another volume (SnapMirror replication).
This option should be enabled for SnapMirror active sync.
Update SnapVault after creating a local Snapshot copy
Select this option to perform disk-to-disk backup replication (SnapVault backups).
Error retry count
Enter the maximum number of replication attempts that can be allowed before the operation stops.
-
-
In the Retention page, specify the retention settings for the backup type and the schedule type selected in the Backup and Replication page:
If you want to…
Then…
Keep a certain number of Snapshots
Select Copies to keep, and then specify the number of Snapshots that you want to keep.
If the number of Snapshots exceeds the specified number, the Snapshots are deleted with the oldest copies deleted first.
The maximum retention value is 1018. Backups will fail if retention is set to a value higher than what the underlying ONTAP version supports. You must set the retention count to 2 or higher if you plan to enable SnapVault replication. If you set the retention count to 1, the retention operation might fail because the first Snapshot is the reference Snapshot for the SnapVault relationship until a newer Snapshot is replicated to the target. Keep the Snapshots for a certain number of days
Select Retain copies for, and then specify the number of days for which you want to keep the Snapshots before deleting them.
Snapshot copy locking period
Select Snapshot copy locking period and specify the duration in days, months, or years.
Snaplock retention period should be less than 100 years.
-
Select policy label.
You can assign SnapMirror labels to primary snapshots for remote replication, allowing the primary snapshots to offload the snapshot replication operation from SnapCenter to ONTAP secondary systems. This can be done without enabling SnapMirror or SnapVault option in the policy page. -
In the Script page, enter the path and the arguments of the prescript or postscript that you want to run before or after the backup operation, respectively.
You should check if the commands exist in the command list available on the plug-in host from the _ /opt/NetApp/snapcenter/scc/etc/allowed_commands.config_ path. You can also specify the script timeout value. The default value is 60 seconds.
-
Review the summary, and then click Finish.