Lsyncd (Live Syncing Daemon) synchronizes local directories with remote targets
Go to file
Axel Kittenberger d0c9a60213 changing delay from command line to a number 2013-06-07 14:24:02 +02:00
doc Fix documentation spelling bits, and a few links 2013-05-04 13:11:09 +10:00
examples Fix documentation spelling bits, and a few links 2013-05-04 13:11:09 +10:00
m4 Try harder to find matching Lua program/library pairs 2012-10-02 15:58:52 +02:00
tests beautified some tests 2012-11-23 16:04:43 +01:00
.gitignore luac.c is no longer generated 2012-03-23 10:01:28 +01:00
COPYING Fix documentation spelling bits, and a few links 2013-05-04 13:11:09 +10:00
ChangeLog Changelog 2013-06-07 14:10:39 +02:00
Makefile.am Actually thinking about it, lets not clean the manpage, it comes precompiled in tarballs 2012-10-02 21:15:49 +02:00
README.md Fix documentation spelling bits, and a few links 2013-05-04 13:11:09 +10:00
autogen.sh coded a lua hello world 2010-10-14 13:52:01 +00:00
bin2carray.lua fix script integration 2011-05-04 13:18:37 +00:00
configure.ac * fixing ssh port overwriting the last rsync option 2013-06-07 13:40:54 +02:00
default-direct.lua allow true, false, 'running' and 'startup' for the delete parameter 2012-10-09 17:47:39 +02:00
default-rsync.lua + fixing 0 characters in -log Exec message for pipes 2013-06-07 11:12:24 +02:00
default-rsyncssh.lua * fixing ssh port overwriting the last rsync option 2013-06-07 13:40:54 +02:00
default.lua adding onAttrib to checkgauge 2013-05-14 23:13:09 +02:00
fsevents.c code beautification 2012-01-27 12:08:10 +01:00
inotify.c new inheritance mechanics, code beautifications 2012-10-05 09:41:46 +02:00
lsyncd.c + fixing 0 characters in -log Exec message for pipes 2013-06-07 11:12:24 +02:00
lsyncd.h Use LSYNCD_*LIBNAME to refer to lsyncd/.inotify tables 2012-10-02 02:56:29 +02:00
lsyncd.lua changing delay from command line to a number 2013-06-07 14:24:02 +02:00

README.md

Lsyncd -- Live Syncing (Mirror) Daemon

Description

Lsyncd watches a local directory trees event monitor interface (inotify or fsevents). It aggregates and combines events for a few seconds and then spawns one (or more) process(es) to synchronize the changes. By default this is rsync. Lsyncd is thus a light-weight live mirror solution that is comparatively easy to install not requiring new filesystems or block devices and does not hamper local filesystem performance.

Rsync+ssh is an advanced action configuration that uses a SSH to act file and directory moves directly on the target instead of re-transmitting the move destination over the wire.

Fine-grained customization can be achieved through the config file. Custom action configs can even be written from scratch in cascading layers ranging from shell scripts to code written in the Lua language. This way simple, powerful and flexible configurations can be acheived. See the manual for details Lsyncd21Manual

License: GPLv2 or any later GPL version.

When to use

Lsyncd is designed to synchronize a local directory tree with low profile of expected changes to a remote mirror. Lsyncd is especially useful to sync data from a secure area to a not-so-secure area.

Other synchronization tools

DRBD operates on block device level. This makes it useful for synchronizing systems that are under heavy load. Lsyncd on the other hand does not require you to change block devices and/or mount points, allows you to change uid/gid of the transferred files, separates the receiver through the one-way nature of rsync. DRBD is likely the better option if you are syncing databases.

GlusterFS and BindFS use a FUSE-Filesystem to interject kernel/userspace filesystem events.

Lsyncd usage examples

lsyncd -rsync /home remotehost.org::share/

This watches and rsyncs the local directory /home with all sub-directories and transfers them to 'remotehost' using the rsync-share 'share'.

lsyncd -rsyncssh /home remotehost.org backup-home/

This will also rsync/watch '/home', but it uses a ssh connection to make moves local on the remotehost instead of re-transmitting the moved file over the wire.

Some more complicated examples, tips and tricks you can find in the Lsyncd21Manual.

Disclaimer

Besides the usual disclaimer in the license, we want to specifically emphasize that neither the authors nor any organization the authors are associated with can and will hold responsible for data-loss caused by possible malfunctions of Lsyncd.