Reply

 

LinkBack Thread Tools Rate Thread
Old 06-12-2006, 10:51 AM   #1 (permalink)
innovative2001
Guest
 
Posts: n/a
Move large domain to new server

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

The setup :

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.

#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.

#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 :

#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/ (do the same as above)

Now go to the new server and unpack the two large files you just moved.

#cd /home/dom/
#tar xzvf public_html_dom.tgz
#cd /usr/local/apache/domlogs/
#gzip -d domain.com.gz

This should do it!
  Reply With Quote
Old 09-11-2006, 04:36 AM   #2 (permalink)
WHC - Travis
Guest
 
Posts: n/a
Nice guide. Thanks!
  Reply With Quote
Old 09-11-2006, 06:30 PM   #3 (permalink)
WHC Guru
 
Join Date: Jan 2004
Posts: 3,363
Well i dont agree with your method. There are a lot more files than that that are needed to make the site work.
__________________
Seeksadmin - For all your administration and security needs.

Hostaga - A true hosting leader
Tris is offline   Reply With Quote
Old 10-28-2006, 04:59 AM   #4 (permalink)
sysconfig
Guest
 
Posts: n/a
I think it is useful when your site contains large amount of data
  Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 09:03 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0