Backup and restore¶
The AWS Backup plan covers the Aurora PostgreSQL cluster, two DynamoDB tables and four S3 buckets. After a failure, select an available recovery point from before the data loss and restore it to a new resource. Switch the application only after checking its data and behavior.
How backups are created¶
| Setting | Value |
|---|---|
| AWS Backup schedule | Daily at 01:00 Stockholm time. Jobs have 60 minutes to start and 12 hours to complete. |
| Location | Backups are created in Stockholm (eu-north-1). The plan requests a copy of completed recovery points to Frankfurt (eu-central-1). |
| Retention | 35 days in each region. |
| S3 | Source documents, document processing data, BDL artifacts and import files. |
| DynamoDB | Document registry and WK integration state. |
| Aurora PostgreSQL | The entire cluster: ziton, ziton_api and keycloak. |
| Alerts | A configured alarm fires if a backup or copy to the secondary region fails. |
Apart from the AWS Backup plan, Aurora retains its native backups for 7 days and both DynamoDB tables have point-in-time recovery (PITR) enabled. The plan does not cover site files, infrastructure state or the vector index. Rebuild the index from recovered documents.
Select a recovery point¶
- Select the region in the AWS console. Open AWS Backup → Backup vaults and select the applicable vault in Stockholm or Frankfurt.
- Check the resource type, time and status. Select the last available recovery point before the failure or unwanted write, not simply the newest one.
- Select Restore and use the approved restore role. If no recovery point is available, check the PITR window in the Aurora or DynamoDB console.
Amazon S3¶
- Prepare a new private bucket with versioning enabled in the recovery point's region.
- In AWS Backup, select the whole bucket or specific objects. Choose whether to recover the latest or earlier versions too. For a backup copied across regions, choose SSE-S3 instead of the original key.
- Check the result in Restore jobs, including any skipped objects. Compare expected files and versions, then open a sample. Transfer verified files to the intended environment.
DynamoDB¶
- In AWS Backup, select the recovery point and enter a new table name. For PITR, choose a time before the failure in the DynamoDB console.
- Set the destination table's encryption. Check keys and indexes, then restore operational settings that are not carried over, such as PITR, TTL, tags and alarms.
- Check representative records and application queries. Switch the application to the new table only after verification. Retain the source during recovery.
Aurora PostgreSQL¶
- Restore an AWS Backup recovery point, or choose Restore to point in time and the required time in the RDS console. Both methods create a new cluster.
- Configure networking, access, parameter groups and deletion protection. Verify that the cluster has a working writer instance and that applications have correct credentials and TLS connectivity.
- Verify the contents of all three databases and test the API and sign-in service. Record the old and new connection settings before switching.
Restoring in Frankfurt requires networking and application dependencies in that region. A data backup does not start the whole environment.
Configuration verification · November 28, 2026¶
The production AWS configuration confirmed the schedule, completion window and retention in both regions. Check the vault in the selected region for the latest list of available recovery points.
After a restore, record the recovery point time, restored scope, validation result and elapsed time. Confirm success using both the COMPLETED status and data validation.