Back Up Your Synology to a Spare Server With Rsync

A NAS is not a backup. Push scheduled rsync backups from your Synology to a spare Linux server: Shared Folder Sync, Task Scheduler scripts, and verification.

Updated

Your NAS Is Not a Backup. This Makes It One.

Here's the uncomfortable truth every homelabber eventually learns: a NAS — even a big one, even a RAID one — is a single device in a single place, and everything on it shares its fate. Hardware failure, a corrupted filesystem, theft, fire, or one bad deletion syncs everywhere instantly. RAID protects you from a dead drive. It does not protect your data.

The good news: the cheapest real backup most homelabbers can build uses a spare computer they already own — an old PC, a mini PC, a home server with free disk space — plus rsync, the venerable file-transfer tool built into your Synology. This guide shows how to set up a scheduled, NAS-initiated backup to a second machine, and the checks that make sure it's a backup you'd actually survive restoring from.

Step Zero: Know What You're Protecting

Before backing up, look at what you have. In Storage Manager, check your storage pool's RAID type:

  • SHR / RAID 1 / RAID 5 / RAID 6 — you survive a drive failure, but nothing else on this list: not deletion, not ransomware, not the NAS itself dying.
  • RAID 0 or a single basic volume — common in home setups, and it means one drive failure takes the entire pool. If this is you, this backup is not an optimization. It's the only copy standing between you and total loss, and you should build it today.

Also decide what actually needs backing up. Your irreplaceable data — photos, documents, Docker configs, VM images — is usually a fraction of the volume. Bulk replaceable media (a TV library you could re-download) is a judgment call. Excluding it can shrink a backup from "impossible" to "overnight."

The Layout: Push, Don't Pull

The simplest reliable pattern is: the NAS initiates the backup and pushes to the spare server. Two reasons:

  • DSM restricts inbound rsync by default — pulling from a Synology requires enabling the rsync service and sorting out account privileges, and it's fiddly for no benefit.
  • A push fits how Synology wants to work. DSM even ships a purpose-built tool for it, Shared Folder Sync, alongside the more flexible options below.

On the receiving side — any Linux server, including an old PC running Ubuntu — you need an SSH/rsync target with enough free disk. No special software.

Option A: Shared Folder Sync (The Easy Way)

DSM's built-in Shared Folder Sync (Control Panel → File Services / Shared Folder Sync) pushes shared folders to another rsync server on a schedule:

  1. On the target server, enable SSH and make sure an rsync daemon or SSH-based rsync is available, with a user that has write access to the backup directory.
  2. On the Synology, create a sync task per shared folder, point it at the target, and set a schedule (nightly is typical).
  3. Run the first sync manually and watch it complete — initial copies are the long ones.

It's one-way (the NAS is the source of truth) and not encrypted by itself, so prefer it on your LAN or over a VPN. What it lacks in flair it makes up for in "it just runs."

Option B: rsync Over SSH From Task Scheduler (The Flexible Way)

For more control — exclusions, checksums, multiple sources — run rsync yourself from DSM's Task Scheduler (Control Panel → Task Scheduler) as a scheduled user-defined script:

rsync -aHAX --delete --exclude='videos/' \
  -e "ssh -i /path/to/backup_key" \
  /volume1/data/ [email protected]:/backups/nas/data/

The details that make or break it:

  • Key-based SSH. Generate a key for the backup user, install the public half on the target, and test the exact command by hand before scheduling it. Scheduled jobs fail silently on password prompts.
  • --delete is a loaded gun. It makes the destination an exact mirror — including mirroring your accidental deletions. That's fine if the target keeps its own snapshots (Btrfs/ZFS snapshots on the receiving server are ideal) or if you also keep a second, independent backup. Without one of those, consider dropping --delete and pruning manually.
  • Exclude deliberately. Caches, transcoding folders, recycle bins (#recycle), and huge replaceable shares don't need the trip. Every exclusion you justify is time and disk saved every single night.
  • Checksums occasionally. rsync's default size-and-time comparison is fast and fine nightly. A periodic --checksum run (monthly, say) catches silent corruption that metadata checks miss.

The Part Everyone Skips: Verify

A backup you haven't tested is a hope, not a backup. Cheap, meaningful verification:

  • Read the logs. Schedule the job to email you its result, or check Task Scheduler's run history weekly. The most common backup failure is a job that errored in March and was noticed in October.
  • Spot-restore something. Once in a while, copy a file back from the target and open it. Thirty seconds, total certainty.
  • Check the target's disk. A backup that stopped because the destination filled up looks exactly like success in a list of green checkmarks — until you read the log. (See point one.)
  • Keep one copy elsewhere. A second machine in the same house covers hardware failure, not house failure. An external drive you rotate off-site, or a cloud copy of just the irreplaceable folders, closes that gap. The classic rule is 3-2-1: three copies, two media, one off-site. The rsync backup in this guide gets you the all-important second copy — build from there.

The Bottom Line

Your Synology is a great place to keep data and a terrible place to keep the only copy of it. A spare server, an SSH key, and a scheduled rsync push turn it into a real backup system in an afternoon — no subscriptions, no proprietary formats, just your files in a second place, restorable with the same tool that put them there. Build it before you need it. Everyone learns this lesson exactly once, one way or the other.