BBBetterByte
Back to all articles
BetterByte Editorial Board •

How do you set up the 3-2-1 backup rule on a budget?

Learn how to set up the 3-2-1 backup rule on a budget using cheap hardware, free open source tools, and low cost cloud storage options.

How do you set up the 3-2-1 backup rule on a budget?

You set up the 3-2-1 backup rule on a budget by keeping 3 total copies of your data across 2 different storage media types, with 1 copy stored in a low-cost offsite cloud location. You do not need expensive commercial software or high-end servers to protect your files safely.

Losing personal photos, project code, or important documents can happen in a second. A spilled cup of water, a failed hard drive, or a stolen laptop can instantly destroy years of memories and work. Many people skip backups because commercial cloud software looks too expensive.

You can build a reliable backup system for less than the cost of a single takeout meal per year. By using open-source tools and simple hardware, you get strong protection while keeping full control of your private data.

Key Takeaways

  • Keep 3 total copies of your important files: 1 primary working copy and 2 backup copies.
  • Save those copies on 2 different physical media types, such as an internal SSD and an external USB drive.
  • Store 1 copy offsite in low-cost cloud object storage like Backblaze B2 or Wasabi.
  • Automate your backups using free command-line tools like Rclone or Restic.
  • Test restoring your files every few months to ensure your data stays intact.
  +-------------------------------------------------------+
  |                   [ Primary Laptop ]                  |
  |                Copy 1: Local Working Disk             |
  +-------------------------------------------------------+
                              |
              +---------------+---------------+
              |                               |
              v                               v
  +-----------------------+       +-----------------------+
  | [ USB External Disk ] |       | [ Offsite Cloud S3 ]  |
  | Copy 2: Local Backup  |       | Copy 3: Remote Backup |
  +-----------------------+       +-----------------------+

What is the 3-2-1 backup rule?

The 3-2-1 backup rule is a battle-tested strategy that requires keeping 3 copies of your data on 2 different types of media, with 1 copy kept at a separate physical location. This simple framework protects your files against hardware failure, user error, physical disaster, and local theft.

The first copy is your primary file set on your computer or phone. This is the copy you use every day. If this copy is the only one you have, a single dropped device or bad update can erase your data forever.

The second copy sits on a separate physical device in your home or office. An external USB drive or a network attached storage device fits this role well. Having a local secondary copy lets you restore large files quickly without downloading gigabytes over the internet.

The third copy lives offsite in a remote location. If a house fire, flood, or break-in damages your primary computer and local external drive at the same time, your offsite copy stays safe. Cloud object storage is usually the cheapest way to handle offsite storage today.

How do you choose affordable storage media for the 3-2-1 rule?

You choose affordable storage media by matching your data volume with low-cost hardware and pay-as-you-go cloud providers. Buying oversized hardware or paying flat monthly fees for cloud consumer apps often leads to unnecessary spending.

For your second local copy, a basic external portable hard drive or desktop USB drive is ideal. Mechanical USB drives offer a low cost per gigabyte compared to solid-state drives. If you only need to back up 500 gigabytes of documents and family photos, a small 1-terabyte external drive lasts for years.

For your offsite copy, avoid traditional consumer cloud drives that charge fixed monthly subscription fees regardless of how much space you actually use. Instead, look at cloud object storage services that charge only for the exact megabytes you store. Services compatible with the Amazon S3 protocol cost a fraction of a penny per gigabyte each month.

Storage Type Typical Upfront Cost Ongoing Cost Transfer Speed Best Role in 3-2-1
Internal SSD Built into device $0 Fast Copy 1 (Primary Data)
USB External HDD Low ($40 - $70) $0 Medium Copy 2 (Local Backup)
Home NAS Medium ($150 - $400) Electricity only Fast Copy 2 (Local Network Backup)
Cloud Object Storage $0 ~$0.005 / GB / month Dependent on internet Copy 3 (Offsite Encrypted)

How do you automate local and cloud backups with Rclone?

You automate local and cloud backups with Rclone by writing a short shell script that copies new and modified files to your external drive and cloud bucket. Rclone is a free, open-source command-line program that connects to dozens of storage providers and local directories.

First, you install Rclone on your system. You configure your remote cloud storage using Rclone’s interactive setup menu, which stores your API credentials securely in a configuration file.

The script below backs up a user folder to an external drive mounted at /mnt/backup_drive and syncs the same data to an offsite cloud bucket named my-cheap-backup.

#!/usr/bin/env bash
# Simple script to sync local files to USB drive and offsite cloud storage
set -euo pipefail

