Skip to content

Server down: can your backup recover everything?

Yes, for everything that was in the last backup, provided you have two independent copies (one on site, one outside the practice) and have already tested restoring them. No, for anything created since that last backup: that data only exists on the failed server. You can often recover it from the old disk, if it is still readable and has not been damaged by a repair attempt. And a full restore takes hours, not minutes.

By Nasir Moxa, Founder of DeepIT

The scenario in brief

Example, invented for illustration. A Monday at 7:40 am, in a fictitious dental practice. The server running the radiology software is a virtual machine (a ‘software’ computer hosted on a physical server). Over the weekend, a Windows update was installed. This morning, the machine won't start: it shows the Windows recovery screen with an error code.

In Microsoft's documentation, this code means a corrupt and unreadable file. The practice's workstations no longer display X-rays. The last full backup dates from the previous week.

Here, step by step, is what a technician does in this situation, why, and the pitfall to avoid each time. The durations given are orders of magnitude for this example, not measurements.

StepWhat we doThe pitfall
1. ProtectCopy the machine's disk before anything elseRepairing the only copy of the recent data directly
2. RepairTry to repair Windows without starting itPersisting instead of moving to plan B
3. RestoreRestore last week's machine alongsideRestoring over the original
4. Catch upRecover the files created since the backupCopying a database that is still open
5. CheckCheck Windows and open a recent X-rayDeclaring ‘fixed’ without a real test

Step 1: before touching anything, copy the disk

