Skip to content

Commit 28752b6

Browse files
authored
Merge pull request #224113 from AbhishekMallick01/Jan-6-2022-QS
QS freshness - article updates
2 parents cace895 + b30789a commit 28752b6

File tree

1 file changed

+37
-31
lines changed

1 file changed

+37
-31
lines changed

articles/backup/backup-azure-backup-sql.md

Lines changed: 37 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
11
---
22
title: Back up SQL Server to Azure as a DPM workload
33
description: An introduction to backing up SQL Server databases by using the Azure Backup service
4-
ms.topic: conceptual
5-
ms.date: 01/30/2019
4+
ms.topic: how-to
5+
ms.date: 01/17/2023
6+
ms.service: backup
7+
author: jyothisuri
8+
ms.author: jsuri
9+
ms.custom: engagement-fy23
610
---
11+
712
# Back up SQL Server to Azure as a DPM workload
813

9-
This article leads you through the configuration steps to back up SQL Server databases by using Azure Backup.
14+
This article describes how to back up and restore the SQL Server databases using Azure Backup.
15+
16+
Azure Backup helps you to back up SQL Server databases to Azure via an Azure account. If you don't have one, you can create a free account in just a few minutes. For more information, see [Create your Azure free account](https://azure.microsoft.com/pricing/free-trial/).
1017

11-
To back up SQL Server databases to Azure, you need an Azure account. If you don't have one, you can create a free account in just a few minutes. For more information, see [Create your Azure free account](https://azure.microsoft.com/pricing/free-trial/).
18+
## SQL Server database backup workflow
1219

1320
To back up a SQL Server database to Azure and to recover it from Azure:
1421

1522
1. Create a backup policy to protect SQL Server databases in Azure.
1623
1. Create on-demand backup copies in Azure.
1724
1. Recover the database from Azure.
1825

19-
>[!NOTE]
20-
>DPM 2019 UR2 supports SQL Server Failover Cluster Instances (FCI) using Cluster Shared Volumes (CSV).<br><br>
21-
>Protection of [SQL Server failover cluster instance with Storage Spaces Direct on Azure](/azure/azure-sql/virtual-machines/windows/failover-cluster-instance-storage-spaces-direct-manually-configure) and [SQL Server failover cluster instance with Azure shared disks](/azure/azure-sql/virtual-machines/windows/failover-cluster-instance-azure-shared-disks-manually-configure) is supported with this feature. The DPM server must be deployed in the Azure Virtual Machine to protect SQL FCI instance deployed on Azure VMs.
26+
## Supported scenarios
27+
28+
- DPM 2019 UR2 supports SQL Server Failover Cluster Instances (FCI) using Cluster Shared Volumes (CSV).<br><br>
29+
- Protection of [SQL Server failover cluster instance with Storage Spaces Direct on Azure](/azure/azure-sql/virtual-machines/windows/failover-cluster-instance-storage-spaces-direct-manually-configure) and [SQL Server failover cluster instance with Azure shared disks](/azure/azure-sql/virtual-machines/windows/failover-cluster-instance-azure-shared-disks-manually-configure) is supported with this feature. The DPM server must be deployed in the Azure Virtual Machine to protect SQL FCI instance deployed on Azure VMs.
2230

2331
## Prerequisites and limitations
2432

