Skip to content

Commit 4f23545

Browse files
20240131 add linkage for different pool types
1 parent 1978c93 commit 4f23545

File tree

1 file changed

+48
-39
lines changed

1 file changed

+48
-39
lines changed
Lines changed: 48 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
---
2-
title: Backup and restore - snapshots, geo-redundant
2+
title: Backup and restore - snapshots, geo-redundant
33
description: Learn how backup and restore works in Azure Synapse Analytics dedicated SQL pool. Use backups to restore your data warehouse to a restore point in the primary region. Use geo-redundant backups to restore to a different geographical region.
44
author: realAngryAnalytics
5+
ms.author: stevehow
56
manager: joannapea
7+
ms.reviewer: joanpo, wiassaf
8+
ms.date: 01/31/2024
69
ms.service: synapse-analytics
10+
ms.subservice: sql-dw
711
ms.topic: conceptual
8-
ms.subservice: sql-dw
9-
ms.date: 11/30/2022
10-
ms.author: stevehow
11-
ms.reviewer: joanpo
12-
ms.custom: seo-lt-2019"
1312
---
1413

15-
# Backup and restore in Azure Synapse Dedicated SQL pool
14+
# Backup and restore dedicated SQL pools in Azure Synapse Analytics
1615

17-
Learn how to use backup and restore in Azure Synapse Dedicated SQL pool. Use dedicated SQL pool restore points to recover or copy your data warehouse to a previous state in the primary region. Use data warehouse geo-redundant backups to restore to a different geographical region.
16+
In this article, you'll learn how to use backup and restore in Azure Synapse dedicated SQL pool.
17+
18+
Use dedicated SQL pool restore points to recover or copy your data warehouse to a previous state in the primary region. Use data warehouse geo-redundant backups to restore to a different geographical region.
19+
20+
> [!NOTE]
21+
> Not all features of the dedicated SQL pool in Azure Synapse workspaces apply to dedicated SQL pool (formerly SQL DW), and vice versa. To enable workspace features for an existing dedicated SQL pool (formerly SQL DW) refer to [How to enable a workspace for your dedicated SQL pool (formerly SQL DW)](workspace-connected-create.md). For more information, see [What's the difference between Azure Synapse dedicated SQL pools (formerly SQL DW) and dedicated SQL pools in an Azure Synapse Analytics workspace?](https://techcommunity.microsoft.com/t5/azure-synapse-analytics-blog/msft-docs-what-s-the-difference-between-synapse-formerly-sql-dw/ba-p/3597772).
1822
1923
## What is a data warehouse snapshot
2024

@@ -23,45 +27,48 @@ A *data warehouse snapshot* creates a restore point you can leverage to recover
2327
A *data warehouse restore* is a new data warehouse that is created from a restore point of an existing or deleted data warehouse. Restoring your data warehouse is an essential part of any business continuity and disaster recovery strategy because it re-creates your data after accidental corruption or deletion. Data warehouse snapshot is also a powerful mechanism to create copies of your data warehouse for test or development purposes.
2428

2529
> [!NOTE]
26-
> Dedicated SQL pool Recovery Time Objective (RTO) rates can vary. Factors that may affect the recovery (restore) time:
30+
> Dedicated SQL pool Recovery Time Objective (RTO) rates can vary. Factors that might affect the recovery (restore) time:
2731
> - The database size
28-
> - The location of the source and target data warehouse (i.e., geo-restore)
32+
> - The location of the source and target data warehouse (in the case of a geo-restore)
2933
3034
## Automatic Restore Points
3135

32-
Snapshots are a built-in feature that creates restore points. You do not have to enable this capability. However, the dedicated SQL pool should be in an active state for restore point creation. If it is paused frequently, automatic restore points may not be created so make sure to create user-defined restore point before pausing the dedicated SQL pool. Automatic restore points currently cannot be deleted by users as the service uses these restore points to maintain SLAs for recovery.
36+
Snapshots are a built-in feature that creates restore points. You do not have to enable this capability. However, the dedicated SQL pool should be in an active state for restore point creation. If it is paused frequently, automatic restore points might not be created so make sure to create user-defined restore point before pausing the dedicated SQL pool. Automatic restore points currently cannot be deleted by users as the service uses these restore points to maintain SLAs for recovery.
3337

3438
Snapshots of your data warehouse are taken throughout the day creating restore points that are available for seven days. This retention period cannot be changed. Dedicated SQL pool supports an eight-hour recovery point objective (RPO). You can restore your data warehouse in the primary region from any one of the snapshots taken in the past seven days.
3539

3640
To see when the last snapshot started, run this query on your online dedicated SQL pool.
3741

3842
```sql
39-
select top 1 *
40-
from sys.pdw_loader_backup_runs
41-
order by run_id desc
42-
;
43+
SELECT TOP 1 *
44+
FROM sys.pdw_loader_backup_runs
45+
ORDER BY run_id desc;
4346
```
47+
4448
> [!NOTE]
45-
> Backups occur every four (4) hours to meet an eight (8) hour SLA. Therefore, the sys.pdw_loader_backup_runs dynamic management view will display backup activity every four (4) hours.
49+
> Backups occur every four (4) hours to meet an eight (8) hour SLA. Therefore, the `sys.pdw_loader_backup_runs` dynamic management view will display backup activity every four (4) hours.
4650
47-
## User-Defined Restore Points
51+
## User-defined restore points
4852

4953
This feature enables you to manually trigger snapshots to create restore points of your data warehouse before and after large modifications. This capability ensures that restore points are logically consistent, which provides additional data protection in case of any workload interruptions or user errors for quick recovery time. User-defined restore points are available for seven days and are automatically deleted on your behalf. You cannot change the retention period of user-defined restore points. **42 user-defined restore points** are guaranteed at any point in time so they must be [deleted](#delete-user-defined-restore-points) before creating another restore point. You can trigger snapshots to create user-defined restore points by using the Azure portal or programmatically by using the [PowerShell or REST APIs](#create-user-defined-restore-points)
5054

55+
- For more information on user-defined restore points in a standalone data warehouse (formerly SQL pool), see [User-defined restore points for a dedicated SQL pool (formerly SQL DW)](sql-data-warehouse-restore-points.md).
56+
- For more information on user-defined restore points in a dedicated SQL pool in a Synapse workspace, [User-defined restore points in Azure Synapse Analytics](../backuprestore/sqlpool-create-restore-point.md).
57+
5158
> [!NOTE]
52-
> If you require restore points longer than 7 days, please vote for this capability [here](https://feedback.azure.com/d365community/idea/4c446fd9-0b25-ec11-b6e6-000d3a4f07b8).
59+
> If you require restore points longer than 7 days, please [vote for this capability](https://feedback.azure.com/d365community/idea/4c446fd9-0b25-ec11-b6e6-000d3a4f07b8).
5360
5461
> [!NOTE]
5562
> In case you're looking for a Long-Term Backup (LTR) concept:
5663
> 1. Create a new user-defined restore point, or you can use one of the automatically generated restore points.
57-
> 2. Restore from the newly created restore point to a new data warehouse.
58-
> 3. After you have restored, you have the dedicated SQL pool online. Pause it indefinitely to save compute costs. The paused database incurs storage charges at the Azure Synapse storage rate.
64+
> 1. Restore from the newly created restore point to a new data warehouse.
65+
> 1. After you have restored, you have the dedicated SQL pool online. Pause it indefinitely to save compute costs. The paused database incurs storage charges at the Azure Synapse storage rate.
5966
>
6067
> If you need an active copy of the restored data warehouse, you can resume, which should take only a few minutes.
6168
62-
### Create User Defined Restore Points
69+
### Create user-defined restore points
6370

64-
To create a new user-defined restore point programmatically, verify the below methods. It is crucial to use the correct method based on the SQL Pool you are usingeither a formerly SQL DW or a SQL Pool within a Synapse workspace.
71+
You can create a new user-defined restore point programmatically. Choose the correct method based on the SQL pool you are using: either a standalone dedicated SQL pool (formerly SQL DW), or a dedicated SQL pool within a Synapse workspace.
6572

6673
**Azure PowerShell**
6774
- For dedicated SQL pool (formerly SQL DW), use [New-AzSqlDatabaseRestorePoint](/powershell/module/az.sql/new-azsqldatabaserestorepoint)
@@ -71,9 +78,9 @@ To create a new user-defined restore point programmatically, verify the below me
7178
- For dedicated SQL pool (formerly SQL DW), use [Restore Points - Create](/rest/api/sql/restore-points/create)
7279
- For dedicated SQL pool (within Synapse workspace), use [Sql Pool Restore Points - Create](/rest/api/synapse/resourcemanager/sql-pool-restore-points/create)
7380

74-
### Delete User Defined Restore Points
81+
### Delete user-defined restore points
7582

76-
To delete a specific user-defined restore point programmatically, verify the below methods. It is crucial to use the correct method based on the SQL Pool you are usingeither a formerly SQL DW or a SQL Pool within a Synapse workspace.
83+
You can delete a specific user-defined restore point programmatically. Choose the correct method based on the SQL pool you are using: either a standalone dedicated SQL pool (formerly SQL DW), or a dedicated SQL pool within a Synapse workspace.
7784

7885
**Azure PowerShell**
7986
- For dedicated SQL pool (formerly SQL DW), use [Remove-AzSqlDatabaseRestorePoint](/powershell/module/az.sql/remove-azsqldatabaserestorepoint)
@@ -88,10 +95,10 @@ To delete a specific user-defined restore point programmatically, verify the bel
8895
The following lists details for restore point retention periods:
8996

9097
1. Dedicated SQL pool deletes a restore point when it hits the 7-day retention period **and** when there are at least 42 total restore points (including both user-defined and automatic).
91-
2. Snapshots are not taken when a dedicated SQL pool is paused.
92-
3. The age of a restore point is measured by the absolute calendar days from the time the restore point is taken including when the SQL pool is paused.
93-
4. At any point in time, a dedicated SQL pool is guaranteed to be able to store up to 42 user-defined restore points or 42 automatic restore points as long as these restore points have not reached the 7-day retention period
94-
5. If a snapshot is taken, the dedicated SQL pool is then paused for greater than 7 days, and then resumed, the restore point will persist until there are 42 total restore points (including both user-defined and automatic)
98+
1. Snapshots are not taken when a dedicated SQL pool is paused.
99+
1. The age of a restore point is measured by the absolute calendar days from the time the restore point is taken including when the SQL pool is paused.
100+
1. At any point in time, a dedicated SQL pool is guaranteed to be able to store up to 42 user-defined restore points or 42 automatic restore points as long as these restore points have not reached the 7-day retention period
101+
1. If a snapshot is taken, the dedicated SQL pool is then paused for greater than 7 days, and then resumed, the restore point will persist until there are 42 total restore points (including both user-defined and automatic)
95102

96103
### Snapshot retention when a SQL pool is dropped
97104

@@ -101,12 +108,12 @@ When you drop a dedicated SQL pool, a final snapshot is created and saved for se
101108

102109
A geo-backup is created once per day to a [paired data center](../../availability-zones/cross-region-replication-azure.md?toc=/azure/synapse-analytics/sql-data-warehouse/toc.json&bc=/azure/synapse-analytics/sql-data-warehouse/breadcrumb/toc.json). The RPO for a geo-restore is 24 hours. A geo-restore is always a data movement operation and the RTO will depend on the data size. Only the latest geo-backup is retained. You can restore the geo-backup to a server in any other region where dedicated SQL pool is supported. A geo-backup ensures you can restore data warehouse in case you cannot access the restore points in your primary region.
103110

104-
If you do not require geo-backups for your dedicated SQL pool, you can disable them and save on disaster recovery storage costs. To do so, refer to [How to guide: Disable geo-backups for a dedicated SQL pool (formerly SQL DW)](disable-geo-backup.md). Note that if you disable geo-backups, you will not be able to recover your dedicated SQL pool to your paired Azure region if your primary Azure data center is unavailable.
111+
If you do not require geo-backups for your dedicated SQL pool, you can disable them and save on disaster recovery storage costs. To do so, refer to [How to guide: Disable geo-backups for a dedicated SQL pool (formerly SQL DW)](disable-geo-backup.md). If you disable geo-backups, you will not be able to recover your dedicated SQL pool to your paired Azure region if your primary Azure data center is unavailable.
105112

106113
> [!NOTE]
107-
> If you require a shorter RPO for geo-backups, vote for this capability [here](https://feedback.azure.com/d365community/idea/dc4975e5-0b25-ec11-b6e6-000d3a4f07b8). You can also create a user-defined restore point and restore from the newly created restore point to a new data warehouse in a different region. After you have restored, you have the data warehouse online and can pause it indefinitely to save compute costs. The paused database incurs storage charges at the Azure Premium Storage rate. Another common pattern for a shorter recovery point is to ingest data into primary and secondary instances of a data warehouse in parallel. In this scenario, data is ingested from a source (or sources) and persisted to two separate instances of the data warehouse (primary and secondary). To save on compute costs, you can pause the secondary instance of the warehouse. If you need an active copy of the data warehouse, you can resume, which should take only a few minutes.
114+
> If you require a shorter RPO for geo-backups, [vote for this capability](https://feedback.azure.com/d365community/idea/dc4975e5-0b25-ec11-b6e6-000d3a4f07b8). You can also create a user-defined restore point and restore from the newly created restore point to a new data warehouse in a different region. After you have restored, you have the data warehouse online and can pause it indefinitely to save compute costs. The paused database incurs storage charges at the Azure Premium Storage rate. Another common pattern for a shorter recovery point is to ingest data into primary and secondary instances of a data warehouse in parallel. In this scenario, data is ingested from a source (or sources) and persisted to two separate instances of the data warehouse (primary and secondary). To save on compute costs, you can pause the secondary instance of the warehouse. If you need an active copy of the data warehouse, you can resume, which should take only a few minutes.
108115
109-
## Data residency
116+
## Data residency
110117

111118
If your paired data center is located outside of your country/region, you can ensure that your data stays within your region by provisioning your database on locally redundant storage (LRS). If your database has already been provisioned on RA-GRS (Read Only Geographically Redundant Storage, the current default) then you can opt out of geo-backups, however your database will continue to reside on storage that is replicated to a regional pair. To ensure that customer data stays within your region, you can provision or restore your dedicated SQL pool to locally redundant storage. For more information on how to provision or restore to local redundant storage, see [How-to guide for configuring single region residency for a dedicated SQL pool (formerly SQL DW) in Azure Synapse Analytics](single-region-residency.md)
112119

@@ -122,15 +129,17 @@ If you are using geo-redundant storage, you receive a separate storage charge. T
122129

123130
For more information about Azure Synapse pricing, see [Azure Synapse pricing](https://azure.microsoft.com/pricing/details/sql-data-warehouse/gen2/). You are not charged for data egress when restoring across regions.
124131

125-
## Restoring from restore points
132+
## <a id="restoring-from-restore-points"></a> Restore from restore points
126133

127134
Each snapshot creates a restore point that represents the time the snapshot started. To restore a data warehouse, you choose a restore point and issue a restore command.
128135

129136
You can either keep the restored data warehouse and the current one, or delete one of them. If you want to replace the current data warehouse with the restored data warehouse, you can rename it using [ALTER DATABASE](/sql/t-sql/statements/alter-database-transact-sql?toc=/azure/synapse-analytics/sql-data-warehouse/toc.json&bc=/azure/synapse-analytics/sql-data-warehouse/breadcrumb/toc.json&view=azure-sqldw-latest&preserve-view=true) with the MODIFY NAME option.
130137

131-
To restore a data warehouse, see [Restore a dedicated SQL pool (formerly SQL DW)](sql-data-warehouse-restore-points.md#create-user-defined-restore-points-through-the-azure-portal).
138+
- To restore a standalone data warehouse (formerly SQL pool), see [Restore a dedicated SQL pool (formerly SQL DW)](sql-data-warehouse-restore-points.md#create-user-defined-restore-points-through-the-azure-portal).
139+
- To restore a dedicated SQL pool in a Synapse workspace, see [Restore an existing dedicated SQL pool](../backuprestore/restore-sql-pool.md).
132140

133-
To restore a deleted data warehouse, see [Restore a deleted database (formerly SQL DW)](sql-data-warehouse-restore-deleted-dw.md), or if the entire server was deleted, see [Restore a data warehouse from a deleted server (formerly SQL DW)](sql-data-warehouse-restore-from-deleted-server.md).
141+
- To restore a deleted standalone data warehouse (formerly SQL pool), see [Restore a deleted database (formerly SQL DW)](sql-data-warehouse-restore-deleted-dw.md), or if the entire server was deleted, see [Restore a data warehouse from a deleted server (formerly SQL DW)](sql-data-warehouse-restore-from-deleted-server.md).
142+
- To restore a deleted dedicated SQL pool in a Synapse workspace, see [Restore a dedicated SQL pool from a deleted workspace](../backuprestore/restore-sql-pool-from-deleted-workspace.md).
134143

135144
> [!NOTE]
136145
> Table-level restore is not supported in dedicated SQL Pools. You can only recover an entire database from your backup, and then copy the require table(s) by using
@@ -139,9 +148,9 @@ To restore a deleted data warehouse, see [Restore a deleted database (formerly S
139148
> - Export the data from the restored backup into your Data Lake by using CETAS [CETAS Example](/sql/t-sql/statements/create-external-table-as-select-transact-sql?view=sql-server-linux-ver16&preserve-view=true#d-use-create-external-table-as-select-exporting-data-as-parquet)
140149
> - Import the data by using [COPY](/sql/t-sql/statements/copy-into-transact-sql?view=azure-sqldw-latest&preserve-view=true) or [Polybase](../sql/load-data-overview.md#options-for-loading-with-polybase)
141150
142-
## Cross subscription restore
151+
## Cross-subscription restore
143152

144-
You can perform a cross-subscription restore by follow the guidance [here](sql-data-warehouse-restore-active-paused-dw.md#restore-an-existing-dedicated-sql-pool-formerly-sql-dw-to-a-different-subscription-through-powershell).
153+
You can perform a [cross-subscription restore](sql-data-warehouse-restore-active-paused-dw.md#restore-an-existing-dedicated-sql-pool-formerly-sql-dw-to-a-different-subscription-through-powershell).
145154

146155
## Geo-redundant restore
147156

@@ -150,10 +159,10 @@ You can [restore your dedicated SQL pool](sql-data-warehouse-restore-from-geo-ba
150159
> [!NOTE]
151160
> To perform a geo-redundant restore you must not have opted out of this feature.
152161
153-
## Support Process
162+
## Support process
154163

155164
You can [submit a support ticket](sql-data-warehouse-get-started-create-support-ticket.md) through the Azure portal for Azure Synapse Analytics.
156165

157-
## Next steps
166+
## Related content
158167

159-
For more information about restore points, see [User-defined restore points](sql-data-warehouse-restore-points.md)
168+
- [What is dedicated SQL pool (formerly SQL DW) in Azure Synapse Analytics?](sql-data-warehouse-overview-what-is.md)

0 commit comments

Comments
 (0)