Add to Favourites Add to Favourites    Print this Article Print this Article

How do I manually move an account to another server ?

When an account is too large to feasibly move using the web browser, the following should work to move the account:

In this example, our domain will be domain.com and our username will be dom.
  1. Make a temp directory on /home (we'll call it /home/cptemp/) where you can store the accounts files while copying.
    • mkdir /home/cptemp

  2. Almost all space for an account is in the public_html directory, so we'll want to tar and gzip it, and move that over using scp.
    • cd /home/dom/
    • tar czvf public_html_dom.tgz public_html
    • mv public_html_dom.tgz /home/cptemp/
    • mv public_html /home/cptemp/

  3. Also, oftentimes large sites have large weblogs, which are packaged and transferred, so we take care of those as well:
    • cd /usr/local/apache/domlogs/
    • gzip domain.com
    • mv domain.com.gz /home/cptemp/

  4. Now, with these files in /home/cptemp/, try moving the account over in WHM. Hopefully, it will succeed and set up the new account on the new server. Now we go back to /home/cptemp/ and scp the files to their new home,
    • scp public_html_dom.tgz root@newserver.com:/home/dom/

  5. Enter the root pass for the new server and let it copy the file over.
    • scp domain.com.gz root@newserver.com:/usr/local/apache/domlogs/

  6. Enter the required login information.

  7. Now go to the new server and unpack the two large files you just moved.
    • cd /home/dom/
    • gzip -d domain.com.gz
    • tar xzvf public_html_dom.tgz
    • cd /usr/local/apache/domlogs/

Was this answer helpful?

Also Read