LFTP: Difference between revisions
mNo edit summary |
|||
Line 18: | Line 18: | ||
sudo apt-get install lftp |
sudo apt-get install lftp |
||
= Using |
= Using = |
||
Log in with your archive account |
Log in with your archive account |
||
Line 24: | Line 24: | ||
lftp -u <abc> sftp://archive-sftp.lsdf.kit.edu |
lftp -u <abc> sftp://archive-sftp.lsdf.kit.edu |
||
Password: <password> |
Password: <password> |
||
= Usage examples = |
|||
Upload a local file (lfile) to the archive: |
Upload a local file (lfile) to the archive: |
||
Line 33: | Line 35: | ||
lftp>mirror -c -R --parallel=4 ldir rdir |
lftp>mirror -c -R --parallel=4 ldir rdir |
||
Download a remote directory using 4 streams for every single file. (This improves download speeds for large files): |
Download a remote directory using 4 streams for every single file. (This improves download speeds for large i.e. more than 100 MB, files): |
||
lftp>mirror -c --use-pget-n=4 rdir ldir |
lftp>mirror -c --use-pget-n=4 rdir ldir |
||
Many examples with explanations can be found here: [http://www.commandlinefu.com/commands/using/lftp LFTP use examples] |
|||
= [[LFTP_tests|Throughput measurements]] = |
= [[LFTP_tests|Throughput measurements]] = |
Revision as of 17:16, 8 March 2017
Intro
LFTP is an enhanced sftp client that allows faster parallel down and uploads as well as a more convenient interface
Documentation
LFTP Documentation can be found here http://lftp.yar.ru/
Getting and installing
Most current Linux distributions offer lftp through their package management. However they carry mostly rather old versions which have annoying bugs.
We suggest to use at least lftp versions above 4.7.x. The LFTP web site offers source packages that enable you to compile the most recent version. Check the README and the INSTALL files in the documentation of lftp.
To install lftp using your distribution package management tool
yum install lftp sudo apt-get install lftp
Using
Log in with your archive account
lftp -u <abc> sftp://archive-sftp.lsdf.kit.edu Password: <password>
Usage examples
Upload a local file (lfile) to the archive:
lftp>put lfile
Upload, reverse mirror (-R), a local directory (ldir) to a remote directory (rdir) using 4 processes. Use the --continue (-c) option to allow the mirror operation to continue where it left off in case something happens (usefull if you archive thousands of files and directories).
lftp>mirror -c -R --parallel=4 ldir rdir
Download a remote directory using 4 streams for every single file. (This improves download speeds for large i.e. more than 100 MB, files):
lftp>mirror -c --use-pget-n=4 rdir ldir
Many examples with explanations can be found here: LFTP use examples