Displaying 1 result from an estimated 1 matches for "mirror_used".
2015 Apr 04
1
Downloading a great number of files from different rsync servers for good loadbalancing and high efficiency.
...ipt to do it. I've tried the
following one which I struggling for sometime to get it, but it cann't meet
all of the above requirements. In fact it has a great distance from
achieving the requirements I
posted in the above step 3:
-------------------
mirror=1
while read -r -a line
do
mirror_used=`awk 'NR=='"$mirror"'' mirrors.list`
rsync -amH --progress --append-verify --timeout=10 --contimeout=5 \
${mirror_used} ${line[0]} debs/ &
mirror=$[mirror+1]
done < deb-file.list
wait
-------------------
Any hints for this issue?
Regards
--
Hongyi Zhao <...