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