Lftp default timeout and retry?
Solution 1:
Still I don't know how to find out the defaults. But could change them as follows:
lftp -c "
set net:timeout 5;
set net:max-retries 3;
set net:reconnect-interval-multiplier 1;
set net:reconnect-interval-base 5;
open $HOST
user $USER $PASS
lcd $SOURCEFOLDER
mirror --delete --verbose $FSOURCE $FTARGET
exit
"
Solution 2:
Where can I find the defaults for lftp?
From inside lftp prompt:
lftp :~> set -a
This will list all the defaults for lftp on your system.
lftp has context specific help. So you can type:
lftp :~> help set
Which returns:
Usage: set [OPT] [<var> [<val>]]
Set variable to given value. If the value is omitted, unset the variable.
Variable name has format ``name/closure'', where closure can specify
exact application of the setting. See lftp(1) for details.
If set is called with no variable then only altered settings are listed.
It can be changed by options:
-a list all settings, including default values
-d list only default values, not necessary current ones