LinuxAlternative

Linux · Internet

Lsyncd

Lsyncd mirrors directories locally or over networks using rsync, ideal for real-time file synchronization on Linux systems.

Open sourceFree
Be the first to rate
License
GPL-2.0
Latest version
2.3.1

What is Lsyncd?

Lsyncd is a lightweight daemon that monitors directory changes and syncs them using rsync. Originally developed to replace complex replication setups, it has been actively maintained since the late 2000s and is stable and mature. It relies on inotify to detect file changes, making it efficient and well-integrated with Linux systems.

It's best suited for system administrators and advanced users who need reliable, scriptable directory synchronization across servers or local paths. Unlike GUI-focused tools, it runs in the background and is configured via Lua scripts or simple config files, offering fine control over sync behavior.

Compared to Resilio Sync, Lsyncd lacks peer-to-peer syncing and a user-friendly interface. It doesn't sync across untrusted networks out of the box and requires SSH/rsync access. However, it's more transparent and predictable, fitting better into traditional Unix-style automation workflows.

Best for: System admins and Linux users who need automated, scriptable directory sync over SSH or local paths.

Key features of Lsyncd

  • Real-time sync via inotify
  • Uses rsync for efficient transfers
  • Supports local and remote targets
  • Configurable via Lua or shell
  • Minimal resource usage
  • Can run multiple instances
  • Logs and error handling
  • Supports SSH for secure transfers

Pros

  • Lightweight and fast
  • Reliable with mature codebase
  • Configurable and scriptable
  • Integrates well with existing tools
  • Available in major distros

Cons

  • No GUI or built-in sharing links
  • Requires manual setup for remote hosts
  • Not designed for peer-to-peer syncing
  • Steeper learning curve for beginners

Windows programs Lsyncd replaces

How to install Lsyncd on Linux

Ubuntu / Mintsudo apt install lsyncd
Debiansudo apt install lsyncd
Fedorasudo dnf install lsyncd
openSUSEsudo zypper install lsyncd

Tips for Windows users

Unlike Resilio Sync, Lsyncd doesn't use a P2P model or sync without configuration. You'll need SSH access and rsync on both ends. Set up key-based authentication and define source and target paths in the config. It watches directories, not individual files by default, so structure matters. No sync history or cloud UI—monitor logs directly.

Lsyncd: frequently asked questions

How do I install Lsyncd on Ubuntu?

Run sudo apt install lsyncd. It's available in the default repositories for Ubuntu and Debian.

Does Lsyncd work without SSH?

It primarily uses rsync over SSH. Local directory sync is possible without SSH, but remote sync typically requires it.

Can Lsyncd sync bidirectionally?

No, Lsyncd is unidirectional. For bidirectional sync, consider tools like Syncthing or Unison.

How do I check if Lsyncd is running?

Use systemctl status lsyncd or check the log file, usually at /var/log/lsyncd/lsyncd.log.

Updated