Lsync : Synchronize Files / Directories2026/01/07 |
|
Install Lsync to configure live mirroring files and directories with Rsync + Lsync. |
|
| [1] |
Configure rsyncd service on copy target Host, refer to here. +----------------------+ | +----------------------+ | [dlp.srv.world] |10.0.0.30 | 10.0.0.51| [node01.srv.world] | | lsyncd +----------+----------+ rsyncd | | /home/work/* | -------------> | /home/backup/* | +----------------------+ live copy +----------------------+ |
| [2] | Install Lsync on copy source Host. |
|
dlp:~ #
zypper -n install lsyncd
dlp:~ #
vi /etc/lsyncd/lsyncd.conf # change settings{ statusFile = "/var/log/lsyncd/lsyncd.status", nodaemon = false, statusInterval = 5, maxDelays = 10, maxProcesses = 10, } # remove existing [sync] section and add to last line sync{ default.rsync, # copy source directory source="/home/work/", # copy target Hostname or IP address : the name set in rsyncd.conf target="node01.srv.world::backup", # exclude file list excludeFrom="/usr/etc/rsyncd.exclude", }dlp:~ # systemctl enable --now lsyncd |
| [3] |
That's OK. |
|
|