[RSYNC] Installing Rsync backup on your Webserver

This Tutorial will show you how to install rsync on your webserver. Please follow these instructions and enter these commands on your webserver to setup rsync. Both, the backup server and the webserver need to have rsync installed in order for rsync to work!

1. Let's make sure that rsync and xinetd is available on your server.

  • For Centos/Fedora type: # yum -y install rsync xinetd
  • For Redhat type: # up2date rsync xinetd
  • For Debian/Ubuntu type: # apt-get -y install rsync xinetd
  • For Suse type: # zypper in rsync xinetd

2. Add the xinetd service to the system

  • # chkonfig --add xinetd

3. Make sure xinetd is running on init 3 and 5

  • # chkonfig --list xinetd

4. Enable rsync

  • Type: # vi /etc/xinetd.d/rsync
  • Change to edit mode by pressing "i"
  • Change "disable = yes" to "disable = no"
  • Exit the edit mode by pressing "Esc"
  • Enter ":wq" to exit and save the file

5. Configure rsync

  • Edit the configuration file by typing: # vi /etc/rsyncd.conf
  • Insert the following:

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

6. Secure rsyncd.*

  • Type: # chown 600 /etc/rsyncd.*

7. Restart xinetd

  • Type # service xinetd restart

8. Let's check if rsync is running

  • Type: # chkonfig --list
  • Look for xinetd services and check if rsync is set to on

9. If you have an firewall enabled, make sure that port 873 tcp and udp is open.

  • 28 Users Found This Useful
Was this answer helpful?

Related Articles

[RSYNC] Setup Rsync to transfer files from one server to another

Since this tutorial will switch between the backup server and your webserver, we will use names....