Friday, April 15, 2011

Rsync Server

rsync

Just verify rsync is installed on your machine

rpm -qa rsync

Then follow below steps for configuration.

vi /etc/rsyncd.conf
max connections = 25
#hosts allow = 192.168.1.0/255.255.255.0

[homesync]
path = /home
read only = no
list = yes
auth users = user
secrets file = /etc/rsync/rsync-password
uid = user
gid = group

vi /etc/rsync/rsync-password
user:password

chmod 600 /etc/rsync/rsync-password

this just to test the server
rsync -qazr /root/serverlog.pl moneycontrol@172.30.40.194::homesync/

No comments: