How to Install lsyncd on CentOS 6

Cpanel/Whm License $3/mo Plesk License $10/mo Cloudlinux License $5/mo

lsyncd is an rsync-based tool that monitors specified directories (including subdirectories) for updates and modifications, then syncs those changes to a specified destination.

Pre-Flight Check
  • These instructions are intended specifically for installing the lsyncd on CentOS 6.
  • I’ll be working from a sxi.io Web Core Managed CentOS 6 server, and I’ll be logged in as root.

Step 1: Add the EPEL Repository

lsyncd is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution. First, we’ll install the EPEL repository, for directions see How to enable EPEL repository?

Step 2: Install lsyncd

First, you’ll follow a simple best practice: ensuring the list of available packages is up to date before installing anything new.

yum -y update

At this point, installing lsyncd is as simple as running just one command:

yum -y install lsyncd

Step 3: Example Configuration File Locations

Example configuration files can be found in the following directory:

cd /usr/share/doc/lsyncd-2.1.4/examples

A basic configuration can be found in lrsync.lua:

/usr/share/doc/lsyncd-2.1.4/examples/lrsync.lua

For a refresher on editing files with vim see: New User Tutorial: Overview of the Vim Text Editor

To view or edit lrsync.lua:

vim /usr/share/doc/lsyncd-2.1.4/examples/lrsync.lua

The lsyncd configuration file is written in the programming language Lua. Learn more about Lua here: http://www.lua.org/docs.html

Related posts

BitGo Update Expands Security Controls for Consumers

SXI ADMIN

Disable GNOME Automounting

SXI ADMIN

Case Against Controversial Student Bitcoin Project Comes to Close

SXI ADMIN

Bakkt Exchange May Be Seeking New York License for Crypto Custody: Report

SXI ADMIN

Linux: At What Time Cron Entries In cron.daily, cron.weekly, cron.monthly Run?

SXI ADMIN

Enthusiasts and Investors Defend Bitcoin at Inside Bitcoins Berlin

SXI ADMIN

IT Firm Fujitsu Debuts Blockchain System for Secure Data Sharing

SXI ADMIN

A Chinese Bitcoin Startup Has Stopped Some Services Due to Central Bank Concerns

SXI ADMIN

$1 Billion Valuation May Elude Ethereum Co-Founder’s New Blockchain Polkadot

SXI ADMIN

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More