mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-07 09:04:05 +00:00
This commit is contained in:
parent
6ae0a45ffa
commit
71984d8bc6
@ -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
|
-- in the directory 'magicdir' all resulting images are placed in the same
|
||||||
-- directory!
|
-- directory!
|
||||||
--
|
--
|
||||||
-- Be sure to mkdir 'magicdir' first.
|
-- Be sure to mkdir 'magicdir' first.
|
||||||
--
|
|
||||||
-- Fileformats: .jpg .gif .png
|
|
||||||
|
|
||||||
|
-----
|
||||||
|
-- Fileformats: .jpg .gif .png
|
||||||
|
--
|
||||||
local formats = { jpg=true, gif=true, png=true, }
|
local formats = { jpg=true, gif=true, png=true, }
|
||||||
|
|
||||||
convert = {
|
convert = {
|
||||||
|
@ -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/"}
|
|
||||||
|
|
@ -8,5 +8,9 @@ settings = {
|
|||||||
statusIntervall = 1,
|
statusIntervall = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
sync{default.rsync, source="src", target="mooooooooooooooooooooo.com:dst/", excludeFrom="exclude"}
|
sync{
|
||||||
|
default.rsync,
|
||||||
|
source="src",
|
||||||
|
target="/home/user/dst/",
|
||||||
|
}
|
||||||
|
|
||||||
|
7
examples/lrsyncssh.lua
Normal file
7
examples/lrsyncssh.lua
Normal file
@ -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/"}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user