Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LFTP Reconnect infinite loop

Tags:

reconnect

lftp

When I try to connect to the host that is dwon I get the following message:

cd `sftp://example.com/tmp' [Delaying before reconnect: 30]

After each attempt delay sis increasing. I found the following command that should help me:

repeat -d 10  -c 1 

which should delay by only 10 seconds (instead of default 30) and repeat th ecommand only once.

But still I get Delaying reconnect in endless loop.

like image 898
meso_2600 Avatar asked Jul 15 '14 16:07

meso_2600


1 Answers

ok found it:

lftp -e "set net:max-retries 2;set net:reconnect-interval-base 5;set net:reconnect-interval-multiplier 1 ;mirror  -v --just-print '/tmp/md1/' '/tmp/m2'" sftp://example.com
like image 182
meso_2600 Avatar answered Oct 18 '22 04:10

meso_2600