How to transfer large domain to another server?

Optimizing and customizing your VPS/Dedicated server

How to transfer large domain to another server?

Postby Mark » Fri Dec 25, 2009 11:13 am

Domain : domain.com
Username : dom

make a temp directory on /home (i'll call it /home/cptemp/) where you can store the accounts files while copying.

Code: Select all
#mkdir /home/cptemp


Almost all space for an account is in their public_html directory, so we'll want to tar and gzip it and move that over using scp.

Code: Select all
#cd /home/dom/
#tar czvf public_html_dom.tgz public_html
#mv public_html_dom.tgz /home/cptemp/
#mv public_html /home/cptemp/

Also often times large sites have large weblogs, which are packaged and transfered, so we take care of those as well :

Code: Select all
#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,

Code: Select all
#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)


Code: Select all
#scp domain.com.gz root@newserver.com:/usr/local/apache/domlogs/ (do the same as above)


Now go to the new server and unpack the two large files you just moved.
Code: Select all
#cd /home/dom/
#tar xzvf public_html_dom.tgz
#cd /usr/local/apache/domlogs/
#gzip -d domain.com.gz
Mark
 
Posts: 124
Joined: Fri Dec 11, 2009 2:18 pm

Re: How to transfer large domain to another server?

Postby meganjo » Fri Jun 25, 2010 4:42 am

meganjo
 
Posts: 9
Joined: Fri May 07, 2010 6:41 am


Return to Configuring VPS/Dedicated servers

Who is online

Users browsing this forum: No registered users and 1 guest

cron