adding rsync chmod parameter

This commit is contained in:
Axel Kittenberger 2016-12-01 14:12:56 +01:00
parent b71089b12e
commit c58658e642
3 changed files with 15 additions and 3 deletions

View File

@ -1,5 +1,6 @@
??-??-????:
enhancement: add rsync options:
"chmod",
"chown",
"copy_dirlinks",
"existing",

View File

@ -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

View File

@ -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
--