HTransfer/Copy files from 1 server to another

Discussion in 'Site & Server Administration' started by razib19, Oct 10, 2008.

  1. #1
    Hello,

    Can any 1 please tell me how to Transfer/Copy files from 1 server to another?

    On our old server we hv more dn 12 GB files , now we are changing server.
    are there any easy way to transfer/copy from onld server to new server ?


    Kind Regards
    RAZiB
     
    razib19, Oct 10, 2008 IP
  2. Kionic.com

    Kionic.com Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi Razib,

    Do you have root access on both servers?
     
    Kionic.com, Oct 10, 2008 IP
  3. genius24k

    genius24k Active Member

    Messages:
    114
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #3
    If this is UNix/Linux, you can just tar all the files you want then scp -p overnight to the other box, then untar everything there
     
    genius24k, Oct 10, 2008 IP
  4. razib19

    razib19 Peon

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yes i have root access on both servers. r there any soft that can direct upload files on my new server without downloading on my pc , I mean directly.

    or any other easy way :(
     
    razib19, Oct 10, 2008 IP
  5. Kionic.com

    Kionic.com Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi Razib,

    There are many software you can use: sftp, scp (like Genius mentioned), rsync; these should already have installed in your servers.

    There is no need to download to your computer then re-upload, it will be very time consuming. You can ssh to the servers and capture the data from there directly using one of the software above.

    If you have many folders and files, you can follow Genius's advice, tar them all into one tar file => use scp to transfer it to the new server.

    Here is a simple instruction:

    1. First tar everything
    2. SCP command, you execute this in your new server:

    cd /home
    scp root@old_ser_ip:path_to_the_file_on_old_server


    If you have big files in just one or a few folders, you can just follow and use scp or I would recommend to use sftp:

    in your new server
    cd /home/
    sftp oldserverip
    cd /path/to/files
    get *


    Manipulate the commands as you see fit. I hope you find this helpful.
     
    Kionic.com, Oct 10, 2008 IP
  6. Kionic.com

    Kionic.com Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Part of the scp command got converted into a smiley. Here it is again:


    cd /home
    scp root@old_server_ip:path_to_the_file_on_old_server
    Code (markup):
     
    Kionic.com, Oct 10, 2008 IP
  7. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #7
    You can do this in php using a script called rapileech
     
    Bohra, Oct 10, 2008 IP