# Define source and destination paths
SOURCE_DIR="$HOME/Documents"
LOCAL_DEST="/mnt/backup_drive/Documents_Backup"
CLOUD_DEST="my_cloud_provider:my-cheap-backup/Documents"

echo "Starting local backup..."
# Copy modified files to external USB drive
rclone sync "$SOURCE_DIR" "$LOCAL_DEST" \
  --fast-list \
  --transfers 4 \
  --checkers 8 \
  --log-level INFO

echo "Starting offsite cloud backup..."
# Copy modified files to cloud storage
rclone sync "$SOURCE_DIR" "$CLOUD_DEST" \
  --fast-list \
  --transfers 4 \
  --checkers 8 \
  --log-level INFO

echo "Backup completed successfully!"

This script uses the rclone sync command. This command makes the destination match the source directory by copying only new or changed files. The --fast-list option speeds up processing by listing objects in large batches, which reduces network requests and saves processing time.

To make this script run automatically without user input, you can use a Linux systemd timer or a cron job. The example below shows a simple systemd service definition that executes your backup script in the background.

# /etc/systemd/system/daily-backup.service
[Unit]
Description=Run Daily 3-2-1 Rclone Backup
After=network-online.target
Wants=network-online.target

[Service]
Type=oneshot
User=alex
ExecStart=/usr/local/bin/daily-backup.sh

[Install]
WantedBy=multi-user.target

Next, you create a systemd timer file to trigger this service every night at midnight.

# /etc/systemd/system/daily-backup.timer
[Unit]
Description=Trigger daily backup service at midnight

[Timer]
OnCalendar=*-*-* 00:00:00
Persistent=true

[Install]
WantedBy=timers.target

After placing these two files in your systemd configuration folder, enable the timer using the systemctl control utility:

# Reload systemd configs, enable and start the timer
sudo systemctl daemon-reload
sudo systemctl enable --now daily-backup.timer

Now your backup runs every night automatically. If your computer is turned off at midnight, the Persistent=true setting ensures the job runs as soon as you turn the computer back on.

How do you encrypt and prune old backups automatically?

You encrypt and prune old backups automatically by adding end-to-end encryption to your offsite target and defining a strict retention policy. Storing raw files in the cloud leaves your private documents exposed if someone compromises your cloud account.

Rclone includes an encrypted remote type called crypt. It wraps around any target storage bucket and scrambles file names and file contents on your computer before uploading them to the server. Nobody at the cloud provider can read your files without your master password.

If you need full snapshot history instead of a simple file mirror, you can use Restic. Restic automatically breaks files into smaller chunks, removes duplicate data, encrypts everything by default, and allows you to prune old snapshots safely.

Here is a shell script using Restic to perform encrypted deduplicated backups to an offsite S3 storage bucket, followed by a cleanup rule to delete older snapshots.

#!/usr/bin/env bash
# Automated Restic backup script with encryption and policy pruning
set -euo pipefail

# Export environment variables for authentication and encryption key
export RESTIC_REPOSITORY="s3:https://s3.us-west-000.backblazeb2.com/my-restic-bucket"
export RESTIC_PASSWORD_FILE="/etc/restic-password.txt"
export AWS_ACCESS_KEY_ID="your_access_key"
export AWS_SECRET_ACCESS_KEY="your_secret_key"

echo "Initializing backup snapshot..."
# Create a new snapshot of the source directory
restic backup "$HOME/Projects" \
  --exclude=".git" \
  --exclude="node_modules" \
  --tag "daily-auto"

echo "Pruning old snapshots according to retention policy..."
# Keep 7 daily, 4 weekly, and 12 monthly snapshots, then remove older ones
restic forget \
  --keep-daily 7 \
  --keep-weekly 4 \
  --keep-monthly 12 \
  --prune

echo "Restic backup and pruning complete!"

In this script, --exclude flags prevent unnecessary folders like temporary node dependencies or local version control caches from wasting storage space. The forget --prune command enforces a clear retention window. It keeps daily backups for a week, weekly backups for a month, and monthly backups for a year, while purging excess data to keep cloud bills under control.

If you prefer running tools inside isolated containers, you can organize a local runner service using Docker Compose. The configuration file below defines a containerized environment that keeps a local backup agent ready on your home network.

version: '3.8'

