The cloning feature of Installatron is a quick way to move a website from one URL to another. We have a guide for end users on cloning applications at https://community.reclaimhosting.com/t/site-cloning-within-installatron/274. However as an administrator you may find yourself in a situation where you need to clone an application from one account to a domain owned by a different account. If the two accounts are not on the same server it’s possible to “import” an install from another server (See “Importing from a different cPanel Account“) but if the two domains are on the same server you can also utilize the Installatron Admin interface in WHM to clone across accounts. The feature works very similar to end users.
First you’ll want to login to WHM as the root user and go to the Installatron Applications Installer section from there
Next search for the source install that you wish to clone and click the clone icon here:
Finally you can select the destination URL and begin the cloning process. Since you are logged in as the root user you will be presented with a list of all domains on the server to choose to clone to and will just need to make sure that the account you are cloning to has enough storage space and the domain does not have anything installed on it currently.
For servers with a lot of installs (1,000+ applications) you may find that the cloning tool times out attempting to load that final page since it has to find all domains on the server. In this case a workaround would be to use the Installatron command line interface to clone the application. The command line interface is located at /usr/local/installatron/installatron and the clone argument takes the following required arguments when run as root: id, url, and user.
You can find the unique id for the application by clicking the wrench icon and going to the Advanced tab. It will be the last part of the data file section here and be an alphanumerical id of around 25 characters. The URL is the full destination URL including https://. The user will be the destination cPanel username. Here is an example of the full command which can run within the Terminal in WHM or through an SSH connection:
/usr/local/installatron/installatron --clone --id=d30qd7y5o8gswkcsw80osksc8 --url=https://reclaimhosting.stateu.org --user=reclaim
The command will output the result once the clone is finished or any relevant errors.