# Restore

## Postgres Restore (example)

```bash
pg_restore -d core_platform_db --clean --if-exists core_platform_db.dump
pg_restore -d identity_access_db --clean --if-exists identity_access_db.dump
```

Adapt flags to the dump format used in [backup.md](backup.md).

## Application Restore Steps

1. Stop writers (scale down workers / APIs) if restoring in place
2. Restore databases
3. Restore env/secrets if needed
4. Start services on the target release tag
5. Verify health, login, tenant resolution
6. Reconcile SSL map / certs if edge host was replaced

## Related Documents

- [Backup](backup.md)
- [Disaster Recovery](disaster-recovery.md)
- [Production](production.md)
