WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
  • Deals
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Tutorials» How to Clone a WordPress Site in 7 Easy Steps

How to Clone a WordPress Site in 7 Easy Steps

Last updated on November 7th, 2018 by Editorial Staff
1.7k Shares
Share
Tweet
Share
Pin
Special WordPress Hosting offer for WPBeginner Readers
How to Clone a WordPress Site in 7 Easy Steps

Generally speaking, cloning is considered an unethical practice. However, when you think of cloning in terms of making a duplicate WordPress site, a whole new world of completely ethical possibilities can open up for your business. In this article, we will show you how to easily clone a WordPress site in 7 easy steps.

Cloning a WordPress website step by step

What is Cloning, and Why Use It?

The idea behind cloning a WordPress site is simple: you make an exact copy or duplicate of one WordPress site and apply it to another site.

You might be wondering, are there any good reasons to actually do this? Absolutely!

One practical scenario is when you are moving a WordPress site to a new web host or a new domain name. Cloning a site will save you hours of work.

Another possible use is when you are developing a site for a client on your local server. Once the project is done, you can duplicate the WordPress site and move it to your client’s live server.

Lastly, you can clone a live WordPress site to your local server for testing and development purposes.

Cloning a WordPress site is not that difficult at all. If you can point and click, then you can create a duplicate site in minutes.

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. For more details, see our step by step guide on how to install a WordPress 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.

Creating new package in Duplicator

This will begin the Duplicator wizard where you need to click on the next button to continue.

Duplicator wizard

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.

Pre-package scan

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.

Packaging finished

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:

C:\wamp\www\mynewsite\

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.

Upload backup files and installer

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.

http://example.com/installer.php

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.

Running installer script

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.

Enter your database information

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.

New data

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.

Remove installation files

That’s it, you have successfully cloned a WordPress site.

Final Thoughts

As you can see, cloning a WordPress site is not very hard as long as you are duplicating your own website. If you want to copy someone else’s WordPress site, then that’s actually illegal unless you have their explicit written permission.

There are definitely other ways to clone a WordPress site such as doing it manually which doesn’t even require WordPress admin access, but we believe there are no benefits to that unless you’re dealing with a really large website.

For majority of use-cases where you have to duplicate a WordPress site, we recommend using the above method because it’s the easiest and most comprehensive.

We hope this article helped you easily clone your WordPress site. You may also want to see our ultimate step by step guide to improve WordPress speed and performance.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

1.7k Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

34 Comments

