June 15, 2024
Backup Strategy: Because Disaster Will Strike
It's not if you'll need backups. It's when.
The 3-2-1 Rule
- 3 copies of data
- 2 different storage types
- 1 offsite backup
We follow this religiously.
Our Setup
Database: Automated daily backups to Google Cloud Storage. Retention: 30 days.
Files: Synced to Cloud Storage with versioning enabled.
Code: Git with remote on GitHub. Every commit is a backup.
Testing Restores
Backups you've never tested are just expensive wishful thinking.
Monthly drill: Restore from backup to a test environment. Verify data integrity. Time the process.
The Scare
We once had a disk failure. Lost 4 hours of data. Backups saved us.
Now we backup every 6 hours, not daily.
The Cost
About $30/month for backup storage. Cheaper than explaining to customers why their data is gone.