Support Center > Knowledgebase > Web Host Manager > How do I manually move an account to another server ?
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.
- Make a temp directory on /home (we'll call it /home/cptemp/) where you can store the accounts files while copying.
- 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/
- 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/
- 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/
- 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/
- Enter the required login information.
- 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/
Also Read