Leave a Reply
  1. Bidmead says:
    Jan 16, 2019 at 11:13 am

    For some inexplicable reason, when I save this useful page to Pocket, what actually arrives there is the old 11 May 2015 version, which discusses a completely different method based on a plugin called BackupBuddy which costs $52 for the 1-site version.

    —
    Chris

    Reply
    • WPBeginner Support says:
      Jan 16, 2019 at 11:28 am

      We’ll certainly take a look if it is something on our end. You may want to check with Pocket if there is a cache that needs to be cleared on their end as well

      Reply
      • Chris Bidmead says:
        Jan 21, 2019 at 11:07 am

        I’ve been in touch with Pocket. They suggest it might be a problem with their Parser, which checks the content and determines the best way to display it. They’ve managed to reproduce the bug and are investigating.

        —
        Chris

        Reply
  2. Gary Andrews says:
    Jan 3, 2019 at 12:21 pm

    I wand to upgrade my production site to WP 5 and change themes. I thought it might be a good idea to clone my site on my local windows machine under Desktop Server.
    I’ve been trying for 2 days to clone my site.
    Let me just add that your tuto is perfectly straightforward as long as things go well. It doesn’t go into what might not work correctly.
    Firstly Duplicator package creation times out (despite having filtered out the big files). Of course my hosting company doesn’t support Duplicator because it tries to change the time limit, can’t really blame the host company.
    I also tried the Duparchive option which doesn’t time out and generates a .daf archive instead of a .zip.
    On the Desktop Server local side I tried to run installer.php from my browser but got messages saying I needed to enable ziparchive and/or shell exec. I contacted Desktop Server support about that and have had no answer.
    I thought I’d try to extract the data from the daf archive manually but the software that is needed to do this no longer seems to be available.
    I imagine that the Duplicator Pro version would work better but I don’t have the budget (association website).
    Oh woe is me, looks like I’ll have to do it all by hand.

    Reply
    • WPBeginner Support says:
      Jan 4, 2019 at 1:36 pm

      From the sound of it you sadly may need to manually import/export the data, the other option would be if you have a backup of your site that you could restore to your local installation.

      Reply
  3. Adam says:
    Jan 3, 2019 at 5:35 am

    Awesome article!!!
    Followed your steps and it worked perfectly.

    I did make one error though, I extracted the zip file and uploaded the files in ftp which did create errors. Much easier to simply upload the zip instead.

    Thanks heaps!

    Reply
    • WPBeginner Support says:
      Jan 3, 2019 at 1:39 pm

      You would likely need to extract the zip once it is on your hosting provider but glad you found a solution for your error :)

      Reply
  4. Donna Lutheran says:
    Nov 7, 2018 at 12:08 pm

    I copy sites all the time.
    The plugins actually look more complicated than doing it manually.

    Just download your files, back up your database, ftp to the new server, restore your database to your new database, edit the wp-config file to point to the new database, edit the url in your database to point to the new url.

    I also download velvet blue to correct any url problems.

    I had a site not pass our security scan that used the plugin. Also, the database back up was stored in the root of your site.

    Reply
  5. James Cook says:
    Aug 10, 2018 at 7:12 pm

    I used a much simpler way. My WP installation is with Godaddy…so logged in the cPanel of the site I wanted to cloned…went to subdomains and created the domain for the site destination…then I went to applications and the top of cPanel and clicked the little check box next the primary site I wanted to clone…then hit the clone button…and voila…and exact copy of our site was created in less than 10 minutes…

    Reply
  6. Indusekar S K says:
    Jun 9, 2018 at 12:53 am

    Is there any plugin or other software that could clone a wordpress website to another wordpress on the live?

    Reply
  7. Mark C says:
    Jan 19, 2017 at 9:15 pm

    The price for this is riduculous. Even the cheapest option is $80 PER YEAR! What an absolute rippoff!

    Better off just going to Control Panel, zipping up your files and download them … then go to PHPMyAdmin and downloading a copy of your database. Then upload your zipped files to the new location…edit the config file, then import the database.

    If that’s too hard for website retards … just install the free version of “Duplicate” (similar to Backup Buddy … but FREE).

    Reply
    • Carlos A. B. S. says:
      Feb 3, 2017 at 1:16 pm

      You’re right man, no need to spend a dime on such a a simple task…

      Reply
    • Felisha says:
      Feb 16, 2017 at 7:37 am

      Either of you have a step by step guide? I am trying to copy my site to a subdomain to target a different city from the main site.

      The only thing I understand so far is that I have to:
      1. create a subdomain
      2. create a new database
      3. copy the public html folder of the main site over to the subdomain pubic html folder
      After that, every tutorial I’ve seen on the internet gets too confusing

      Reply
    • Jerri says:
      Nov 7, 2018 at 4:48 pm

      What are you talking about? Duplicator is free. I mean, there’s a pro version, but I use the free version all the time to duplicate websites.

      The only thing these instructions didn’t add is that you need to first create a new database and add a user to it on the new site before running the installer.

      But it’s all easy and free.

      Reply
    • Lipa says:
      Nov 7, 2018 at 7:10 pm

      thx a lot !!! ;]

      Reply
  8. Mack says:
    Nov 25, 2016 at 1:19 am

    Can i copy someone’s site page to my site??

    Reply
  9. Allan Seabrook says:
    Aug 25, 2016 at 12:58 pm

    Hi,

    I really appreciate all the posts you share with us! Please keep them coming!

    My question regarding this post is…

    This technique using BackupBuddy works flawlessly.

    However, I now have a problem:

    When I type in the URL of my original site (where I took the backup), I get directed to the site I cloned from that backup. It’s as if my original site now has a redirect to the cloned site.

    What on earth have I broken?

    Any advice would be much appreciated!

    Thanks,
    Allan

    Reply
    • Stephen says:
      Mar 14, 2017 at 1:30 pm

      Check your DNS record. That would be one of the only ways this would happen.

      Reply
  10. Jonathan says:
    Aug 20, 2016 at 4:40 pm

    Thanks! Worked perfect!

    Reply
  11. Mamun sarkar says:
    Aug 2, 2016 at 8:02 am

    Hi,
    I would like to know how to clone any wordpress website have no hosting access information as well. I mean, suppose a buyer order your wpbeginner like website. Then, How to do it sir. Do you have any tutorials plz.

    Reply
  12. Hanna says:
    Jun 2, 2016 at 5:56 pm

    not possible anymore to use backup buddy unless you want to pay. Is their a different method?

    Reply
    • Nelson says:
      Jul 24, 2016 at 8:06 am

      Duplicator is perfect.

      Reply
  13. sandeep says:
    Apr 29, 2016 at 12:18 am

    i want to copy the theme of running website to another website…

    Reply
    • Moses says:
      May 22, 2017 at 6:26 am

      Hi Sandeep,
      Did you get solution to this. I also want to copy a theme to another website(subdomain)

      Reply
  14. Chris says:
    Aug 4, 2015 at 4:50 pm

    I’ve used another service to clone WordPress sites and have discovered a problem with residual tables, and I was curious whether this was an issue with BackupBuddy as well.

    In the scenario I recently encountered, I create WP Site A with table prefix wp1_.

    Then I have to create a new environment to clone to, so I install WordPress at WP Site B with table prefix wp2_.

    Now I use my [unnamed] tool to clone site A to site B, which appears good on the admin and public side but when I look in the database I have both wp1_ and wp2_ sets of tables, and all of the GUIDs in the functioning tables for the new cloned site have WP Site A’s URL, not WP Site B’s as I would have expected.

    These have to be cleaned up manually. So I wonder, does BackupBuddy do the same thing? Is this to be expected?

    Reply
    • WPBeginner Support says:
      Aug 6, 2015 at 6:11 pm

      BackupBuddy’s sales/support team can probably answer this better.

      Reply
  15. Andrew Lopez says:
    Jun 10, 2015 at 3:43 pm

    I’d be curious to know how to manually perform this task without a plugin or is a plugin recommended for backing up and migrating over to a new website?

    Reply
  16. Dave Navarro says:
    May 15, 2015 at 1:57 pm

    BackupBuddy fails on large WordPress installs. I can’t get it to back up our site which between database all files is over 400GB in size.

    I had to manually download all of the files, then re-upload them to the new site and use importbuddy with just the database. Even that fails if the raw database is too large (failed around 200MB in size).

    Reply
  17. Nitin says:
    May 1, 2015 at 1:53 pm

    wonderful technique but there is use of another plugin

    Reply
  18. Gf says:
    May 1, 2015 at 6:38 am

    I recently moved a small simple blog with all-in-one wordpress migration and it worked great. But when I attempted a larger site on wp4.1 it failed. I think I would like back up buddy but the price is staggering. It would be my biggest wordpress expense, almost twice as much as my hosting!

    Reply
  19. Jean says:
    Apr 29, 2015 at 11:27 am

    I love using BackupBuddy for backups and migrations.

    All you need is access to install the plugin and your set to move.

    Great article!

    Reply
    • johnraf says:
      Sep 4, 2016 at 2:22 am

      I used to have similar problems too, but after using
      “long path tool” You can use to solve this problem.

      Reply
  20. yaser says:
    Apr 28, 2015 at 6:58 pm

    How about if we want to clone a website that we have no backend access? Is there an easy way?

    Reply
    • fletch says:
      Apr 30, 2015 at 11:20 am

      Do you have ftp access? Do you have access to the database? You would need those two things to backup a website if you don’t have access to wp-admin.

      Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
WPForms Logo
WPForms
Drag & Drop WordPress Form Builder Plugin. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 25 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2019 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2019)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2019)
    • SiteGround Reviews from 1032 Users & Our Experts (2019)
    • Bluehost Review from Real Users + Performance Stats (2019)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Start a Podcast with WordPress (Step by Step)
    • How to Choose the Best Domain Name (8 Tips and Tools)
    • How to Setup a Professional Email Address with Google Apps and Gmail
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2019 – Step by Step Guide
Deals & Coupons (view all)
Dreamhost
DreamHost Coupon
Get 40% OFF on DreamHost and get a Free Domain.
Elegant Themes
Elegant Themes Deal
Get all 87 amazingly beautiful WordPress themes by Elegant Themes for only $69. That is like $0.79 per theme!
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • Awesome Motive

Copyright © 2009 - 2019 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

WordPress hosting by HostGator | WordPress CDN by MaxCDN | WordPress Security by Sucuri.