How to Install lsyncd on Ubuntu 12.04 LTS

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 Ubuntu 12.04 LTS.
  • I’ll be working from a Liquid Web Core Managed Ubuntu 12.04 LTS server, and I’ll be logged in as root.

Step 1: Install lsyncd

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

apt-get -y update

Then let’s install lsyncd and any required packages:

apt-get -y install lsyncd

Step 2: Example Configuration File Locations

Example configuration files can be found in the following directory:

cd /usr/share/doc/lsyncd/examples

A basic configuration can be found in 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/examples/lrsync.lua

The lsyncd configuration file is written in the programming language Lua. Learn more about Lua here:


How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....

How to Start and Enable Firewalld on CentOS 7

In this article, we discuss how to start and enable firewalld. It is highly recommended that you have a firewall protecting your server.Pre-Flight CheckThese...