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.

PartUseNotes
DatabaseRDS point-in-time restoreRetention up to 35 days. A restore makes a new instance, with default security and parameter groups until you set them. AWS Backup keeps longer
FilesS3 Versioning, with a lifecycle rule on noncurrent versionsKeep old versions at least as long as database retention
SecretsSecrets ManagerKeep them in your own vault as well: losing the account loses them
A copy out of reachS3 Object Lock on a separate bucket, in a separate account, for your pg_dump outputDo 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.