Projekat

Općenito

Profil

Akcije

Reference #16031

Zatvoren

lsyncd - Live Syncing (Mirror) Daemon

Dodano od Ernad Husremović prije više od 16 godina. Izmjenjeno prije oko 15 godina.

Status:
Zatvoreno
Prioritet:
Normalan
Odgovorna osoba:
-
Kategorija:
-
Početak:
15.12.2008
Završetak:
% završeno:

0%

Procjena vremena:

Opis

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.

Akcije #1

Izmjenjeno od Ernad Husremović prije više od 16 godina

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 vs. DRBD: 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. However when using lsyncd a file change can possibly result in a full file transfer (at least for binary files) and is therefore unsuitable for databases. Also a directory rename will result in transferring the whole directory.
  • Lsyncd vs. incron: Incron does not (yet) support recursive directory watching making it unsuitable for described needs (http://inotify.aiken.cz/?section=incron&page=about&lang=en). In fact a different approach would have been to extent incron. However, we decided to stick to the NIH principle (Not Invented Here) :-), because extending the C++ solution seemed to tedious.
  • Lsyncd vs. FUSE: Another interesting idea is to write a daemon that provides a shadow file system through fuse. When accessing a file the data is synced to a local file as well as a remote file. With this approach inotify could be replaced. BindFS (see http://www.cs.helsinki.fi/u/partel/bindfs/) does this for local mirroring. We discarded this idea because it would affect performance of normal operations in a negative way.
  • Lsyncd vs. cron: If you find a solution using cron to call rsync over the whole directory tree periodically after every 'X' hours/minutes/seconds more satisfying than lsyncd, please go for it ''sulking''. We don't like it!
Akcije #2

Izmjenjeno od Ernad Husremović prije više od 16 godina

  • Naslov promijenjeno iz http://code.google.com/p/lsyncd/ u lsyncd - Live Syncing (Mirror) Daemon
Akcije #3

Izmjenjeno od Ernad Husremović prije više od 16 godina

ovo bi moglo biti skroz jednostavno a kvalitetno rješenje za redmine na više hostova (sinhronizacija file repozitorija)

Akcije #4

Izmjenjeno od Ernad Husremović prije oko 15 godina

  • Status promijenjeno iz Novo u Zatvoreno
Akcije

Također dostupno kao Atom PDF