diff --git a/handlers/rsync.in b/handlers/rsync.in
index d0c211ccb27f560b0459c678c804506cca288d46..000f3ea61419847486a851256d2c46f6ab5de457 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