WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
  • 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 May 11th, 2015 by Editorial Staff
1.4k Shares
Share
Tweet
Share
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 clone a WordPress site in 7 easy steps.

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. Are there any good reasons to actually do this? Absolutely!

Clone a WordPress Site

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. Once the project is done you can clone the WordPress site to the client site.

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, here is how you can do it with these simple steps.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Using BackupBuddy To Clone A WordPress Website

BackupBuddy

For this article, we will be using BackupBuddy plugin. BackupBuddy is a WordPress backup plugin which allows you to not only just backup your WordPress site, it also allows you to easily restore your site from a backup. We will show you how to use this site restoration tool to easily clone any WordPress site.

1. Installing and Setting up BackupBuddy

First thing you need to install and activate the BackupBuddy plugin. Upon activation, the plugin will add a new menu item labeled ‘BackupBuddy’ in your WordPress admin bar. Clicking on it will take you to BackupBuddy setup wizard.

BackupBuddy Setup Wizard

The setup wizard is very straight forward. First you need to provide an email address. After that you need to enter a password.

This password will be used when you restore your site. The next option is to choose a location where you want to store your WordPress backups. The last option allows you to set up automatic backups.

BackupBuddy allows you to store your backups on cloud services like Stash, Amazon, Rackspace, and Dropbox. You can also store your backups on your own server or email them to yourself.

Once you are done with the setup wizard, click on save settings button to continue.

2. Backup Your WordPress Site

BackupBuddy will automatically initiate the backup process when you finish the setup wizard. Upon completion it will show you the option to download your backup or send the backup to a remote destination.

Backup process initiated and completed

You can always create a fresh backup by visiting the BackupBuddy » Backup page.

Creating new backups in BackupBuddy

3. Preparing To Clone Your WordPress Site

BackupBuddy provides a very easy site cloning / migration tool. Simply visit the BackupBuddy » Restore/Migrate page to begin the cloning process.

First you need to download the importbuddy.php file to your computer.

Download importbuddy.php file to your computer

After that, you need to download the backup zip file from your existing backups shown on the same page.

Download the backup zip file to your computer

4. Upload Backup and Importbuddy to New Location

Now that you have a complete backup of your site in a zip format and your importbuddy.php 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, 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 importbuddy.php file and your backup zip file.

5. Running The Import Script

After uploading both files, you need to visit the importbuddy.php file in a web browser. It will be located at a URL like this:

http://www.example.com/importbuddy.php

Replace example.com with your own domain name.

Importbuddy password

You will be asked to enter your importbuddy password. This the password you created during step 1 or the password you entered when downloading importbuddy file during step 3.

After entering your password, you will notice that importbuddy has already found your backup zip file. Simply click on the Next Step button to continue.

Backup found and selected

Importbuddy will now extract your backup file when it is done, you need to click on the next button.

You will now reach the URL and database settings section.

Database and URL settings section

Importbuddy will automatically guess your new URL. It will also show your previous URL. Below that, you need to enter the new database settings. Enter the new database name, database username and password.

If you have not created a new database yet, then you can always login to your hosting account and create a database using cPanel. If you are moving the site to local server then you can create a new database using phpmyAdmin.

After entering your database information, click on the test database settings button. If you entered all information correctly, then you will see test results like this:

Test database settings

Click on the next step button to continue. Importbuddy will now import your WordPress database and show you the success message. After that you can click on the next step button.

Importbuddy will run some tests and show your new cloned site’s URL to verify that everything is working fine.

6. Test Your Cloned Site

Test your new site by visiting the link shown on the last step of importbuddy process. Check that your single posts links are working fine. Visit the WordPress admin area to see if you can perform all administration tasks.

If you run into any issues check out our guide on how to fix common WordPress errors.

7. Delete Temporary Files

On the importbuddy screen, click on the cleanup and remove temporary files button. This will delete importbuddy and all temporary files it created during the cloning process.

That’s all, you have successfully cloned your WordPress site. You may also want to check out our list of 40 useful tools to manage and grow your WordPress blog.

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.4k Shares
Share
Tweet
Share
Popular on WPBeginner Right Now!
  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • Why Build Your Email List Today

    Revealed: Why Building Your Email List is so Important Today!

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

The Ultimate WordPress Toolkit

22 Comments

Leave a Reply
  1. 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
  2. Mack says:
    Nov 25, 2016 at 1:19 am

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

    Reply
  3. 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
  4. Jonathan says:
    Aug 20, 2016 at 4:40 pm

    Thanks! Worked perfect!

    Reply
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. Nitin says:
    May 1, 2015 at 1:53 pm

    wonderful technique but there is use of another plugin

    Reply
  12. 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
  13. 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
  14. 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 600,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
OptinMonster
OptinMonster
Convert website visitors into email subscribers. 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 2018 (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 (2018)
    • Which is the Best WordPress Slider? Performance + Quality 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
    • 5 Best VPN Services for WordPress Users (Compared)
    • HostGator Review - An Honest Look at Speed & Uptime (2018)
    • SiteGround Reviews from 1032 Users & Our Experts (2018)
    • Bluehost Review from Real Users + Performance Stats (2018)
    • 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 2018 – Step by Step Guide
Deals & Coupons (view all)
MaxCDN
MaxCDN Coupon
Get 25% off MaxCDN, the same service that we use to make our site super fast.
WPForms Logo
WPForms Coupon
Get 10% off WPForms, the most beginner friendly WordPress contact form plugin available in the market.
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
  • List25
  • Awesome Motive
  •  

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

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