June 11, 2008

Setup rsync server on CentOS

Filed under: Server Admin — dh @ 11:22 am

Step-by-step installation and configuration rsync server on CentOS
From &

Make sure xinetd and rsync is available, if not type
# yum -y install rsync xinetd

Add xinetd service to system
# chkconfig --add xinetd

Make sure xinetd running on init 3 and 5
# chkconfig --list xinetd

Enable rsync
# vi /etc/xinetd.d/rsync
Change disable = yes into disable = no

Create username and password for rsync client to use
# vi /etc/rsyncd.secrets

Create configuration and shares for rsync daemon
# vi /etc/rsyncd.conf

max connections = 2
log file = /var/log/rsync.log
timeout = 300

comment = shared data stored here
path = /home/adminname/shares
read only = false
list = yes
uid = adminname
gid = adminname
auth users = adminname
secrets file = /etc/rsyncd.secrets
hosts allow =

Secure /etc/rsyncd.*
# chown root.root /etc/rsyncd.*
# chmod 600 /etc/rsyncd.*

Restart xinetd
# service xinetd restart

Make sure rsync now running
# chkconfig --list

Perhaps you also want to enable port 873 tcp and udp on your firewall so other can connect to your server.

4 Responses to “Setup rsync server on CentOS”

  1. Paul Says:

    Some useful hints.

    One minor correction:

    “chkconfig –list” should be “chkconfig –-list”

  2. dh Says:

    Thank you , WordPress was formatting those improperly. I put it in a code tag and it looks correct now.

  3. Steve Marshall Says:

    Thanks, very helpful


    I had to use

    Could be a problem for newbies

  4. Rsync Configuration Says:

    […] A howto. This might be a good place to start. […]

Leave a Reply