Skip to content

Commit db2bd80

Browse files
Merge pull request #89311 from danimir/patch-1
Updating geo-restore section for accuracy
2 parents f262e8a + e38812b commit db2bd80

File tree

1 file changed

+47
-12
lines changed

1 file changed

+47
-12
lines changed

articles/sql-database/sql-database-recovery-using-backups.md

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ For a single subscription, there are limitations on number of concurrent restore
6060
Currently there isn't a built-in method to restore the entire server. The [Azure SQL Database: Full Server Recovery](https://gallery.technet.microsoft.com/Azure-SQL-Database-Full-82941666) script is an example of how you can accomplish this task.
6161

6262
> [!IMPORTANT]
63-
> To recover using automated backups, you must be a member of the SQL Server Contributor role in the subscription or be the subscription owner - see [RBAC: Built-in roles](../role-based-access-control/built-in-roles.md). You can recover using the Azure portal, PowerShell, or the REST API. You cannot use Transact-SQL.
63+
> To recover using automated backups, you must be a member of the SQL Server Contributor role in the subscription or be the subscription owner - see [RBAC: Built-in roles](../role-based-access-control/built-in-roles.md). You can recover using Azure portal, PowerShell, or the REST API. You cannot use Transact-SQL.
6464
6565
## Point-in-time restore
6666

