Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Manually Moving a fairly big site

Discussion in 'General Discussion' started by xWho, Jul 3, 2003.

  1. xWho

    xWho Well-Known Member

    Apr 23, 2003
    Likes Received:
    Trophy Points:
    I have tried 6 times now and it has failed every time --

    I am moving a site that is over a gig in size -- and it keeps getting copy errors... i am running out of time to get this to work and would like to do it manually...

    can it be done? like is there a script that packages up the entire account into a tarball that I can then ftp to the new server and run another script to set up the account?

    Thanks for any help anyone can provide... Support Ticket Number:
  2. carlaron

    carlaron Well-Known Member

    Jun 26, 2003
    Likes Received:
    Trophy Points:
    If you can SSH into both accounts, you should be able to do it with "tar". I don't know who is supposed to own all of the mail folders and the rest, so you might not want to do the entire users home directory, but this should be pretty safe to do for the entire public_html directory and contents.

    tar -czp * > website.tar.gz

    will make a gzipped tar file of everything in the current directory on down, and save it as "website.tar.gz".

    then on the new machine, find where you want to untar it. If you created the tar inside the public_html directory on the old machine, it's a good bet you want to be there on the new machine. Keep in mind that it will create all directories and subdirectories if they do not already exist and replace ones that do. Once you are in the right location,

    tar -zxvf website.tar.gz

    will unzip and untar the file.

    You will probably still need to set ownership, since the user id number is probably different on the new machine.

    chown -R username.groupname *

    will set everything in the current directory, and recursively on down to be owned by username, with group groupname. Support Ticket Number:

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice