You need to create rsyncd.conf file, as it is not supplied by slaceware. A sample config file - /etc/rsyncd.conf:
Code:
uid=0
gid=0
[server1]
auth users = vivek
path = /
read only = false
secrets file = /etc/rsyncd.sec
/etc/rsyncd.sec file contains username and password:
Code:
vivek:viveksPassword
To start rsync in daemon mode, enter:
Code:
/usr/bin/rsync --daemon --config=/etc/rsyncd.conf
Finally, you can use rsync as follows to mirror /var/www folder:
Code:
rsync -e ssh -Ravzu --password-file=/etc/secret --stats --delete /var/www vivek@server2::server1 2>&1 > /var/log/rsync.log
/etc/secret should contains user vivek's password.