blob: dfa8f9da8c80ca0c7c1585043246e9a83fc5a482 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- a/examples/lpostcmd.lua
+++ b/examples/lpostcmd.lua
@@ -6,7 +6,7 @@
-- after every successfullycompleted rsync operation.
-- for example to restart servlets on the target host or so.
-local rsyncpostcmd = {
+rsyncpostcmd = {
-- based on default rsync.
default.rsync,
@@ -105,14 +105,3 @@
return default.rsync.prepare(config, level, skipTarget)
end
}
-
-
-sync {
- rsyncpostcmd,
- delay = 3,
- source = '/path/to/src',
- host = 'localhost',
- targetdir = '/path/to/trg',
- postcmd = '/usr/local/bin/dopostcmd',
-}
-
|