Can I set up WDMyCloud as an rsync server for a Synology NAS?

After a few months, I finally came back to my problem and succeeded doing the following

  • enable SSH on the NAS

  • log as root welc0me

  • type the following commands

nano /etc/rsync.secrets

^O to save to disk, this file will be left empty, but the file needs to be there

^X to exit nano

nano /etc/rsyncd.conf

Type the following into the file

[shares]

the following path works fine. When you setup the backup task in the Synology, you will be able

to choose the desired WD share

path = /shares
uid = root
gid = root
read only = no
list = yes

auth users = all

secrets file = /etc/rsyncd.secrets

the IP address is the one of the Synology backing up to the WD. This provides some security.

hosts allow = 192.168.1.4/255.255.255.0

^O to save to disk

^X to exit nano

rsync --daemon

#for the Linux learners like me, that is 2 dash signs in front of daemon

Then go to the SYnology and set up a backup destination as a r-sync compatible server. Enter the IP address of the WD (better to have a fixed one). Enter root and welc0me as the user name and password. Pick the “shares” in the list of modules. Then create a backup task using this destination. At that point, you will be able to pick a WD share as the backup directory for all the Synology data.

Run your backup task.

To start rsync automatically on the WD reboot, do the following:

In /etc/init.d/rsync

change

RSYNC_ENABLE=false

to

RSYNC_ENABLE=true

Same thing for  /etc/default/rsync

4 Likes