6 Jul 2012 07:14
3 retries at each interval against unavailable ftp host?
James Robertson <j <at> mesrobertson.com>
2012-07-06 05:14:25 GMT
2012-07-06 05:14:25 GMT
I am using an older version of LFTP - Version 3.6.1. If the problem
I describe below is fixed in a newer version, then I apologise - It's
not simple for me to upgrade to the latest version due to acces to the
server and I am hoping this is might just be a misconfiguration on my
part.
We have an 3rdparty that is providing FTP server access on a single
day of the week and they do not tell us what time this window starts
and ends on the day.
Rather than a while/until loop I was hoping to simply use lftp's
inbuilt interval settings to retry periodically through the day. I am
testing it against an unavailable host to ensure the correct behaviour
when lftp cannot connect and have found that for every interval it
uses up 3 retries, so this makes using the interval option a problem.
Example using lower interval periods.
lftp -e '
debug 10
set net:timeout 10
set net:reconnect-interval-base 5
set net:reconnect-interval-max 5
set net:reconnect-interval-multiplier 1
set net:max-retries 15
set net:persist-retries 2
mirror --verbose "remotedir" "/tmp/localdir"
bye
' -u user,pass ftpserver.example.com
(Continue reading)
RSS Feed