Time to read: 3 min read
When you’re running a home server that stores your personal files, photos, media, and even services like Pi-hole or Jellyfin, a proper backup strategy isn’t optional—it’s essential. Data loss can happen due to hardware failure, accidental deletion, or even corruption. That’s why I follow a proven and practical method known as the 3-2-1 backup strategy.
In this blog post, I’ll walk you through how I’ve implemented this strategy using a combination of external SSD storage and network-based backups over SSH.
The 3-2-1 rule is a simple yet powerful backup principle:
This strategy reduces the risk of total data loss by spreading your backups across multiple locations and types of storage.
My home server is the heart of my digital setup. It hosts:
This is where the primary copy of all my data lives.
To maintain a local backup, I’ve connected an external SSD directly to my home server.
rsync
.Here’s a sample of the SSD backup script:
#!/bin/bash
SOURCE="/data"
DEST="/mnt/backup_ssd"
echo "Starting backup to external SSD..."
mkdir -p "$DEST"
rsync -azP --delete "$SOURCE/" "$DEST/"
echo "Backup to SSD completed."
Here is the actual script of mine. Github Repo (opens new window)
This makes sure the SSD always has the latest version of my data and also removes deleted files for consistency.
To fulfill the offsite part of the 3-2-1 strategy, I’ve also implemented a remote backup over my local network.
Here’s how it works:
rsync
over SSH.Here’s a sample of the SSH-based backup script:
#!/bin/bash
SOURCE="/data"
REMOTE_USER="user"
REMOTE_HOST="192.168.1.10"
REMOTE_PATH="/mnt/backup/data"
echo "Starting remote network backup..."
rsync -azP -e ssh "$SOURCE/" "$REMOTE_USER@$REMOTE_HOST:$REMOTE_PATH"
echo "Remote backup completed."
This ensures I’m keeping a secondary backup in a different physical location, even if it's just across the network.
Implementing a backup strategy might seem tedious at first, but trust me—it’s worth every bit of effort. Data loss can be painful and costly, especially when it comes to irreplaceable personal content.
By following the 3-2-1 strategy and using a mix of external SSDs and network-based backups, I’ve built a system that’s simple, reliable, and tailored to my setup. If you’re running a home server, I highly recommend investing time in your own backup plan—your future self will thank you.