mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-05 16:12:32 +00:00
This commit is contained in:
parent
60a14c262f
commit
9aa3ad8e44
@ -9,11 +9,14 @@ settings = {
|
||||
statusIntervall = 1,
|
||||
}
|
||||
|
||||
----
|
||||
-- for testing purposes. prefix can be used to slow commands down.
|
||||
-- prefix = "sleep 5 && "
|
||||
prefix = ""
|
||||
----
|
||||
-- for testing purposes. uses bash command to hold local dirs in sync.
|
||||
--
|
||||
prefix = "sleep 5 && "
|
||||
slowbash = {
|
||||
bash = {
|
||||
delay = 5,
|
||||
|
||||
maxProcesses = 3,
|
||||
@ -53,5 +56,5 @@ slowbash = {
|
||||
end,
|
||||
}
|
||||
|
||||
sync{default.rsync, source="src", target="dst/"}
|
||||
sync{bash, source="src", target="dst/"}
|
||||
|
||||
|
@ -806,8 +806,8 @@ local Sync = (function()
|
||||
error("Cannot replace events with different paths")
|
||||
end
|
||||
else
|
||||
log("Delay",nd.etype," turns a move into delete ",
|
||||
od.etype," on ", path)
|
||||
log("Delay",nd.etype," turns a Move into delete of ",
|
||||
od.path)
|
||||
od.etype = "Delete"
|
||||
od.path2 = nil
|
||||
table.insert(self.delays, nd)
|
||||
|
Loading…
Reference in New Issue
Block a user