Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Create a full copy of an account

Discussion in 'Data Protection' started by ebizindia, Sep 14, 2018.

  1. ebizindia

    ebizindia Well-Known Member

    Joined:
    Oct 13, 2005
    Messages:
    95
    Likes Received:
    3
    Trophy Points:
    158
    Location:
    Kolkata, India
    cPanel Access Level:
    Root Administrator
    I have an interesting use case. I have a domain demo.example.com. I want to fully copy this and create another domain demo1.example.com.

    How can I do this quickly because I need to do this a few times every day (I am creating new instances of a standard software for different clients)?

    Currently, we have downloaded the zipped home directory which we restore after we have created the new account through WHM. Then we create a database and add users. Then we restore the DB backup to this new DB.

    I am sure there is a more efficient way.

    TIA
     
  2. sysnishit

    sysnishit Active Member

    Joined:
    Aug 13, 2018
    Messages:
    25
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    Internet
    cPanel Access Level:
    Root Administrator
    Hello,

    Create backup of cPanel account with domain demo.example.com using /script/pkgacct cpanel-username . Then go to WHM > Modify an account > select account demo.example.com modify domain name to demo1.example.com and cpanel-username to new-username.

    Then restore backup you generated using script /script/restorepkg cpanel-username. So you will have two accounts on server with same contents.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,476
    Likes Received:
    507
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice