[NCLUG] lftp help needed

John L. Bass jbass at dmsd.com
Mon Jan 6 14:52:50 MST 2003


Erich <mojo_head at yahoo.com> writes:
> I am trying to limit download bandwidth with lftp.  I have
> never used it before.  I would like to set an upper bound
> at 128kbps.  Can someone help, or point me to a good
> resource?

from the lftp command line prompt use:

	set net:limit-total-rate 15000

or place it in an lftp script for something done on a regular basis.

Have fun,
John

------------- lftp -f updates, where updates contains  ----------------
open mirrors.kernel.org

set net:limit-total-rate 15000

mirror --delete --no-umask --verbose=1 --parallel=1 \
        --exclude "(s390)" \
        /pub/redhat/redhat/linux/updates/8.0/en/ /var/ftp/pub/mirrors/redhat/linux/updates/8.0/en/

mirror --delete --no-umask --verbose=1 --parallel=1 \
        --exclude "(alpha|ia64|s390)" \
        /pub/redhat/redhat/linux/updates/7.3/en/ /var/ftp/pub/mirrors/redhat/linux/updates/7.3/en/




More information about the NCLUG mailing list