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.
|
|
|
|
--
|
|
|
|
echo = {
|
|
|
|
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/"}
|
|
|
|
|