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.

How To Clone Account To New Name?

Discussion in 'General Discussion' started by TheKog, May 21, 2009.

  1. TheKog

    TheKog Active Member

    Joined:
    Dec 23, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    I'm looking for a solution to how to clone an account backed up with the pckgacct scripts or otherwise.

    Assume I have an account called test with domain www.test.com for example, I'd like to clone it into another account called test2 with domain www.test2.com so I can do development on the cloned account.

    I used to do this with 2 different servers just copy the account (backup) to the development server and then change the domain from WHM on the copied account - I no longer have the development server and would like to make this all work on a single server. The clone procedure needs to get everything a cpanel backup would get including files, MySQL DBs etc.

    Thanks in advance for any suggestions.
     
  2. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
    Unfortunately there is no clone function.

    However, you can do this by packaging userA, then rename username and domain of userA to userB, then restore the packaged account back to userA. You'll be left with userA and userB with the same files.

    You have to check the email accounts and mysql specifically because that can get tricky.
     
  3. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    It is advisable to take full backup of emails, databases before making the username change.
     
Loading...

Share This Page