services:
  backup-runner:
    image: restic/restic:latest
    container_name: local_restic_runner
    restart: unless-stopped
    environment:
      - RESTIC_REPOSITORY=/backups
      - RESTIC_PASSWORD=SuperSecretPassword123
    volumes:
      - /home/alex/important_data:/data:ro
      - /mnt/external_usb/restic_repo:/backups
    entrypoint: ["sh", "-c", "while true; do restic backup /data; sleep 86400; done"]

This Docker Compose setup mounts your local data directory as read-only (:ro) to ensure the backup process cannot accidentally modify or corrupt your original files. The container executes a snapshot command every 86,400 seconds, which equals exactly 24 hours.

How do you test your backups without spending extra money?

You test your backups without spending money by running a quarterly restoration trial into a temporary test folder. A backup system that has never been tested is not a reliable backup system.

Set a recurring calendar reminder every three months. When the reminder pops up, choose 5 random files from your cloud repository and restore them to a temporary folder on your disk. Verify that the files open cleanly without errors.

#!/usr/bin/env bash
# Quick script to verify and test restic repository integrity
set -euo pipefail

export RESTIC_REPOSITORY="/mnt/external_usb/restic_repo"
export RESTIC_PASSWORD="SuperSecretPassword123"

echo "Checking repository structure and index errors..."
restic check

echo "Restoring latest snapshot to temp verification directory..."
mkdir -p /tmp/backup-test
restic restore latest --target /tmp/backup-test --path "/data/sample-doc.pdf"

echo "Verification complete. Test file restored to /tmp/backup-test"

Running restic check checks your storage repository for damaged index entries or corrupt data blobs. Restoring a single sample file takes under 30 seconds and proves your keys, passwords, and connection credentials still work.

Action Plan

Follow these concrete steps to build your low-cost 3-2-1 backup pipeline today.

  1. Inventory your critical data: Pick the folders you cannot afford to lose, such as financial records, original photos, and personal code repositories. Skip system folders that can be reinstalled easily.
  2. Buy an inexpensive external USB drive: Find a basic 1-terabyte or 2-terabyte external hard drive. Plug it into your primary computer and format it using a standard filesystem like EXT4 or NTFS.
  3. Open a cloud object storage account: Sign up for an S3-compatible cloud object storage provider. Create a private bucket and generate a set of restricted API credentials.
  4. Configure Rclone or Restic: Install your chosen tool using your system software package manager. Add your local drive destination and your remote cloud storage credentials to the setup file.
  5. Set up an automatic daily schedule: Save your backup script and configure a cron job or systemd timer to run every midnight. Verify that the task completes successfully after the first run.

Frequently Asked Questions

Is the 3-2-1 backup rule still useful for normal individuals?

Yes, the 3-2-1 backup rule remains essential for anyone who values personal data. While major tech companies manage their own servers, your local computer drives and phone storage remain single points of failure. Having local and offsite copies keeps your personal files safe regardless of physical accidents or account lockouts.

What is the cheapest offsite cloud storage option?

Cloud object storage providers that offer S3-compatible APIs are the cheapest option. Instead of charging fixed monthly subscription tiers, they bill only for the exact storage space you use. Storing 100 gigabyte files usually costs less than $1 per month on providers like Backblaze B2 or Wasabi.

Should I use sync software or backup software?

You should use dedicated backup software or sync software configured with retention rules. Simple file syncing tools immediately upload accidental file deletions to the cloud, erasing your copies everywhere. True backup software keeps historic versions and snapshots so you can recover files deleted by mistake weeks ago.

How do I protect my offsite backups from ransomware?

Protect offsite backups by using client-side encryption and setting object lock immutability on your cloud bucket. Object locking prevents any incoming request from deleting or overwriting old backup snapshots for a specified number of days, ensuring ransomware running on your local machine cannot wipe out remote copies.

Can I use a flash drive as my local backup media?

You can use a USB flash drive for small backups, but dedicated external hard drives or portable SSDs are more reliable. Basic thumb drives use cheaper memory chips that wear out quickly under frequent write cycles. External hard drives offer better endurance and lower cost per gigabyte for long-term daily backups.

Final Thoughts

Setting up a complete 3-2-1 backup system does not require expensive monthly software packages or complicated hardware arrays. By pairing a simple USB external drive with low-cost cloud object storage and free open-source software, you get rock-solid protection for a few dollars a year.

Take 20 minutes today to plug in an external drive and write your first automated backup script. Your future self will thank you when an unexpected system crash turns into a minor five-minute recovery step instead of a catastrophic loss.

Tags:#Backups#Data Storage#Rclone#Automation#DevOps
Keep Reading

Related Articles

View all articles