Skip to content

Commit be308fc

Browse files
AI optimization - PSQL Flex DB restore using CLI - H2 updates
1 parent 318a0e4 commit be308fc

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

articles/backup/backup-azure-database-postgresql-flex-restore-cli.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Restore Azure Database for PostgreSQL - Flexible Server using Azure CLI
33
description: Learn how to restore Azure Database for PostgreSQL - Flexible Server using Azure CLI.
44
ms.topic: how-to
5-
ms.date: 02/18/2025
5+
ms.date: 01/20/2026
66
ms.service: azure-backup
77
ms.custom: devx-track-azurecli, ignite-2024
88
author: AbhishekMallick-MS
@@ -29,15 +29,15 @@ Before you restore from Azure Database for PostgreSQL – Flexible Server backup
2929
>[!Note]
3030
> 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.
3131
32-
## Set up permissions for restore
32+
## Set up permissions for PostgreSQL – Flexible Server restore
3333

3434
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.
3535

3636
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.
3737

3838
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**.
3939

40-
## Fetch the relevant recovery point
40+
## Fetch the relevant recovery point for PostgreSQL – Flexible Server
4141

4242
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.
4343

@@ -156,7 +156,7 @@ az dataprotection recovery-point list --backup-instance-name testpostgresql-empd
156156
157157
```
158158

159-
## Prepare the restore request
159+
## Prepare the PostgreSQL – Flexible Server restore request
160160

161161
You can restore the recovery point for a PostgreSQL – Flexible server database as files only.
162162

@@ -199,7 +199,7 @@ pg_restore -h <hostname> -U <username> -j <Num of parallel jobs> -Fd -C -d <data
199199

200200
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.
201201

202-
## Trigger the restore
202+
## Trigger the restore for PostgreSQL – Flexible Server
203203

204204
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.
205205

@@ -208,7 +208,7 @@ az dataprotection backup-instance restore trigger -g testBkpVaultRG --vault-name
208208
209209
```
210210

211-
## Track jobs
211+
## Track jobs for PostgreSQL – Flexible Server restore
212212

213213
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.
214214

@@ -219,6 +219,6 @@ az dataprotection job list-from-resourcegraph --datasource-type AzureDatabaseFor
219219
220220
```
221221

222-
## Next steps
222+
## Next step
223223

224224
[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

Comments
 (0)