The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Migrating accounts from one CPANEL server to another

Discussion in 'General Discussion' started by Drake, Jan 11, 2002.

  1. Drake

    Drake Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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
     
  2. feanor

    feanor Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    836
    Likes Received:
    0
    Trophy Points:
    16
    check this out:

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

    Drake Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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.
     
  4. feanor

    feanor Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    836
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  5. hostultra

    hostultra Well-Known Member

    Joined:
    Aug 21, 2002
    Messages:
    167
    Likes Received:
    0
    Trophy Points:
    16
  6. gic

    gic Well-Known Member

    Joined:
    Jun 28, 2002
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  7. ellijay

    ellijay Active Member

    Joined:
    Dec 3, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
Loading...

Share This Page