From: Micah Anderson Date: Mon, 26 Nov 2012 17:49:16 +0000 (-0500) Subject: dsync: fix loop number of iterations, we want to try 3 times, and we are starting... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=03eadb018b666c19861b79567755fcc54bfb8d7d;p=backupninja.git dsync: fix loop number of iterations, we want to try 3 times, and we are starting at 0 --- 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