This commit is contained in:
Axel Kittenberger 2010-11-14 16:03:47 +00:00
parent 3764ef39bb
commit 57778a3594
2 changed files with 4 additions and 5 deletions

View File

@ -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/"}

View File

@ -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,
} }