From 71984d8bc615644a64d846ce666d4593abc492fc Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Sun, 14 Nov 2010 09:38:44 +0000 Subject: [PATCH] --- examples/limagemagic.lua | 9 +++++---- examples/lrssh.lua | 12 ------------ examples/lrsync.lua | 6 +++++- examples/lrsyncssh.lua | 7 +++++++ 4 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 examples/lrssh.lua create mode 100644 examples/lrsyncssh.lua diff --git a/examples/limagemagic.lua b/examples/limagemagic.lua index c3efbc1..136c87a 100644 --- a/examples/limagemagic.lua +++ b/examples/limagemagic.lua @@ -1,14 +1,15 @@ ---- --- Auto "magic" image converter directory. +-- Lsyncd user-script that creates a "magic" image converter directory. -- --- This lsycnd script will automatically convert all images that are placed +-- This configuration will automatically convert all images that are placed -- in the directory 'magicdir' all resulting images are placed in the same -- directory! -- -- Be sure to mkdir 'magicdir' first. --- --- Fileformats: .jpg .gif .png +----- +-- Fileformats: .jpg .gif .png +-- local formats = { jpg=true, gif=true, png=true, } convert = { diff --git a/examples/lrssh.lua b/examples/lrssh.lua deleted file mode 100644 index a005a59..0000000 --- a/examples/lrssh.lua +++ /dev/null @@ -1,12 +0,0 @@ ----- --- User configuration file for lsyncd. --- --- Simple example for default rsync. --- -settings = { - statusFile = "/tmp/lsyncd.stat", - statusIntervall = 1, -} - -sync{default.rssh, source="src", host="localhost", targetdir="dst/"} - diff --git a/examples/lrsync.lua b/examples/lrsync.lua index ffa9d9b..cd8092c 100644 --- a/examples/lrsync.lua +++ b/examples/lrsync.lua @@ -8,5 +8,9 @@ settings = { statusIntervall = 1, } -sync{default.rsync, source="src", target="mooooooooooooooooooooo.com:dst/", excludeFrom="exclude"} +sync{ + default.rsync, + source="src", + target="/home/user/dst/", +} diff --git a/examples/lrsyncssh.lua b/examples/lrsyncssh.lua new file mode 100644 index 0000000..c535097 --- /dev/null +++ b/examples/lrsyncssh.lua @@ -0,0 +1,7 @@ +---- +-- User configuration file for lsyncd. +-- +-- Simple example for default rsync, but executing moves through on the target. +-- +sync{default.rsyncssh, source="src", host="localhost", targetdir="dst/"} +