mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-11-12 08:06:27 +00:00
24 lines
577 B
Lua
24 lines
577 B
Lua
|
-----
|
||
|
-- User configuration file for lsyncd.
|
||
|
--
|
||
|
-- This example uses local bash commands to keep two local
|
||
|
-- directory trees in sync.
|
||
|
--
|
||
|
|
||
|
-----
|
||
|
-- for testing purposes. just echos what is happening.
|
||
|
--
|
||
|
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/"}
|
||
|
|