From the man page:
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 transfer cannot be initiated or
ftp:use-fxp is false.So, in your case:
Here is an example, I have tested it to make sure it works:
FXP Session with LFTP
lftp [EMAIL PROTECTED]:/> get ftp://user:[EMAIL PROTECTED]:12345/tmp/debian30.txt -o ftp://user:[EMAIL PROTECTED]:12345/home/user/debian30.txt
---- Connecting to host1 (host1) port 12345
---> PASV <--- 227 Entering Passive Mode (host2,123,45) ---> USER user
<--- 331 Password required for user. ---> PASS XXXX
<--- 230 User user logged in.
---> TYPE I
<--- 200 Type set to I. ---> SIZE /tmp/debian30.txt
<--- 213 4075 ---> MDTM /tmp/debian30.txt
<--- 213 20041222135957 ---> PORT host2,123,45
<--- 200 PORT command successful. ---> RETR /tmp/debian30.txt
---> STOR /home/user/debian30.txt
<--- 150 Opening BINARY mode data connection for /tmp/debian30.txt (4075 bytes).
<--- 150 Opening BINARY mode data connection for /home/user/debian30.txt.
---> QUIT
---> QUIT
---- Closing control socket
---- Closing control socket
lftp [EMAIL PROTECTED]:/>
Does this help?
On Wed, 22 Dec 2004, Kevin Smith wrote:
I'm confused on the syntax of how to fxp from one server to another server.
I have both the servers in my bookmarks and I type 'open site1'' then 'open site2'...And I'm connected to both sites at the same time in the same terminal...But then how can I send /tmp/lftp1.tgz from site1 to site2?