25-
* If you have a database with files on a remote file share, protection will fail with Error ID 104. DPM doesn't support protection for SQL Server data on a remote file share.
33+
* If you've a database with files on a remote file share, protection will fail with Error ID 104. DPM doesn't support protection for SQL Server data on a remote file share.
2634
* DPM can't protect databases that are stored on remote SMB shares.
2735
* Ensure that the [availability group replicas are configured as read-only](/sql/database-engine/availability-groups/windows/configure-read-only-access-on-an-availability-replica-sql-server).
2836
* You must explicitly add the system account **NTAuthority\System** to the Sysadmin group on SQL Server.
@@ -45,7 +53,7 @@ To back up a SQL Server database to Azure and to recover it from Azure:
4553
* If the backup fails on the selected node, then the backup operation fails.
4654
* Recovery to the original location isn't supported.
4755
* SQL Server 2014 or above backup issues:
48-
* SQL server 2014 added a new feature to create a [database for on-premises SQL Server in Windows Azure Blob storage](/sql/relational-databases/databases/sql-server-data-files-in-microsoft-azure). DPM can't be used to protect this configuration.
56+
* SQL server 2014 added a new feature to create a [database for on-premises SQL Server in Microsoft Azure Blob storage](/sql/relational-databases/databases/sql-server-data-files-in-microsoft-azure). DPM can't be used to protect this configuration.
4957
* There are some known issues with "Prefer secondary" backup preference for the SQL Always On option. DPM always takes a backup from secondary. If no secondary can be found, then the backup fails.
5058

5159
## Before you start
@@ -64,56 +72,54 @@ To protect SQL Server databases in Azure, first create a backup policy:
6472
1. On the Data Protection Manager (DPM) server, select the **Protection** workspace.
6573
1. Select **New** to create a protection group.
6674

67-
![Create a protection group](./media/backup-azure-backup-sql/protection-group.png)
75+
![Screenshot shows how to start creating a protection group.](./media/backup-azure-backup-sql/protection-group.png)
6876
1. On the start page, review the guidance about creating a protection group. Then select **Next**.
6977
1. Select **Servers**.
7078

71-
![Select the Servers protection group type](./media/backup-azure-backup-sql/pg-servers.png)
79+
![Screenshot shows how to select the Servers protection group type.](./media/backup-azure-backup-sql/pg-servers.png)
7280
1. Expand the SQL Server virtual machine where the databases that you want to back up are located. You see the data sources that can be backed up from that server. Expand **All SQL Shares** and then select the databases that you want to back up. In this example, we select ReportServer$MSDPM2012 and ReportServer$MSDPM2012TempDB. Then select **Next**.
7381

74-
![Select a SQL Server database](./media/backup-azure-backup-sql/pg-databases.png)
82+
![Screenshot shows how to select a SQL Server database.](./media/backup-azure-backup-sql/pg-databases.png)
7583
1. Name the protection group and then select **I want online protection**.
7684

77-
![Choose a data-protection method - short-term disk protection or online Azure protection](./media/backup-azure-backup-sql/pg-name.png)
85+
![Screenshot shows how to choose a data-protection method - short-term disk protection or online Azure protection.](./media/backup-azure-backup-sql/pg-name.png)
7886
1. On the **Specify Short-Term Goals** page, include the necessary inputs to create backup points to the disk.
7987

8088
In this example, **Retention range** is set to *5 days*. The backup **Synchronization frequency** is set to once every *15 minutes*. **Express Full Backup** is set to *8:00 PM*.
8189

82-
![Set up short-term goals for backup protection](./media/backup-azure-backup-sql/pg-shortterm.png)
90+
![Screenshot shows how to set up short-term goals for backup protection.](./media/backup-azure-backup-sql/pg-shortterm.png)
8391

8492
> [!NOTE]
8593
> In this example, a backup point is created at 8:00 PM every day. The data that has been modified since the previous day's 8:00 PM backup point is transferred. This process is called **Express Full Backup**. Although the transaction logs are synchronized every 15 minutes, if we need to recover the database at 9:00 PM, then the point is created by replaying the logs from the last express full backup point, which is 8:00 PM in this example.
86-
>
87-
>
8894
8995
1. Select **Next**. DPM shows the overall storage space available. It also shows the potential disk space utilization.
9096

91-
![Set up disk allocation](./media/backup-azure-backup-sql/pg-storage.png)
97+
![Screenshot shows how to set up disk allocation.](./media/backup-azure-backup-sql/pg-storage.png)
9298

