Back up and restore a homelab
You will build a reliable backup system for your self-hosted services. You learn to distinguish between data that needs saving and items you can re-download. The course covers consistent database dumps and volume archives with checksums. You also create an off-machine copy and test the restore on a clean stack.
You finish by rebuilding the entire setup from a repository and the latest backup. You schedule automated backups using launchd to keep your data safe. This process ensures you can recover quickly if your machine fails. You gain confidence in your backup plan through practical, tested steps.
What you'll learn
- Identify which data volumes require backup versus re-downloadable items
- Create consistent database dumps using pg_dump from running containers
- Generate volume archives and verify integrity with SHA-256 checksums
- Copy encrypted backups to external storage and apply retention rules
- Rebuild services from zero and schedule backups with launchd
Who this is for
- • Developers moving into DevOps or infrastructure roles
- • System administrators learning modern tooling
- • CS students building practical skills
Prerequisites
- • Docker with Compose version 2
- • jq installed
- • macOS 26 or later
Course content
2 modules, 6 lessons, 20m of video
Module 1
3 lessons, 11 min
5 min
The learner sets up a small self-hosted service using Docker and decides what data needs to be backed up. The lesson establishes a backup plan, noting that database and application data volumes are backed up, while images and logs are not.
4 min
The learner uses pgdump to create a consistent database backup while the database is running. They verify the backup by restoring it and comparing the row counts of specific tables.
3 min
This lesson explains the components of a backup script, including the database dump, archive, and checksums. It details how these elements work together to create a self-checking backup.
Module 2
3 lessons, 10 min
4 min
The learner copies machine backups to an encrypted disk, verifies the copy, and prunes the backups to keep only the newest ones. This process follows a rule of keeping three copies of data on two different media with one copy elsewhere.
3 min
The learner tests a restore process by taking a backup from an encrypted disk and restoring it to a separate, empty stack. This process verifies that the restored files and row counts match the original backup.
5 min
The learner rebuilds a service from zero using a repository and the newest backup, and then schedules nightly backups using launchd. This process involves creating a runbook, scripting the backup, and setting up the automated job.
Get started
Start Free LessonFirst lesson is always free — no signup required
This course includes
Want all courses?
See Pro plan →Your instructor

Founder and CEO, Open Empower. About the author
More in AI Homelab on a Mac mini
All courses in this trackTurn a Mac mini into a reproducible homelab server
You will turn an Apple Silicon Mac mini into an always-on home server. You start by planning hardware choices and initializing a Git repository to track your setup steps. This foundation ensures your configuration is documented and ready for automation. You then configure remote access using SSH and Tailscale for secure connectivity. You also adjust power settings to keep the machine running continuously without interruption. Next, you use Homebrew with a Brewfile to manage software packages consistently. You create a Makefile that journals every command and output for full reproducibility. Finally, you add a read-only health check to verify system status. You learn to rebuild the entire setup on a clean machine from your repository.
Beginner · 4 lessons · 15 min · Updated Nov 2026
Preview free lesson
Virtual machines on Apple Silicon
You will build a Linux virtual machine on your Apple Silicon Mac using Colima and the Virtualization framework. You will point Docker to this VM and manage it with simple commands. You will share files between your Mac and the VM using virtiofs mounts. You will run AMD64 container images efficiently using Rosetta translation instead of slow emulation. You will size your VM correctly for your specific Mac hardware to avoid resource issues. You will create a plain Ubuntu VM with Lima for lab environments. You will configure launchd to start your VM automatically when you log in. You will learn to stop and clean up these virtual machines when you are done.
Beginner · 6 lessons · 20 min · Updated Nov 2026
Preview free lesson
Kubernetes on your Mac
You will build a multi-node Kubernetes cluster on your Apple Silicon Mac using kind. You start by creating a single-node cluster and then expand it to three nodes using a configuration file. You install applications with Helm and reach them from your Mac using ingress or Gateway. You also manage persistent storage and resource limits for your pods. You finish by tearing down and rebuilding the entire environment in minutes. You use a Makefile to automate the setup and cleanup process. This ensures your cluster is reproducible and easy to manage. You gain hands-on experience with a real cluster that runs entirely on your laptop.
Beginner · 6 lessons · 23 min · Updated Nov 2026
Preview free lesson