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
- On the master server, log in through putty and run the following:
ssh-keygen -t rsa
- 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”……..
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…..
You must log in to post a comment.