The nightly backup job reports success, but the backup files in S3 are 0 bytes.
BeginnerTroubleshootingBackups, DR & Runbook Automation
Answer
Likely causes → The script pipes pg_dump | gzip | aws s3 cp -, and without pipefail only the last command's exit code counts; pg_dump failed (auth, connection) but the upload succeeded with empty input.
Diagnose → Check job logs for pg_dump errors and list object sizes:
aws s3 ls s3://backups/orders/ --human-readable | tail
Fix →
set -euo pipefail
pg_dump -Fc "$DATABASE_URL" | aws s3 cp - "s3://backups/orders/$(date +%F).dump"
Prevent → Alert on backup size anomalies and age, and verify each backup with a restore or at least pg_restore --list.
More on Backups, DR & Runbook Automation
`velero backup describe shop-nightly` shows `Phase: PartiallyFailed`.IntermediateAfter restoring a namespace into the DR cluster with Velero, PVCs stay `Pending`.Advanced`etcdctl snapshot save` fails with `Error: context deadline exceeded`.IntermediateA restore test fails with `pg_restore: error: could not execute query: ERROR: role "app_rw" does not exist`.BeginnerYou restored an RDS instance to a point in time, but the application cannot connect.IntermediateThe backup CronJob silently stopped running. Events show `Cannot determine if job needs to be started: too many missed start time (> 100). Set or decrease .spec.startingDeadlineSeconds or check clock skew.`Intermediate