How to Back Up Your Data So Ransomware Cannot Hurt You

An external hard drive connected to a laptop for backup

How to Back Up Your Data So Ransomware Cannot Hurt You

An external hard drive connected to a laptop for backup

How to back up your data so ransomware cannot hurt you? The answer is not to back up more; it is to back up differently. Ransomware operators know your backups are their biggest obstacle, so they encrypt or delete them first, before they touch your files.

A backup that lives on the same network, under the same credentials, as the data it protects is not a backup at all. It is a second copy waiting to be encrypted.

Here is the short answer. Follow the 3-2-1-1-0 rule: three copies of your data, on two different kinds of media, with one copy offsite, one copy offline or immutable, and zero errors when you test your restores.

The offline and immutable copy is the part most guides skip, and it is the part that actually saves you.

This article walks through the rule step by step, explains how ransomware attacks backups, and shows you how to test a restore so you know your plan works before you need it. It covers home users and small businesses, and it uses tools and services that are widely available and affordable.

Key Takeaways

  • Ransomware encrypts or deletes connected backups first, so a backup on the same network as your data is not protection.
  • The 3-2-1-1-0 rule means three copies, two media types, one offsite copy, one offline or immutable copy, and zero errors in restore testing.
  • Immutable storage, such as S3 Object Lock, prevents even an attacker with your credentials from deleting or changing a backup.
  • Restore drills should happen monthly, with a full restore at least once a year, because an untested backup is a hope, not a plan.
  • Recovery time and recovery point objectives decide how much data you can afford to lose and how fast you must be back.

A server room with rows of storage racks
Why Ransomware Attacks Your Backups First

Most backup guides ignore the fact that ransomware encrypts connected backups first, and that omission makes them dangerous. Modern ransomware is not a smash-and-grab. The operators spend days or weeks inside a network, mapping it, stealing data, and finding the backups before they trigger the encryption. When they finally strike, the backups are already gone.

The techniques are documented in the MITRE ATT&CK framework under T1490, which covers inhibiting system recovery. The common commands are familiar to any Windows administrator: vssadmin delete shadows removes the volume shadow copies that Windows uses for restore points, and wbadmin deletes the Windows backup catalogue. Both are legitimate tools, used here for illegitimate ends.

If your backup can be reached from the machine that gets infected, and the credentials to reach it are stored on that machine, the ransomware will reach it too.

The 3-2-1-1-0 Rule, Explained

The 3-2-1-1-0 rule is the standard that security professionals use, and it exists precisely because of the attack described above. Three copies of your data, on two different kinds of media, with one copy offsite, one copy offline or immutable, and zero errors when you test your restores. Each number fixes a different failure mode.

Three copies means the original plus two backups, so that a single failure cannot take everything. Two different kinds of media means that a failure mode affecting one kind, such as a ransomware strain that targets network storage, does not affect the other. One copy offsite protects against fire, flood and theft at your location.

The final two numbers are the ones that matter most against ransomware. One copy offline or immutable means a copy that the ransomware cannot reach or change, even if it has your credentials. Zero errors in restore testing means you have actually proved the backup works, by restoring from it, rather than assuming it does.

Immutable and Offline Copies: The Core Requirement

Immutable and offline copies are usually mentioned in passing in backup guides, as if they were a nice extra. They are not. Against ransomware, they are the core requirement, because they are the only copies the ransomware cannot destroy. Everything else is a copy the attacker can reach, and the attacker will reach it.

Immutable storage means a backup that cannot be changed or deleted for a set period, even by someone with administrator credentials. Amazon S3 Object Lock is the best-known example, and it works in compliance mode to prevent deletion until the retention period expires.

Many backup services now offer immutable storage, and it is worth paying for.

Offline copies are the low-tech version of the same idea. An external hard drive that is plugged in only during the backup, and unplugged and stored elsewhere the rest of the time, cannot be encrypted by ransomware that is not running when it is connected.

A drive rotation, with two or three drives swapped weekly, is one of the cheapest and most effective defences a small business can buy.

CopyWhere It LivesProtects AgainstRansomware-Proof?
OriginalYour computer or serverNothingNo
Local backupExternal drive or NASDisk failure, accidental deletionOnly if disconnected
Cloud backupOffsite cloud storageFire, theft, local disasterOnly if immutable
Offline copyUnplugged drive, stored elsewhereRansomware, credential theftYes, when disconnected
Immutable copyObject-locked cloud storageRansomware, insider deletionYes, for the retention period

A person checking a backup status on a laptop screen
Choosing Your Backup Tools

The tools matter less than the structure, but a few are worth naming. For home users, a cloud backup service that offers immutable storage or version history is the simplest option, and it should be paired with an external drive that is disconnected between backups.

The cloud copy handles the offsite requirement, and the drive handles the offline requirement.

For small businesses and technical users, open-source tools such as restic and Borg are popular because they support encryption, deduplication and cloud backends, and they can be scripted into a regular schedule.

