lsyncd/examples/lecho.lua

23 lines
540 B
Lua
Raw Normal View History

-----
-- User configuration file for lsyncd.
--
-- This example uses just echos the operations
--
-----
-- for testing purposes. just echos what is happening.
--
local echo = {
maxProcesses = 1,
delay = 1,
onStartup = "/bin/echo telling about ^source",
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/"}