5 Backing up: Azure
Not yet validated by a test deployment. deploy/backup.sh needs a database container, so it does
not apply. docs/DEPLOYMENT-AZURE.md has the setup.
| Part | Use | Notes |
|---|---|---|
| Database | Point-in-time restore on Flexible Server | 7 to 35 days, default 7. Set 35. A restore makes a new server. Geo-redundant backup must be chosen when the server is created. Azure Backup keeps longer |
| Files | Blob soft delete, 1 to 365 days | Keep it at least as long as database retention. Microsoft advises both soft delete and versioning. It applies to data deleted after it is turned on |
| Secrets | Your Container Apps secrets or Key Vault | Keep them in your own vault as well: losing the subscription loses them |
| A copy out of reach | Immutable storage on a separate container or account, for your pg_dump output | Do not put a retention policy on the attachments container: files must stay deletable |
Soft delete does not cover losing the storage account. For that, replicate to another account or region.