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