Example backup scenarios
The following examples describe some typical backup scenarios in a cluster environment.
- Scenario: You have a cluster configuration consisting of two SQL Server nodes. The cluster is configured in an AlwaysOn Availability group, where one node is the primary replica and the other, the secondary replica. You want to do a full backup of the secondary replica and also want to back up the transaction log using MMC.
-
To do a full backup with transaction log, you can run a legacy backup.
- Scenario: Your AAG environment is configured to run VSS backups. You want to run a scheduled VSS snapshot backup of your secondary replica.
- When you configure your environment to distribute a VSS backup across AAG replicas, you can run
only full VSS backups on the primary availability replica. To back up other replicas using VSS, you
must choose copy-only full backups.
- In the tree, open the Protect and Recover view and select the SQL Server instance which you want to back up.
- Verify that your preferred replica is your secondary replica. Right-click selected SQL Server instance. Select Properties and choose AlwaysOn Preferences. Select Prefer secondary replica
- Install IBM Storage Protect Snapshot for SQL Server on all replicas that are eligible to run a backup.
- Create a command script to run a .CMD file with a separate
backup command per database similar to the following
sample
tdpsqlc backup db1 full /alwaysonpriority /backupmethod=VSS backupdest=TSM tdpsqlc backup db2 full /alwaysonpriority /backupmethod=VSS backupdest=TSM tdpsqlc backup db3 full /alwaysonpriority /backupmethod=VSS backupdest=TSM - Associate each IBM Storage Protect Snapshot for SQL Server node with the defined schedule.
- Run backups on the SQL node according to defined priorities for each database.