Contents

Recovery debt

Recovery debt is the number of days since an asset last passed a drill. This page says how it is counted and shown, the backup age and restore time every drill measures, and what a missed recovery target does.

How it is counted

Recovery debt is the number of whole days since the asset’s most recent passing drill finished, or, if it has never passed, since it was added. A day is 24 hours, not a calendar date: a drill that passed at 03:07 UTC on a Monday shows 0 days until 03:07 on the Tuesday, then 1 day.

Any drill that passes brings it back to 0, whatever started it: the schedule, Run the first drill when the asset is added, Run a drill now, Test this copy, a retry or a warm standby start. Nothing else does. A failed drill leaves it counting from the last pass, and pausing scheduled drills does not stop the count.

Where it is shown

The Assets page lists every asset that has finished onboarding, by name rather than by debt, with its last successful drill, its recovery debt, its next drill and its last result. The number is coloured:

Recovery debtColour
0 daysGreen
1 to 7 daysNot coloured
8 days or moreRed
Never passedRed, from the day it was added

The asset’s own page shows it in the same colours under Recovery, beside its targets. Every failure email states it, as in the example below, and the email sent when a drill passes again gives 0 days.

What every drill measures

Every drill that gets far enough records two numbers, with or without targets.

Backup age
The time from when the backup was taken to the drill’s recovery-point check, or to the end of the drill. When it was taken is what the backup records, such as in a dump’s header, or else when the file was stored or DownDrill dumped or captured it; the evidence names which as the Timestamp source. With no time to read, the age is not known.
Restore time
How long the restore took in the sandbox, after the copy was fetched: for a PostgreSQL, MySQL or MariaDB database, importing the dump; for WordPress, importing the database, putting back the files and setting the site up; for an application, filling its volumes and starting its services, running each service’s HTTP and TCP checks as it starts. A restore that did not finish has none.

Both are in the Drills table on the asset’s page, in the evidence as “Backup age when verified” and “Restore time”, in the monthly evidence pack and in the email sent when a drill passes again.

Recovery targets

An administrator can give an asset two targets under Recovery targets (optional), in onboarding’s Smoke tests step or in Asset settings: The backup must be no older than, in hours, and The restore must take no longer than, in minutes. Blank means no target. Every asset starts with two optional checks that judge them, after every other check: Backup is within the recovery-point target and Restore is within the recovery-time target. A change applies to drills that start after it; earlier evidence keeps the targets it ran with.

TargetCheckWhat it says, for example
Not setnot tested“no recovery-point target is set for this asset”
Met or equalledpassed“the backup is 2 hours old; the target is 24 hours”
Missedfailed“the restore took 41 minutes; the target is 30 minutes”
Nothing to measurenot tested“the time the backup was taken could not be read”, or “the restore did not finish, so it could not be timed”

If you make a target check required, both not-tested rows fail the drill instead. The check compares exact seconds and its sentence rounds them: a backup 24 hours and 20 minutes old fails a 24-hour target, as “the backup is 24 hours old; the target is 24 hours”.

A missed target fails the drill, optional or not. If nothing else went wrong, the cause is smoke_test_failure, “The restore finished but a check failed”, with the check’s finding in the detail. It is not retried. The failure is emailed at once, the evidence says “missed (target 24 hours)”, and recovery debt goes on counting from the last pass. Removing a target check with Advanced: edit the checks as JSON stops a missed target failing drills, though the evidence still says whether it was met.

A worked example

A PostgreSQL asset named “Shop” is dumped by your own job to a bucket every night at 01:00 UTC. DownDrill drills it every Monday at 03:00 UTC, with targets of 24 hours and 30 minutes.

When (UTC)What happensRecovery debt
Monday 2 November, 03:07The drill passes. The 01:00 dump restored in 6 minutes and was 2 hours old when checked.0 days, green
Friday 6 November, 01:00The nightly dump runs for the last time. Then the job stops, unnoticed.3 days
Monday 9 November, 03:09The drill restores the newest dump, Friday’s, in 6 minutes and finds “the backup is 3 days old; the target is 24 hours”. It fails, and the email says “Recovery debt: 7 days since this asset last passed a drill (2 November 2026).”7 days, not coloured
Tuesday 10 November, 03:07Still no pass.8 days, red
Tuesday 10 November, 14:38The job is mended and dumps at 14:00. Run a drill now passes: backup age 38 minutes, restore time 6 minutes. The email that it passed again says “Recovery debt: 0 days.”0 days, green

The evidence JSON of the drill on 9 November has this part, spaced out here for reading; a value not measured, or a target not set, is null.

"recovery": {
  "data_age_seconds": 266880.412,
  "restore_seconds": 361.204,
  "rpo_met": false,
  "rpo_target_seconds": 86400,
  "rto_met": true,
  "rto_target_seconds": 1800
}

Without the recovery-point target, that drill would have passed and brought the debt to 0 on a backup 3 days old. That morning, the newest dump a drill had passed was a week old.

On the day you need it

On the asset’s page, Copies held lists each copy DownDrill holds with the time its backup was taken, where that is known, and marks as Newest verified the copy restored by the most recent drill that passed. The time its backup was taken tells you how old its data is today. For a Docker Compose application, a warm standby starts from that copy.

The restore time is measured in DownDrill’s sandbox. Restoring onto your own servers, changing DNS and telling people take time of their own, which no drill measures.