FileManager-Blog-WPContents

Manually Clone a WordPress Site in 5 Steps

It’s easy to clone a WordPress site, once you understand a few basics. If you are a newbie to WordPress, using a plugin is the simplest way to do it. That’s how I started out. The first time I cloned a site, I tried to do it manually. Copying the files was simple and straightforward. But, the database mystified me. I had little knowledge of what it was and no idea how to replicate it, so I ended up using a plugin for the entire site migration (files and database).

Gradually, as I researched, explored, and tested, I learned that a database is the key feature that separates a Content-Management System (CMS) like WordPress from HTML sites. It’s where the content lives: text (pages, posts, comments), meta data (categories, tags, custom fields), user accounts (user names, passwords), site options, plugin and theme settings, etc. It’s quite significant!

There are plenty of plugins that will replicate all of the files and/or the database from one site to another. They do it with one click, really, really well. A few of my favorites are: Backup Buddy, All-in-1 WP Migration, Duplicator, and UpDraft Plus.

Yet, there are times when a plugin won’t work. Maybe the site is too large and the plugin’s copying process times out. Perhaps there are incompatibilities with the web host server. Whatever the reason, it’s a good idea to learn how to clone a WordPress site without a plugin.

Basic definitions

Source = the original site that you are cloning.
Destination = the new site

Step 1 – Backup the source site

Always begin with a backup of the source site just in case you need to revert back to it! Cloning can then begin with no worries.

  1. Log into your web host account and navigate to the cPanel.
  2. COPY THE FILES: Go to the File Manager. Select the folder that contains the WordPress source site, and make a .zip archive of it (“Compress”). Then, download to your computer.
    • If the source site is at the top level of the domain, the folder will likely be named “public_html”.
    • If the source site is in its own folder, it will likely be named “WordPress” or have the same name as the domain name (“myurl.com”)
  3. COPY THE DATABASE: Go to phpMyAdmin. Select the database for the source site. Select all of the tables (“Check all”). Click “EXPORT”. Use Custom options so you can save the SQL database as a .zip archive (“Save output to a file > Compression: zipped”).

Step 2 – Create the new Destination site

The new site can be an entirely new primary domain. Or it can be a subdomain or subdirectory of an existing primary domain. The steps below are for a subdomain, but are applicable to any situation.

  1. Assuming you already have a primary domain, log into your webhost cPanel and create a subdomain for the destination site: destination.myurl.com.
    • Alternative: if your webhost doesn’t allow subdomains, create a subdirectory: myurl.com/destination.
    • NOTE: If migrating an existing site to a new web host, you need to either transfer the domain name registration to the new host or point the existing domain name records to the new host.
  2. Install WordPress in the subdomain (or subdirectory) using your webhost’s tool. This may be a software program (Softaculous), a “Wizard” application, or something similar.

Step 3 – Copy Files from Source to Destination Site

  1. Decompress the .zip archive of the source files you downloaded to your computer in Step 1.
  2. Go to the File Manager (or use an FTP client, such as Filezilla). Select the folder (a.k.a. directory) that contains the WordPress destination site.
    • Since you’ve got a fresh install of WordPress, you only need to upload one source folder to the destination subdomain or subdirectory: wp-content
    • The wp-content folder contains anything you upload to your site that is not stored in the database: themes, plugins, and media (images, videos, PDFs, etc.). For a nice explanation, see this article: A Beginner’s Guide to WordPress’ Most Important Directory
    • Uploading the wp-content folder will overwrite the same folder in the fresh install. Everything else will remain intact!

Step 4 – Copy Database from Source to Destination Site

During this next sequence of steps, you’ll replace the source URL and File Path with the destination URL and File Path. This is where I do use a plugin to find and replace the data securely.

  1. Install and activate the WP Migrate DB plugin on both the source and the destination sites.
  2. Open the WP Migrate DB Pro plugin on both sites (Tools > Migrate DB). Select “Export File”.
  3. URL find and replace –
    • On the destination site: copy onto your clipboard the URL content in the “FIND” field:
      //destination.myurl.com
    • On the source site: leave the “FIND” fields as is. In the Replace field (“New URL”), paste the destination site URL:
      //destination.myurl.com
  4. FILE PATH find and replace –
    • On the destination site: copy onto your clipboard the File Path content in the “FIND” field:
      //different/path/to/destination.myurl.com
    • On the source site: leave the “FIND” fields as is. In the Replace field (“New File Path”), paste the destination File Path:
      //different/path/to/destination.myurl.com
  5. Export the file – use these settings:
    • Save as a file to your computer
    • Compress the file as a gzip
  1. Import the file on the destination site:
    • With plugin: You need the paid (WP Migrate DB Pro) version of the plugin to use its “Import” feature (Tools > Migrate DB)
    • Without plugin: Go to phpMyAdmin.
      1.  Select the database for the destination site. Select all of the tables (“Check all”). Click “DROP”.
      2. Click on the “IMPORT” tab, select the exported database file created in Step 5 above.

Step 5 – Check permalinks and theme settings

After importing the new database, the destination site will acquire all of the settings of the source site, including login credentials. You’ll most likely be logged out of the destination site, so go ahead and log back in to check out everything.

  1. Navigate around the site’s front-end to view the main pages and key posts.
  2. Navigate through the site’s back-end to review the configurations and make sure everything looks OK.
  3. Two key areas that may need attention after a clone is finished:
    • The Permalinks (URLs of the content) might need to be reset.
      Go to Settings > Permalinks
      Select the option that you prefer and “Save Changes”.
    • Sometimes the Theme Settings need to be reset.
      Go to Theme Name > Theme Settings
      All you may need to do is click Save. If things still don’t look right, you can try re-importing the database.
    • Appearance > Customize: check this area if you used it in the source site.

Comments

5 responses to “Manually Clone a WordPress Site in 5 Steps”

  1. Melinda D Avatar
    Melinda D

    Awesome article.

  2. pro apk Avatar
    pro apk

    I like the helpful information you supply for your articles.
    I will bookmark your blog and take a look more frequently.

  3. bac Avatar
    bac

    Great post. So much good info on here.

  4. Christopher Robin Avatar
    Christopher Robin

    thanks for the help. i managed to back up our site

  5. Sunny Kumar Avatar

    Really helpful article. I was looking for a way to clone my WordPress site and this helped me a lot. Thanks!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Sign up to get periodic updates on Anne’s design and art adventures, and receive useful info. via her blog.

* indicates required




I’d like to subscribe to:

Intuit Mailchimp

Looking for Something on this Site?
Copyright

© 2000-2026 Anne S. Katzeff. All rights reserved. Unless noted, all artwork and text are copyrighted by the artist. Images may not be reproduced, manipulated, or used in any way without Anne’s written permission.