There are a lot of situations you may need to clone your WordPress site. For instance, you need to migrate your whole site from one web host to another, move to a new domain name or just use your web content to test the local environment for the developing purpose. In the following, we’d like to introduce the simple steps of how to use the Duplicator to clone WordPress contents.
Here, the tool of Duplicator is a powerful WordPress plugin that helps you clone, move, duplicate and transfer your entire WordPress site from one location to another one. With it, you have the full freedom to move your website between web hosts or the domain names, poll down the live website to the local host and bundle up your entire site for the effective reuse.
Now, you can check the following to learn the detailed steps of how to use this plugin to achieve the cloning purpose.
Set Up the Duplicator Plugin
After the plugin installation, you need to access the plugin settings page by clicking the Duplicator > Settings button. Here, if you have some plugin requirements for the storage or the plugin removal, you can check the Plugin part to set some aspects as you want.
After that, you should move down to the Package part. Here, if your website has the large archives, you need to keep the Attempt Network alive. This way, you can maintain the network connection established for your large archives all the times.
Next, you need to create the database using the PHP or using the mysqldump. Note that the second is the more reliable one, especially for the large database. Surely, you can choose the PHP option, but you need to set up the limit of the query size.
Clone Your WordPress Website
Now, you can start cloning your WordPress site by clicking the Duplicator > Packages button. This step simply creates a comprehensive backup of your entire site, including the files and the database. Here, you should hit on the Create New button.
Now, you should go through a few steps listed as the following.
Finish the Basic Cloning Setup
This plugin will take you through a few simple steps, and the first one is the basic setup for cloning. Here, you firstly can be informed of whether the system requirements can pass for this plugin for the proper working. If not, you can check the details and make the optimization accordingly.
After that, you need to give a name to this cloning file. If needed, you can also write down some notes for it. As for the storage, you can save the file to your local machine if you use the free version of this plugin.
Next, you can move to the Archive part. Here, you can enable the file filters to ignore some directories or the file extensions you are not looking to exclude into your cloning file.
In addition, you can check the Database tab to filter some specific database tables.
Now, you should pay attention to the Installer part. Here, you can enter the fields for the host name, host port, database name and username as you like. Note that these are just the optional fields. In this case, if you leave them blank, they can be pre-filled automatically by this plugin.
In addition, you can choose to force the SSL on the logins and the admin, as well as keeping the cache enabled.
Scan and Create the Cloning Package
Now, you can click the Next button. This plugin will scan your whole site to figure out whether there are some issues. If everything is fine, you can click the Build button.
This time, you need to wait for a while to have the cloning package created. Once finished, you can get the success message that carries two files. The Installer file is the special PHP install file that allows you to migrate your WordPress easily. The Archive file contains the full backup for your website database and files.
Duplicate and Migrate Your WordPress Site to the New Location
In fact, you have already cloned your WordPress site up to now. The next step is to migrate or to move the website. Here, at your new servers, you have to get the FTP access to upload the two files you have got previously to your target WordPress directory or the local host. Next, you should create a special database for the Duplicator to use.
Now, you can run the Duplicator Installer on your web browser. Here, if you upload the file to the root directory, you can enter your site URL with the “installer.php” suffix. If you upload to the sub-directory, the suffix should be “sub-directoryname/installer.php”.
From this page, you should click the Test Connection button after entering the information for the MySQL database you have just created.
Next, you can click the Run Deployment button and make sure that all the new details of your site are right. After that, you can click the Run Update button.
Now, you have almost finished. This time, you simply need to test your cloned site, run the security cleanup and save the permalink. And then, you can see a duplicate and cloned site of your original one.