67-
You can restore a standalone, pooled, or instance database to an earlier point in time using the Azure portal, [PowerShell](https://docs.microsoft.com/powershell/module/az.sql/restore-azsqldatabase), or the [REST API](https://docs.microsoft.com/rest/api/sql/databases). The request can specify any service tier or compute size for the restored database. Ensure you have sufficient resources on the server to which you are restoring the database. Once complete, a new database will be created on the same server as the original database. The restored database will be charged at normal rates based on its service tier and compute size. You do not incur charges until the database restore is complete.
67+
You can restore a standalone, pooled, or instance database to an earlier point in time using Azure portal, [PowerShell](https://docs.microsoft.com/powershell/module/az.sql/restore-azsqldatabase), or the [REST API](https://docs.microsoft.com/rest/api/sql/databases). The request can specify any service tier or compute size for the restored database. Ensure you have sufficient resources on the server to which you are restoring the database. Once complete, a new database will be created on the same server as the original database. The restored database will be charged at normal rates based on its service tier and compute size. You do not incur charges until the database restore is complete.
6868

6969
You generally restore a database to an earlier point for recovery purposes. You can treat the restored database as a replacement for the original database or use it as a source data to update the original database.
7070

@@ -76,7 +76,7 @@ You generally restore a database to an earlier point for recovery purposes. You
7676

7777
If you plan to retrieve data from the restored database to recover from a user or application error, you need to write and execute a data recovery script that extracts data from the restored database and applies to the original database. Although the restore operation may take a long time to complete, the restoring database is visible in the database list throughout the restore process. If you delete the database during the restore, the restore operation will be canceled and you will not be charged for the database that did not complete the restore.
7878

79-
To recover a single, pooled, or instance database to a point in time using the Azure portal, open the page for your database and click **Restore** on the toolbar.
79+
To recover a single, pooled, or instance database to a point in time using Azure portal, open the page for your database and click **Restore** on the toolbar.
8080

8181
![point-in-time-restore](./media/sql-database-recovery-using-backups/point-in-time-recovery.png)
8282

@@ -85,7 +85,7 @@ To recover a single, pooled, or instance database to a point in time using the A
8585
8686
## Deleted database restore
8787

88-
You can restore a deleted database to the deletion time or an earlier point in time on the same SQL Database server using the Azure portal, [PowerShell](https://docs.microsoft.com/powershell/module/az.sql/restore-azsqldatabase), or the [REST (createMode=Restore)](https://docs.microsoft.com/rest/api/sql/databases/createorupdate). You can [restore deleted database on Managed Instance using PowerShell](https://blogs.msdn.microsoft.com/sqlserverstorageengine/20../../recreate-dropped-database-on-azure-sql-managed-instance).
88+
You can restore a deleted database to the deletion time or an earlier point in time on the same SQL Database server using Azure portal, [PowerShell](https://docs.microsoft.com/powershell/module/az.sql/restore-azsqldatabase), or the [REST (createMode=Restore)](https://docs.microsoft.com/rest/api/sql/databases/createorupdate). You can [restore deleted database on Managed Instance using PowerShell](https://blogs.msdn.microsoft.com/sqlserverstorageengine/20../../recreate-dropped-database-on-azure-sql-managed-instance).
8989

9090
> [!TIP]
9191
> For a sample PowerShell script showing how to restore a deleted database, see [Restore a SQL database using PowerShell](scripts/sql-database-restore-database-powershell.md).
@@ -94,7 +94,7 @@ You can restore a deleted database to the deletion time or an earlier point in t
9494
9595
### Deleted database restore using the Azure portal
9696

97-
To recover a deleted database using the Azure portal, open the page for your server and in the Operations area, click **Deleted databases**.
97+
To recover a deleted database using Azure portal, open the page for your server and in the Operations area, click **Deleted databases**.
9898

9999
![deleted-database-restore-1](./media/sql-database-recovery-using-backups/deleted-database-restore-1.png)
100100

@@ -111,21 +111,56 @@ Geo-restore is the default recovery option when your database is unavailable bec
111111

112112
![geo-restore](./media/sql-database-geo-restore/geo-restore-2.png)
113113

114-
> [!TIP]
115-
> For a sample PowerShell script showing how to perform a geo-restore, see [Restore a SQL database using PowerShell](scripts/sql-database-restore-database-powershell.md).
114+
### Geo-restore using Azure portal
115+
116+
General concept to geo-restore a database from Azure portal is performed through creating a new single or managed instance database and selecting an available geo-restore backup on the database create screen. The newly created database will contain the geo-restored backup data.
117+
118+
#### Single Azure SQL Database
119+
120+
To geo-restore single Azure SQL Database from Azure portal in the region and server of your choice, follow these steps:
121+
122+
1. Click on add **+Add** in the marketplace and select **Create SQL Database**, fill out the required information under **Basics tab**
123+
2. Select **Additional settings** tab
124+
3. Under Use existing data click on **Backup**
125+
4. Select a backup from the drop-down list of available geo-restore backups
126+
127+
![geo-restore single Azure SQL Database](./media/sql-database-recovery-using-backups/geo-restore-azure-sql-database-list-annotated.png)
128+
129+
Complete the process of creating a new database. Once the single Azure SQL Database is created, it will contain restored geo-restore backup.
130+
131+
#### Managed instance database
132+
133+
To geo-restore managed instance database from Azure portal to an existing managed instance in a region of your choice, select a managed instance on which you wish a database to be restored, and follow these steps:
134+
135+
1. Click on **+New database**
136+
2. Type in a desired database name
137+
3. Under Use existing data select option **Backup**
138+
4. Select a backup from the drop-down list of available geo-restore backups
139+
140+
![geo-restore managed instance database](./media/sql-database-recovery-using-backups/geo-restore-sql-managed-instance-list-annotated.png)
141+
142+
Complete the process of creating a new database. Once the instance database is created, it will contain restored geo-restore backup.
143+
144+
### Geo-restore using PowerShell
145+
146+
#### Single Azure SQL Database
147+
148+
For PowerShell script showing how to perform geo-restore for a single Azure SQL Database, see [Use PowerShell to restore an Azure SQL single database to an earlier point in time](scripts/sql-database-restore-database-powershell.md).
149+
150+
#### Managed instance database
151+
152+
For PowerShell script showing how to perform geo-restore for a managed instance database, see [Use PowerShell to restore a Managed Instance database to another geo-region](scripts/sql-managed-instance-restore-geo-backup.md).
153+
154+
### Geo-restore considerations
116155

117156
Point-in-time restore on a geo-secondary is not currently supported. Point-in-time restore can be done only on a primary database. For detailed information about using geo-restore to recover from an outage, see [Recover from an outage](sql-database-disaster-recovery.md).
118157

119158
> [!IMPORTANT]
120159
> Geo-restore is the most basic disaster recovery solution available in SQL Database. It relies on automatically created geo-replicated backups with RPO = 1 hour and the estimated recovery time of up to 12 hours. It does not guarantee that the target region will have the capacity to restore your database(s) after a regional ourage because a sharp increase of demand will be likely. For non business critical application that use relatively small databases, geo-restore is an appropriate disaster recovery solution. For business critical applications that use large databases and must ensure business continuity, you should use [Auto-failover groups](sql-database-auto-failover-group.md). It offers a much lower RPO and RTO, and the capacity is always guaranteed. For more information on business continuity choices, see [Overview of business continuity](sql-database-business-continuity.md).
121160
122-
### Geo-restore using the Azure portal
123-
124-
To geo-restore a database using the Azure portal, open the SQL Databases page and then click **Add**. In the **Select source** text box, select **Backup**. Specify the backup from which to perform the recovery in the region and on the server of your choice.
125-
126161
## Programmatically performing recovery using automated backups
127162

128-
As previously discussed, in addition to the Azure portal, database recovery can be performed programmatically using Azure PowerShell or the REST API. The following tables describe the set of commands available.
163+
As previously discussed, in addition to Azure portal, database recovery can be performed programmatically using Azure PowerShell or the REST API. The following tables describe the set of commands available.
129164

130165
### PowerShell
131166

0 commit comments

Comments
 (0)