What we do. We shut down the virtual machine (it is stuck on the recovery screen), then copy its disk (a large file that holds the whole machine) to another location, or create a checkpoint (a snapshot of the disk's state that we can go back to).

Why. This failed disk holds the only copy of everything done since the last backup: the week's X-rays, appointments, notes. Every repair writes to the disk. If it goes wrong, that data can be lost for good.

The pitfall. Launching a repair tool straight away ‘to save time’. Microsoft itself points out that a checkpoint is not a full backup. Here it serves as a safety net to roll back; the real safety copy remains the copy of the file.

Step 2: try to repair Windows in place

What we do. We start the machine in Windows recovery mode (it opens on its own after two failed start-ups). From there, we run the repair tools built into Windows, without starting Windows itself: they check the system files and replace damaged ones from a healthy copy of Windows.

Why. If the repair works, the practice carries on with today's data, without restoring anything. When it works, it is the fastest route.

In our example, it fails: Windows still won't start. We then roll back cleanly to the state before the attempt (the checkpoint or the copy from step 1), so as not to leave a half-modified disk.

The pitfall. Trying again and again for hours while the practice waits. Set yourself a time limit, then move to plan B: the restore.

Copy first, repair second. Step 1: shut down the machine stuck on the recovery screen. Step 2: copy the disk, the real safety copy, and create a checkpoint to roll back to. Step 3: try the repair with Windows' own tools; if it works, there is nothing to restore. Step 4: if it fails, roll back to the checkpoint without persisting, then move to plan B, the restore. Every repair writes to the disk: without a copy, a failed attempt can wipe the only trace of the week's data.

Step 3: restore the machine from the backup, alongside the original

What we do. We restore last week's virtual machine from the off-site copy (stored outside the practice). We restore it under a different name, alongside the failed machine, never over it.

Why alongside. The failed machine still holds the recent data (step 4). If you overwrite its disk with the backup, that data is gone. The old machine is only deleted at the very end, once everything has been checked.

What takes time:

  • The size of the disk. The whole machine has to be copied, not just the useful files.
  • The throughput. An off-site copy comes in over the internet connection of the practice or the data centre; an on-site copy, over the local network, is much faster.
  • The check. We make sure the restored machine starts and its files are readable before putting it back into service.

In this example, for a machine of around 150 GB restored from an off-site copy, allow several hours. This is a hypothetical order of magnitude: the real duration depends on the size, the connection and the backup tool. The only way to know it for your practice is to have measured it during a test restore.

The pitfall. Finding out on the day of the failure that the restore takes a whole day, or that the ‘successful’ backup won't restore. A backup that has never been restored proves nothing.

Restore alongside, never over it. On the left, alongside: the failed machine is kept intact with the recent data, and last week's machine is restored under a different name; the recent data can still be recovered from the old disk. On the right, over it: the failed machine's disk is overwritten by last week's backup; a week of X-rays, appointments and notes is gone. What takes time: the size of the disk, the connection speed and the checks; allow hours, and measure it during a test restore.

Step 4: catch up on what was created since the last backup

What we do. The restored machine dates from last week. Everything done since is missing. On the physical server, we open the old disk read-only and recover the recent files from it: the software's database, X-rays, documents.

Why read-only. Nothing can then change the old disk during the copy. If we make a mistake, it stays intact and we can start again.

The ‘cold’ copy. A database cannot be copied like an ordinary file while it is running. On the restored machine, we stop the database service before replacing its files with the recent versions, then start it again. Copying an open database gives an inconsistent copy, which may refuse to open or lose records. For practice software, we follow the vendor's procedure, and have the vendor check it if needed.

The pitfall. Believing the backup contains everything. It only contains what existed when it was made. Without this step, a week of X-rays would be missing.

Made-up example, the timeline. 1: last backup, last week. 2: the data created since (X-rays, appointments, notes) is only on the server's disk; the backup is empty for that period. 3: the failure, Monday at 7:40 am. 4: a new machine is restored alongside from the backup, then the data created since is caught up, copied from the old disk. Remember: the backup gives back what it contains; whatever was created since is caught up from the old disk, if it is still readable.

Step 5: check that Windows is healthy, then test with the team

What we do. On the restored machine, now running, we run the repair tools built into Windows and read their report to see what was found or fixed.

Then the check that matters: with someone from the practice, we open an X-ray taken this morning or last week, and check that it displays on the workstations and that the latest appointments are there. A machine that starts does not prove the data is complete.

The pitfall. Reinstalling the same update on the restored machine straight away. We defer it until we understand what damaged the disk, and keep the failed machine until everything has been validated.

What should you do when a Windows server won't start after an update?

First copy the disk, before any repair. Then try a repair from Windows recovery mode, with its built-in tools. If that fails, restore the last backup alongside the failed machine, then recover the recent data from the old disk (details in steps 1 to 5 above).

How long does a full server restore take?

Hours, rarely minutes. The time depends on the amount of data, where you restore from (on site or off site), the connection speed and the time needed to check. Add the catch-up of recent data and the tests with the team. The right figure is the one you measured during a test restore: it tells you how long your practice can go without its software.

Is data created since the last backup lost?

Not necessarily, but it is not in the backup. If the original disk is still readable (a Windows failure, not a destroyed disk), you can often recover it, as in step 4. If the disk is destroyed, encrypted in an attack or stolen, whatever was done since the last backup is lost. The more often you back up, the shorter that possible loss.

Backup, RAID, replication: what's the difference?

ProtectionAgainst whatWhat it doesn't do
RAID (several mirrored disks in the server)The failure of one diskIt also copies errors, deletions and files encrypted in an attack
Replication (a copy kept up to date on another server)The failure of a whole serverIt also copies the damage, a few minutes later
Backup (dated copies, kept over time)Corruption, mistakes, attacks, disastersIt doesn't contain what was created after the last copy

Only a backup lets you go back to yesterday or last week. RAID and replication help you keep running; they don't replace a backup.

RPO and RTO, in plain terms

  • RPO (acceptable data loss): how far back in time you must be able to return to. One backup a night means accepting the loss of, at worst, a day's work. In the example, the last full backup was a week old: that is a week of work that had to be caught up in step 4.
  • RTO (acceptable downtime): how long the practice can go without its system before it becomes a real problem for patients and the business.

These two figures are decided before the failure, with your IT provider. They determine how often to back up and which copy must be quick to restore.

RPO and RTO on a timeline. Three moments: the last backup, the failure, then back to normal. Between the last backup and the failure, the RPO: what you can lose, the work done since the last backup. Between the failure and the return to normal, the RTO: how long you wait without the system. Examples: with one backup a night, at worst you lose one day of work; in the article's example, the last full backup was a week old, so a week to catch up on. The more often you back up, the shorter the possible loss; the closer the copy, the faster the restore.

What this example teaches

  • Two independent copies. One on site, to restore quickly. One outside the practice, for fire, theft or an attack. This is the so-called 3-2-1 rule: three copies, on two different media, one of them off site.
  • A ‘successful’ backup doesn't prove you can restore. Only a test restore proves it.
  • A real restore takes hours. Better to know that before the failure.
  • You need a plan for recent data. Whatever was done since the last backup is recovered from the old disk, when it is still readable, and never by writing over it.

Check your own backup in 5 questions

  1. What exactly is backed up, and is the whole server (not just a few folders) included?
  2. Is there one copy on site and one outside the practice?
  3. How often? How much work would you lose at worst?
  4. When was the last test restore, and how long did it take?
  5. Who does what on the day of the failure, including recovering the recent data?

What DeepIT does

At the practices whose IT we manage, we set up an off-site backup, monitored by our team, as part of our managed IT services. We help you list what needs to be backed up and prepare what happens on the day of a failure. See also our pages on dental practices and medical IT.

Review your backups with us→