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/backup/backup-azure-database-postgresql-flex-restore-cli.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Restore Azure Database for PostgreSQL - Flexible Server using Azure CLI
3
3
description: Learn how to restore Azure Database for PostgreSQL - Flexible Server using Azure CLI.
4
4
ms.topic: how-to
5
-
ms.date: 02/18/2025
5
+
ms.date: 01/20/2026
6
6
ms.service: azure-backup
7
7
ms.custom: devx-track-azurecli, ignite-2024
8
8
author: AbhishekMallick-MS
@@ -29,15 +29,15 @@ Before you restore from Azure Database for PostgreSQL – Flexible Server backup
29
29
>[!Note]
30
30
> Backup data is stored in the Backup vault as a blob within the Microsoft tenant. During a restore operation, the backup data is copied from one storage account to another across tenants.
31
31
32
-
## Set up permissions for restore
32
+
## Set up permissions for PostgreSQL – Flexible Server restore
33
33
34
34
Backup vault uses managed identity to access other Azure resources. To restore from backup, Backup vault’s managed identity requires a set of permissions on the Azure PostgreSQL – Flexible Server to which the database should be restored.
35
35
36
36
To assign the relevant permissions for vault's system-assigned managed identity on the target PostgreSQL – Flexible server, check the [set of permissions](backup-azure-database-postgresql-flex-overview.md#azure-backup-authentication-with-the-postgresql-server) needed to backup Azure PostgreSQL – Flexible Server database.
37
37
38
38
To restore the recovery point as files to a storage account, the **Backup vault's system-assigned managed identity** needs access on the **target storage account**.
39
39
40
-
## Fetch the relevant recovery point
40
+
## Fetch the relevant recovery point for PostgreSQL – Flexible Server
41
41
42
42
To list all backup instances within a vault, use the [`az dataprotection backup-instance list`](/cli/azure/dataprotection/backup-instance?view=azure-cli-latest&preserve-view=true#az-dataprotection-backup-instance-list) command. Then fetch the relevant instance using the [`az dataprotection backup-instance show`](/cli/azure/dataprotection/backup-instance?view=azure-cli-latest&preserve-view=true#az-dataprotection-backup-instance-show) command. Alternatively, for at-scale scenarios, you can list backup instances across vaults and subscriptions by using the [`az dataprotection backup-instance list-from-resourcegraph`](/cli/azure/dataprotection/backup-instance?view=azure-cli-latest&preserve-view=true#az-dataprotection-backup-instance-list-from-resourcegraph) command.
43
43
@@ -156,7 +156,7 @@ az dataprotection recovery-point list --backup-instance-name testpostgresql-empd
156
156
157
157
```
158
158
159
-
## Prepare the restore request
159
+
## Prepare the PostgreSQL – Flexible Server restore request
160
160
161
161
You can restore the recovery point for a PostgreSQL – Flexible server database as files only.
If you have more than one database to restore, rerun the earlier command for each database. Also, by using multiple concurrent jobs `-j`, you can reduce the restore time for a large database on a **multi-vCore target server**. The number of jobs can be equal to or less than the number of `vCPUs` allocated for the target server.
201
201
202
-
## Trigger the restore
202
+
## Trigger the restore for PostgreSQL – Flexible Server
203
203
204
204
To trigger the restore operation with the prepared request, use the [`az dataprotection backup-instance restore trigger`](/cli/azure/dataprotection/backup-instance/restore?view=azure-cli-latest&preserve-view=true#az-dataprotection-backup-instance-restore-trigger) command.
## Track jobs for PostgreSQL – Flexible Server restore
212
212
213
213
Track all jobs using the [`az dataprotection job list`](/cli/azure/dataprotection/job?view=azure-cli-latest&preserve-view=true#az-dataprotection-job-list) command. You can list all jobs and fetch a particular job detail.
214
214
@@ -219,6 +219,6 @@ az dataprotection job list-from-resourcegraph --datasource-type AzureDatabaseFor
219
219
220
220
```
221
221
222
-
## Next steps
222
+
## Next step
223
223
224
224
[Troubleshoot common errors for backup and restore operations for Azure Database for PostgreSQL - Flexible Server](backup-azure-database-postgresql-flex-troubleshoot.md).
0 commit comments