Introduction: Simplicity First

In a world where backup solutions multiply, it’s easy to be overwhelmed by costly and complex offers. Yet, a minimalist strategy can suffice to protect your most precious data.

I’m presenting today a method that relies on a 1 TB external hard drive costing less than $70 and two automatically executed rsync commands. This approach follows the 3‑2‑1 rule: local copy, external copy, and off‑site copy.

Essential Gear: The $70 External Hard Drive

The heart of this strategy is a portable hard drive. You don’t need an expensive SSD or a NAS solution. A 1 TB HDD— even at 5400 RPM—suffices.

You can find it at rock‑bottom prices on sites like Amazon or eBay. During a sale, an old laptop HDD in a USB 3.0 enclosure is just as reliable.

Folder Organization: Keep the Essentials in One Place

For rsync commands to run error‑free, you must centralize all data to back up into a single directory. This includes documents, photos, videos, and projects.

Non‑essential items such as the operating system or installed applications are easily reinstallable and don’t require daily backup.

  • /backup/my_data/
  • /backup/my_documents/
  • /backup/photos/

This simple hierarchy lets rsync traverse files quickly without extra complexity.

First rsync Command: Local Copy to the External Drive

The first step is to sync your main directory with the external hard drive. Typical syntax:

rsync -avz –delete /home/your_user/my_data/ /mnt/external_drive/backup_local/

Key options: -a for archive mode, -v for verbosity, and -z for compression. The –delete flag ensures that locally deleted files are also removed from the external drive.

Second rsync Command: Off‑site Copy to a VPS

For additional protection, you can send your data to a rented virtual private server (VPS). The command looks like:

rsync -avz –delete /home/your_user/my_data/ [email protected]:/var/backups/backup_offsite/

Here, [email protected] is your SSH account. Automate this task via crontab so it runs daily.

Managing SSH Keys

To avoid entering your password each sync, generate an RSA key pair and copy the public key to the VPS with ssh-copy-id. This makes the operation fully automated.

Conclusion: A Robust Solution Without Hidden Costs

By combining an affordable external hard drive with two simple rsync commands, you achieve a reliable, economical, and fully scripted backup strategy. You avoid costly cloud subscriptions and NAS complexity.

Try this method today: set up your crontab, run your first synchronizations, and enjoy guaranteed peace of mind. If you need help writing your rsync scripts or choosing an appropriate VPS, feel free to contact us or leave a comment below.

Original source
Xda-developers
My entire backup strategy is a $70 external drive and two scheduled commands
https://www.xda-developers.com/my-entire-backup-strategy-cheap-drive-two-commands/ →