-- @JBD 2016-09 -- lsyncd -delay 5 -log all -logfile /srv/work/lsyncd/logs/lsyncd.log -pidfile /srv/work/lsyncd/lsyncd.pid -rsync -avz --update --existing /srv/work/hdfs272/logs/output.txt /srv/hdfs_nfs/logs/jbd-vm03 settings { -- Command line log = "Exec", nodaemon = true, logfile = "/srv/work/lsyncd/logs/lsyncd.log", pidfile = "/srv/work/lsyncd/lsyncd.pid", statusFile = "/srv/work/lsyncd/lsyncd.status", statusInterval = 20 } -- bash -- { -- delay = 5, -- maxProcesses = 3, -- onCreate = "cp -r ^sourcePathname ^targetPathname", -- onModify = "cp -r ^sourcePathname ^targetPathname", -- onDelete = "rm -rf ^targetPathname", -- onMove = "mv ^o.targetPathname ^d.targetPathname", -- onStartup = '[[ if [ "$(ls -A ^source)" ]; then cp -r ^source* ^target; fi]]' -- } sync { -- default.direct, default.rsync, delay = 5, source = "/srv/work/hdfs272/logs", target = "/srv/hdfs_nfs/logs/jbd-vm03", rsync = { archive = true, -- Alias: -a = -rltpgoD -- compress = true, -- perms = true, -- owner = true, update = true -- inplace = true -- whole_file = true } } -- sync -- { -- default.rsync, -- delay = 5, -- source = "/srv/work/hdfs272/logs", -- target = "/srv/hdfs_nfs/logs/jbd-vm03", -- maxProcesses = 4, -- rsync = { -- archive = true, -- perms = true, -- owner = true -- }, -- }