mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-04 19:03:17 +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.
|
||||
--
|
||||
bash = {
|
||||
delay = 5,
|
||||
|
||||
maxProcesses = 3,
|
||||
|
||||
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]],
|
||||
|
||||
@ -37,5 +36,5 @@ bash = {
|
||||
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',
|
||||
'collapseTable',
|
||||
'collect',
|
||||
'init',
|
||||
'init',
|
||||
'maxDelays',
|
||||
'maxProcesses',
|
||||
}
|
||||
@ -2521,7 +2521,7 @@ local default_rsyncssh = {
|
||||
maxProcesses = 10,
|
||||
|
||||
-----
|
||||
-- Default delay 3 seconds
|
||||
-- Default delay.
|
||||
--
|
||||
delay = 10,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user