
Nobody believes they will be the one staring at a ransom note. Then it happens on an ordinary Tuesday. Files have strange extensions, the database will not start, and the person who set up the backups says, with a rising note in their voice, “they should be fine.” Then they check. The backup volume was mounted on the same server, and it was encrypted along with everything else.
That sinking feeling is exactly what immutable backups exist to prevent. If you run servers, whether a single dedicated machine or a whole fleet, this guide explains what immutability really means, how to build it without a huge budget, and how to make sure your backups actually work on the worst day of the year.
Why attackers go after your backups first
Modern ransomware crews are not in a hurry. Once inside, they commonly look around, steal credentials, find where your backups live, and quietly delete or corrupt them before they trigger encryption. They know that a working backup is the only thing standing between you and a payment. Guidance from agencies such as CISA’s #StopRansomware program puts offline, tested backups at the center of defense for exactly this reason.
So the question is not just “do I have a backup?” It is “could someone with my admin password erase it?” If the answer is yes, you have a copy, not a safety net.
What “immutable” really means
An immutable backup follows a write once, read many model. After the data is written, it cannot be changed or deleted until a retention period you set has expired, even by an account with full administrative rights. The storage itself refuses the request.
A quick honesty check: no backup system is literally ransomware-proof. Misconfiguration, stolen cloud root accounts, and badly chosen retention settings can still hurt you. What immutability gives you is tamper-proof backups that make the attacker’s most reliable move, deleting your recovery points, dramatically harder. Think of it as strong armor, not magic.
Practical ways to get immutable backup storage
Object lock storage
Many S3-compatible services support Object Lock. In compliance mode, nobody, not even the account owner, can delete a locked version before its retention date. Governance mode is more flexible and lets specially permissioned users override the lock. The Amazon S3 Object Lock documentation explains both modes clearly, and several other S3-compatible providers and self-hosted object stores implement the same idea. This is the most popular route to immutable backup storage today.
Append-only repositories
Tools like restic and BorgBackup can write to a repository that only allows new data to be added, not removed. Your production server can push backups but cannot erase old ones. It is a lightweight option for smaller setups.
Snapshots with holds
Filesystems like ZFS let you take snapshots and place holds on them so they cannot be destroyed casually. Pair that with replication to a second machine whose credentials are never stored on the production server.
Air-gapped backups
True air-gapped backups are disconnected from the network most of the time, whether on tape, rotated disks, or a system that only brings its network link up during a backup window. They are slower and more manual, but they remain the gold standard for protecting your most critical data.
| Method | Protection level | Best for |
|---|---|---|
| Object lock (compliance mode) | Very high. Cannot be deleted until retention ends. | Offsite cloud or S3-compatible copies |
| Append-only repository | High, if credentials are kept separate. | Small and mid-size server fleets |
| Snapshots with holds and replication | Medium to high. | Fast local restores |
| Air-gapped or offline media | Highest, but manual. | Crown-jewel data and long-term archives |
Build your plan around the 3-2-1-1-0 rule
You have probably heard of the classic 3-2-1 rule. The updated version adds two more digits, and they matter:
- 3 copies of your data
- 2 different types of storage
- 1 copy kept offsite
- 1 copy that is immutable or offline
- 0 errors after you verify and test restores
The offsite piece deserves emphasis. Offsite backups protect you from fire, flood, power failure, and a compromised primary site. Keeping them in a different data center, and ideally a different country, supports your wider business continuity goals. With dedicated servers across multiple regions, such as BeStarHost’s Germany and Singapore locations, it is practical to keep a backup target far away from your production machines.
Get your backup retention policy right
Here is a detail many teams overlook. Attackers often sit inside a network for days or weeks before triggering encryption. If your backup retention policy only keeps seven days of history, you might discover that every recovery point already contains the intruder’s work.
A sensible structure is layered: daily backups for a few weeks, weekly backups for a few months, and monthly backups for a year or more, adjusted to your industry and storage budget. Set the immutability lock period to cover at least your realistic detection window, then let older data age out so costs do not spiral. Longer is safer, but only if you can afford to keep it.
Encryption, integrity, and the keys problem
Backup encryption protects your data if the storage provider or a thief gets hold of it. Encrypt before the data leaves the server, and store the keys somewhere separate. A beautifully encrypted backup whose key lived on the compromised machine is just a very secure brick.
Backup integrity is equally important. A backup that silently corrupted last month is worth nothing. Use tools that checksum data, run regular verification jobs, and, above all, perform real restore tests. Schedule a restore drill every quarter: restore a database and a full server to a clean machine, and time it. The result is your actual recovery time, not the optimistic number in a slide deck.
Lock down the backup path itself
Good server backup security means treating the backup system like a vault, not another application server.
- Use separate credentials that are not reused anywhere else, with multi-factor authentication on every console.
- Give the production server write-only access. It should never be able to delete.
- Prefer a pull model, where the backup server fetches data, over a push model where production holds powerful keys.
- Keep the backup network segment isolated, and do not join backup hosts to the same domain or directory as production.
- Rotate secrets and audit access logs regularly. Our article on securing tools, credentials and sandboxes offers a useful mindset for credential hygiene.
- For an extra local guard, the chattr +i flag can block accidental changes on Linux, though a root attacker can undo it, so treat it as a speed bump, not a vault door.
Plan the recovery, not just the backup
Ransomware recovery and server disaster recovery are about speed and calm decisions. Before anything goes wrong, write down two numbers: how much data you can afford to lose (RPO) and how long you can afford to be offline (RTO). Then build a runbook that answers practical questions. Who makes the call to restore? Where do clean servers come from? How do you confirm the attacker is out before reconnecting? Which systems come back first?
Restore into a clean environment, change every credential, and patch the entry point before you reconnect. Many organizations keep a spare dedicated server ready or can provision one quickly, which turns a multi-week outage into a long weekend. The NIST Cybersecurity Framework is a useful map for the Protect, Respond, and Recover steps if you want a structure to follow. This is what cyber resilience looks like in practice: you expect to be hit once, and you are ready.
If databases are part of your picture, remember that replication is not a backup. We make the same point in our guide to ClickHouse hosting for real-time analytics, where replicas happily copy a mistake to every node.
Mistakes that turn good backups into bad ones
- Mounting the backup drive permanently on the production server.
- Storing backup credentials in the same place as production secrets.
- Setting retention so short that infected data replaces clean data.
- Never testing a restore.
- Locking data for a long period without budgeting for the storage.
- Protecting files but forgetting configurations, databases, and the keys needed to decrypt them.
A realistic 30-day starting plan
- Week 1: List every server and dataset, then rank them by how painful their loss would be.
- Week 2: Set up a separate offsite target with object lock or an append-only repository, and send your first full backup.
- Week 3: Turn on client-side encryption, store keys apart from production, and define your retention tiers.
- Week 4: Run a full restore test, record how long it took, and write the first version of your recovery runbook.
Need an offsite home for your backups?
A dedicated server in a different region makes a strong, independent backup target. Talk to the BeStarHost team about the right setup, or explore our server protection articles for more practical guides.
Final thoughts
Ransomware is a business problem dressed up as a technical one, and data protection is how you answer it. Immutable backups will not stop an intruder from getting in, but they take away the leverage that makes an attack profitable. Keep one copy offsite, make sure it cannot be erased, protect your keys, and rehearse your restores. Do those four things, and the next Tuesday that goes wrong becomes an inconvenience instead of a crisis.
