L

Lsyncd

Live file synchronization daemon using inotify and rsync for real-time replication.

No reviews yet

About Lsyncd

Lsyncd (Live Syncing Daemon) is a tool that watches local directory trees for changes using inotify (on Linux) and synchronizes them to remote destinations using rsync or rsync+SSH. It provides near-real-time file replication between servers with minimal delay and resource usage.

The tool works by monitoring the filesystem for file creation, modification, deletion, and move events. When changes are detected, Lsyncd batches them briefly (configurable delay, typically 1-5 seconds) and then triggers an rsync transfer to the destination server. This event-driven approach is far more efficient than periodic rsync cron jobs because only changed files are synchronized and the delay is measured in seconds rather than minutes.

For hosting providers, Lsyncd serves several critical use cases. High availability setups use Lsyncd to replicate website files from a primary server to a standby server in near-real-time. If the primary fails, the standby has an up-to-date copy of all customer files ready to serve traffic.

Content distribution is another common use case. Providers with multiple web servers behind a load balancer use Lsyncd to keep website files synchronized across all nodes. When a customer uploads a file via FTP or their CMS, Lsyncd replicates it to the other servers within seconds.

Lsyncd configuration uses Lua scripting, which provides flexibility for complex synchronization rules. You can exclude specific file patterns, set different sync targets for different directories, and add custom actions triggered by file events. The configuration is more readable than raw inotifywait scripts.

Important limitations: Lsyncd is one-directional (source to destination). For bidirectional sync, tools like Unison or csync2 are more appropriate. Also, for database replication, use proper database replication tools since Lsyncd only handles filesystem changes.
Server Software Backup Solutions Migration Tools

Quick Facts

Pricing
Open Source
License
Open Source
Platform
Linux
Version
2.3
Developer
Axel Kittenberger / Lsyncd Contributors
Starting Price
$0.00

Reviews (0)

No reviews yet

Be the first to share your experience!

Want to leave a review?

Sign in to share your experience with this tool.

Login to Review

Discussion (0)

No comments yet

Start a discussion about this tool.

Join the Discussion

Sign in to post comments and share your experience.

Login to Comment

Who Is Online

In total there are 2 users online: 0 registered and 2 bots.

Bots: AhrefsBot Other Bot

Users active in the past 15 minutes. Total registered members: 340