How to clone WordPress in Plesk

  •   23/11/2021 11:54
  •  

Cloning your website can be a useful way to create a quick copy of your website to test whether or not applying an update, adding a new plugin, or making a change to your website could break anything, allowing you to potentially break your website while leaving the original production website untouched. Once you're happy an update or config change is going to be ok, you can then replicate that on the live site confidently.

Tip - This can also be really useful if you need to give a plugin or theme developer access to your site but don't want to give them access to your live site. Just clone the site, have them troubleshoot and fix on the clone, and then ask them what they did so you can replicate on your live site without exposing customer data or your other information to a third party.

To clone your website you will first need to find the domain you would like to clone and click the "Clone" button, this can be found in the same row as the WordPress Icon.

c64230c71a26ec568390000944b0d21482016c71400bd9d046cc6610f4bdb9cc2f88d493405f1080?t=3e4744cefdddbebcbd9fc0f8869a8aca

There are 2 target options to choose from when cloning the website.

1. Create Subdomain
If you have not already set up a subdomain for the cloned website you can do so here, by default the new subdomain will be "staging" however, this can be changed to anything that does not already exist.

89a4e7a033afa0c353e30925f120373e8178015c6a5557d10534ec5adef6aae66536c0b8992ff7db?t=c1d108eeaa9441dfa03b70f91d465cd9

2. Use existing domain or subdomain
If you have an existing domain you would like to clone the website to you can click the dropdown and select the appropriate target.

db2f6b6a1a0e752d285c9a8d514f9d491a43a5e9a9324467bcbe3afddf3f423377b779baa8585581?t=81038cdf6d99c9a3c103a69be29de2fc

Once the target has been set you can click "Start" and the cloning and domain setup process will start. Once completed you will have an exact replicate of your website, you can login to the WordPress dashboard either via Plesk control panel or with the usual login details but on your newly created subdomain instead. So for the second example above the WordPress dashboard would be at test2.example.uk/wp-admin

Note - Your cloned site will have all the same data as your live site, so if you initiate an action that might email a customer or all users then this will actually send to your real customers and users. So be careful!