My favorites | Sign in
Project Logo
                
Show all Featured downloads:
lsyncd-1.26.tar.gz
Feeds:
Groups:
People details
Project owners:
  axel77
Project committers:
dancerj, spamgrinder, treamur

lsyncd - Live Syncing (Mirror) Daemon

Description

Lsyncd uses rsync to synchronize local directories with a remote machine running rsyncd. Lsyncd watches multiple directories trees through inotify. The first step after adding the watches is to rsync all directories with the remote host, and then sync single file by collecting the inotify events. So lsyncd is a light-weight live mirror solution that should be easy to install and use while blending well with your system. See lsyncd --help for detailed command line options.

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. On the receivers side rsyncd can be configured to also change the uid/gid of the file. Lsyncd is especially useful to sync data from a secure area to a not-so-secure area (e.g. as a one way connection to allow employees to publish their files to a public accessible web server).

When not to use:

File with active file handles (e.g. database files) Directories where many changes occur (like mail or news servers)

In these cases e.g. DRBD (see http://www.linux-ha.org/DRBD) might be better for you.

Comparisons:

Lsyncd usage examples

/usr/sbin/lsyncd /var/www/ remotehost::wwwshare/

This watches and rsycn's the local directory /var/www/ with all subdirectories and transfers them to 'remotehost' using the rsync-share 'wwwshare'.

/usr/sbin/lsyncd --nodaemon --exclude-from /etc/lsycnd/exclude /var/www/ remotehost::wwwshare/

This will also rsync/watch '/var/www', but it excludes files and directories from '/etc/lsycnd/exclude'. Additionally this example lsyncd will not fork, and log to stdout/stderr instead.

Some more complicated examples, tips and tricks you can find in the [HowTos] section.

Source Documentation

The only file of interest is 'lsyncd.c' which has javadoc like comments. Everything else in the tarball is packaging bushwa.

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. Especially if you run it with root privileges ;-) (we ourselves run lsyncd as www-data).









Hosted by Google Code