I've been using lftp to sync up my local and remote files for my
websites using the mirror command and only transferring newer files.
This makes my life a lot easier, since I when I'm working locally I
can't have to worry about which files I change, etc, etc.  Problem is,
the hsoting server blacklists my IP (HTTP, not just FTP) if i transfer
too many files.  I'm not sure, but it would appear that it's creating
a new connection for each transfer and the server has a cap of 150
connections.  I use lftp as follows:

I have a shell script i call to sync to the server called put, which looks like:
cd mydomain.com
lftp -f ../put.script | tee "../`date +"%F %T"`.put.log"

The put.script files looks like:
open mydomain.com
user username password
mirror -envvvR

a little roundabout, but yea.  I fixed the problem by throttling the
transfer rate int he ~/.lftp/rc (i think) file... but I'd rather not
do that if avoidable.  Is there a way to coax lftp into reusing
connections?

LFTP | Version 3.2.1
Linux Ruri 2.6.15-1.1833_FC4 #1 Wed Mar 1 23:41:37 EST 2006 i686 i686
i386 GNU/Linux

Any feedback would be greatly appreciated.
Andrew

Reply via email to