I use often lftp to move data from server to server/client. I like this FTP client because is small, very powerful to use and present in every Linux distribution.

Plus, I can run lftp from the shell (maybe from a screen session) and forget it until the job is done 😉

To limit bandwidth with lftp, you can connect to the FTP site as always and then, before starting a transfer, insert these commands:

set net:connection-limit 1
set net:limit-rate 0:512000

The first value in net:limit-rate is the download limit, the second number is the upload limit (after the colon), so…

10 Kb/s -> 10240

500 Kb/s -> 512000

In this example I’m limiting the upload rate to 500 Kb/s.


4 Comments

Soliman Hindy · March 9, 2015 at 22:19

Hi,

Thanks for the tip.
lftp is a great software!

xbao · December 30, 2015 at 03:29

Thanks for that. lftp also supports the ‘k’ postfix. From the manpage (http://lftp.yar.ru/lftp-man.html):

> Suffixes are supported, e.g. 100K means 102400.

nwgat · February 18, 2016 at 08:42

thanks for the guide, btw i do my own windows compile over at https://nwgat.ninja/lftp-for-windows/

nargaroth · April 17, 2017 at 19:06

thanks, you can also set a total limit for all connections and specify it in units like this:

set net:limit-total-rate 3M:500K

Leave a Reply

Your email address will not be published. Required fields are marked *