Skip to content
DBA Brain
SQL Server backup verification

Every SQL Server backup proven by restoring it

A backup that has never been restored is a hope. DBA Brain, an open-source DBA tool, takes FULL, DIFF and LOG backups, verifies each one, keeps a proven copy away from the database host, and restores them on a schedule onto a target you name - opened, checked with DBCC CHECKDB, and recorded file by file.

What every backup is held to

Six checks between a backup and a restore you can trust

Verified by the engine

RESTORE VERIFYONLY WITH CHECKSUM on each backup as soon as it ends, before anything else is done with it.

Hashed at the source

SHA-256 and size in bytes, taken on the database host and stored in a catalog on another host. The first hash can never be changed, not even by a direct UPDATE.

Re-checked while it is kept

Older files are hashed again after every run, those checked longest ago first. A changed file is CRITICAL, and so are ransomware markers; three changed or vanished files lock pruning and deletes until a person lifts it.

Copied off the host

To a Linux repository over SSH, in the same pass, compared by checksum and bytes - and, if you choose, encrypted there with age, so the repository cannot read what it holds.

Restored on a schedule

Onto the target the entry names, to the latest backup or a point in time the log backups cover. Only the chain that reaches that moment is copied, each file held to its checksum; nothing is replaced unless the entry says so.

Opened and checked

A restore counts only when the databases open to a real query and DBCC CHECKDB passes (on unless the entry sets checkdb off). Every file it applied - the full, the differential, each log - is recorded in order.

How a drill runs

From the backup to the proof, one message per step

Each step is said as it happens - in Telegram for the steps the entry's notify sends there, and in the run's record - so a failure names the step it stopped at, and why.

  1. Back upFULL, DIFF or LOG on the server, verified and hashed
  2. Copyto the repository, proven by checksum and bytes
  3. Stageonly the chain that reaches the moment asked, decrypted and checked
  4. Restorethe full, the differential, then each log, one message each
  5. Checkopen the databases, run DBCC CHECKDB
  6. Recordevery file applied, in order, on the backup and server pages
Why VERIFYONLY is not enough

Readable is not the same as restorable

RESTORE VERIFYONLY reads a backup and checks that it is complete and, with CHECKSUM, that its pages are intact. It restores nothing: it cannot show that the database opens, that it is consistent, or that the log backups reach the moment you will need. A restore followed by DBCC CHECKDB can - which is why DBA Brain runs both, and keeps the record of each.

Try it

Install, get a key, describe the backup and the restore

Backup and restore need a free dbabrain key - an email sign-in, 14 days, renewed with one command (what a key is).

shell
pip install "dbabrain[mssql]"
dbabrain init
dbabrain key-request

Then a backup entry and a restore entry, each field stated: the backup and restore reference, and everything else DBA Brain does.

FAQ

Questions asked first

Does it install anything on the SQL Server?

No agent, no extension, no stored procedure. DBA Brain runs on a machine of its own and reaches the server with a login that has the rights a backup and a restore need.

Can it restore to a point in time?

Yes, wherever the transaction log backups cover the moment. The restore is held to where it was asked to stop, and the files it applied are recorded in order.

What about PostgreSQL and Oracle?

The same loop: a base backup plus WAL checked with pg_verifybackup and pg_amcheck on PostgreSQL, RMAN with RMAN VALIDATE on Oracle. Backups for MySQL are not in this version.

Can someone set it up for us?

Yes - setting up DBA Brain on your servers, and backup and restore work in general, are among the DBA work we do: see what we do.