Western Digital: My Cloud

RSYNC SETUP
- 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]


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

path = /shares uid = root gid = root read only = no list = yes secrets file = /etc/rsyncd.secrets
 * 1) to choose the desired WD share
 * 1) auth users = all

hosts allow = 192.168.1.4/255.255.255.0
 * 1) the IP address is the one of the Synology backing up to the WD. This provides some security.

^O to save to disk

^X to exit nano

rsync --daemon


 * 1) 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

Thanks to Etupes at WD Community