mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-05-28 14:10:47 +00:00
This commit is contained in:
parent
3764ef39bb
commit
57778a3594
|
@ -21,12 +21,11 @@ prefix = ""
|
||||||
-- for testing purposes. uses bash command to hold local dirs in sync.
|
-- for testing purposes. uses bash command to hold local dirs in sync.
|
||||||
--
|
--
|
||||||
bash = {
|
bash = {
|
||||||
delay = 5,
|
|
||||||
|
|
||||||
maxProcesses = 3,
|
maxProcesses = 3,
|
||||||
|
|
||||||
onStartup =
|
onStartup =
|
||||||
[[if [ "$(ls -A $1)" ]; then cp -r ^source* ^target; fi]],
|
[[if [ "$(ls -A ^source)" ]; then cp -r ^source* ^target; fi]],
|
||||||
|
|
||||||
onCreate = prefix..[[cp -r ^sourcePathname ^targetPathname]],
|
onCreate = prefix..[[cp -r ^sourcePathname ^targetPathname]],
|
||||||
|
|
||||||
|
@ -37,5 +36,5 @@ bash = {
|
||||||
onMove = prefix..[[mv ^o.targetPathname ^d.targetPathname]],
|
onMove = prefix..[[mv ^o.targetPathname ^d.targetPathname]],
|
||||||
}
|
}
|
||||||
|
|
||||||
sync{bash, source="src", target="dst/"}
|
sync{bash, source="src", target="trg/"}
|
||||||
|
|
||||||
|
|
|
@ -1359,7 +1359,7 @@ local Syncs = (function()
|
||||||
'collapse',
|
'collapse',
|
||||||
'collapseTable',
|
'collapseTable',
|
||||||
'collect',
|
'collect',
|
||||||
'init',
|
'init',
|
||||||
'maxDelays',
|
'maxDelays',
|
||||||
'maxProcesses',
|
'maxProcesses',
|
||||||
}
|
}
|
||||||
|
@ -2521,7 +2521,7 @@ local default_rsyncssh = {
|
||||||
maxProcesses = 10,
|
maxProcesses = 10,
|
||||||
|
|
||||||
-----
|
-----
|
||||||
-- Default delay 3 seconds
|
-- Default delay.
|
||||||
--
|
--
|
||||||
delay = 10,
|
delay = 10,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user