• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install lsyncd on Ubuntu 17.04

{{postValue.id}}

How to install Lsyncd on Ubuntu 17.04

Lysncd is a daemon to synchronize directory trees through an event monitor interface. It aggregates and combines events for a few seconds and then spawns one or more processes to synchronize the changes. It is lightweight asynchronous live mirror solution that is easy to install and does not hamper local file system performance. This tutorial covers the installation procedure of lsyncd on Ubuntu 17.04.

Installation procedure

To start the installation procedure, add the repo by executing the following coammand.

root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa
This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release.
Packages for older releases relocated to ppa:eugenesan/archive or deleted.

+-------------------------------------------------------------------------------------+
| Disclaimer:
+-------------------------------------------------------------------------------------+
* Packages in this a nd related PPAs are for personal use only.
  They developed specifically for several custom environments and may not work for you.
* Usage of packages in this PPA, in some forms, might contradict licenses of software
  packaged in this and related PPAs. End users and administrator are responsible for
  runtime licensing and possible legal consequences.
* Some packages provided with their dependencies while some might require additional
  Ubuntu repositories and external PPAs. Below is the list of
.
.
.
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox ' /tmp/tmp58gcy2yp/pubring.gpg'  created
gpg: /tmp/tmp58gcy2yp/trustdb.gpg: trustdb created
gpg: key E61380B28313A596: public key " Launchpad synergy+"  imported
gpg: Total number processed: 1
gpg:imported: 1
OK

The repositories are added to the target system. Update the repo by executing the apt-get update command.

root@linuxhelp1:~# apt-get update
Get:1 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty InRelease [15.4 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu zesty InRelease
Hit:3 http://security.ubuntu.com/ubuntu zesty-security InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main amd64 Packages [1,100 B]
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main i386 Packages [1,108 B]
Get:8 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main Translation-en [1,288 B]
Fetched 18.9 kB in 1s (12.3 kB/s)
Reading package lists... Done

The target system is updated with the required repositories. Install the lsyncd package by running the following command and press y to continue with the installation process.

root@linuxhelp1:~# apt-get install lsyncd -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
liblua5.1-0 lua5.1
The following NEW packages will be installed:
liblua5.1-0 lsyncd lua5.1
0 upgraded, 3 newly installed, 0 to remove and 89 not upgraded.
Need to get 259 kB of archives.
After this operation, 954 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 liblua5.1-0 amd64 5.1.5-8.1build1 [105 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 lua5.1 amd64 5.1.5-8.1build1 [92.5 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 lsyncd amd64 2.1.6-1 [61.5 kB]
Fetched 259 kB in 1s (147 kB/s)
Selecting previously unselected package liblua5.1-0:amd64.
(Reading database ... 168833 files and directories currently installed.)
Preparing to unpack .../liblua5.1-0_5.1.5-8.1build1_amd64.deb ...
Unpacking liblua5.1-0:amd64 (5.1.5-8.1build1) ...
Selecting previously unselected package lua5.1.
Preparing to unpack .../lua5.1_5.1.5-8.1build1_amd64.deb ...
Unpacking lua5.1 (5.1.5-8.1build1) ...
Selecting previously unselected package lsyncd.
Preparing to unpack .../lsyncd_2.1.6-1_amd64.deb ...
Unpacking lsyncd (2.1.6-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up lua5.1 (5.1.5-8.1build1) ...
update-alternatives: using /usr/bin/lua5.1 to provide /usr/bin/lua (lua-interpreter) in auto mode
update-alternatives: using /usr/bin/luac5.1 to provide /usr/bin/luac (lua-compiler) in auto mode
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Processing triggers for systemd (232-21ubuntu2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up liblua5.1-0:amd64 (5.1.5-8.1build1) ...
Setting up lsyncd (2.1.6-1) ...
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (232-21ubuntu2) ...

The application is installed successfully, type the following command and execute it to show a list of options that can be used with lsyncd application.

root@linuxhelp1:~# lsyncd --help
USAGE:
runs a config file:
lsyncd [OPTIONS] [CONFIG-FILE]

default rsync behaviour:
lsyncd [OPTIONS] -rsync [SOURCE] [TARGET]
default rsync with mv' s through ssh:
lsyncd [OPTIONS] -rsyncssh [SOURCE] [HOST] [TARGETDIR]

default local copying mechanisms (cp|mv|rm):
lsyncd [OPTIONS] -direct [SOURCE] [TARGETDIR]

OPTIONS:
-delay SECSOverrides default delay times
-helpShows this
-insistContinues startup even if it cannot connect
-logallLogs everything (debug)
-logscarceLogs errors only
-log[Category]Turns on logging for a debug category
-logfile FILEWrites log to FILE (DEFAULT: uses syslog)
-nodaemonDoes not detach and logs to stdout/stderr
-pidfile FILEWrites Lsyncds PID into FILE
-runner FILELoads Lsyncds lua part from FILE
-versionPrints versions and exits

LICENSE:
GPLv2 or any later version.

SEE:
`man lsyncd` for further information.

For removing the package, execute the following command and press y to continue with the uninstallation process.

root@linuxhelp1:~# apt-get remove lsyncd -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
liblua5.1-0 lua5.1
Use ' apt autoremove'  to remove them.
The following packages will be REMOVED:
lsyncd
0 upgraded, 0 newly installed, 1 to remove and 89 not upgraded.
After this operation, 226 kB disk space will be freed.
(Reading database ... 168867 files and directories currently installed.)
Removing lsyncd (2.1.6-1) ...
Processing triggers for man-db (2.7.6.1-2) ...

Wasn' t that an easy installation procedure? Lsyncd will delete pre-existing files in the target directories that are not present in the respective source directory.

Tags:
brayden
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

what is lsyncd?

A

Lsyncd is a tool used to keep a source directory in sync with other local or remote directories. It is a solution suited keeping directories in sync by batch processing changes over to the sy

Q

how to install lsyncd in centos ?

A

run the following command to install the Lsyncd in centos
# yum -y install lsyncd

Q

When would we use lsyncd?

A

So the generic use case is to keep a source directory in sync with one or more local and remote directories. This could mean: Creating a live backup of a directory which would be easy to fa

Q

how to configure lsyncd ?

A

Please refer the link as follow to configure lsyncd
"https://axkibe.github.io/lsyncd/manual/config/file/".

Q

what command used to uninstall the lsyncd in ubuntu?

A

For removing the lsyncd package, execute the following command
# apt-get remove lsyncd -y

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help keel johnston ?
Unhide the folders on windows Explorer

Give any solutions to unhide folder using command prompt?

forum3

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.