Outils pour utilisateurs

Outils du site


Panneau latéral

linux:lsyncd (lu 25378 fois)

lsyncd

source ⇒ https://github.com/axkibe/lsyncd

Article sur inotify ⇒ http://linuxfr.org/news/exploiter-inotify-c-est-simple

lsyncd permet de synchroniser 2 répertoires de la même façon que le fait rsync sauf qu’il se déclenche automatiquement lorsqu’un fichier a été modifié.

lsyncd -rsync /home remotehost.org::share/
A disadvantage with Rsync synchronization is that normally directory and file moves result in a deletion of the move origin and a retransfer of the move destination of the >wire. However, Lsyncd 2 can use ssh commands to move the directories and files locally on the target. To use this use -rsyncssh followed by the local source directory, the >remote host and the target directory there. The REMOTEHOST can include a user like me@remotehost.com.
lsyncd -rsyncssh /home remotehost.org backup-home/

On peut créer un fichier de config ⇒ http://axkibe.github.io/lsyncd/manual/config/file/

Le lancer en mode console avec l’option -nodaemon

Ecrire chaque action dans un log

lsyncd -log all ...
linux/lsyncd.txt · Dernière modification: 13-07-2016 16:29 de edmc73