Saturday, 16 June 2012

Fast downloading using lftp

Multiple protocol support (FTP, HTTP, FISH, SFTP, HTTPS and FTPS protocols).
      Scheduling downloads from command prompt.
      Easy Mirroring.
      Uploading and downloading directories.
      Assigning separate slots for multiple ftp sites.
      Queues the process/downloads.
      Bookmarking the download pages.

# cd /usr/src
# wget http://ftp.yars.free.net/pub/source/lftp/lftp-4.1.3.tar.gz
# tar zxvf lftp-4.1.3.tar.gz
# cd lftp-4.1.3
# ./configure && make && make install

OR 
# rpm -ivh http://pkgs.repoforge.org/lftp/lftp-4.3.5-1.el6.rfx.i686.rpm

# lftp -u username,password ftp.yourdomainname.com

# lftp ftp.kernel.org

All the lsftp command history use to store in ~/.lftp/cwd_history just run ‘ history ‘ from the lftp shell to recall your command history.
  # lftp
  lftp :~> history

You can also schedule the downloads using the at command.

FTP and HTTP protocols support.
Job queueing.
Job execution at specified time.
Transfer status includes rate and ETA.
`mirror' can download several files in parallel (--parallel option).
`pget' to download a file using several connections.

# lftp -u username,password -e "cd htmldir" www.domainname.com

1 comment: