Results 1 to 15 of 15
  1. #1
    Join Date
    Jan 2006
    Posts
    57

    Question two servers: Transfer between them ?

    At this moment I have to VPS and I want to transfer files between them.

    I try some local software, for example FlashFXP but it doesnt work, because my local conection is too slow.

    I supose I could have a web page that "enble" a FTP

    Any idea ?

  2. #2
    Join Date
    Jan 2005
    Location
    Toledo, OH
    Posts
    141
    Just setup an FTP server on either one and use it to transfer files between the two. Use an FTP client on one and an FTP server on the other. That would be a quick and easy solution.

    Pro FTPd can be downloaded for free from http://freshmeat.net/projects/proftpd/

  3. #3
    Join Date
    Dec 2003
    Location
    Boston, MA
    Posts
    603
    You can also setup network file sharing between hosts. Like my current setup for my FreeBSD servers NFS is shared between one File Server and 10+ servers /usr/ports are actually shared on the NFS.
    Axcelx Technologies - James
    Boston Colocation | Boston VPS
    Massachusetts Server Colocation and Dedicated Servers

  4. #4
    Join Date
    Jan 2006
    Posts
    57
    Crucial sorry but I dont understand !!
    rapta of course in both vps ftp server instaled, I'm look for a client FTP (written in PHP) that can conect the local (VPS 1) with the remote (VPS 2).

    All the FTP software I try until now, conect my local (home PC) with one of the VPS

  5. #5
    Join Date
    Mar 2004
    Location
    Bristol, UK
    Posts
    231
    Code:
    #!/bin/sh
    HOST=server2.mydomain.com
    FTPUSER=server2_user
    FTPPASSWORD=server2_password
    ftp -n $HOST <<-EOF
    user $FTPUSER $FTPPASSWORD
    bin
    prompt off
    lcd local_directory1
    cd remote_directory_2
    mput *
    bye
    EOF
    The shell script above will copy with ftp the contents of one directory to the other (no subdirecotries though).
    mget can be used as well.

    Clunky and not at all secure, but it works!

  6. #6
    Join Date
    Jan 2006
    Posts
    57
    slowdive thanks for you post.
    This is a very good option for another problem that I have, but was not exactly what I was searching for right now.

    I'm lookfing for a FTP program (written in PHP) that work as a dynamic web page, where I can conect the VPS (one will work as local and the other as remote).

    Just like a simple FTP software and want to tag/untag an transfer to/from between both VPS
    Last edited by Discoteca; 09-14-2006 at 08:23 AM.

  7. #7
    Join Date
    Dec 2003
    Location
    Boston, MA
    Posts
    603
    I'm not sure if you can do NFS in a vps env. Becasue your not able to change mount partitions.
    Axcelx Technologies - James
    Boston Colocation | Boston VPS
    Massachusetts Server Colocation and Dedicated Servers

  8. #8
    Join Date
    Aug 2005
    Location
    Canada
    Posts
    838
    You can simply get everything with wget, too.

    wget -m ftp://FTPUSER[email protected]/

    You can run it via SSH (prefered) or even with tiny shellscript CGI.
    Code:
    #!/bin/sh
    echo
    exec 2>&1
    wget -m ftp://FTPUSER:[email protected]/
    It will download everything in the target server in the directory named "ftp.example.com".
    (I think you can specify the directory with n option but I don't remember.)
    Very easy. It will do incremental backup, as well.

    You can also use rsync or one of other utilities.
    You can set up the FTP of two servers so that you can control direct FTP to FTP transfer with your home machine, too.

    There are so many ways.
    I often use wget because there are very little things to remember or worry.
    It never failed, so far (it retries, if it fails).
    Not the best method (as far as the efficiency goes) but not that bad either, I guess.

  9. #9
    Its Linux or Windows based?

  10. #10
    Join Date
    Jan 2006
    Posts
    57
    I realy love simple solutions, but in this case I have to give one of my clients a GUI solution.

    Both VPS are Linux, but I also have a windows VPS

  11. #11
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    132
    Quote Originally Posted by Discoteca
    I realy love simple solutions, but in this case I have to give one of my clients a GUI solution.

    Both VPS are Linux, but I also have a windows VPS
    You could also use 'scp' with the '-r' switch which will use encryption to transfer data from one server to another recursively.

    Or you can use rsync and pass the files through SSH. Once you run rsync and get all the files. If any files change and you want to update them, rsync again and only the modified or updated files will be copied over and not all of the information.

    If you want to provide a GUI solution to the customer, only an FXP program like FlashFXP will work. And it doesn't use your local connection, it creates a connection through both FTP sites:

    http://en.wikipedia.org/wiki/FXP

  12. #12
    Join Date
    Dec 2004
    Location
    Washington, DC
    Posts
    787
    Quote Originally Posted by Discoteca
    At this moment I have to VPS and I want to transfer files between them.

    I try some local software, for example FlashFXP but it doesnt work, because my local conection is too slow.

    I supose I could have a web page that "enble" a FTP

    Any idea ?
    I definitely suggest using rsync or scp for this.

  13. #13
    Join Date
    Dec 2002
    Location
    Toronto
    Posts
    43
    I second that ... and I'm kinda surprised that it wasn't the first thing that was mentioned .... scp or rsync
    Nexus Networks Canada Inc.
    www.NexusNetworks.com
    1.866.662.HOST

  14. #14
    Join Date
    Dec 2004
    Location
    Washington, DC
    Posts
    787
    Quote Originally Posted by NexusNet
    I second that ... and I'm kinda surprised that it wasn't the first thing that was mentioned .... scp or rsync
    Indeed. I am all for the simple yet powerful CLI apps.

  15. #15
    Join Date
    Mar 2003
    Location
    tail -f /var/log/nerd
    Posts
    318
    rsync is the way to go.

    To find out more simple man rsync or search google on how to use it correctly. We use it to backup some servers remotely, rsync checks for changed data and only backs up changed files not redundant ons.

    C
    Mega Hosters Inc. - The Last Host You Will Ever Need!
    Hsphere Control Panel, 24/7 Phone Support, EasyApp, Shared SSL, Daily Backups, Dedicated IPs, PHP4 & PHP5, FFMPEG, Legal Adult Content Allowed + More!
    Treating A Customer The Way They Should Be Treated For Over 5.5 Years Now!

Posting Permissions

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