Support For IT

Protect backups from ransomware

Ransomware on one PC often reaches whatever that PC can write to on the network, and a backup share is one of those places. Here's what VersionKeep does about it, and what you should add on the server.

What VersionKeep does

  • Versions aren't overwritten. A backup adds what changed and leaves earlier versions as they were. Files encrypted on the PC are backed up as new versions; the versions before them stay, for as long as the PC keeps versions (see How often and which versions).
  • It points out the moment. When many files change at once, the Restore page shows it, with one action to put that folder back as it was just before. See Put a folder back.
  • Putting a folder back can be undone. The files as they are now are backed up first, so nothing is lost if you chose the wrong time. The Always back up before a restore policy (RequireBackupBeforeRestore) makes sure nobody turns that backup off.
  • Clean-up waits when a folder empties. When a backed-up folder loses most of its files at one backup, Home says so, and clean-up removes nothing until someone answers, so the backups that hold those files stay.
  • It says when backups go missing. Backups deleted from a destination, or a destination put back to an older copy of itself, by anything but VersionKeep are events 1018 and 1019 in the Admin log.
  • One PC can't touch another's backups, with the permissions in Set up the share.
  • Backups are encrypted (AES-256), so a copy taken from the share can't be read without the PC's keys or its recovery key.
  • They're checked on their own. Each week VersionKeep checks a destination's backups and restores some files to compare them with the originals, and every day it reads part of the data back; a problem is event 1005 or 1029 in the Admin log. See Monitor backups.

What it can't stop: ransomware running on a PC with that PC's rights can delete that PC's own folder on the share. The server has to protect against that.

What to add on the server

  • Snapshots of the backup volume. On Windows Server, turn on Shadow Copies for the volume; on a Synology or QNAP NAS, scheduled snapshots of the shared folder, kept for a few weeks. A PC can't delete a snapshot, so its backups can be brought back even if its folder is wiped.
  • A separate account for administering the share, not one you use day to day, and no PC accounts in the administrators group.
  • A second copy away from the share, such as a NAS replicating to another site or to storage it alone can reach.
  • A destination PCs can add to but not delete from: restic's rest-server started with --append-only, given in the Destinations policy as rest:https://host/path. VersionKeep backs up to it and says that clean-up can't remove old backups there (event 1022); whoever runs the server cleans it up.

More in For IT