How to Install and use Lsyncd on CentOS 7 / RHEL 7 / Amazon Linux

Visits: 2684

To install lsync on Amazon Linux fist add EPEL repositories:

sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

also see: http://www.marcburrows.com/using-lsyncd-with-aws/

Allow the Master Server to connect to the slave server without a password

  1. On the master server, log in through putty and run the following:

ssh-keygen -t rsa

  1. You will get asked to enter the file in which to save the key. You want to save it as “/home/ec2-user/.ssh/id_rsa”……..

 

Also see

Install and configure Lsyncd


Lsyncd stands for “Live Syncing Daemon“, as the name suggest lsyncd is used to sync or replicate files & directories locally and remotely after a specific time of interval. It uses rsync & ssh in the backend.

Lsyncd works on Master and Slave architecture where it monitors the directory on the master server, if any changes or modification are done then lsyncd will replicate the same on its slave servers after specific interval of time…..

Source: How to Install and use Lsyncd on CentOS 7 / RHEL 7

Leave a Reply