mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-13 14:43:09 +00:00
This commit is contained in:
parent
ae786f3d9b
commit
6ae0a45ffa
16
lsyncd.lua
16
lsyncd.lua
@ -1948,8 +1948,8 @@ USAGE:
|
|||||||
default rsync behaviour:
|
default rsync behaviour:
|
||||||
lsyncd [OPTIONS] -rsync [SOURCE] [TARGET]
|
lsyncd [OPTIONS] -rsync [SOURCE] [TARGET]
|
||||||
|
|
||||||
default rssh behaviour:
|
default rsync with mv's through ssh:
|
||||||
lsyncd [OPTIONS] -rssh [SOURCE] [HOST] [TARGETDIR]
|
lsyncd [OPTIONS] -rsyncssh [SOURCE] [HOST] [TARGETDIR]
|
||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
-help Shows this
|
-help Shows this
|
||||||
@ -2002,10 +2002,10 @@ function runner.configure(args)
|
|||||||
clSettings.syncs = clSettings.syncs or {}
|
clSettings.syncs = clSettings.syncs or {}
|
||||||
table.insert(clSettings.syncs, {"rsync", src, trg})
|
table.insert(clSettings.syncs, {"rsync", src, trg})
|
||||||
end},
|
end},
|
||||||
rssh =
|
rsyncssh =
|
||||||
{3, function(src, host, tdir)
|
{3, function(src, host, tdir)
|
||||||
clSettings.syncs = clSettings.syncs or {}
|
clSettings.syncs = clSettings.syncs or {}
|
||||||
table.insert(clSettings.syncs, {"rssh", src, host, tdir})
|
table.insert(clSettings.syncs, {"rsyncssh", src, host, tdir})
|
||||||
end},
|
end},
|
||||||
version =
|
version =
|
||||||
{0, function()
|
{0, function()
|
||||||
@ -2102,8 +2102,8 @@ function runner.initialize()
|
|||||||
for _, s in ipairs(clSettings.syncs) do
|
for _, s in ipairs(clSettings.syncs) do
|
||||||
if s[1] == "rsync" then
|
if s[1] == "rsync" then
|
||||||
sync{default.rsync, source=s[2], target=s[3]}
|
sync{default.rsync, source=s[2], target=s[3]}
|
||||||
elseif s[1] == "rssh" then
|
elseif s[1] == "rsyncssh" then
|
||||||
sync{default.rssh, source=s[2], host=s[3], targetdir=s[4]}
|
sync{default.rsyncssh, source=s[2], host=s[3], targetdir=s[4]}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -2417,7 +2417,7 @@ local default_rsync = {
|
|||||||
-----
|
-----
|
||||||
-- lsyncd classic - sync with rsync
|
-- lsyncd classic - sync with rsync
|
||||||
--
|
--
|
||||||
local default_rssh = {
|
local default_rsyncssh = {
|
||||||
-----
|
-----
|
||||||
-- Spawns rsync for a list of events
|
-- Spawns rsync for a list of events
|
||||||
--
|
--
|
||||||
@ -2692,7 +2692,7 @@ default = {
|
|||||||
-----
|
-----
|
||||||
-- a default rsync configuration with ssh'd move and rm actions
|
-- a default rsync configuration with ssh'd move and rm actions
|
||||||
--
|
--
|
||||||
rssh = default_rssh,
|
rsyncssh = default_rsyncssh,
|
||||||
|
|
||||||
-----
|
-----
|
||||||
-- Minimum seconds between two writes of a status file.
|
-- Minimum seconds between two writes of a status file.
|
||||||
|
Loading…
Reference in New Issue
Block a user