Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Baking up to UNAS-Pro from Synology

#1
Perhaps you could do a video on backing up from a Synology NAS (or other brand) to a UNAS. UNAS has good options for backing up its data but it has been hard for me to find a way to backup to the UNAS, which is what I purchased it for.
My current method is to map UNAS shares in Synology and then use a rsync script in Synology Task Manager to backup to those mapped folders.
I started with the script:
rsync -av /volume1/SynologyFolder /volume1/backups/UNAS_Mapped_Folder
That worked but was extremely slow. I then found out I could run multiple instances in parralel so I moved to this script, running on the Synology (with a lot more folders not listed here):
rsync -av --exclude='@eaDir*' /volume1/music /volume1/backups/UNAS_Share &
rsync -av --exclude='@eaDir*' /volume1/photo /volume1/backups/UNAS_Share &
wait
Unifi support informs me that installing rsync through SSH on the UNAS would violate support so the indirect folder method seems to be all I can do. An app would be much prefered.
Reply
#2
Your current approach using mapped shares and rsync from the Synology side is actually the correct method under the current UniFi limitations. Since UniFi will not support installing rsync server-side, and since it does not expose an rsync daemon or Hyper Backup style endpoint, the backup process has to be initiated by the Synology.

A few notes that might help refine what you already have:

Running parallel rsync tasks is the right call for large datasets. A single rsync stream hitting a remote SMB share will always be slow, but splitting into folders and running them in parallel gives a noticeable improvement. Your use of exclude rules is also exactly what you want.

If you want to speed things up even more, you can switch to using Synology’s built in Hyper Backup with an external SMB target. Hyper Backup will still use SMB under the hood, but it manages versioning and compression more efficiently than direct rsync. You lose the rsync granularity, but you gain reliability and easier restores.

Alternatively, you can mount the UNAS share using NFS instead of SMB if the UNAS firmware allows it. NFS removes a lot of overhead and rsync performs much faster over NFS. It depends on your UNAS firmware version, but if NFS is available it is worth switching.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)