LFTP: Difference between revisions

From Lsdf
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 15: Line 15:
Upload a local file(lfile) to a remote file(rfile):
Upload a local file(lfile) to a remote file(rfile):


lftp>put <lfile> -o <rfile>
lftp>put lfile -o rfile


Upload (mirror reverse -R) a local directory(ldir) to a remote directory(rdir) using n processes:
Upload (mirror reverse -R) a local directory(ldir) to a remote directory(rdir) using n processes:


lftp>mirror -c -R -Pn <ldir> <rdir>
lftp>mirror -c -R -Pn ldir rdir


Download a remote directory using pget(nn streams) for every single file:
Download a remote directory using pget(nn streams) for every single file:
lftp>mirror -c --use-pget-n=n <rdir> <ldir>
lftp>mirror -c --use-pget-n=n rdir ldir


== [[LFTP_tests|LFTP throughput measurements]] ==
== [[LFTP_tests|LFTP throughput measurements]] ==

Revision as of 19:55, 23 November 2016

LFTP intro

LFTP Documentation can be found here http://lftp.yar.ru/

Install lftp using your distribution package management tool

 yum install lftp
 sudo apt-get install lftp

Log in with your archive account

 lftp -u <abc> sftp://archive-sftp.lsdf.kit.edu
 Password: <password>

Upload a local file(lfile) to a remote file(rfile):

 lftp>put lfile -o rfile

Upload (mirror reverse -R) a local directory(ldir) to a remote directory(rdir) using n processes:

 lftp>mirror -c -R -Pn ldir rdir

Download a remote directory using pget(nn streams) for every single file:

 lftp>mirror -c --use-pget-n=n rdir ldir

LFTP throughput measurements