aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-11-26 12:49:16 -0500
committerMicah Anderson <micah@riseup.net>2012-11-26 12:49:16 -0500
commit03eadb018b666c19861b79567755fcc54bfb8d7d (patch)
tree83e69ab824c143def53cce69d56141926b1e7622
parentc0e571ebb48d937176ef1a73342096deff7a302c (diff)
downloadbackupninja-03eadb018b666c19861b79567755fcc54bfb8d7d.tar.gz
backupninja-03eadb018b666c19861b79567755fcc54bfb8d7d.tar.bz2
dsync: fix loop number of iterations, we want to try 3 times, and we are starting at 0
-rw-r--r--handlers/dsync.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/handlers/dsync.in b/handlers/dsync.in
index 80cfd4d..2323326 100644
--- a/handlers/dsync.in
+++ b/handlers/dsync.in
@@ -95,7 +95,7 @@ function do_user() {
local ret=0
debug "syncing"
- while [ $failedcount -lt 4 ]; do
+ while [ $failedcount -lt 3 ]; do
debug $DSYNC $testflags -u $user backup $srcconffile \
ssh -i $destid_file $destuser@$desthost $DSYNC $destconffile \
-u $user 2>&1