Find the answer to your Linux question:
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.
  1. #1
    Just 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.

  2. #2
    Linux 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 : -
    $ lftp
    lftp :~> set -a
    set -a command will display all the variables. So check whether the variable ftp:use-fxp is true or false.

    If it is true, then read this (from man lftp) : -
    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)
    That should help you. Try, based on what the man page says.

    With Regards,
    Thinker

  3. #3
    Just 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...

  4. #4
    Linux User
    Join Date
    Jun 2006
    Posts
    311

    Give it a Try

    Hi thedp,
    Quote Originally Posted by thedp
    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...
    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.

    With Regards,
    Thinker

  5. #5
    Just 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

  6. #6
    Just Joined!
    Join Date
    Jun 2005
    Posts
    20
    Quote Originally Posted by alex.bir
    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
    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.

    Write the following into a file,
    don't forget to remove the [ ].
    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]
    And execute the file:
    Code:
    	
    lftp -f config.file

  7. #7
    Just 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

  8. #8
    Just Joined!
    Join Date
    Jun 2005
    Posts
    20
    Haven't really tried this, but try to specify a file in the source directory.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •