Azure Database for PostgreSQL
An Azure managed PostgreSQL database service for app development and deployment.
1,354 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Looking for a query to find out when the last time a database backup was taken in Azure Database for PostgreSQL flexible server.
Hi Naveen Kumar Kakarla (Quadrant Resource)
I think you can't query backup information in the same way as you might on a traditional SQL Server.
but you can check the last backup time using the Azure CLI. ill guide you on how to check this using the CLI
az postgres flexible-server show --resource-group YourResourceGroup --name YourPostgreSQLServer --query 'backupInfo.earliestRestoreDate'
Thi command backupInfo.earliestRestoreDate
property, which represents the timestamp of the last backup time.
If this helps kindly accept the answer thanks much.