We Lost Data in a Migration, So I Built Backupguardian to Validate Backups
Posted4 months ago
backupguardian.orgTechstory
calmpositive
Debate
0/100
Backup ValidationData MigrationSoftware Development
Key topics
Backup Validation
Data Migration
Software Development
Developer shares experience of losing data during migration and building BackupGuardian to validate backups.
Snapshot generated from the HN discussion
Discussion Activity
Light discussionFirst comment
N/A
Peak period
1
Start
Avg / period
1
Key moments
- 01Story posted
Sep 1, 2025 at 11:12 PM EDT
4 months ago
Step 01 - 02First comment
Sep 1, 2025 at 11:12 PM EDT
0s after posting
Step 02 - 03Peak activity
1 comments in Start
Hottest window of the conversation
Step 03 - 04Latest activity
Sep 1, 2025 at 11:12 PM EDT
4 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45098775Type: storyLast synced: 11/17/2025, 10:05:05 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
During a production migration last year, we hit a nightmare: our backups looked fine, but restoring revealed schema mismatches and partial data loss. It cost hours of downtime, and we realized… we had no way to validate backups before trusting them.
That led me to build BackupGuardian — an open-source tool to validate database backups before migration or recovery.
What it does:
Detects corrupt/incomplete backups (.sql, .dump, .backup)
Verifies schema, foreign keys, constraints
Checks data integrity, row counts, encoding issues
CLI + Web App + API (CI/CD ready)
Supports PostgreSQL, MySQL, SQLite
Example:
npm install -g backup-guardian backup-guardian validate my-backup.sql
You get a report with a migration score, schema checks, and recommendations (like missing indexes).
We’re open source (MIT) → GitHub repo .
I’d love feedback on:
Other hidden backup issues you’ve run into
Integrations that would help (CI/CD? Slack alerts? MongoDB support?)
Whether this is useful for your workflows
Thanks!