---
title: Backups: Setup and Restore Basics
category: General
summary: How to set up simple, reliable backups for a PC or Linux machine, and how to test that they can be restored.
applies_to: Windows 10 / 11 and Linux
related: 10-malware-cleanup-basics, 09-disk-space-low
---

## Symptoms

Use this runbook when:

- A user asks "how do I back up my files?" (set-up request).
- A user deleted or overwrote a file and wants it back (restore request).
- A drive is failing and you need to copy the data off first.
- You're reviewing whether a small office or home lab has any backup at all.

## Before you start

**The 3-2-1 rule** is an easy guide:

- **3** copies of your data (the original plus two backups),
- on **2** different kinds of storage (for example the PC and an external drive),
- with **1** copy kept somewhere else (cloud, or a drive stored off-site).

Two more rules: a backup you have **never tested restoring** is only a hope, and a backup drive that is always plugged in can be encrypted or deleted by ransomware along with the original, so keep at least one copy disconnected or in a cloud service with version history.

Also ask: **what actually needs backing up?** Documents, desktop, photos, email archives (`.pst`), browser bookmarks, project folders. Programs can be reinstalled, so data matters most.

## Steps

### Set up a backup on Windows

1. **Cloud folder backup:** if the user has OneDrive, Settings > Accounts > **Windows backup** (Windows 11) lets Desktop, Documents and Pictures sync to OneDrive. (In Windows 10: OneDrive icon > Help & Settings > Settings > Backup > *Manage backup*.) OneDrive keeps version history and a Recycle Bin online.
2. **File History to an external drive:** plug in the drive, then open Control Panel > **File History** (or search "File History"), choose the drive and **Turn on**. It keeps versions of files in your user folders.
3. **Check it ran:** File History shows the last backup time. Set a reminder to look monthly.

### Set up a backup on Linux

1. Mount the backup drive (for example at `/mnt/backup`). Always do a **dry run** first; `--dry-run` shows what would be copied without doing it:
    ```
    rsync -avh --dry-run /home/user/ /mnt/backup/home-user/
    rsync -avh /home/user/ /mnt/backup/home-user/
    ```
    The trailing `/` on the source matters: it copies the *contents* of the folder.
2. Add `--delete` only when you really want the backup to mirror deletions (it removes files from the backup that no longer exist in the source). Always dry-run first.
3. Automate with cron (`crontab -e`), for example every night at 02:00:
    ```
    0 2 * * * rsync -a /home/user/ /mnt/backup/home-user/ >> /var/log/backup.log 2>&1
    ```
    (Make sure the drive is mounted at that time, and that the user running cron can write the log file.)
4. For versioned, encrypted backups, tools like `restic` or `borgbackup` are popular choices. Read their documentation before relying on them.

### Restore a file

1. **Ask:** the exact name, location, and when it was last good. Don't overwrite anything yet.
2. Windows: right-click the file's folder > **Restore previous versions** (if available), OneDrive online Recycle Bin / version history, or File History > *Restore personal files*. Restore to a **different folder first** and confirm it's the right version.
3. Linux: copy the file from the backup drive with `cp` or `rsync` to a temporary location, check it, then move it into place.
4. Have the user open the file and confirm it is the one they wanted.

### Test your backups (do this regularly)

- Pick a random file, restore it to a different location, and open it.
- Write down the date of the test. A backup that restored one file last month is far better than one nobody has checked.
- Check there is enough free space on the backup drive.

## Escalate when

- The backup drive is failing, full, or missing.
- A business-critical system, server or database has no backup or an untested one.
- A restore fails, or the data is corrupt or missing.
- You suspect ransomware (don't connect backup drives to an infected PC; see *Malware Cleanup Basics*).
- Data may be subject to retention or privacy rules.

## Ticket note template

```
Request: Backup setup / file restore / data copy from failing drive
Device: | User: | Data to protect: <folders>
Backup method: OneDrive / File History / rsync / other <name>
Destination: <drive name, location> | Off-site or cloud copy: Y/N
First backup completed: <date/time>, size ~ __ GB
Restore test: file <name> restored to <path> on <date> - opened OK Y/N
For restores: file <name>, from <source/version date>, restored to <path>; user confirmed Y/N
Next review date: 
Next step / escalated to: 
```
