You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/manage-backup.md
+34-11Lines changed: 34 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Back up an app
3
3
description: Learn how to restore backups of your apps in Azure App Service or configure custom backups. Customize backups by including the linked database.
4
4
ms.assetid: 6223b6bd-84ec-48df-943f-461d84605694
5
5
ms.topic: article
6
-
ms.date: 06/17/2022
6
+
ms.date: 09/09/2022
7
7
ms.custom: seodec18
8
8
9
9
---
@@ -14,6 +14,13 @@ In [Azure App Service](overview.md), you can easily restore app backups. You can
14
14
15
15
Back up and restore **Standard**, **Premium**, **Isolated**. For more information about scaling your App Service plan to use a higher tier, see [Scale up an app in Azure](manage-scale-up.md).
16
16
17
+
> [!NOTE]
18
+
> Support for custom and automatic backups in **Basic** tier (production slot only) and in App Service environments (ASE) V2 and V3 is in preview. For App Service environments:
19
+
>
20
+
> - Backups can be restored to a target app within the ASE itself, not in another ASE.
21
+
> - Backups can be restored to a target app in another App Service plan in the ASE.
22
+
> - Backups can be restored to target app of the same OS platform as the source app.
23
+
17
24
## Automatic vs custom backups
18
25
19
26
There are two types of backups in App Service. Automatic backups made for your app regularly as long as it's in a supported pricing tier. Custom backups require initial configuration, and can be made on-demand or on a schedule. The following table shows the differences between the two types.
@@ -43,7 +50,7 @@ There are two types of backups in App Service. Automatic backups made for your a
43
50
44
51
:::image type="content" source="./media/manage-backup/open-backups-page.png" alt-text="Screenshot that shows how to open the backups page.":::
45
52
46
-
1. Select the backup to restore by clicking its **Restore** link.
53
+
1. Select the automatic backup or custom backup to restore by clicking its **Restore** link.
47
54
48
55
:::image type="content" source="./media/manage-backup/click-restore-link.png" alt-text="Screenshot that shows how to select the restore link.":::
49
56
@@ -59,11 +66,7 @@ There are two types of backups in App Service. Automatic backups made for your a
59
66
60
67
# [Azure CLI](#tab/cli)
61
68
62
-
<!-- # [Automatic backups](#tab/auto)
63
-
-->
64
-
65
-
> [!NOTE]
66
-
> These CLI steps apply to automatic backups only.
69
+
<!-- # [Automatic backups](#tab/cli/auto) -->
67
70
68
71
1. List the automatic backups for your app. In the command output, copy the `time` property of the backup you want to restore.
69
72
@@ -85,7 +88,7 @@ There are two types of backups in App Service. Automatic backups made for your a
85
88
86
89
To restore app content only and not the app configuration, use the `--restore-content-only` parameter. For more information, see [az webapp config snapshot restore](/cli/azure/webapp/config/snapshot#az-webapp-config-snapshot-restore).
87
90
88
-
<!-- # [Custom backups](#tab/custom)
91
+
<!-- # [Custom backups](#tab/cli/custom)
89
92
90
93
1. List the custom backups for your app and copy the `namePropertiesName` and `storageAccountUrl` properties of the backup you want to restore.
91
94
@@ -148,11 +151,26 @@ There are two types of backups in App Service. Automatic backups made for your a
148
151
149
152
1. Configure the backup schedule as desired and select **Configure**.
150
153
154
+
#### Back up and restore a linked database
155
+
156
+
Custom backups can include linked databases. To make sure your backup includes a linked database, do the following:
157
+
158
+
1. Make sure the linked database is [supported](#automatic-vs-custom-backups).
159
+
1. Create a connection string that points to your database. A database is considered "linked" to your app when there's a valid connection string for it in your app's configuration.
160
+
1. Follow the steps in [Create a custom backup](#create-a-custom-backup) to select the linked database in the **Advanced** tab.
161
+
162
+
To restore a database that's included in a custom backup:
163
+
164
+
1. Follow the steps in [Restore a backup](#restore-a-backup).
165
+
1. In **Advanced options**, select **Include database**.
166
+
167
+
For troubleshooting information, see [Why is my linked database not backed up](#why-is-my-linked-database-not-backed-up).
168
+
151
169
<a name="partialbackups"></a>
152
170
153
171
## Configure partial backups
154
172
155
-
Partial backups are supported for custom backups. Sometimes you don't want to back up everything on your app. Here are a few examples:
173
+
Partial backups are supported for custom backups (not for automatic backups). Sometimes you don't want to back up everything on your app. Here are a few examples:
156
174
157
175
* You [set up weekly backups](#configure-custom-scheduled-backups) of your app that contains static content that never changes, such as old blog posts or images.
158
176
* Your app has over 10 GB of content (that's the max amount you can back up at a time).
@@ -234,7 +252,8 @@ For samples, see:
234
252
- [Why is my linked database not backed up?](#why-is-my-linked-database-not-backed-up)
235
253
- [What happens if the backup size exceeds the allowable maximum?](#what-happens-if-the-backup-size-exceeds-the-allowable-maximum)
236
254
- [Can I use a storage account that has security features enabled?](#can-i-use-a-storage-account-that-has-security-features-enabled)
237
-
- [## How do I restore to an app in a different subscription?](#how-do-i-restore-to-an-app-in-a-different-subscription)
255
+
- [How do I restore to an app in a different subscription?](#how-do-i-restore-to-an-app-in-a-different-subscription)
256
+
- [How do I restore to an app in the same subscription but in a different region?](#how-do-i-restore-to-an-app-in-the-same-subscription-but-in-a-different-region)
238
257
239
258
#### Are the backups incremental updates or complete backups?
240
259
@@ -252,7 +271,7 @@ The following table shows which content is backed up in an automatic backup:
252
271
|-|-|
253
272
| **Windows apps**: All app content under `%HOME%` directory<br/>**Linux apps**: All app content under `/home` directory<br/>**Custom containers (Windows and Linux)**: Content in [persistent storage](configure-custom-container.md?pivots=container-linux#use-persistent-shared-storage)| Yes |
254
273
| Content of the [run-from-ZIP package](deploy-run-package.md)| No |
255
-
| Content from any [custom mounted Azure storage](configure-connect-to-azure-storage.md?pivots=container-windows)| No |
274
+
| Content from any [custom mounted Azure storage](configure-connect-to-azure-storage.md?pivots=container-windows), such as from an Azure Files share. | No |
256
275
257
276
The following table shows which app configuration is restored when you choose to restore app configuration:
258
277
@@ -307,6 +326,10 @@ The following security features in Azure storage aren't supported for custom bac
307
326
1. In Name, select **Browse** and select the downloaded ZIP file.
308
327
1. Configure the rest of the sections like in [Restore a backup](#restore-a-backup).
309
328
329
+
#### How do I restore to an app in the same subscription but in a different region?
330
+
331
+
The steps are the same as in [How do I restore to an app in a different subscription](#how-do-i-restore-to-an-app-in-a-different-subscription).
0 commit comments