I don't (yet) do backups in parallel, although it's on my todo list. However, you can greatly simplify your script. You had:

SRV=(server1 server2)
i=${#SRV[*]}
set $((i--))

# Loop through the array and backup each server

while [ "$i" -gt -1 ]
 do
  echo "Beginning backup of ${SRV[$i]}"
$RDIFF --exclude-globbing-filelist $EX --include-globbing-filelist $IN --exclude / ${SRV[$i]}-backup::/ $BK_DIR/${SRV[$i]} &
  set $((i--))
done

How about:

-----------------------------------------------------------------
SRV="server1 server2"

for SERVER in SRV
do
        echo "Beginning backup of $SERVER"
        $RDIFF ...qualifiers... ${SERVER}-backup::/ $BK_DIR/$SERVER &
done
-----------------------------------------------------------------

Keith


_______________________________________________
rdiff-backup-users mailing list at [email protected]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Reply via email to