The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Whats the best way to move large files from one server to another.

Discussion in 'General Discussion' started by cdrake, Mar 21, 2005.

  1. cdrake

    cdrake Member

    Joined:
    Feb 5, 2004
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    I got a new dedicated server. I have tried using cpanels Copy account function but it keeps timing out because the site is so large. What is the best way for me to move the site to the new server? I really dont want to have to download the entire site and upload it through cpanels backup feature. It would take forever seeing as how the site is 10 GB.

    Is there any other way of doing this?

    Thanks
    Carey D.
     
  2. ttk_2k

    ttk_2k Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    I suggest you tar the file on your old server, and log into SSH on your new server and wget it. :)
     
  3. cdrake

    cdrake Member

    Joined:
    Feb 5, 2004
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    wget? Please explain.
     
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    or just use scp how many files are you talking about


    scp root@<ip>:/folder/filename /folder
     
  5. cdrake

    cdrake Member

    Joined:
    Feb 5, 2004
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Its an entire account. Tons of files. what is wget?
     
  6. cdrake

    cdrake Member

    Joined:
    Feb 5, 2004
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    my host said to use scp. How do I use that?
     
  7. ttk_2k

    ttk_2k Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    The 'wget' is a way to download a file from Internet to your local server, so if you run that command on your server via SSH, you'll download a file from any other place of the Internet.

    'tar' means to compress files in to a compressed file, normally like 'filename.tar.gz', in order to make sure you don't lose file permissions and structures, you'd better use this command to 'tar' your entire directory:

    Code:
    tar cvzfp DIRECTORY.tar.gz /home/USERNAME
    (make sure to change above capitalized words into your own)

    and when you 'wget' files on to your new server use such like "wget http://DOMAIN.com/DIRECTORY.tar.gz", you'll have to use this way to uncompress it, then a site got easily moved:

    Code:
    tar -xzvf DIRECTORY.tar.gz
    Best luck!
     
  8. GOT

    GOT Get Proactive!

    Joined:
    Apr 8, 2003
    Messages:
    900
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Norfolk, VA
    cPanel Access Level:
    DataCenter Provider
    Using SCP will not handle all the ins and outs of setting everything up.

    I would try using cPanel to make a complete backup file, then download that manually, then upload it to the new server.

    I presume you do not have shell access to the old server, correct?

    If you do, then you can have cPanel make the backup, which stores the backup in your directory structure,m then use scp to copy it to the new one.

    If you are in a shared environment though, not sure how they are going to feel about your moving a 10 GB file at all.

    You can contact me if you want some specific help on this. I have moved a number of large sites in some creative ways.
     
  9. cdrake

    cdrake Member

    Joined:
    Feb 5, 2004
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    I do have shell access on the old server. I am moving from one dedi to another. I was able to use scp to tranfser. Thanks for all your help!
     
  10. ehpmahesh

    ehpmahesh Well-Known Member

    Joined:
    Jul 3, 2004
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    I transfered entire server from one DC to another DC using WHM with out any problem. You can use "Copy an account from another server with account password" option from WHM to transfer your domain. If it is not working then scp is better option to do this. But scp will not copy all your packages bandwidth limit and account details which is created by cpanel while creating a account.
     
  11. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    You can always try an FTP FXP transfer if the servers support it. basically it transfers using FTP from one server to another directly without you having to download it locally.
     
Loading...

Share This Page