The short answer
Every night a script restores the latest backup of each app into a throwaway database, checks that the tables and data are there and close to live, then reports success to an uptime checker running outside our server. If the restore fails, we get an alert. If the report never arrives, because the drill didn't run at all, we get an alert too.
On this page
Most small teams have backups. Fewer have restored one recently. A backup can fail in quiet ways: a dump cut short when the disk filled, a job that stopped running after a config change, a file that exists but won’t load. You find out on the day you need it.
In November 2026 we made restoring part of the nightly routine for Mesito (our real-estate CRM) and Kommo (our salon hiring app). This post covers what the drill does, what makes it fail, and how we get told when it doesn’t run.
What does the drill do?
Every night, after the backup:
- Take last night’s backup, the same file a real recovery would use.
- Restore it into a throwaway database in its own container, never into anything live.
- Compare it with live. The restored copy must have the same tables, and its data must be in line with the live database. It won’t match exactly, because live has moved on since the backup.
- Report the result. On success, the script pings an outside uptime checker. On failure, the server sends an alert.
- Throw the copy away, so drills don’t fill the disk.
On the first runs, both restores held the same set of tables as live.
How do we know the drill can fail?
A check that can’t fail proves nothing. We fed the drill a truncated dump, a backup cut off part-way through, as happens when a disk fills during a backup. The drill failed, as it should. A backup that is only a file of the right name isn’t enough to pass.
Why does the success report go outside the server?
A drill that fails loudly is easy. The hard case is a drill that never runs: the timer was disabled, the server was rebooted into a bad state, or the job was removed during a clean-up. Nothing fails, so nothing alerts.
So the alert works the other way round. Each drill has a heartbeat: an uptime checker running on Cloudflare, outside our server, expects a ping after each successful run. If the ping doesn’t arrive in time, it alerts. Silence is treated as a failure.
The checker has to live somewhere else. A checker on the same server goes quiet together with everything it’s supposed to watch.
We use the same heartbeat for the backups themselves, so a backup that never ran also alerts, not only a restore.
What did we change on other apps?
Another app we run had a restore test, but monthly. We moved it to nightly; its first nightly run took 26 seconds. A test that runs once a month tells you that backups worked up to four weeks ago. A nightly one tells you they worked last night.
When we moved a CRM from SQLite to PostgreSQL with object storage, the backup became one file holding the database dump and every stored file. A backup only counts once a restore into a throwaway database and bucket has worked.
What does this cost?
Little. The drill runs at night when traffic is low, and the throwaway database exists only for the length of the run. The real cost was writing the comparison: deciding what “close enough to live” means for each app.
The short version
- Restore every night, into something disposable, with the same file a real recovery would use.
- Prove the drill fails on a broken backup.
- Send success to a checker outside your servers, and alert on silence, not only on errors.