How do you transfer files from server to server?

Discussion in 'Site & Server Administration' started by Gatorade, Nov 22, 2006.

  1. #1
    First of all sorry for posting this in the general chat forum but I'm not sure where it goes.:( I need to transfer many files in a directory from one host/server to another host/server. I use SmartFTP for my program. What is the best way to do this? It would take me forever to download and upload all of the files. I would really appreciate any help I get on this.

    Add on: I have Cpanel on the account I want to transfer from and Hosting Manager on the account I want to transfer to if that makes a difference.
     
    Gatorade, Nov 22, 2006 IP
  2. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you can use FXP or wget via command line
     
    disgust, Nov 22, 2006 IP
  3. Neptune

    Neptune Well-Known Member

    Messages:
    1,465
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    108
    #3


    Do you want to transfer the whole account over? If so then it is quite simple using WHM if you have root access. You just initiate a transfer. If you do not have WHM I would recommend you tar the files up in a directory and then wget them to the other server directory.
     
    Neptune, Nov 23, 2006 IP
  4. soniqhost.com

    soniqhost.com Notable Member

    Messages:
    5,887
    Likes Received:
    96
    Best Answers:
    0
    Trophy Points:
    240
    #4
    Do you have root access to both servers?
     
    soniqhost.com, Nov 27, 2006 IP
  5. Sönmez

    Sönmez Well-Known Member

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #5
    If u are Root on the server..
    Login your server via SSH ..

    Write that code in ssh..

    Cd /home
    /scripts/pkgacct yourcpanelusername

    When it finish..Write that..

    ftp
    open yournewserverip
    yourusername
    yourpassword
    send /home/primaryuser/cpmove-USERNAME.tar.gz

    When it finish connect new your server as root via SSH ..

    mv cpmove-USERNAME.tar.gz /home
    cd /home
    /scripts/restorepkg USERNAME

    It is going to moved..

    I hope u can understand..Sorry for my bad english :)
     
    Sönmez, Nov 27, 2006 IP
  6. Caronet-Hesham

    Caronet-Hesham Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you don't have root access, you'll need to generate a live backup from your old Cpanel and ftp it to the new server, you can then ask your new host to restore that backup for you
     
    Caronet-Hesham, Nov 27, 2006 IP
  7. Shoemoney

    Shoemoney $

    Messages:
    4,474
    Likes Received:
    588
    Best Answers:
    0
    Trophy Points:
    295
    #7
    scp baby ;)
     
    Shoemoney, Nov 27, 2006 IP
  8. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #8
    meh, nothing wrong with wget ;)

    though I suppose scp is nice for people that like gui's.
     
    disgust, Nov 27, 2006 IP
  9. Shoemoney

    Shoemoney $

    Messages:
    4,474
    Likes Received:
    588
    Best Answers:
    0
    Trophy Points:
    295
    #9
    scp is command line =)

    its secure copy... basically tunneling cp through ssh
     
    Shoemoney, Nov 27, 2006 IP
  10. theblight

    theblight Peon

    Messages:
    246
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Another vote for SCP....
    # scp -rp source-directory user@ip-address-of-other-server:Destination-

    e.g.
    scp -rp /var/www/html root@123.456.789.10:/var/www/
     
    theblight, Nov 30, 2006 IP