Here’s a 7 step guide on how to easily clone a WordPress site, even if you’re a beginner!
Step 1. Cloning WordPress using Duplicator Plugin
For this article, we will be using the Duplicator plugin. It is a powerful WordPress backup and migration plugin built for beginners and professionals alike.
The first thing you need to do is install and activate the Duplicator plugin.
The plugin works out of the box, and you can start using it without configuring any settings.
Step 2. Creating a WordPress Backup Using Duplicator
Duplicator allows you to clone your WordPress site by creating a backup and then unpacking it on a new location.
Let’s go ahead and create a WordPress backup package.
First, you need to visit the Duplicator » Packages page and click on the ‘Create New’ button at the top.
This will begin the Duplicator wizard where you need to click on the next button to continue.
Duplicator will now scan your website to check if everything is in order to run the plugin. If the plugin finds an issue, then you will see a warning here.
If everything is marked good, then you can go ahead and click on the ‘Build’ button to continue. Duplicator will now backup your WordPress database, images, templates, plugins, and all other files in a single downloadable package.
Step 3. Preparing to Clone Your WordPress Site
Once Duplicator has finished the backup process, you will see a link to download the archive which contains backup files and an installer script.
You need to click on the ‘One-click Download’ link to download both files to your computer.
Both of these files are extremely important to properly clone your WordPress site on the new location.
Step 4. Upload Archive and Installer to the New Location
Now that you have a complete backup of your site along with the Duplicator installer file, the next step is to upload them to the new location.
This new location can be a live website, or a site on your local server. If it is a site on your local server, then you just need to copy and paste the files into a subfolder inside your htdocs or www folder, like this:
If it is a live site on a different WordPress host, then you need to upload these files to the root directory using an FTP client.
No matter where you are copying the files, you need to make sure that the folder is completely empty and has no other files or folders inside it except installer.php file and your backup zip file.
Step 5. Running The Import Script
Now that all your files are in place, you need to run the Duplicator installer script.
Simply visit the new website in a web browser and add installer.php at the end of the URL.
Don’t forget to replace example.com with your own domain name or the localhost address of your new site.
You will now see the Duplicator installer script on the screen. It will automatically look for the backup files and basic configuration settings. If everything looks good, then go ahead and check the terms and notices checkbox. After that, you can click on the next button to continue.
On the next screen, Duplicator will ask you to enter database information. This is the database you want to use for your new cloned WordPress site.
Don’t forget to click on the ‘Test Database’ button to make sure that the database information you entered is correct.
After that, click on the next button to continue.
Duplicator will now import your database and files. Next, it will ask you to update settings for the new site.
It will automatically detect the changes and fill in the URL, Path, and Title fields for you. You can just click on the ‘Next’ button to continue.
Duplicator will now finish the installation, and you will see the admin login button. Clicking on it will take you to the new cloned site’s WordPress admin area.
Step 6. Test Your Cloned Site
You can now go ahead and test your cloned WordPress site. We recommend testing both the admin area and front end of your website to make sure that all your data is there, and the website is working as intended.
If you run across any issues, then take a look at our guide on how to fix common WordPress errors.
Step 7. Delete Temporary Files
Once you are satisfied that everything is imported correctly, you can go ahead and delete the installation files created by the Duplicator plugin.
On your cloned WordPress site, go to Duplicator » Tools page and then click on ‘Remove Installation Files’ button.
That’s it, you have successfully cloned a WordPress site.