Guide Guides
How to back up your phone and computer so your backup survives ransomware
A stolen phone, a dead drive, or ransomware that encrypts everything it can reach. In the SOC we see the same ending again and again: people whose backup was kept apart from the device lose a day's work at most. People who relied on sync alone often lose everything. Here's what to back up, how to switch backups on for iPhone, Android, Windows and Mac, and how to apply the 3-2-1 rule at home or in a small business.
Key points
- Back up anything you couldn't replace: photos, videos, documents, contacts and messages. Turn on automatic backup on your phone and computer.
- Sync isn't backup: a deleted or encrypted file syncs everywhere. A backup is a separate copy you can restore an earlier state from.
- The 3-2-1 rule: three copies of your data on two different devices, one of them away from your home or office. Keep at least one copy offline – an external drive you only plug in while backing up.
- Test a restore every now and then, and protect the account that holds your backup with two-step verification or a passkey.
What to back up
The UK's National Cyber Security Centre (NCSC) says to back up anything you couldn't easily replace:
- photos and videos – the hardest loss, and nobody can give them back,
- documents – contracts, invoices, schoolwork, tax returns,
- contacts, messages and other personal information.
You don't need to back up apps or programs; you can download them again. Back up your data and settings.
Sync isn't backup
The most common misconception: "It's in the cloud, so I'm safe." Sync services (OneDrive, iCloud Drive, Google Drive) keep the same content on every device. Delete a file, overwrite it, or let ransomware encrypt it, and that change spreads everywhere within moments. The NCSC specifically warns against relying on sync alone: a backup is a separate copy you can restore an earlier state from.
Sync protects you when you lose a device. A backup also protects you from mistakes, deletion and attacks.
The 3-2-1 rule
Both the NCSC and Slovakia's national CSIRT, SK-CERT, recommend it:
- 3 copies of your data (the original plus two backups),
- 2 different devices or media (say, your computer and an external drive),
- 1 copy offsite – the cloud counts.
The NCSC adds an offline rule: keep at least one backup disconnected at any given time, so a single incident can't reach every copy. SK-CERT says the same – your backup drive shouldn't stay connected to the device, only while a backup runs.
Turn on automatic phone backup
iPhone (iCloud) – according to Apple:
- Connect to Wi-Fi.
- Go to Settings → your name → iCloud → iCloud Backup.
- Turn on Back Up This iPhone – backups then run automatically while the phone is locked, on Wi-Fi and charging.
- Tap Back Up Now to start one straight away.
Android (Google) – according to Android Help:
- Open Settings → Google → All services.
- Under Backup and restore, tap Backup and turn it on, or tap Back up now.
Google backs up apps and app data, call history, contacts, device settings, and SMS and MMS messages. Photos and videos are backed up by Google Photos. The help page says you get 15 GB at no charge. Menu names can vary slightly by phone maker and Android version.
Back up your computer
Windows 11 – according to Microsoft:
- Sign in to Windows with a Microsoft account (work and school accounts aren't supported).
- Search the Start menu for Windows Backup and open it.
- Under Folders, switch on Desktop, Documents, Pictures, Videos and Music – they're stored in OneDrive. A free account includes 5 GB.
- Switch on backup for apps and settings too, then select Back up.
Bear in mind that OneDrive is sync. If you have a Microsoft 365 subscription, Microsoft says Restore your OneDrive can roll your whole OneDrive back to any point in the last 30 days – which also helps after ransomware. Without a subscription you can only restore individual files. Make a manual copy to an external drive regardless.
Mac (Time Machine) – according to Apple:
- Connect an external drive (USB or Thunderbolt). Apple recommends at least twice your Mac's storage capacity, used only for Time Machine.
- Choose Apple menu → System Settings → General → Time Machine.
- Click Add Backup Disk, pick the drive and turn on Encrypt Backup.
Apple says Time Machine then keeps hourly backups for the past 24 hours, daily backups for the past month and weekly backups for earlier months. A drive that's permanently connected isn't an offline copy, though. Unplug it after backing up, or keep a second drive that you connect only now and then.
Protect the account that holds your backup
A cloud backup is only as secure as the account it belongs to. The NCSC recommends:
- knowing which account your backup is linked to (family and work accounts are easy to mix up),
- protecting it with the strongest sign-in available – a passkey, or a strong, unique password plus two-step verification,
- keeping your recovery email and phone number up to date in case you get locked out.
An attacker who takes over your account can delete your backups. For cloud storage the NCSC also recommends version history and deleted-data recovery – check whether your provider offers them.
Test a restore every now and then
A backup you can't restore from is worthless. Both the NCSC and SK-CERT say to test restores regularly:
- open a few older photos and documents directly from the backup, not from your computer,
- check the date of the last backup (iPhone shows it under iCloud Backup; Windows shows it in the Windows Backup app or under Settings → Accounts → Windows backup),
- if you've lost data, act fast – some services only keep deleted files for a limited time.
For small businesses and IT admins
The same principles apply, just more strictly. SK-CERT recommends:
- separating backup infrastructure from production – its own storage, different admin credentials, no shared virtualisation – so an attacker with network admin rights can't disable, alter or delete it,
- encrypting backups so a stolen copy is useless to an attacker,
- backing up configurations, scripts and system images, not just data,
- testing restores of whole systems, not just checking that the backup job finished.
If an attack has already happened, see our guides Ransomware encrypted my files and Server compromised after an exploited flaw: the first hour. It's also worth checking your backup before selling your old phone and after a phone theft.
FAQ
My photos are in Google Photos or iCloud. Isn't that a backup?
Partly. The cloud protects you if your phone is lost or broken. But if you delete a photo, it usually disappears from the cloud too – you just get a grace period in the bin. That's why the UK's NCSC says not to rely on syncing alone. Copy your most important photos to an external drive every so often.
How often should I back up?
As often as the amount of data you're willing to lose. Automatic phone and cloud backups run on their own. Make a manual copy to an external drive at least once a month, and before any big change such as switching phones or reinstalling your computer.
Will a backup protect me from ransomware?
Only if the ransomware can't encrypt the backup as well. The NCSC warns that ransomware has encrypted connected USB drives, network storage and synced cloud folders. So keep at least one copy offline, or in a cloud service with version history and deleted-file recovery. Our ransomware guide covers what to do after an attack.
Should I encrypt my backup?
Yes, especially an external drive that could be lost or stolen. Time Machine on a Mac offers Encrypt Backup, and on Windows you can encrypt the drive with BitLocker if your edition includes it. Store the backup password in a password manager – without it you can't restore.
What if I run out of free cloud storage?
Google's help page says you can back up up to 15 GB at no charge, and a free OneDrive account includes 5 GB. If that's not enough, buy more space, or keep photos and videos on an external drive and use the cloud for documents and settings.
Sources
- NCSC UK – Protect your data (reviewed 1 December 2026)
- NCSC UK – Offline backups in an online world (13 August 2019)
- Apple – How to back up your iPhone or iPad with iCloud
- Apple – Back up your Mac with Time Machine
- Android Help – Back up or restore data on your Android device
- Microsoft – Back up your Windows PC
- Microsoft – Restore your OneDrive
- SK-CERT – Backups (ransomware, technical measures, in Slovak)
Spotted a mistake? Let us know and we will correct it openly.