Results 1 to 8 of 8
Can someone please explain how can I use FXP with my local lftp program?
I've been searching google for days now, nothing but man pages...
What are the command that ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-01-2006 #1Just Joined!
- Join Date
- Jun 2005
- Posts
- 20
FXP with lftp...
Can someone please explain how can I use FXP with my local lftp program?
I've been searching google for days now, nothing but man pages...
What are the command that I need to use in order to make one FTP server to send files to another FTP server.
Please help, I must understand how this is done with lftp
Thank you so much.
- 07-01-2006 #2Linux User
- Join Date
- Jun 2006
- Posts
- 311
Hi thedp,
Firstly, in lftp, check whether an FXP transfer can be initiated or not. For doing that run : -
set -a command will display all the variables. So check whether the variable ftp:use-fxp is true or false.$ lftp
lftp :~> set -a
If it is true, then read this (from man lftp) : -
That should help you. Try, based on what the man page says.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.
get [-E] [-a] [-c] [-O base] rfile [-o lfile] ...
Retrieve the remote file rfile and store it as the local file lfile. If -o is omitted, the file is
stored to local file named as base name of rfile. You can get multiple files by specifying multiple
instances of rfile [and -o lfile]. Does not expand wildcards, use mget for that.
-c continue, reget
-E delete remote files after successful transfer
-a use ascii mode (binary is the default)
-O <base> specifies base directory or URL where files should be placed
Examples:
get README
get README -o debian.README
get README README.mirrors
get README -o debian.README README.mirrors -o debian.mirrors
get README -o ftp://some.host.org/debian.README
get README -o ftp://some.host.org/debian-dir/ (end slash is important)
With Regards,
Thinker
- 07-01-2006 #3Just Joined!
- Join Date
- Jun 2005
- Posts
- 20
Yeah I saw that in the man pages... But it's simply not enough, "mget -O" what else? Should I establish a connection first to one of the servers, or both servers...
- 07-01-2006 #4Linux User
- Join Date
- Jun 2006
- Posts
- 311
Give it a Try
Hi thedp,
Why don't you give it a try and see for yourself? Try the combinations possible and if you find problems, then post what you tried and the output messages got.
Originally Posted by thedp
With Regards,
Thinker
- 02-19-2007 #5Just Joined!
- Join Date
- Feb 2007
- Posts
- 2
fxp with lftp
Hi,
I've also tried this, and it seems that there is NO correct way to set up an FXP
with lftp.
Can anybody give a simple example e.g
get <ftp://source/source URL> <ftp://destination/dest_dir>
thanks a lot
- 02-27-2007 #6Just Joined!
- Join Date
- Jun 2005
- Posts
- 20
The following exampe will show you a simple way using the lftp program on a remote client, making the a FTP server to send files to another FTP server - FXP.
Originally Posted by alex.bir
Write the following into a file,
don't forget to remove the [ ].And execute the file:Code:set ftp:ssl-force true set ftp:use-fxp true open -p [Source Port] [Source Address] user [Source Username] [Source Password] mirror [Source Directory] ftp://[Destination Username]:[Destination Password]@[Destination Address]:[Destination Port]/[Destination Directory]
Code:lftp -f config.file
- 02-27-2007 #7Just Joined!
- Join Date
- Feb 2007
- Posts
- 2
fxp lftp
Yeah, thanks
this one I've managed to do before
what I actullay meant is how to transfer a single file.
Thanks again
- 02-28-2007 #8Just Joined!
- Join Date
- Jun 2005
- Posts
- 20
Haven't really tried this, but try to specify a file in the source directory.


Reply With Quote