9399
By default, DPM creates one volume per data source (SQL Server database). The volume is used for the initial backup copy. In this configuration, Logical Disk Manager (LDM) limits DPM protection to 300 data sources (SQL Server databases). To work around this limitation, select **Co-locate data in DPM Storage Pool**. If you use this option, DPM uses a single volume for multiple data sources. This setup allows DPM to protect up to 2,000 SQL Server databases.
94100

95101
If you select **Automatically grow the volumes**, then DPM can account for the increased backup volume as the production data grows. If you don't select **Automatically grow the volumes**, then DPM limits the backup storage to the data sources in the protection group.
96102

97103
1. If you're an administrator, you can choose to transfer this initial backup **Automatically over the network** and choose the time of transfer. Or choose to **Manually** transfer the backup. Then select **Next**.
98104

99-
![Choose a replica-creation method](./media/backup-azure-backup-sql/pg-manual.png)
105+
![Screenshot shows how to choose a replica-creation method.](./media/backup-azure-backup-sql/pg-manual.png)
100106

101107
The initial backup copy requires the transfer of the entire data source (SQL Server database). The backup data moves from the production server (SQL Server computer) to the DPM server. If this backup is large, then transferring the data over the network could cause bandwidth congestion. For this reason, administrators can choose to use removable media to transfer the initial backup **Manually**. Or they can transfer the data **Automatically over the network** at a specified time.
102108

103109
After the initial backup finishes, backups continue incrementally on the initial backup copy. Incremental backups tend to be small and are easily transferred across the network.
104110

105111
1. Choose when to run a consistency check. Then select **Next**.
106112

107-
![Choose when to run a consistency check](./media/backup-azure-backup-sql/pg-consistent.png)
113+
![Screenshot shows how to choose the schedule to run a consistency check.](./media/backup-azure-backup-sql/pg-consistent.png)
108114

109115
DPM can run a consistency check on the integrity of the backup point. It calculates the checksum of the backup file on the production server (the SQL Server computer in this example) and the backed-up data for that file in DPM. If the check finds a conflict, then the backed-up file in DPM is assumed to be corrupt. DPM fixes the backed-up data by sending the blocks that correspond to the checksum mismatch. Because the consistency check is a performance-intensive operation, administrators can choose to schedule the consistency check or run it automatically.
110116

111117
1. Select the data sources to protect in Azure. Then select **Next**.
112118

113-
![Select data sources to protect in Azure](./media/backup-azure-backup-sql/pg-sqldatabases.png)
119+
![Screenshot shows how to select data sources to protect in Azure.](./media/backup-azure-backup-sql/pg-sqldatabases.png)
114120
1. If you're an administrator, you can choose backup schedules and retention policies that suit your organization's policies.
115121

116-
![Choose schedules and retention policies](./media/backup-azure-backup-sql/pg-schedule.png)
122+
![Screenshot shows how to choose schedules and retention policies.](./media/backup-azure-backup-sql/pg-schedule.png)
117123

118124
In this example, backups are taken daily at 12:00 PM and 8:00 PM.
119125

@@ -125,7 +131,7 @@ To protect SQL Server databases in Azure, first create a backup policy:
125131
126132
1. Choose the retention policy schedule. For more information about how the retention policy works, see [Use Azure Backup to replace your tape infrastructure](backup-azure-backup-cloud-as-tape.md).
127133

128-
![Choose a retention policy](./media/backup-azure-backup-sql/pg-retentionschedule.png)
134+
![Screenshot shows how to choose a retention policy.](./media/backup-azure-backup-sql/pg-retentionschedule.png)
129135

130136
In this example:
131137

@@ -145,46 +151,46 @@ To protect SQL Server databases in Azure, first create a backup policy:
145151

146152
1. On the **Summary** page, review the policy details. Then select **Create group**. You can select **Close** and watch the job progress in the **Monitoring** workspace.
147153

148-
![The progress of the protection group creation](./media/backup-azure-backup-sql/pg-summary.png)
154+
![Screenshot shows the progress of the protection group creation.](./media/backup-azure-backup-sql/pg-summary.png)
149155

150156
## Create on-demand backup copies of a SQL Server database
151157

152158
A recovery point is created when the first backup occurs. Rather than waiting for the schedule to run, you can manually trigger the creation of a recovery point:
153159

154160
1. In the protection group, make sure the database status is **OK**.
155161

156-
![A protection group, showing the database status](./media/backup-azure-backup-sql/sqlbackup-recoverypoint.png)
162+
![Screenshot shows the database status in a protection group.](./media/backup-azure-backup-sql/sqlbackup-recoverypoint.png)
157163
1. Right-click the database and then select **Create recovery point**.
158164

159-
![Choose to create an online recovery point](./media/backup-azure-backup-sql/sqlbackup-createrp.png)
165+
![Screenshot shows how to choose creating an online recovery point.](./media/backup-azure-backup-sql/sqlbackup-createrp.png)
160166
1. In the drop-down menu, select **Online protection**. Then select **OK** to start the creation of a recovery point in Azure.
161167

162-
![Start creating a recovery point in Azure](./media/backup-azure-backup-sql/sqlbackup-azure.png)
168+
![Screenshot shows how to start creating a recovery point in Azure.](./media/backup-azure-backup-sql/sqlbackup-azure.png)
163169
1. You can view the job progress in the **Monitoring** workspace.
164170

165-
![View job progress in the Monitoring console](./media/backup-azure-backup-sql/sqlbackup-monitoring.png)
171+
![Screenshot shows how to view job progress in the Monitoring console.](./media/backup-azure-backup-sql/sqlbackup-monitoring.png)
166172

167173
## Recover a SQL Server database from Azure
168174

169175
To recover a protected entity, such as a SQL Server database, from Azure:
170176

171177
1. Open the DPM server management console. Go to the **Recovery** workspace to see the servers that DPM backs up. Select the database (in this example, ReportServer$MSDPM2012). Select a **Recovery time** that ends with **Online**.
172178

173-
![Select a recovery point](./media/backup-azure-backup-sql/sqlbackup-restorepoint.png)
179+
![Screenshot shows how to select a recovery point.](./media/backup-azure-backup-sql/sqlbackup-restorepoint.png)
174180
1. Right-click the database name and select **Recover**.
175181

176-
![Recover a database from Azure](./media/backup-azure-backup-sql/sqlbackup-recover.png)
182+
![Screenshot shows how to recover a database from Azure.](./media/backup-azure-backup-sql/sqlbackup-recover.png)
177183
1. DPM shows the details of the recovery point. Select **Next**. To overwrite the database, select the recovery type **Recover to original instance of SQL Server**. Then select **Next**.
178184

179-
![Recover a database to its original location](./media/backup-azure-backup-sql/sqlbackup-recoveroriginal.png)
185+
![Screenshot shows how to recover a database to its original location.](./media/backup-azure-backup-sql/sqlbackup-recoveroriginal.png)
180186

181187
In this example, DPM allows the database to be recovered to another SQL Server instance or to a standalone network folder.
182188
1. On the **Specify Recovery Options** page, you can select the recovery options. For example, you can choose **Network bandwidth usage throttling** to throttle the bandwidth that recovery uses. Then select **Next**.
183189
1. On the **Summary** page, you see the current recovery configuration. Select **Recover**.
184190

185191
The recovery status shows the database being recovered. You can select **Close** to close the wizard and view the progress in the **Monitoring** workspace.
186192

187-
![Start the recovery process](./media/backup-azure-backup-sql/sqlbackup-recoverying.png)
193+
![Screenshot shows how to start the recovery process.](./media/backup-azure-backup-sql/sqlbackup-recoverying.png)
188194

189195
When the recovery is complete, the restored database is consistent with the application.
190196

0 commit comments

Comments
 (0)