From: Silvio Rhatto Date: Thu, 6 Nov 2014 13:46:03 +0000 (-0200) Subject: Rsync handler patch from upstream #8196 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b3c7693c1598b9fc2aef77fd707a4cd8bd466412;p=puppet-backup.git Rsync handler patch from upstream #8196 --- diff --git a/files/handlers/rsync b/files/handlers/rsync index 634f036..7a78681 100644 --- a/files/handlers/rsync +++ b/files/handlers/rsync @@ -908,6 +908,10 @@ function set_filelist { function set_rsync_options { + if [ "$test" ]; then + rsync_options="$rsync_options --dry-run" + fi + if [ "$numericids" != "0" ]; then rsync_options="$rsync_options --numeric-ids" fi