Create a full copy of an account
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
-
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. 0 -
Hi @ebizindia The suggestions by @sysnishit are correct. There's a bunch of documentation on the pkgacct script that might be helpful for you too The pkgacct Script - Version 74 Documentation - cPanel Documentation 0
Please sign in to leave a comment.
Comments
2 comments