mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-07 09:04:05 +00:00
This commit is contained in:
parent
60a14c262f
commit
9aa3ad8e44
@ -9,11 +9,14 @@ settings = {
|
|||||||
statusIntervall = 1,
|
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.
|
-- for testing purposes. uses bash command to hold local dirs in sync.
|
||||||
--
|
--
|
||||||
prefix = "sleep 5 && "
|
bash = {
|
||||||
slowbash = {
|
|
||||||
delay = 5,
|
delay = 5,
|
||||||
|
|
||||||
maxProcesses = 3,
|
maxProcesses = 3,
|
||||||
@ -53,5 +56,5 @@ slowbash = {
|
|||||||
end,
|
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")
|
error("Cannot replace events with different paths")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
log("Delay",nd.etype," turns a move into delete ",
|
log("Delay",nd.etype," turns a Move into delete of ",
|
||||||
od.etype," on ", path)
|
od.path)
|
||||||
od.etype = "Delete"
|
od.etype = "Delete"
|
||||||
od.path2 = nil
|
od.path2 = nil
|
||||||
table.insert(self.delays, nd)
|
table.insert(self.delays, nd)
|
||||||
|
Loading…
Reference in New Issue
Block a user