Check the mirror builtin to transfer one or several files :
lftp builtin mirror can download or update a whole directory tree. There is also reverse mirror (mirror -R) which uploads or updates a directory tree on server. Mirror can also synchronize directories between two remote servers, using FXP if available.
ftpcopy
Obsolete. Use one of the following instead:
get ftp://... -o ftp://...
get -O ftp://... file1 file2...
put ftp://...
mput ftp://.../*
mget -O ftp://... ftp://.../*
or other combinations to get FXP transfer (directly between two ftp
servers). lftp would fallback to plain copy (via client) if FXP trans-
fer cannot be initiated or ftp:use-fxp is false.
so you can copy a file, by doing:
get filename -o ftp://user@ftpsite/directory/copyoffile
perhaps that will work better than a put/get if only because you'll be doing something like FXP, and the server will be using its own local bandwidth
from automated bash script:
and from lftp's interactive shell:
Check the mirror builtin to transfer one or several files :
lftp builtin mirror can download or update a whole directory tree. There is also reverse mirror (mirror -R) which uploads or updates a directory tree on server. Mirror can also synchronize directories between two remote servers, using FXP if available.
So,
from the man page:
so you can copy a file, by doing:
perhaps that will work better than a
put/get
if only because you'll be doing something like FXP, and the server will be using its own local bandwidth