deploy/backup.sh dumps Postgres in pg_dump custom format — compressed and restorable
table by table — and keeps 14 days. Run it from cron on the host:
BACKUP_DIR and BACKUP_KEEP_DAYS.
Restoring
Get the dump off the machine
Add a step that copies the dump elsewhere — object storage, another host, anywhere — and consider encrypting it on the way out:Everything that matters lives in Postgres and your object storage. The containers and
Redis are disposable. The dumps are not.