Migrating accounts from one CPANEL server to another

Drake

Well-Known Member
Nov 9, 2001
83
0
306
New Jersey
cPanel Access Level
DataCenter Provider
Is there a script available for seamlessly migrating customer\'s accounts from one c-panel server to another c-panel server... such as when I want to move accounts to a new server... before taking an old server down off line?

Have been tarring and zipping their home directories to preserve the file and directory permissions and ownerships, then moving the tar.gz file to the new box & tar -xzf them back after recreating the account in WH Manager. But sometimes run into nightmare with their pop accounts and mysql databases becase they aren\'t located within the user\'s home dir.

Short of finding a script to pack up the account for the move, I\'d like to at least find a complete list of all C-panel\'s tentacles that are created for an account so I can grab more of it in the tarring & zipping maneuver.

Thanks
 

feanor

Well-Known Member
Aug 13, 2001
836
0
316
check this out:

http://support.cpanel.net/new/viewthread.php?tid=2#pid641
 

Drake

Well-Known Member
Nov 9, 2001
83
0
306
New Jersey
cPanel Access Level
DataCenter Provider
Thanks !
That is certainly helpful.

Although those instructions are for moving \"everything\" at one time to a clean new server, it would definetly blow out any accounts already on the new server.

But.. there\'s a wealth of info there as to many of the locations I wouldn\'t have realized where C-panel creates account stuff.

When I can find a thousand spare hours I would love to write a shell script to \"extract\" one or more accounts from a server, then another script to add them into the new server. This way I can split up the users onto more than one new server when taking an old server down, or just move some people over if it gets too crowded.

Much considerations would need to be given when there are variations in O.S. such as versions and other options/packages if it was going to be totally hands free.

That would also make an awesome backup remedy that works on a per-user basis if ran as a cron job and tarred/zipped to a different physical hard drive or different server.

Thanks again.
 

feanor

Well-Known Member
Aug 13, 2001
836
0
316
Feature request would be in order .... eh?
Sounds g00d to me, unless there is already one in the queue.

good luck.

http://support.cpanel.net/new/viewthread.php?tid=584
 

gic

Well-Known Member
Jun 28, 2002
69
0
156
If I don't understand this then nevermind but doesn't WHM have this featue built in? It is the "Transfer" feature which packs the account on the old server, extracts on the new and recreates their account in WHM with email account and everything else already done.