6 Backing up: AWS
Not yet validated by a test deployment. deploy/backup.sh needs a database container, so it does
not apply. docs/DEPLOYMENT-AWS.md has the setup.
| Part | Use | Notes |
|---|---|---|
| Database | RDS point-in-time restore | Retention up to 35 days. A restore makes a new instance, with default security and parameter groups until you set them. AWS Backup keeps longer |
| Files | S3 Versioning, with a lifecycle rule on noncurrent versions | Keep old versions at least as long as database retention |
| Secrets | Secrets Manager | Keep them in your own vault as well: losing the account loses them |
| A copy out of reach | S3 Object Lock on a separate bucket, in a separate account, for your pg_dump output | Do not lock the attachments bucket: files must stay deletable |
Versioning does not cover losing the bucket or the account. For that, replicate to another account.