How a drill works
What happens from the moment a drill is queued until its sandbox is destroyed, and what happens when one is stopped part-way.
- QueuedA schedule comes due, or someone asks for a drill.
- ClaimedA runner takes the job.
- FetchedThe backup, or a copy DownDrill already holds.
- Read and sealedIt is checked and, if new, encrypted into the vault.
- RestoredIn a sandbox with no route out.
- CheckedThe asset’s checks run.
- DestroyedThe sandbox and the fetched backup are removed, pass or fail.
- RecordedThe control plane decides the result and writes the evidence.
When a drill runs
Each asset has its own schedule: every day, every week on a chosen day, or every month on the 1st, at a chosen hour in UTC; by default, every Monday at 03:00 UTC. An administrator can change it in Asset settings or press Pause scheduled drills; anyone in your organisation can still run a drill by hand.
The app and the evidence name what started each drill: schedule, manual (Run a drill now), held-copy (Test this copy), onboarding, standby or retry.
A first attempt that fails as timeout or runner_error is queued again at once as attempt 2, on the same held copy if it had one, and nobody is emailed unless attempt 2 fails too. No other cause is retried, nor is a warm standby start.
One drill at a time
An asset has at most one drill queued or running, a warm standby start included. While one is open, Run a drill now and Test this copy take you to it, and a schedule that comes due waits for it to finish. Until a runner takes a drill, an administrator can press Cancel queued drill, and it gets no evidence; once a runner has it, it runs to its end or its time limit.
The job and the runner
The app you sign in to, the control plane, never runs a drill. A runner, a separate process that drives Docker, takes the job over HTTP and holds it under a lease it keeps renewing. With it, the runner is handed the source, the checks, the targets, the time limit and the key for the copy, as the asset stands at that moment. Source credentials are opened only for that job, and the runner does not keep them. The runner’s progress lines, with secrets removed, appear on the drill’s page.
Fetching and sealing the copy
The runner downloads the newest backup under your bucket’s prefix (for WordPress, the newest complete set), dumps a live database through a relay as a role that can only read, or captures a running Compose project on the runner’s own Docker host, its named volumes mounted read-only. Uploads and held copies are read from the vault. See Where backups come from.
Before restoring, the runner reads what it has: archives end to end, a dump’s contents and version. A new backup found damaged, cut short or in a format or version DownDrill cannot restore fails there and is not kept; otherwise it is encrypted under a key of its own, stored in DownDrill’s vault as a new copy, and only then restored.
The sandbox
The restore runs in a sandbox made for that drill alone: a fresh internal network with no route out, volumes with nothing mounted from the runner’s machine, and containers limited in memory, CPU and processes. The only way out is for a live database dump: a relay to your database’s host and port alone, removed before the restore begins.
Each drill has a time limit, 30 minutes unless Asset settings sets another. At the limit the sandbox is destroyed and the drill fails, normally as timeout. When a drill ends, pass or fail, the runner removes everything it made and deletes the backup it fetched; only a warm standby start that passes keeps running. Isolation and security says more.
The restore, kind by kind
| Kind | What the restore does |
|---|---|
| Docker Compose application | Unpacks each volume archive into a named volume, then starts the services in dependency order. |
| WordPress | Starts a database and a web server at the versions the backup records, or substitutes the evidence names; imports the database, extracts plugins, themes and uploads, moves the site to the drill’s address and creates a test administrator. |
| PostgreSQL | Restores with pg_restore, or psql for plain SQL, into a throwaway server of the dump’s major version (18 when a plain dump does not say). |
| MySQL and MariaDB | Imports the single-database dump into a throwaway server chosen from its version header. |
What it restores has the formats and versions.
Checks and the result
The checks judge what the drill found, in four groups: before the restore, the restore, the restored system and recovery targets. Each ends passed, failed or not tested. A required check that cannot run fails; an optional one is not tested. See Checks.
The control plane works the result out again rather than taking the runner’s word: a drill has passed these checks only when at least one check passed, none failed and every required check is reported as passed. Any other reported pass is recorded as a failure, runner_error. Results and failures lists every cause.
What is recorded
Every drill that passes or fails gets a dated evidence page, a PDF, JSON and one entry in your organisation’s hash-chained ledger (Evidence and the ledger). A failure is emailed at once unless it is about to be retried, as is a pass that follows a failure, unless that pass is a retry (Alerts and reports).
Testing a held copy again
Test this copy, under Copies held on the asset’s page, restores those exact bytes again with the asset’s current checks, targets and time limit. Each file is first checked against the SHA-256 recorded when it was stored; a mismatch fails as corrupt_dump. The source is not contacted, and none of its credentials reach the runner except a Compose application’s registry login, for pulling images. Retention always keeps the copy marked Newest verified.
If a runner stops part-way
A runner that stops mid-drill stops renewing its lease. Within a few minutes the lease runs out and the drill fails as timeout, with the detail “The runner stopped responding and its lease ran out.” A first attempt is then retried. The same happens when a runner cannot deliver its report.
The stopped drill’s sandbox and fetched backup stay on the runner’s machine, unencrypted. A runner there removes them once the drill’s time limit, plus two minutes, has passed: when it starts, and every few minutes while it runs.
If no runner has checked in for two minutes, the app says so, and while that lasts a drill queued for more than 15 minutes fails as timeout. A drill waiting behind a busy runner keeps its place.