PDA

View Full Version : Move large domain to new server



innovative2001
06-12-2006, 10:18 AM
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!

mitto
08-12-2006, 03:11 AM
hmmm very userful....!!!

radnam
01-31-2007, 08:28 AM
Hey but cant you do hat from the WHM itself on linux (but if you have that on the server as a control panel)

Oracle
05-17-2009, 02:04 AM
To move the cluster:
Create a user account for the Cluster service in the new domain. You must make sure that no Group Policy objects (GPOs) or security template requirements remove any of these rights. The user account must have the following rights:
Lock pages in memory.
Log on as a service.
Act as part of the operating system. (Windows 2000 and Windows Server 2003)
Back up files and directories.
Increase quotas.
Increase scheduling priority.
Load and unload device drivers.
Restore files and directories.
Adjust memory quotas for a process (Windows Server 2003)........

tisanjosh
10-31-2011, 02:34 AM
You must be really a great professional like the workers in the ringtones or mp ringtones sites, to make the superior thought. Not any person will.

pestindia86
11-08-2011, 07:28 AM
very good concept given by you thanks for share