Ci-dessous, les différences entre deux révisions de la page.
— |
linux:lsyncd [13-07-2016 16:29] (Version actuelle) edmc73 créée |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== lsyncd ====== | ||
+ | source => https:// | ||
+ | |||
+ | Article sur inotify => http:// | ||
+ | |||
+ | **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' | ||
+ | |||
+ | lsyncd -rsync /home remotehost.org:: | ||
+ | |||
+ | >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:// | ||
+ | |||
+ | |||
+ | Le lancer en mode console avec l' | ||
+ | |||
+ | Ecrire chaque action dans un log | ||
+ | lsyncd -log all ... |