Setup rsync server on CentOS
Step-by-step installation and configuration rsync server on CentOS
From transamrit.net & http://am3n.profusehost.net/index.php?id=70
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
adminname:hispassword
Create configuration and shares for rsync daemon
# vi /etc/rsyncd.conf
———————-
max connections = 2
log file = /var/log/rsync.log
timeout = 300
[shares]
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 = 10.10.105.0/24
———————-
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.
September 30th, 2008 at 10:55 am
Some useful hints.
One minor correction:
“chkconfig –list” should be “chkconfig –-list”
September 30th, 2008 at 12:44 pm
Thank you , WordPress was formatting those improperly. I put it in a code tag and it looks correct now.
November 10th, 2010 at 7:39 am
Thanks, very helpful
Suggestion
I had to use
/sbin/chkconfig
/sbin/service
Could be a problem for newbies
February 6th, 2012 at 3:28 pm
[…] A howto. This might be a good place to start. http://www.thehenrys.net/wp/?p=54 […]