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.
- 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.
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
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:
/usr/share/doc/lsyncd/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/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 Articles:
![Avatar for J. Mays](/static/b9bfb850e038ebe4b3c49dd278744eee/9ca7a/b0da076b6e8552394da33fe3381a19fc.png)
About the Author: J. Mays
As a previous contributor, JMays shares his insight with our Knowledge Base center. In our Knowledge Base, you'll be able to find how-to articles on Ubuntu, CentOS, Fedora and much more!
Our Sales and Support teams are available 24 hours by phone or e-mail to assist.
Latest Articles
How to install PyTorch on Linux (AlmaLinux)
Read ArticleInnovative armor — exploring ThreatDown’s impact on cyber defense
Read ArticleControlling PHP settings with a custom php.ini file
Read ArticleLinux dos2unix command syntax — removing hidden Windows characters from files
Read ArticleChange cPanel password from WebHost Manager (WHM)
Read Article