Duplicating entire account for replication

99Bits

Verified User
Joined
Dec 6, 2023
Messages
5
Dear friends, I'm new web hosting reselling and Direct Admin.

My use case, I am serving a set of customers that all need the same software (wordpress, Moodle, Mautic, nodejs app) in their account. I have created one account that has all of the correct software with their plugins. I would like to use this account as a kind of template so that when I create a new account I can duplicate this account.

Would this be possible to do with Direct Admin?

Thank you
 
there are 2 ways:
1. put files to /home/RESELLERNAME/domains/default/
this files would be copied to each newly created account/domain
2. put all in one archive and automate unpacking with some shell script or with DA custom scripts like:
/usr/local/directadmin/scripts/custom/user_create_post.sh
/usr/local/directadmin/scripts/custom/domain_create_post.sh
more here: https://docs.directadmin.com/develo...er_management.html#usercreatepostconfirmed-sh
 
there are 2 ways:
1. put files to /home/RESELLERNAME/domains/default/
this files would be copied to each newly created account/domain
2. put all in one archive and automate unpacking with some shell script or with DA custom scripts like:
/usr/local/directadmin/scripts/custom/user_create_post.sh
/usr/local/directadmin/scripts/custom/domain_create_post.sh
more here: https://docs.directadmin.com/develo...er_management.html#usercreatepostconfirmed-sh
Thank you Zhenyapan for your help,
I would like to clarify that I am a reseller and not the web hosting company.
Would I still be able to do this?
 
no, second part you can't do. Only first way for you. Or you can temporarily enable SSH for newly created users and automate this process from shell, or maybe via API (I didn't use it so not sure).
 
Ah thanks for the clarification and advice.
Would it be correct for me to put the files into
home/userAccount/domains/default
 
no, there is no such directory. Only reseller has this to spread some default files to each new domain.
 
Back
Top