2010-11-17 19:18:35 +00:00
|
|
|
-----
|
|
|
|
-- User configuration file for lsyncd.
|
2012-09-07 06:58:44 +00:00
|
|
|
--
|
2013-05-04 03:11:09 +00:00
|
|
|
-- This example uses just echos the operations
|
2010-11-17 19:18:35 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
-----
|
|
|
|
-- for testing purposes. just echos what is happening.
|
|
|
|
--
|
2022-11-11 14:27:21 +00:00
|
|
|
local echo = {
|
2010-11-17 19:18:35 +00:00
|
|
|
maxProcesses = 1,
|
|
|
|
delay = 1,
|
2012-09-07 06:58:44 +00:00
|
|
|
onStartup = "/bin/echo telling about ^source",
|
2010-11-17 19:18:35 +00:00
|
|
|
onAttrib = "/bin/echo attrib ^pathname",
|
|
|
|
onCreate = "/bin/echo create ^pathname",
|
|
|
|
onDelete = "/bin/echo delete ^pathname",
|
|
|
|
onModify = "/bin/echo modify ^pathname",
|
|
|
|
onMove = "/bin/echo move ^o.pathname -> ^d.pathname",
|
|
|
|
}
|
|
|
|
|
|
|
|
sync{echo, source="src", target="/path/to/trg/"}
|
|
|
|
|