Create a full copy of an account

ebizindia

Well-Known Member
Oct 13, 2005
105
4
168
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
 

sysnishit

Active Member
Aug 13, 2018
25
3
3
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.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,262
313
Houston