Skip to content

Commit e01e319

Browse files
authored
Merge pull request #184335 from v-amallick/Jan-6-2022-BkpCtr-SQL
SQL - Backup center entry point updates
2 parents f710103 + 94e9ee5 commit e01e319

File tree

1 file changed

+63
-63
lines changed

1 file changed

+63
-63
lines changed

articles/backup/tutorial-sql-backup.md

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
title: Tutorial - Back up SQL Server databases to Azure
33
description: In this tutorial, learn how to back up a SQL Server database running on an Azure VM to an Azure Backup Recovery Services vault.
44
ms.topic: tutorial
5-
ms.date: 06/18/2019
5+
ms.date: 01/07/2022
6+
author: v-amallick
7+
ms.service: backup
8+
ms.author: v-amallick
69
---
710
# Back up a SQL Server database in an Azure VM
811

@@ -66,33 +69,27 @@ We do have aliasing for Azure table unsupported characters, but we recommend avo
6669

6770
Discover databases running on the VM.
6871

69-
1. In the [Azure portal](https://portal.azure.com), open the Recovery Services vault you use to back up the database.
72+
1. In the [Azure portal](https://portal.azure.com), go to **Backup center** and click **+Backup**.
7073

71-
2. On the **Recovery Services vault** dashboard, select **Backup**.
74+
1. Select **SQL in Azure VM** as the datasource type, select the Recovery Services vault you have created, and then click **Continue**.
7275

73-
![Select Backup to open the Backup Goal menu](./media/backup-azure-sql-database/open-backup-menu.png)
76+
:::image type="content" source="./media/backup-azure-sql-database/configure-sql-backup.png" alt-text="Screenshot showing to select Backup to view the databases running in a VM.":::
7477

75-
3. In **Backup Goal**, set **Where is your workload running** to **Azure** (the default).
76-
77-
4. In **What do you want to backup**, select **SQL Server in Azure VM**.
78-
79-
![Select SQL Server in Azure VM for the backup](./media/backup-azure-sql-database/choose-sql-database-backup-goal.png)
80-
81-
5. In **Backup Goal** > **Discover DBs in VMs**, select **Start Discovery** to search for unprotected VMs in the subscription. It can take a while, depending on the number of unprotected virtual machines in the subscription.
78+
1. In **Backup Goal** > **Discover DBs in VMs**, select **Start Discovery** to search for unprotected VMs in the subscription. It can take a while, depending on the number of unprotected virtual machines in the subscription.
8279

8380
* Unprotected VMs should appear in the list after discovery, listed by name and resource group.
8481
* If a VM isn't listed as you expect, check whether it's already backed up in a vault.
8582
* Multiple VMs can have the same name but they'll belong to different resource groups.
8683

8784
![Backup is pending during search for DBs in VMs](./media/backup-azure-sql-database/discovering-sql-databases.png)
8885

89-
6. In the VM list, select the VM running the SQL Server database > **Discover DBs**.
86+
1. In the VM list, select the VM running the SQL Server database > **Discover DBs**.
9087

91-
7. Track database discovery in the **Notifications** area. It can take a while for the job to complete, depending on how many databases are on the VM. When the selected databases are discovered, a success message appears.
88+
1. Track database discovery in the **Notifications** area. It can take a while for the job to complete, depending on how many databases are on the VM. When the selected databases are discovered, a success message appears.
9289

9390
![Deployment success message](./media/backup-azure-sql-database/notifications-db-discovered.png)
9491

95-
8. Azure Backup discovers all SQL Server databases on the VM. During discovery, the following occurs in the background:
92+
1. Azure Backup discovers all SQL Server databases on the VM. During discovery, the following occurs in the background:
9693

9794
* Azure Backup register the VM with the vault for workload backup. All databases on the registered VM can only be backed up to this vault.
9895
* Azure Backup installs the **AzureBackupWindowsWorkload** extension on the VM. No agent is installed on the SQL database.
@@ -107,41 +104,41 @@ Discover databases running on the VM.
107104

108105
Configure backup as follows:
109106

110-
1. In **Backup Goal**, select **Configure Backup**.
107+
1. In **Backup Goal** > **Step 2: Configure Backup**, select **Configure Backup**.
111108

112109
![Select Configure Backup](./media/backup-azure-sql-database/backup-goal-configure-backup.png)
113110

114-
2. Select **Configure Backup**, the **Select items to backup** pane appears. This lists all the registered availability groups and standalone SQL Servers. Expand the chevron to the left of the row to see all the unprotected databases in that instance or Always on AG.
111+
1. Select **Add Resources** to see all the registered availability groups and standalone SQL Server instances.
115112

116-
![Displaying all SQL Server instances with standalone databases](./media/backup-azure-sql-database/list-of-sql-databases.png)
113+
![Select add resources](./media/backup-azure-sql-database/add-resources.png)
117114

118-
3. Select all the databases you want to protect > **OK**.
115+
1. In the **Select items to backup** screen, select the arrow to the left of a row to expand the list of all the unprotected databases in that instance or Always On availability group.
116+
117+
![Select items to backup](./media/backup-azure-sql-database/select-items-to-backup.png)
118+
119+
1. Choose all the databases you want to protect, and then select **OK**.
119120

120121
![Protecting the database](./media/backup-azure-sql-database/select-database-to-protect.png)
121122

122123
To optimize backup loads, Azure Backup sets a maximum number of databases in one backup job to 50.
123124

124-
* Alternatively, you can enable auto-protection on the entire instance or Always On Availability group by selecting the **ON** option in the corresponding dropdown in the **AUTOPROTECT** column. The auto-protection feature not only enables protection on all the existing databases in one go but also automatically protects any new databases that will be added to that instance or the availability group in future.
125-
126-
4. Select **OK** to open the **Backup policy** pane.
125+
* To protect more than 50 databases, configure multiple backups.
126+
* To [enable](/azure/backup/backup-sql-server-database-azure-vms#enable-auto-protection) the entire instance or the Always On availability group, in the **AUTOPROTECT** drop-down list, select **ON**, and then select **OK**.
127127

128-
![Enable auto-protection on the Always On availability group](./media/backup-azure-sql-database/enable-auto-protection.png)
128+
> [!NOTE]
129+
> The [auto-protection](/azure/backup/backup-sql-server-database-azure-vms#enable-auto-protection) feature not only enables protection on all the existing databases at once, but also automatically protects any new databases added to that instance or the availability group.
129130
130-
5. In **Choose backup policy**, select a policy, then select **OK**.
131+
1. Define the **Backup policy**. You can do one of the following:
131132

132-
* Select the default policy: HourlyLogBackup.
133+
* Select the default policy as *HourlyLogBackup*.
133134
* Choose an existing backup policy previously created for SQL.
134135
* Define a new policy based on your RPO and retention range.
135136

136137
![Select Backup policy](./media/backup-azure-sql-database/select-backup-policy.png)
137138

138-
6. On **Backup** menu, select **Enable backup**.
139+
1. Select **Enable Backup** to submit the **Configure Protection** operation and track the configuration progress in the **Notifications** area of the portal.
139140

140-
![Enable the chosen backup policy](./media/backup-azure-sql-database/enable-backup-button.png)
141-
142-
7. Track the configuration progress in the **Notifications** area of the portal.
143-
144-
![Notification area](./media/backup-azure-sql-database/notifications-area.png)
141+
![Track configuration progress](./media/backup-azure-sql-database/track-configuration-progress.png)
145142

146143
### Create a backup policy
147144

@@ -151,59 +148,62 @@ A backup policy defines when backups are taken and how long they're retained.
151148
* Multiple vaults can use the same backup policy, but you must apply the backup policy to each vault.
152149
* When you create a backup policy, a daily full backup is the default.
153150
* You can add a differential backup, but only if you configure full backups to occur weekly.
154-
* [Learn about](backup-architecture.md#sql-server-backup-types) different types of backup policies.
151+
* Learn about [different types of backup policies](backup-architecture.md#sql-server-backup-types).
155152

156153
To create a backup policy:
157154

158-
1. In the vault, select **Backup policies** > **Add**.
159-
2. In **Add** menu, select **SQL Server in Azure VM** to define the policy type.
155+
1. Go to **Backup center** and click **+Policy**.
156+
157+
1. Select **SQL Server in Azure VM** as the datasource type, select the vault under which the policy should be created, and then click **Continue**.
158+
159+
:::image type="content" source="./media/backup-azure-sql-database/create-sql-policy.png" alt-text="Screenshot showing to choose a policy type for the new backup policy.":::
160+
161+
1. In **Policy name**, enter a name for the new policy.
160162

161-
![Choose a policy type for the new backup policy](./media/backup-azure-sql-database/policy-type-details.png)
163+
:::image type="content" source="./media/backup-azure-sql-database/sql-policy-summary.png" alt-text="Screenshot to showing to enter policy name.":::
162164

163-
3. In **Policy name**, enter a name for the new policy.
164-
4. In **Full Backup policy**, select a **Backup Frequency**, choose **Daily** or **Weekly**.
165+
1. Select the **Edit** link corresponding, to **Full backup**, to modify the default settings.
165166

166-
* For **Daily**, select the hour and time zone when the backup job begins.
167-
* You must run a full backup as you can't turn off the **Full Backup** option.
168-
* Select **Full Backup** to view the policy.
169-
* You can't create differential backups for daily full backups.
170-
* For **Weekly**, select the day of the week, hour, and time zone when the backup job begins.
167+
* Select a **Backup Frequency**. Choose either **Daily** or **Weekly**.
168+
* For **Daily**, select the hour and time zone when the backup job begins. You can't create differential backups for daily full backups.
171169

172-
![New backup policy fields](./media/backup-azure-sql-database/full-backup-policy.png)
170+
:::image type="content" source="./media/backup-azure-sql-database/sql-backup-schedule-inline.png" alt-text="Screenshot showing new backup policy fields." lightbox="./media/backup-azure-sql-database/sql-backup-schedule-expanded.png":::
173171

174-
5. For **Retention Range**, by default all options are selected. Clear any undesired retention range limits you don't want to use, and set the intervals to use.
172+
1. In **RETENTION RANGE**, all options are selected by default. Clear any retention range limits that you don't want, and then set the intervals to use.
175173

176-
* Minimum retention period for any type of backup (full/differential/log) is seven days.
174+
* Minimum retention period for any type of backup (full, differential, and log) is seven days.
177175
* Recovery points are tagged for retention based on their retention range. For example, if you select a daily full backup, only one full backup is triggered each day.
178-
* The backup for a specific day is tagged and retained based on the weekly retention range and your weekly retention setting.
179-
* The monthly and yearly retention ranges behave in a similar way.
176+
* The backup for a specific day is tagged and retained based on the weekly retention range and the weekly retention setting.
177+
* Monthly and yearly retention ranges behave in a similar way.
180178

181-
![Retention range interval settings](./media/backup-azure-sql-database/retention-range-interval.png)
179+
:::image type="content" source="./media/backup-azure-sql-database/sql-retention-range-inline.png" alt-text="Screenshot showing the retention range interval settings." lightbox="./media/backup-azure-sql-database/sql-retention-range-expanded.png":::
182180

183-
6. In the **Full Backup policy** menu, select **OK** to accept the settings.
184-
7. To add a differential backup policy, select **Differential Backup**.
181+
1. Select **OK** to accept the setting for full backups.
182+
1. Select the **Edit** link corresponding to **Differential backup**, to modify the default settings.
185183

186-
![Retention range interval settings](./media/backup-azure-sql-database/retention-range-interval.png)
187-
![Open the differential backup policy menu](./media/backup-azure-sql-database/backup-policy-menu-choices.png)
184+
* In **Differential Backup policy**, select **Enable** to open the frequency and retention controls.
185+
* You can trigger only one differential backup per day. A differential backup can't be triggered on the same day as a full backup.
186+
* Differential backups can be retained for a maximum of 180 days.
187+
* The differential backup retention period can't be greater than that of the full backup (as the differential backups are dependent on the full backups for recovery).
188+
* Differential Backup isn't supported for the master database.
188189

189-
8. In **Differential Backup policy**, select **Enable** to open the frequency and retention controls.
190+
:::image type="content" source="./media/backup-azure-sql-database/sql-differential-backup-inline.png" alt-text="Screenshot showing the differential Backup policy." lightbox="./media/backup-azure-sql-database/sql-differential-backup-expanded.png":::
190191

191-
* At most, you can trigger one differential backup per day.
192-
* Differential backups can be retained for a maximum of 180 days. If you need longer retention, you must use full backups.
192+
1. Select the **Edit** link corresponding to **Log backup**, to modify the default settings
193193

194-
9. Select **OK** to save the policy and return to the main **Backup policy** menu.
194+
* In **Log Backup**, select **Enable**, and then set the frequency and retention controls.
195+
* Log backups can occur as often as every 15 minutes and can be retained for up to 35 days.
196+
* If the database is in the [simple recovery model](/sql/relational-databases/backup-restore/recovery-models-sql-server), the log backup schedule for that database will be paused and so no log backups will be triggered.
197+
* If the recovery model of the database changes from **Full** to **Simple**, log backups will be paused within 24 hours of the change in the recovery model. Similarly, if the recovery model changes from **Simple**, implying log backups can now be supported for the database, the log backups schedules will be enabled within 24 hours of the change in recovery model.
195198

196-
10. To add a transactional log backup policy, select **Log Backup**.
197-
11. In **Log Backup**, select **Enable**, and then set the frequency and retention controls. Log backups can occur as often as every 15 minutes, and can be retained for up to 35 days.
198-
12. Select **OK** to save the policy and return to the main **Backup policy** menu.
199+
:::image type="content" source="./media/backup-azure-sql-database/sql-log-backup-inline.png" alt-text="Screenshot showing the log Backup policy." lightbox="./media/backup-azure-sql-database/sql-log-backup-expanded.png":::
199200

200-
![Edit the log backup policy](./media/backup-azure-sql-database/log-backup-policy-editor.png)
201+
1. On the **Backup policy** menu, choose whether to enable **SQL Backup Compression** or not. This option is disabled by default. If enabled, SQL Server will send a compressed backup stream to the VDI. Azure Backup overrides instance level defaults with COMPRESSION / NO_COMPRESSION clause depending on the value of this control.
201202

202-
13. On the **Backup policy** menu, choose whether to enable **SQL Backup Compression**.
203-
* Compression is disabled by default.
204-
* On the back end, Azure Backup uses SQL native backup compression.
203+
1. After you complete the edits to the backup policy, select **OK**.
205204

206-
14. After you complete the edits to the backup policy, select **OK**.
205+
> [!NOTE]
206+
> Each log backup is chained to the previous full backup to form a recovery chain. This full backup will be retained until the retention of the last log backup has expired. This might mean that the full backup is retained for an extra period to make sure all the logs can be recovered. Let's assume you have a weekly full backup, daily differential and 2 hour logs. All of them are retained for 30 days. But, the weekly full can be really cleaned up/deleted only after the next full backup is available, that is, after 30 + 7 days. For example, a weekly full backup happens on Nov 16th. According to the retention policy, it should be retained until Dec 16th. The last log backup for this full happens before the next scheduled full, on Nov 22nd. Until this log is available until Dec 22nd, the Nov 16th full can't be deleted. So, the Nov 16th full is retained until Dec 22nd.
207207
208208
## Run an on-demand backup
209209

0 commit comments

Comments
 (0)