Restore backups created with Azure Backup Vault

Sofie Svensson 0 Reputation points
2024-11-26T20:00:12.1133333+00:00

I have a backup vault in Azure that store long term backups of my Azure Database for PostgreSQL - Flexible Servers.

Problem is that I can't restore the backups. When I restore the backups in the portal, the .sql files are restored to the selected blob storage as they should. I can download the file 'database.sql' but the content is encrypted. The database and the backup vault use different customer managed keys (CMK). I have access to both RSA keys, but decryption won't work

% openssl pkeyutl -decrypt -inkey rsa.pem -in database.sql -out decrypted_database.sql

Public Key operation error 000C82FE01000000:error:0200006C:rsa routines:rsa_ossl_private_decrypt:data greater than mod len:crypto/rsa/rsa_ossl.c:561:

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,299 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,968 questions
Azure Database for PostgreSQL
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.