Skip to main content

SUSE Lesson 22 Rsync Server

By October 2, 2013No Comments

In this video we configure the rsync server in SUSE Linux. There may be many uses for RSYNC in Linux. CentOS uses the protocol for updating the mirror repositories; in this video we will look at mirroring web server within a server farm, ensuring that updates to web pages on the master server are synchronized to the web farm servers.

Configuring rsync becomes an easy task, as in SUSE, the base install includes xinetd and rsync, nor do we have to worry with SELinux security

First we just need to enable the rsync xinetd service by commenting out the line in the file: /etc/xinetd.conf , that reads disable = yes

With this done we can start the xinetd server with rcxinetd start

The rsync server listens on TCP port 873, we can check that it is listening with the command netstat -ant

Now we need to configure the /etc/rsyncd.conf. again, SUSE make this easy with a sample file already in place. We just need to adjust the hosts allow line and create are own module similar to this :

 path = /srv/www/htdocs

Now we can use synchronize from the client web servers using the rsync client

 rsync -av --delete rsync://[yourserverip]/web/ /var/www/html/