How to Manually Clone WordPress Website?

The way toward making a reproduction of your site is known as site cloning. By utilizing this clone, you can make outlines, perform refreshes, test similarity, and more prior to actualizing the progressions on your site. By this strategy, you can securely actualize any progressions to your live site. In this instructional exercise, we will check How to Manually Clone a WordPress Website.

Why Do You Need to Clone Your Website?

Every power client of WordPress approaches make the precise of your site. This element is generally useful for web organizations that have a few sites across numerous WordPress facilitating suppliers. At whatever point an issue happens on your live site, you can make a clone and attempt the fixes in that duplicate until you get a goal. Along these lines, it is not difficult to execute the right goal on your live website.

If you need to refresh a subject in a site without breaking any help, at that point you can follow the beneath steps:

  1. First, take the clone of your website.
  2. Update the topic on the clone.
  3. Do all the vital testing.
  4. Then, either eliminate the past adaptation or make this clone site as the first form of your website.

The situations when you need to make a clone for your site are:

1) TO PERFORM COMPATIBILITY TEST

You can play out the similarity testing on your site to check if all the segments are filling in true to form and furthermore if the site codebase is equipped for running on programming and equipment foundation. While playing out the similarity test, you need to roll out certain improvements to your site. In this way, we propose you play out these tests on a cloned or arranging site rather than the live site. Additionally, play out all the cycles that can influence your site on the clone, for example, code change, execute topics and module refreshes, establishment of untested subjects, and more.

2) TRANSFER OF YOUR WEBSITE TO NEW SERVER

The move of a site starting with one facilitating supplier then onto the next is by all accounts simple. Yet, it is consistently fundamental you make a clone of your site alongside the reinforcement of site documents and data sets before the exchange. On the off chance that the site gets broken after the exchange, you can utilize the clone of your site to recover.

3) TO CREATE A BLUEPRINT

The web designers use plans to make their site. These outlines are put away in a shared area to accelerate the advancement cycle, and these arrangements incorporate code-level customization, modules and topics setup, and more.

4) TO BACK UP YOUR WEBSITE

You can likewise utilize the cloning cycle to help make a reinforcement (web records and information base) of your site and store that in an offsite area. We can utilize this cloned site put away in offsite areas during fiasco recuperation. You can utilize distinctive WordPress modules to make a clone of your website.

Clone a WordPress Website

You can clone your WordPress site utilizing various techniques. Be that as it may, in this information base, we examine how to clone a WordPress site manually.

CLONE A WORDPRESS WEBSITE MANUALLY

The manual cycle of cloning your WordPress site incorporates the accompanying steps:

Compress WordPress Files

First, you need to clone your site is to pack all the documents and envelopes in your public_html index. For the equivalent, follow the beneath steps:

Log in to your cPanel as a root user.

Navigate to the ‘Record Manager’ and select the ‘public_html’ registry of your WordPress installation.

Then, select all the records and right-snap to choose the ‘Pack’ option.

Clone WP Website

Then, select the compress file type and enter the name of the compressed archive.

Click the ‘Compress File(s)’ button.

Clone WP Website

Upload the Compressed File

After the download, you can transfer the packed document to the new facilitating area by means of FTP or SSH. The SSH is quicker than the FTP transfer. To transfer the packed document to the new area, follow the beneath process.

Log in to the new facilitating area through SSH as a root user.

Switch to the envelope in which you need to transfer a duplicate of your WordPress website.

Make sure that the envelope is vacant. On the off chance that it isn’t unfilled, save all the fundamental records and envelopes to a protected area and afterward run the accompanying order to discharge the folder.

# rm -rf *

Then download and unzip the generated zip file.

# wget </URL/of/the/Zip/File>
# unzip <filename>.zip

Replace the </URL/of/the/Zip/File> and <filename> flags in the above commands with the actual URL of the website zip file and name of the file, respectively.

Database Migration

All the web files got uploaded to the new location. After that, we need to import the database to the new location. To export the database from the current location, and then import it to the new location, follow the below process.

  1. Log in to the database manager (phpMyADmin) and select the database.
  2. Navigate to the ‘Export’ option and download the ‘.sql’ file.
  3. Then, log in to the new database manager and click the ‘Create Database’ button.
  4. Navigate to the ‘Import’ option.
  5. Click ‘Choose File’ and upload the downloaded ‘.sql’ file.

Update the wp-config.php

Next, you need to update the wp-config.php file to make sure that the WordPress installation on the new location gets connected with the new database. Go to the ‘public_html’ folder and open the ‘wp-config.php’ file. Then, enter the new database credentials.

Conclusion

Website cloning is the process of creating an exact duplicate of your website. By using this clone, you can create blueprints, perform updates, test compatibility, and more before implementing the changes on your website. We hope this knowledge base was helpful to you. Please comment below for any questions or queries. If you are an Simply Host customer, please reach out to our support team for further help.

Leave a Comment

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