Every homelab eventually loses something. A drive fails, an update goes wrong, or a typo in a command deletes the wrong folder. The people who shrug and carry on are the ones with a backup plan, and the people who lose weeks of work are the ones who meant to set one up later.
This guide gives you a simple homelab backup strategy that fits a single mini PC and a small budget. You don’t need special hardware or advanced skills. If you haven’t built your machine yet, start with our mini PC homelab guide for beginners, then come back and set this up before you add many services.
Why a homelab needs backups
A homelab is a place to experiment, so things break on purpose and by accident. The data on it is often worth more than the hardware: your configuration files, your Docker Compose files, your password manager database, your virtual machines, and your notes. Rebuilding a mini PC takes an afternoon. Rebuilding months of settings from memory takes far longer.
Backups also make experimenting less stressful. When you know you can restore, you can try bigger changes.
Backup, snapshot, and RAID are not the same thing
Beginners often mix these up, and the difference matters.
- A backup is a separate copy of your data stored somewhere else. If the original is lost, you restore from the copy.
- A snapshot is a saved point in time on the same system, handy for undoing a bad change. If the disk dies, the snapshot dies with it.
- RAID keeps a system running when one drive fails. It does not protect you from deleted files, bad updates, malware, or a power surge that damages every drive.
Snapshots and RAID are useful, but neither replaces a real backup.
The 3-2-1 backup rule
The easiest rule to remember is 3-2-1:
- 3 copies of your data: the original plus two backups
- 2 different types of storage, such as the internal drive and an external USB drive
- 1 copy off-site, such as cloud storage or a drive kept at a relative’s home
For a beginner homelab, a practical version is: your live data on the mini PC, a second copy on an external drive that is plugged in only when needed or kept on a separate machine, and a third encrypted copy in cloud storage. You can start with just the first two copies and add the off-site copy later.
What to back up
You don’t need to back up everything. Focus on what is hard to recreate:
- Docker Compose files and the folders where your containers store their data
- Configuration files for services like Pi-hole, Home Assistant, and your router
- Virtual machine and container backups, if you use Proxmox
- Databases and password manager data
- Your notes, including IP addresses and setup steps
You can skip things you can download again, such as the operating system itself or container images. Those are easy to reinstall.
Backing up Docker services
If you run apps in Docker, the two things that matter are your Compose files and the folders mapped to your containers, usually called volumes or bind mounts. Keep all of them under one parent folder, such as /srv/docker, so a single backup job covers everything. Our Docker Compose tutorial for beginners shows a folder layout that makes this easy.
For apps that use a database, copying files while the app is running can produce a damaged copy. The safest approach is to stop the container briefly before the backup, or use the app’s own export or dump feature.
A simple way to copy a folder to an external drive is rsync:
rsync -av /srv/docker/ /mnt/backup/docker/This copies new and changed files and leaves the originals untouched. Check the paths carefully before you run any backup command. If you add the --delete option, rsync also removes files from the backup that no longer exist in the source, so test it on a small folder first.
Backing up Proxmox
If you chose Proxmox, backups are built in. You can schedule automatic backups of any virtual machine or container to another disk, an external drive, or a network location, all from the web interface. Proxmox also offers a separate free tool called Proxmox Backup Server, which stores backups efficiently by keeping only the data that changed. Not sure which platform to use? Read our comparison of Proxmox vs Ubuntu Server for a mini PC.
Whatever you use, send backups to a different disk than the one your virtual machines run on. A backup stored on the same drive as the original is not much protection.
Free tools worth knowing
- rsync is simple, built into Linux, and great for copying folders.
- restic makes encrypted, space-saving backups and can send them to cloud storage.
- BorgBackup is another popular tool for encrypted, compressed backups.
- Proxmox’s built-in backup covers virtual machines and containers.
Pick one tool and learn it well. Using one familiar tool is better than having three half-configured ones.
Where to keep your backups
For the second copy, an external USB drive is the cheapest option. A small network storage device or a second mini PC also works. Check current prices before you buy, and see our budget mini PCs for homelab use if you want a second machine.
For the off-site copy, cloud storage is the easiest route. Whatever you upload should be encrypted first. Tools like restic do this for you, so the provider only ever sees scrambled data. Keep your encryption password in a password manager and also somewhere separate, because a backup you can’t decrypt is useless.
Test your restores
A backup you have never tested is only a hope. Once a month, pick a small item and restore it somewhere else to confirm the files open and the data is complete. For a virtual machine, restore it under a new name and boot it. For Docker data, restore a folder and start the container from it.
Testing also teaches you the restore steps while nothing is on fire. Write them down in your notes so they are easy to find later.
A simple weekly routine
- Automate it. Schedule backups to run on their own, daily or weekly, with a cron job or the Proxmox scheduler.
- Check it. Once a week, glance at the backup logs or the backup folder to make sure new files are appearing.
- Test it. Once a month, restore one item.
- Update your notes. Whenever you add a service, add it to your backup list.
Common backup mistakes
- Keeping the backup on the same drive as the original. One failure takes out both.
- Relying on RAID or snapshots alone. They are not backups.
- Never testing a restore. You find out the backup is broken at the worst moment.
- Leaving an external drive plugged in all the time. Malware or a mistake can damage it along with the original. Unplug it, or use a separate machine for backups.
- Storing unencrypted data in the cloud. Encrypt before you upload.
- Making it too complicated. A simple plan you actually follow beats a perfect one you abandon.
Frequently asked questions
How often should I back up my homelab?
Daily is a good target for important data like Docker volumes and configuration files. Weekly is fine for virtual machines that rarely change.
Is RAID enough for a homelab?
No. RAID helps when a drive fails, but it won’t save you from accidental deletion, a bad update, or malware. You still need separate backups.
Do I need cloud storage?
Not on day one. Start with a local backup on an external drive, then add an encrypted off-site copy when you can, so you meet the full 3-2-1 rule.
What is the cheapest way to start?
An external USB drive and a scheduled rsync job. It costs little and covers most beginner needs.
Final thoughts
A good homelab backup strategy doesn’t need to be fancy. Keep three copies, use two kinds of storage, keep one copy off-site, and test a restore now and then. Set it up before your homelab grows, and you can experiment freely knowing that one bad day won’t erase your work.