aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-11-05 11:18:11 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-11-05 11:18:11 -0200
commitc649339ba41b4bc748598ca13c4363e25f6eba1f (patch)
treea2e3928cb749d6c8e8331f9cf84787f28e36b583 /handlers
parent8b6b607d608f9c19341e14b8f71f58403cba1655 (diff)
downloadbackupninja-c649339ba41b4bc748598ca13c4363e25f6eba1f.tar.gz
backupninja-c649339ba41b4bc748598ca13c4363e25f6eba1f.tar.bz2
Rsync: support for backupninja's test option (#8196)
Diffstat (limited to 'handlers')
-rw-r--r--handlers/rsync.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in
index d0c211c..000f3ea 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -920,6 +920,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