hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Move accounts to new server
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Move accounts to new server

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-13-2007, 10:18 PM
vnsg vnsg is offline
Web Hosting Guru
 
Join Date: Apr 2005
Location: Singapore
Posts: 302

Move accounts to new server


I am sorry if this topic was posted before but i can not find it with Search.
What is the fastest way to move all accounts from old servers to new servers with minimum downtime for customers' websites? Both servers are using WHM/Cpanel and i need to keep reseller priviledges and packages also,which system files should i copy to new server?

All replies are appreciated.

Reply With Quote


Sponsored Links
  #2  
Old 05-13-2007, 10:27 PM
Energizer Bunny Energizer Bunny is offline
-=Quits Here=-
 
Join Date: Sep 2005
Location: In canada, Saskatoon
Posts: 3,200
U do not copy any system files dude.

If cpanel version is same than this would work :


Backup all accounts using shell with one command :

cd /var/cpanel/users
for i in * ; do /scripts/pkgacct $i ; done

Quick Tip to transfer via ssh.

Here a really quick handy way of migrating all your C-Panel accouts if you have root access on both boxes from the command line. I find the WHM migration helper a bit to unreliable

1) Setup the new box and get the DNS servers ready

2) On the old box run


cd /var/cpanel/users
for i in * ; do /scripts/pkgacct $i ; done
cd /home
scp cpmove-*.tar.gz root@newserver.com:/home

3) Login to the new server


cd /home
ls cpmove*.tar.gz | cut -d\- -f2- | cut -d\. -f1 | while read line ; do /scripts/restorepkg $line ;done


4) That should get all your accounts over and ready

Cheers

Reply With Quote
  #3  
Old 05-13-2007, 10:39 PM
vnsg vnsg is offline
Web Hosting Guru
 
Join Date: Apr 2005
Location: Singapore
Posts: 302
thanks for your reply,but it will not help to move the Packages(name,quotas,features...) root and resellers created in old server to new server

Reply With Quote
Sponsored Links
  #4  
Old 05-13-2007, 11:23 PM
Energizer Bunny Energizer Bunny is offline
-=Quits Here=-
 
Join Date: Sep 2005
Location: In canada, Saskatoon
Posts: 3,200
If i am not mistake above does do that, if not u can always transfer packages using cpanels transfer feature.

Reply With Quote
  #5  
Old 05-14-2007, 12:34 AM
vnsg vnsg is offline
Web Hosting Guru
 
Join Date: Apr 2005
Location: Singapore
Posts: 302
i mean the packages setting that i created in WHM not the accounts. as i know there are files to save the settings of these packages but i am not what files are they?

Reply With Quote
  #6  
Old 05-14-2007, 12:41 AM
Energizer Bunny Energizer Bunny is offline
-=Quits Here=-
 
Join Date: Sep 2005
Location: In canada, Saskatoon
Posts: 3,200
Quote:
Originally Posted by Energizer Bunny View Post
if not u can always transfer packages using cpanels transfer feature.
Here u go i will just quote myself mate.

Cheers

Reply With Quote
  #7  
Old 05-14-2007, 06:50 AM
bear bear is offline
Community Leader
 
Join Date: Oct 2002
Location: cognito
Posts: 17,329
Cpanel package info is located here: /var/cpanel/packages
Just copy the contents of that directory.

__________________
Have problems (don't we all)? Head over to the help desk
If at first you don't succeed, that's one data point.


Reply With Quote
  #8  
Old 05-14-2007, 07:56 AM
SparkSupport SparkSupport is offline
Web Hosting Master
 
Join Date: May 2006
Posts: 646
scp -r /var/cpanel/packages/* root@neweserver:/var/cpanel/packages/

__________________
SparkSupporT
http://sparksupport.com
sales@sparksupport.com
1- 408-335-0493

Reply With Quote
  #9  
Old 05-14-2007, 11:37 AM
junglecat junglecat is offline
Aspiring Evangelist
 
Join Date: Apr 2004
Location: USA
Posts: 445
When you transfer the accounts via whm, it automatically moves the packages and ownerships with the accounts. I've done it a hundred times, it always works for me that way. Use the move multiple accounts feature, everything will get moved.

__________________
►►►Come join us at A Fun FRIENDLY Christian Forum◄◄◄


Reply With Quote
  #10  
Old 05-14-2007, 01:40 PM
vnsg vnsg is offline
Web Hosting Guru
 
Join Date: Apr 2005
Location: Singapore
Posts: 302
Quote:
Originally Posted by junglecat View Post
When you transfer the accounts via whm, it automatically moves the packages and ownerships with the accounts. I've done it a hundred times, it always works for me that way. Use the move multiple accounts feature, everything will get moved.
How stable is that feature of WHM? I love to use SSH to move accounts as it is more reliable.
And one more question, what is the difference between pkgacct and pkgacct2.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Advanced Internet Technologies Launches Customer Management System Web Hosting News 2013-05-17 14:35:19
VIDEO: CloudLinux CEO Igor Seletskiy on Hosting Platform Software Whir Tv 2012-11-09 09:36:01
Web Host JaguarPC Offers CloudLinux Shared and Reseller Hosting Web Hosting News 2011-12-28 16:03:20
Security Firm ArtSec Launches Website and Server Migration Service Web Hosting News 2011-12-09 18:43:03
cPanel Offers Windows Hosting Control Panel Enkompass for Free Web Hosting News 2011-10-13 17:14:16


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?