mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-05 16:12:32 +00:00
adding rsync chmod parameter
This commit is contained in:
parent
b71089b12e
commit
c58658e642
@ -1,5 +1,6 @@
|
||||
??-??-????:
|
||||
enhancement: add rsync options:
|
||||
"chmod",
|
||||
"chown",
|
||||
"copy_dirlinks",
|
||||
"existing",
|
||||
|
@ -58,6 +58,7 @@ rsync.checkgauge = {
|
||||
bwlimit = true,
|
||||
checksum = true,
|
||||
chown = true,
|
||||
chmod = true,
|
||||
compress = true,
|
||||
copy_dirlinks = true,
|
||||
copy_links = true,
|
||||
@ -490,6 +491,12 @@ rsync.prepare =
|
||||
computedN = computedN + 1
|
||||
end
|
||||
|
||||
if crsync.chmod
|
||||
then
|
||||
computed[ computedN ] = '--chmod=' .. crsync.chmod
|
||||
computedN = computedN + 1
|
||||
end
|
||||
|
||||
if crsync.chown
|
||||
then
|
||||
computed[ computedN ] = '--chown=' .. crsync.chown
|
||||
|
@ -15,15 +15,18 @@
|
||||
--
|
||||
--
|
||||
|
||||
if not default then
|
||||
if not default
|
||||
then
|
||||
error( 'default not loaded' );
|
||||
end
|
||||
|
||||
if not default.rsync then
|
||||
if not default.rsync
|
||||
then
|
||||
error( 'default.rsync not loaded' );
|
||||
end
|
||||
|
||||
if default.rsyncssh then
|
||||
if default.rsyncssh
|
||||
then
|
||||
error( 'default-rsyncssh already loaded' );
|
||||
end
|
||||
|
||||
@ -31,6 +34,7 @@ end
|
||||
-- rsyncssh extends default.rsync
|
||||
--
|
||||
local rsyncssh = { default.rsync }
|
||||
|
||||
default.rsyncssh = rsyncssh
|
||||
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user