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.

Duplicate an account to a new account on the SAME server?

Discussion in 'General Discussion' started by bzk, Jan 19, 2006.

  1. bzk

    bzk Registered

    Joined:
    May 21, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I want to clone an account that's on my server (so that I can test things out on the test site before I try it out on the real site) to another account on the same server. I have plenty of domain names available, so that's not an issue.

    I see options to copy an account from another server, but I can't use this option since the usernames are the same.

    Thanks in advance for the help.
     
  2. bzk

    bzk Registered

    Joined:
    May 21, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    No response yet?

    Yes, I did search, but I didn't find anything that inspired confidence... :(
     
  3. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    Best answer I know:

    1. Backup Account

    2. Modify account and change username and domain

    3. Create new account (original name)

    4. Restore backup you just made to new account at old name.

    Kludge - but should work fine.

    Make sure to restart apache - just in case.

    If server is real busy, stop exim cppop, apache and service manager before starting.



    I did not reply earlier as I thought someone might have a better idea.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That's probably the simplest way. You could also create a backup tarball using /scripts/pkgacct then expand it and search and replace with a new username and domain and the tarball it manually and then restorepkg it - bit messy though.
     
Loading...

Share This Page