aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-11-07 14:36:25 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-11-07 14:36:25 -0200
commit89860aa3f6dc3e0ad4eb263c382d37a92746b68d (patch)
tree9506e1a48542a2967c2f0e3225c87dba14751ce8
parentc649339ba41b4bc748598ca13c4363e25f6eba1f (diff)
downloadbackupninja-89860aa3f6dc3e0ad4eb263c382d37a92746b68d.tar.gz
backupninja-89860aa3f6dc3e0ad4eb263c382d37a92746b68d.tar.bz2
Rsync: check test mode also in prepare_storage (#8196)
-rw-r--r--handlers/rsync.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in
index 000f3ea..ee2b733 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -747,6 +747,10 @@ function move_files {
function prepare_storage {
+ if [ "$test" ]; then
+ return
+ fi
+
section="`basename $SECTION`"
if [ "$format" == "short" ]; then