Skip to content Skip to main navigation Skip to footer

How to Clone WordPress Site: 2 Easy Methods

To clone WordPress site or creating an exact copy of an existing site can come handy in many ways. If you are a developer, this might mean copying a website from staging to production or vice versa. If you are a WordPress user who might want to tinker with their website, you should consider doing that on a duplicate WordPress Site not on the original one.

In this article, we will explore multiple ways to do this. You can either manually clone a website or use a plugin to do so. Let us now look at this process in detail.

To Clone WordPress Site Manually

Many managed WordPress hosts provide easy solutions to clone WordPress site. However, if you want to do that manually, follow the steps in this section (however which is quite different from cloning WordPress page manually). For the purpose of this article, we will call the site that you are copying “source” and the new copy that we are making the “destination”.

Step 1 – Copy Files from Source

To copy files from the source:

  1. Connect to your website through FTP. You can use a free software similar to FileZilla.
  2. Find Locate your WordPress files. This will usually be under the public_html folder. Refer to your host’s documentation for details.
  3. Download the contents from wp_content folder. This folder contains your themes, plugins and media uploads.

Step 2 – Copy Database from Source

To download a copy of database:

  1. Connect to your host’s phpMyAdmin. Refer to your host’s help center for specific instructions for login details.
  2. Click Export.
  3. From the Format dropdown, select SQL.
  4. Click Go.

Save the SQL file in a secure location.

Step 3 – Import Database in the Destination Site

To import the copied database to the new site:

  1. Connect to the new WordPress site’s phpMyAdmin.
  2. Click Import.
  3. Click Choose File and navigate to the location where the database file is saved, and select the file.
  4. From the ‘Format’ dropdown menu choose ‘SQL’.Click Go to start the import.

Step 4 – Create a new database user and give permissions

  1. Create a new database user in your MySQL database using phpMyAdmin. Save the credentials.
  2. Add the newly created user to the database that we imported in step 3.Give the new user all permissions to the imported database. Refer to your host’s help center for specific instructions. You can find phpMyAdmin’s documentation here.

Step 5 – Upload contents of wp-content folder

Next, upload the contents of wp-contents folder to the destination site.

  1. Connect to the destination site through FTP.
  2. Browse to the wp-content folder.
  3. Upload contents from the wp-content folder that we downloaded in step 1.

Step 6 – Edit the wp-config file

  1. Connect to your destination website and download the wp-config.php file.
  2. Open the wp-config.php file using a text editor.
  3. Replace the database name and password using the database username and password that we created in step 4.
  4. DB_NAME: Name of the database
  5. DB_USER: Username of the database user we created in step 4.
  6. DB_PASSWORD: Password for the database user we created in step 4.
  7. Refer to your host’s help center for the DB_HOST. In most cases, localhost, the default hostname, works.
  8. Save the file.
  9. Re-upload the wp-config.php file to the destination server.

Note: If your host provides an option to edit the wp-config.php file using the browser, you can do that to update the database details.

Step 6 – Change the site URL

If your cloned WordPress site has a different URL or address, you will need to update this in the database.

  1. On the destination site, connect to phpMyAdmin and select your WordPress site’s database from the left pane.
  2. Click and select the wp_options table.
  3. Locate the ‘siteurl’ and ‘home’ rows. Click the pencil icon next to each row to edit.
  4. Replace the URL with the destination site’s URL.
  5. Click Go to update.
  6. You should do this for both siteurl and home options.

Your cloned website should now be ready to use

To Clone WordPress Site Using Duplicator Plugin

If you want to clone WordPress website using a WordPress Site Cloner plugin, there are a handful available in the WordPress repository. Duplicator is the most popular WordPress Site cloner plugin among them. In this section, we will show you how to clone WordPress site using the Duplicator plugin.

To clone WordPress site using the Duplicator plugin:

  1. On your source website, install the Duplicator plugin.
  2. From the left panel of your WordPress admin dashboard, click Duplicator.
  3. Click Create New to create a new package.
WordPress site cloner

4. Provide a name for your package file. This is optional.

5. Click Next to begin creating the package.

6. If all the scan results are showing Good, click Build.

7. The plugin will now begin building the package. This may take several minutes. Do not close this window until the process is complete.

8. When the package is successfully created, download both Installer and Archive files.

9. Upload the Installer and Archive files to the destination server.

10. Access the installer.php file on a browser. For example: https://newsite.com/installer.php

11. Accept the terms and conditions.

12. Click Next to begin copying files and the database.

13. Enter the database name, user ID and password for the new database.

14. Refer to your host’s help center for database hostname. In most cases, this will be localhost.

15. Click Next to begin. Database will now be imported to the destination site.

16. On the New Settings page, enter the new URL, and new name for the website. Click Next to continue.

Note: The plugin will automatically find the new URL. Update this only if it hasn’t changed.

17. Click Site Login to go to the WordPress admin login page.

18. Test the destination site and make sure that everything works fine.

19. If everything works fine, click the Remove Installation Files Now! link to delete the files.

Top 5 WordPress Plugins to Clone WordPress Site

Duplicator is definitely the most popular plugin among WordPress users when it comes to copying a website. However, there are many other WordPress Site Cloner plugins that will let you duplicate a WordPress site.

1. Clone

With 100,000+ active installs, Clone is yet another popular WordPress Site Cloner plugin among WordPress users who wants to easily copy websites. The plugin has been recently revived with new developers onboard.

2. FastDup

FastDup claims to clone WordPress site easy by reducing the number of steps required.

3. All-in-One WP Migration

All-in-One WP Migration is yet another WordPress Site Cloner or migration plugin with 2+ million active installations. This plugin promises to export your WordPress website including the database, media files, plugins and themes with no technical knowledge required.

4. WP Staging

This plugin claims to create an exact copy of your entire website for staging or development purposes in seconds. It can clone WordPress site into a sub folder of your main WordPress installation including an entire copy of your database.

5. Migrate Guru

Migrate Guru can clone WordPress site with a few mouse clicks. It can also automatically rewrite URLs, bypass import-export scripts, and handle serialized data.

Now that you know the manual method and WordPress Site Cloner plugin-based methods to clone WordPress site, which one will you choose? Let us know in the comments section.

Was This Article Helpful?

0
0 Comments

There are no comments yet

Leave a comment

Your email address will not be published. Required fields are marked *