mickours / lsyncd

Automatically exported from code.google.com/p/lsyncd
GNU General Public License v2.0
0 stars 0 forks source link

Parameter "onCreate" unknown. ( if this is not a typo add it to checkgauge ) #100

Closed 3mandd closed 1 year ago

3mandd commented 1 year ago

lsyncd --version Version: 2.2.3

Error: error preparing /opt/xf3/configs/lsyncd.conf: Parameter "onCreate" unknown. ( if this is not a typo add it to checkgauge )

settings { logfile = "/opt/xf3/log/lsyncd.log", statusFile = "/opt/xf3/log/lsyncd.status", nodaemon = true, }

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 { bash, default.rsync, source = "/opt/xf3/mrblack/", target = "xf3@mrblack2.local:/opt/xf3/mrblack2/", init = false }