When a backup needs a restore test

GitLab.com’s 2017 database incident shows what a recovery note needs beyond the backup schedule. Start with the copy someone actually restored.

Based on GitLab’s February 2017 postmortem of the GitLab.com database outage. View sources ↓

The empty bucket

GitLab.com’s operators expected to find a daily database export in Amazon S3. When data was accidentally removed from the primary database on January 31, 2017, the bucket was empty. The export job had been using version 9.2 of the PostgreSQL backup tool against a 9.6 database. It stopped with an error, and the mail server rejected its failure notifications.

A backup schedule, an address for alerts and a storage destination would all have looked reassuring in a handover. None could tell the engineer on duty which database state was available to recover that night.

What the staging copy contained

Earlier that day an engineer had taken a production snapshot for load testing. It gave the team a recovery point of 17:20 UTC. Copying data from the slower staging disks took about 18 hours. GitLab restored webhook data separately. Git repositories and wikis lived outside the affected database and survived the data loss.

If an AI summary of this report gives you “GitLab restored its backups,” replace it with a sentence someone can check. Name the staging snapshot, give its timestamp and list the data that needed a separate recovery step. Someone investigating a missing issue can use those details even if they never joined the incident call.

Give the next drill an owner

GitLab identified a gap in who owned regular testing of the restore procedure. In your own team, ask one person to restore a named backup in an isolated environment. Have them check a recent record and a dependent feature, then publish the recovery point, elapsed time and anything missing. Link the result in the work log. Until someone runs that drill, keep its outcome open.

Sources