You need to restore last night's MySQL backup and discover the dump files for the past three months are 20 KB each.
IntermediateTroubleshootingData loss and corruption
Answer
Likely causes → The backup job "succeeded" with nothing in it: the dump command failed (auth error, wrong host) but the script didn't use set -o pipefail, so mysqldump | gzip returned gzip's exit code 0. Nobody alerted on size and nobody ever tested a restore.
Diagnose →
ls -lh /backups/mysql/ | tail
zcat /backups/mysql/2026-11-08.sql.gz | head -20
grep -i error /var/log/backup.log | tail
Fix → Use whatever else exists: RDS automated snapshots or PITR, replicas, binlogs, volume snapshots. Fix the script now and take a fresh full backup immediately.
set -euo pipefail
mysqldump --single-transaction --routines --triggers -h "$DB" app | gzip > "$OUT"
Prevent → A backup is only real once it's been restored. Run an automated weekly restore into a scratch instance with a row-count check, and alert on backup size changes greater than ±20%.
More on Data loss and corruption
An engineer ran `DELETE FROM orders;` on the production Postgres (forgot the `WHERE`) at 14:32.BeginnerA cleanup script deleted every object under `s3://acme-invoices/2025/`. Versioning is enabled.BeginnerUsers update their profile, the page reloads, and they see the old values; a minute later the new values show up.IntermediateA network partition between data centres lasted 4 minutes; afterwards you find both sites accepted writes as primary, and the same order IDs exist with different contents.AdvancedA deploy ran a migration that dropped the `phone` column; old pods still running during the rolling update threw 500s, and a background job wrote nulls into a new table.IntermediateSomeone ran `helm uninstall` on the production Postgres release; the PVC was deleted and the StorageClass has `reclaimPolicy: Delete`.Beginner