Move to offsite backup storage #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Database backups (daily pg_dump, 7-day retention) currently live on the same VPS as the database. If the VPS fails, both the database and backups are lost.
What to do
After the daily backup runs, copy the dump to offsite storage.
Options
Files to change
~/backup.shon the VPS — add an upload step after the pg_dump. For S3-compatible storage, useaws cliors3cmd. For Storage Box, usescporrsync.Acceptance criteria
Notes
Current backup script:
~/backup.sh. Cron runs at 3 AM daily. Dumps are compressed with gzip (~few MB). Dev laptop also syncs backups via rsync on login. Seedocumentation/deployment.md.