From 545eb341cfab68e13197613f2b39943ce80ced91 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Mon, 29 Aug 2016 13:12:09 +0200 Subject: [PATCH] add rsync.chown --- ChangeLog | 5 ++++- default-rsync.lua | 7 +++++++ default-rsyncssh.lua | 18 ++++++------------ 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index c3df140..7ec8928 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ ??-??-????: - enhancement: add rsync options: "omit-dir-times" and "omit-link-times" + enhancement: add rsync options: + "chown", + "omit-dir-times", + "omit-link-times" change: _verbatim forced for 'exitcodes' entry. 15-10-2015: 2.1.6 diff --git a/default-rsync.lua b/default-rsync.lua index eac462c..d51dc9e 100644 --- a/default-rsync.lua +++ b/default-rsync.lua @@ -57,6 +57,7 @@ rsync.checkgauge = { binary = true, bwlimit = true, checksum = true, + chown = true, compress = true, copy_links = true, cvs_exclude = true, @@ -487,6 +488,12 @@ rsync.prepare = computedN = computedN + 1 end + if crsync.chown + then + computed[ computedN ] = '--chown=' .. crsync.chown + computedN = computedN + 1 + end + if crsync.inplace then computed[ computedN ] = '--inplace' diff --git a/default-rsyncssh.lua b/default-rsyncssh.lua index 3f3261d..1e811ac 100644 --- a/default-rsyncssh.lua +++ b/default-rsyncssh.lua @@ -425,39 +425,33 @@ end -- -- allow processes -- -rsyncssh.maxProcesses = - 1 +rsyncssh.maxProcesses = 1 -- -- The core should not split move events -- -rsyncssh.onMove = - true +rsyncssh.onMove = true -- -- default delay -- -rsyncssh.delay = - 15 +rsyncssh.delay = 15 -- -- no default exit codes -- -rsyncssh.exitcodes = - false +rsyncssh.exitcodes = false -- -- rsync exit codes -- -rsyncssh.rsyncExitCodes = - default.rsyncExitCodes +rsyncssh.rsyncExitCodes = default.rsyncExitCodes -- -- ssh exit codes -- -rsyncssh.sshExitCodes = - default.sshExitCodes +rsyncssh.sshExitCodes = default.sshExitCodes -- -- xargs calls configuration