They are powerful, but they need someone who understands them, and a misconfigured backup is worse than no backup because it creates false confidence.

RTO and RPO: How Much Can You Afford to Lose

Two concepts decide how your backup plan should be built. Recovery time objective, or RTO, is how long you can afford to be down. Recovery point objective, or RPO, is how much data you can afford to lose, measured in time.

A home user might accept an RPO of a day and an RTO of a day. A business that takes orders online might need an RPO of an hour and an RTO of a few hours.

Your RPO decides how often you back up. If you can afford to lose a day of work, a nightly backup is enough. If you can afford to lose an hour, you need hourly backups, and the cost and complexity rise accordingly.

Your RTO decides how your restore works: a full image restore is faster than rebuilding from files, and a cloud restore over a slow connection is slower than a local one.

Review them once a year, because a business that has grown will have a lower tolerance for downtime than it did when it was smaller.

Restore Testing: The Step That Proves It Works

Restore testing is the step that proves a backup works, and it is almost never covered in backup guides. That is a serious omission, because an untested backup is a hope, not a plan.

Backups fail silently: the software reports success, the files are there, and the restore fails when you need it, because a file was corrupt, a password was lost, or the backup was never actually complete.

The testing schedule is simple. Run a restore drill monthly, restoring a small set of files to a test location and confirming they open correctly. Run a full restore at least once a year, rebuilding a machine or a server from the backup and confirming it boots and works.

Record the results, including how long the restore took, and compare that to your RTO.

The first time you test, you will probably find a problem. That is the point. Finding it in a drill, when nothing is at stake, is infinitely better than finding it during a ransomware incident, when every hour costs money and every missing file is a crisis.

CISA’s StopRansomware Guide makes the same point, and it is worth reading alongside this article.

Backup Checklist: Build Your Plan

Work through this checklist to build a backup plan that survives ransomware. It is the same structure a security professional would use, scaled down for a home user or a small business.

  1. List what matters: documents, photos, email, databases, and anything you cannot recreate.
  2. Set your RTO and RPO, and write them down so the plan has real requirements.
  3. Choose a tool that supports encryption, versioning and immutable storage.
  4. Set up three copies: original, local backup and offsite cloud backup.
  5. Add the offline or immutable copy: a rotated external drive, or object-locked cloud storage.
  6. Separate the credentials: the backup account must not be reachable from the machines it protects.
  7. Schedule the backups and confirm they run, every week, without fail.
  8. Test a restore monthly, and run a full restore once a year.

Frequently Asked Questions

Does ransomware really delete backups?

Yes, and it is standard practice. Modern ransomware operators spend days inside a network finding and destroying backups before they trigger encryption, using tools such as vssadmin delete shadows and wbadmin. The MITRE ATT&CK framework documents this under T1490, inhibiting system recovery.

A backup that lives on the same network, under the same credentials, is not safe.

What is the 3-2-1-1-0 backup rule?

The 3-2-1-1-0 rule means three copies of your data, on two different kinds of media, with one copy offsite, one copy offline or immutable, and zero errors when you test your restores.

The offline and immutable copy is the part that protects against ransomware, because it is the only copy the attacker cannot reach or change.

What is immutable backup storage?

Immutable storage is backup storage that cannot be changed or deleted for a set period, even by someone with administrator credentials. Amazon S3 Object Lock is the best-known example. It works because the lock is enforced by the storage system itself, not by the credentials of the user asking to delete the file.

Is a cloud backup enough to protect against ransomware?

Not on its own. A cloud backup protects against fire, theft and local disaster, but if the ransomware can reach the cloud credentials stored on your machine, it can delete or encrypt the cloud copy too.

A cloud backup is safe against ransomware only if it is immutable, or if its credentials are kept separate from the machines it protects.

How often should I test my backups?

Run a restore drill monthly, restoring a small set of files to a test location and confirming they open correctly. Run a full restore at least once a year, rebuilding a machine or a server from the backup. Record how long each restore takes and compare it with your recovery time objective.

What is the difference between RTO and RPO?

Recovery time objective, or RTO, is how long you can afford to be down after an incident. Recovery point objective, or RPO, is how much data you can afford to lose, measured in time. Your RPO decides how often you back up, and your RTO decides how fast your restore must be.

Conclusion

How to back up your data so ransomware cannot hurt you comes down to one idea: the copy that saves you is the copy the ransomware cannot reach. Three copies, two media types, one offsite, one offline or immutable, and zero errors in restore testing.

That is the 3-2-1-1-0 rule, and it works because it assumes the attacker will find your first two copies and plan accordingly.

Start today, before you need it. Set up the offline copy, separate the credentials, and test a restore this month. The drill that finds a problem now is the drill that saves you later.

For more on ransomware, see our guides on what to do in the first hour after a ransomware attack, how ransomware works and how to avoid paying, your data was breached: a step-by-step response plan and the best cloud backup services for home users.

on this page