WD Live - rsync

Rsync Server

The WD MyBook Live devices have an Rsync server built in to the firmware but it is disabled by default.  You can activate this server and make use of it for Linux based backups.

The following commands are issued from an SSH remote console.

Configuring the Rsync Server

Step 1:  Enable the Server

Modify the default settings to activate the server:

 

vi  /etc/default/rsync

 

change:

 

RSYNC_ENABLE=false

 

to

 

RSYNC_ENABLE=true

 

 

Step 2:  Create a Configuration File

The device does not have a configuration file for Rsync yet.  Create and edit the file:

 

vi  /etc/rsyncd.conf

 

Fill the file with the following content:

 

pid file = /var/run/rsyncd.pid

lock file = /var/run/rsync.lock

log file = /var/log/rsync.log

 

[rsync]

path = /shares/rsync

uid = root

gid = share

read only = no

list = yes

auth users = root

secrets file = /etc/rsyncd.secrets

 

Alter the details as appropriate for your system.  Change the  path  parameter to point to one of your configured share folders.

Step 3:  Create a Password File.

A separate file is used to store passwords for User ID's using the Rsync service.

 

vi  /etc/rsyncd.secrets

 

Fill the file with the following content:

 

root:password
 

Change  password  to a password of your choosing.

Step 4:  Set the File Permissions

Set the file permissions:

 

chmod 664  /etc/rsyncd.conf

chmod 600  /etc/rsyncd.secrets

Step 5:  Create a Startup Link

A link is created in the Run Level folder to ensure the Rsync server starts when the device is booted.

 

cd  /etc/rc2.d

ln  -s  ../init.d/rsync  S91rsync

reboot

 

Your device will restart and your Rsync server should be up and running.