Gallery

INCIDENT · {{host_suffix}}

Nightly backups silently stopped

Eleven nights with no backup at all, and nothing said so — the dashboard went on showing the last successful run as though it were last night's.

Fixed11 nightsNo data lostWritten


In short A disk filled on the backup host, the nightly job began exiting early, and because it exited cleanly nothing noticed. Eleven nights ran with no backup written. Nothing was lost — the previous copies were intact and a restore test from the newest of them came back whole — but for eleven days we had one copy of everything instead of two.

What happened, in order

  1. Night 1The backup volume reached 100%. The job wrote its first chunk, failed, and exited 0 — it treats a write failure as "nothing to do".
  2. Nights 2–10Same each night. The dashboard read the last SUCCESSFUL run's timestamp, which never changed, and rendered it as the current state.
  3. Day 11, morningNoticed while looking for something else: the backup volume's size had not moved in a week and a half.
  4. Day 11, +20 minFirst theory was the schedule. Wrong — it had fired every night, on time, all eleven times.
  5. Day 11, +35 minFound the exit code. The job had been reporting success while writing nothing.
  6. Day 11, +50 minFreed space, ran the job by hand, watched it write. Backups resumed that night.
  7. Day 12Restore test from the newest good copy. Came back whole, which is the claim that actually matters.

What it was not

Why it happened

The disk filled, and the job reports a full disk as success.

Its write path treats "wrote zero bytes" the same as "had nothing to write", and exits 0 for both. Eleven nights of total failure and eleven clean exit codes.

The cause that actually cost us the eleven days is the second one: every check we had asked whether the job RAN, and it ran. Nothing asked whether a backup newer than yesterday existed. A monitor that watches the runner instead of the result cannot see this failure, and will not see the next one of its kind either.

What it cost

WhatHow much
Nights with no backup11
Data lostNone. Previous copies intact and restore-tested.
Time with only one copy11 days
Time from noticing to fixed50 minutes
Time from breaking to noticing11 days — the number that matters

What is being done

doneSpace freed and the nightly job writing again.
doneThe job now exits non-zero when it writes nothing, so a failure is a failure.
nowA check that asks whether a backup newer than 36 hours exists — watching the result, not the runner.
nextThe same check for the three other jobs shaped like this one.
heldAn alert when the volume passes 85%, which needs somewhere to send it.

What it taught

Check for the result, never for the attempt.

Every monitor here asked whether the job ran. A job that runs and does nothing satisfies all of them, and that is not an unusual failure — it is the ordinary one, because most things fail by doing nothing rather than by crashing. The check that would have caught this in a day is "is there a backup newer than yesterday", and it is the same shape for every job we have: assert the positive fact, never the absence of a complaint.