You can create a backup policy for the resource or the resource group before you use SnapCenter to back up SQL Server resources, or you can create a backup policy at the time you create a resource group or backup a single resource.
For details, see the information about defining a data protection strategy for SQL databases.
For information about how administrators assign resources to users, see the SnapCenter installation information.
The default value is false
A backup policy is a set of rules that governs how you manage and retain backups, and how frequently the resource or resource group is backed up. Additionally, you can specify replication and script settings. Specifying options in a policy saves time when you want to reuse the policy for another resource group.
Most of the fields on these wizard pages are self-explanatory. The following information describes some of the fields for which you might require guidance.
If you want to... | Do this... |
---|---|
Back up the database files and truncate the transaction logs |
|
Back up the database files |
|
Back up the transaction logs | Select Log backup. |
For this field… | Do this… |
---|---|
Backup on preferred backup replica only | Select this option to backup only on preferred backup replica. The preferred backup replica is decided by the backup preferences configured for the AG in the SQL Server. |
Select replicas for backup | Choose the primary AG replica or the secondary AG replica for the backup. |
Backup priority (Minimum and Maximum backup priority) | Specify a minimum backup priority number, and a maximum backup priority number that decide the AG replica for backup. For example, you can have a minimum priority of 10 and a maximum priority of 50. In this case, all the AG replicas with a priority more than 10 and less than 50 are considered for backup. |
You can select one schedule type for a policy.
If you want to… | Do this… |
---|---|
Retain only a specific number of Snapshot copies | Select the Keep log backups applicable to last <number> full backups option, and specify the number of Snapshot copies to be retained. If you near this limit, you might want to delete older copies. |
Retain the backup copies for a specific number of days | Select the Keep log backups applicable to last <number> days of full backups option, and specify the number of days to keep the log backup copies. |
For this field... | Do this... |
---|---|
Total Snapshot copies to keep | If you want to specify the number of Snapshot copies to keep, select Total Snapshot copies to keep. If the number of Snapshot copies exceeds the specified number, the Snapshot copies are deleted with the oldest copies deleted first. Note: The maximum retention value is 1018 for resources on ONTAP 9.4 or later, and 254 for resources on ONTAP 9.3 or earlier. Backups will fail if retention is set to a value higher than what the underlying ONTAP version supports.
Important: 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 copy is the reference Snapshot copy for the SnapVault relationship until a newer Snapshot copy is replicated to the target.
|
Keep Snapshot copies for | If you want specify the number of days for which you want to keep the Snapshot copies before deleting them, select Keep Snapshot copies for . |
For this field... | Do this... |
---|---|
Total Snapshot copies to keep | If you want to specify the number of Snapshot copies to keep, select Total Snapshot copies to keep. If the number of Snapshot copies exceeds the specified number, the Snapshot copies are deleted with the oldest copies deleted first. Important: 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 copy is the reference Snapshot copy for the SnapVault relationship until a newer Snapshot copy is replicated to the target.
|
Keep Snapshot copies for | If you want specify the number of days for which you want to keep the Snapshot copies before deleting them, select Keep Snapshot copies for. |
Set-SmPolicy -PolicyName 'newpol' -PolicyType 'Backup' -PluginPolicyType 'SCSQL' -sqlbackuptype 'FullBackupAndLogBackup' -RetentionSettings @{BackupType='DATA';ScheduleType='Hourly';RetentionCount=2},@{BackupType='LOG_SNAPSHOT';ScheduleType='None';RetentionCount=2},@{BackupType='LOG';ScheduleType='Hourly';RetentionCount=2} -scheduletype 'Hourly'
For this field… | Do this… |
---|---|
Update SnapMirror after creating a local Snapshot copy | Select this option to create mirror copies of backup sets on another volume (SnapMirror). |
Update SnapVault after creating a Snapshot copy | Select this option to perform disk-to-disk backup replication. |
Secondary policy label | Select a Snapshot label. Depending on the Snapshot copy label that you select,ONTAP applies the secondary Snapshot copy retention policy that matches the label.
Note: If you have selected Update SnapMirror after creating a local Snapshot copy, you can optionally specify the secondary policy label. However, if you have selected Update SnapVault after creating a local Snapshot copy, you should specify the secondary policy label.
|
Error retry count | Enter the number of replication attempts that should occur before the process halts. |
For this field... | Do this... |
---|---|
Limit the integrity structure to physical structure of the database (PHYSICAL_ONLY) | Select Limit the integrity structure to physical structure of the database (PHYSICAL_ONLY) to limit the integrity check to the physical structure of the database and to detect torn pages, checksum failures, and common hardware failures that impact the database. |
Supress all information messages (NO INFOMSGS) | Select Supress all information messages (NO_INFOMSGS) to suppress all informational messages. Selected by default. |
Display all reported error messages per object (ALL_ERRORMSGS) | Select Display all reported error messages per object (ALL_ERRORMSGS) to display all the reported errors per object. |
Do not check nonclustered indexes (NOINDEX) | Select Do not check nonclustered indexes (NOINDEX) if you do not want to check nonclustered indexes. The SQL Server database uses Microsoft SQL Server Database Consistency Checker (DBCC) to check the logical and physical integrity of the objects in the database. |
Limit the checks and obtain the looks instead of using an internal database Snapshot copy (TABLOCK) | Select Limit the checks and obtain the looks instead of using an internal database Snapshot copy (TABLOCK) to limit the checks and obtain locks instead of using an internal database Snapshot copy. |