(Note · · 6 min read)

A backup you have never restored is not a backup

Almost every system has backups. Far fewer have backups anybody has opened. The gap between those two sentences is where data loss actually lives, because a backup is not a file you produced — it is a restore you have performed, and until you have performed one you are holding a belief rather than a copy.

By Md. Habibur Rahman Shohel, full-stack & AI product engineer in Dhaka

The job is restoring, not copying

A backup job that exits zero every night proves that a process ran. It does not prove the archive opens, that the dump is complete, that the encryption key still exists, or that anyone knows the procedure. Each of those fails quietly and none of them is visible from the job's exit code.

So the test is a restore, performed somewhere else, by someone following the steps. Do it before you need it. On a company mail platform I built, an archive was restored specifically to prove the backups actually open — not as a drill, but as the thing that made the rest of the setup meaningful. On a hotel booking platform where a release touched a live reservations database, the deployment's first gated step was a backup verified by a full restore before anything else was allowed to proceed.

That ordering is the point. A restore rehearsed during an incident is a restore you are learning for the first time, under the worst conditions you will ever face.

Pull the backups, do not push them

The architectural decision that matters most is which machine initiates the transfer, and it is usually made without thinking.

If the production server pushes its backups to storage, then the production server holds credentials that can write to that storage. Anyone who compromises the server inherits them. Modern attacks go looking for exactly this, because deleting or encrypting the backups is what turns an incident into leverage.

Invert it. Have a separate machine reach in and pull. That mail platform takes nightly backups of mail, encryption keys, the database and the spam-filter training, pulled off the server by an outside machine rather than pushed from it. The server holds no credential that reaches the backups, so compromising it cannot touch them.

Then restrict what the pulling machine can do

Inverting the direction creates a new question: that outside machine now has access into production. Make the access as narrow as the job requires.

On that platform the key is restricted to read-only transfer of one directory — no shell, no writes, no other paths. If the backup machine is compromised, the attacker gets a copy of the backups, which is bad, rather than a shell on the mail server, which is worse. Both ends are now failures you can survive separately.

Back up the things that are not the database

A database dump restored onto a system that cannot read it is an expensive lesson. If data is encrypted at rest, the keys are part of the backup set, and a copy of the ciphertext without them is archaeology.

The same applies to everything accumulated rather than authored: uploaded files, generated assets, certificates, and the learned state of things like spam filters. Decide explicitly what is reproducible from source and what is not. Anything in the second category belongs in the backup, and most teams discover the boundary in the wrong direction.

Check freshness, not just success

The classic silent failure is a backup that stopped succeeding weeks ago while nothing alerted, because monitoring only watched for errors and a job that no longer runs produces none.

Watch the age and size of the most recent archive, not just the last exit status. That mail platform includes backup freshness in hourly health checks alongside disk, queue and certificate expiry — and, importantly, the alert path itself was tested rather than assumed. An alert nobody has ever seen fire is not known to work.

What proving it looks like

  1. Restore the most recent backup onto a separate machine, following written steps.
  2. Open the data and confirm it is complete and current, not merely that the archive extracted.
  3. Include the keys, uploads and any accumulated state, and confirm the restored system can actually read what it holds.
  4. Confirm the production server holds no credential that can write to or delete the backups.
  5. Confirm the pulling machine's access is read-only, path-limited and shell-less.
  6. Alert on backup age, not only on job failure, and prove the alert fires.
  7. Write down how long a full restore took. That number is your real recovery time, and it is usually longer than anyone guessed.

None of this is advanced. It is the difference between having backups and having a recovery, and the first time anybody finds out which one you have is the day it matters most.

Common questions

How do I know my backups actually work?

Restore one. A job exiting successfully only proves a process ran, not that the archive opens, the dump is complete, the encryption keys exist or anyone knows the procedure. Restore the most recent backup onto a separate machine, open the data, and confirm it is complete and current.

Should backups be pushed from the server or pulled by another machine?

Pulled. If the production server pushes, it must hold credentials that can write to the backup storage, and anyone who compromises the server inherits them — deleting the backups is what turns an incident into leverage. A separate machine reaching in means the server holds no credential that reaches the backups.

What access should the backup machine have?

As little as the job needs: read-only transfer of a single directory, with no shell and no write access to other paths. Then a compromise of the backup machine yields a copy of the backups rather than a shell on production, and the two failures stay separate.

What should be in a backup besides the database?

Anything accumulated rather than authored: encryption keys, uploaded files, certificates and learned state such as spam-filter training. A database dump restored without its keys is unreadable ciphertext, which is usually discovered at the worst moment.

Why do backup failures go unnoticed?

Because monitoring usually watches for errors, and a job that has stopped running produces none. Alert on the age and size of the most recent archive rather than only on job failure, and test that the alert actually fires.

How long should a restore take?

Measure it rather than estimating. The time a full restore actually takes is your real recovery time, it is generally longer than anyone assumed, and knowing it before an incident changes what you promise during one.

Need something like this built?