Skip to content

lsyncd

Daemon that mirrors a local directory to a remote target using rsync

Copyleft (OSI) · GPL-2.0
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

25

Health

Dormant

Overview

Stars

6,078

Last commit

2 years ago

Nov 2024

Repository age

15 years

since Nov 2011

Latest version

v2.3.1

Nov 2022

Contributors

–

Releases

0

last 12 months

Language

Lua

Lsyncd is a live mirroring daemon for Linux and macOS. It watches a directory tree through inotify or fsevents, gathers events for a few seconds, and then starts one or more processes to sync the changes. By default that process is rsync, so it needs no new filesystem or block device and does not slow local disk access.

You configure it in a file, and you can write custom actions in layers, from shell scripts up to Lua code. An rsync-over-ssh mode applies file and directory moves directly on the target instead of resending data. The core is written in C with Lua scripting, and the license is GPL-2.0 or later.

It works one way, from one source to one target. Two-way sync is not supported, and the documentation warns of data corruption if you try it. The project is looking for a new maintainer, and the last release is v2.3.1. It can stand in for paid backup or sync tools when you only need one-way mirroring.

Who it's for

Sysadmins mirroring web content or files to a second server

It pushes changes to a remote mirror shortly after they happen, using rsync over ssh.

Skip if: You need two-way sync between machines.

Admins moving data from a secure zone to a less secure one

The one-way design keeps the receiving side separate from the source.

Skip if: You are syncing databases under heavy load, where block-level tools like DRBD fit better.

Users who like scripting sync behavior

Lua and shell actions allow custom handling of changes.

Skip if: You want a graphical sync app with no configuration files.

The problem it solves

You want a remote copy of a directory that stays current without running rsync by hand or on a timer. Lsyncd watches for changes and syncs them automatically.

Strengths

  • Uses inotify or fsevents to detect changes on Linux and macOS
  • Uses rsync by default, with rsync+ssh for efficient moves
  • Needs no new filesystem or block device
  • Custom actions via shell scripts or Lua

Trade-offs

  • One source to one target only; no two-way sync
  • Dormant: no commits since late 2024 and it needs a new maintainer
  • Requires rsync 3.1 or newer on source and target machines
  • Not suited to syncing databases under heavy load

Frequently asked questions

Can Lsyncd sync two directions?

No. It supports one source to one target only, and two-way use risks data corruption.

Is it free?

Yes. It is open source under GPL-2.0 or any later version.

What does it use to transfer files?

rsync by default, optionally over ssh.

Which systems does it run on?

Linux through inotify and macOS through fsevents. It is installable via Homebrew.

Similar tools in Backup and archiving software

Ludusavi

Backup and archiving software

Cross-platform backup tool for PC game saves, with GUI and command line

6.6k 156 15 days ago Active MIT

Vorta

Backup and archiving software

Desktop backup client for macOS and Linux built on BorgBackup

2.5k 253 4 days ago Thriving GPL-3.0

Pluton

Backup and archiving software

Self-hosted backup manager with a web UI, built on Restic and Rclone

894 38 today Thriving Apache-2.0

snapraid

Backup and archiving software

2.6k 98 today Thriving Unknown

DBackup

Backup and archiving software

Self-hosted web app that schedules encrypted database and file backups to many storage

464 39 today Thriving GPL-3.0