[NEW] Introducing Inline Help to Clarify Backups and Migrations
Do you need to clone your WordPress site before migrating to a new domain or hosting provider?
Using a WordPress plugin like Duplicator, you’ll be able to create a fully operational copy of your site. This can be used for safe migrations, domain name changes, or file edits.
In this tutorial, we’ll show you how to clone your WordPress site!
Put simply, cloning involves saving a copy of your website in a new location. This is an exact copy that is fully operational.
Although this might seem similar to a backup, there is an important difference. When you back up your site, you’ll save a dormant, inactive copy. If you accidentally break something on your live site, you can restore this saved backup.
A clone is an exact duplicate of the WordPress site, except it’s independent and fully functional. You can change the site clone without affecting your live website.
Here are some reasons you might want to clone a WordPress site:
Additionally, website clones can be helpful for web developers. Instead of working on the live site, you can clone your client’s website to a subdomain. Using this staging environment, you’ll be able to make changes safely.
As a beginner, cloning may seem like a difficult process. To help you get started, we’ll show you the best way to clone a WordPress site!
To easily start cloning your website, we’d recommend installing Duplicator. With over 1.5 million active installations, this plugin is the most popular option for WordPress migrations:
Using Duplicator, you’ll be able to copy your WordPress site to a different domain, web host, or local environment. Plus, you won’t suffer from any downtime.
First, choose your preferred license for Duplicator Pro. Although you can download a free version, our premium subscriptions include drag-and-drop migrations, cloud storage, automatic backups, and much more.
Once you download Duplicator, install it in your WordPress dashboard.
During checkout, you’ll get a license key for Duplicator Pro. Before you start using the plugin, go to Duplicator Pro » Settings » Licensing:
Paste your license key into the Activation settings.
After activating Duplicator, you’ll need to create a package. This will bundle together your plugins, themes, database, and other WordPress files.
Once you compile all your data into a zip file, you can easily migrate it to a different location.
First, find Duplicator » Packages » Create New:
On the next page, give the package a name. Then, choose a storage location. With Duplicator Pro, you can connect third-party providers such as:
In the Archive section, choose which site components you want to include. For a fully cloned copy, select All.
However, you could clean up the backup by only copying active plugins or other key WordPress files:
After you click Next, Duplicator will scan your website. You’ll receive evaluations for your WordPress setup, files, and database:
Even if you see a notice, you can continue with the build process. Once you hit Continue, Duplicator will create your cloned package.
On the Packages page, you’ll see an Installer file and an Archive zip file. Before you move on to the next step, download both of these:
Once you have a cloned copy of your WordPress site, it’s time to upload it to a different location.
If you’ve already installed WordPress, open your dashboard and install Duplicator Pro. Then, find the Import page and upload the package’s archive file:
However, you don’t have to have WordPress installed!
Using Duplicator, you can upload your package to a File Transfer Protocol (FTP) client or cPanel. This will allow you to install the site on a completely empty directory.
If you choose to use an FTP client, we’d recommend FileZilla. This free software makes it easy to connect to your site files and start editing them:
At the top of the FileZilla window, enter your host name, username, password, and port number. Usually, you can find this information in your WordPress hosting dashboard:
After you hit Quickconnect, you’ll see your site files on the right-hand side. Next, open the root directory, which is the public_html folder. Here, upload your Duplicator package:
You should see both an installer.php file and a zip file containing your WordPress data. Be sure to delete any other files from your public_html folder.
For a WordPress website to function properly, it needs a database. After you’ve uploaded your cloned files, it’s important to create a new database to store its data. This will allow Duplicator to move information from your old database to the new one.
Your web host will likely allow you to edit your database from your control panel. For example, Bluehost has a setting for MySQL Databases:
After clicking on this, look for the option to create a new database. Give it a name and click on Create Database:
Now, you’ll need to add a new user to the database. In the MySQL Users section, enter a new username and password:
You’ll also need to assign that user to the new database:
For the next step, be sure to remember your database information!
Finally, open a new browser window. In the search bar, enter your full web address followed by ‘installer.php’. Here’s an example:
On the Duplicator installation page, find the Setup section. Here, enter your new host name, database name, username, and password:
Then, scroll to the bottom and hit Validate. Duplicator will test your database connection. If everything is working correctly, select the terms and notices checkbox and click Next:
At this stage of the cloning process, Duplicator will import your database and finish the installation. If it is successful, you’ll see an Admin Login button:
With one click, you can log into the WordPress dashboard for your new site! This new WordPress installation will look and function exactly like the original website.
You can download a full WordPress site by logging into that site’s dashboard and installing Duplicator Pro, a backup and migration plugin. Next, create a new package and include all of the site’s data. After the package is built, download it.
To clone a WordPress site without plugins, you’ll have to use an FTP client or cPanel to download a copy of your site’s files. Then, upload these files to the destination server. You’ll also need to export your old database in phpMyAdmin and import it into the new location.
First, be sure to create the staging area using local software like LocalWP, MAMP, WAMP, or XAMPP. You could also use your web host’s staging service. Then, create a package of your production site with Duplicator and import it into the staging site.
For more details, check out our guide on how to create a WordPress staging site.
To migrate your WordPress site with Duplicator Pro, create a new package. Then, download the package’s archive file. Once you install Duplicator on your new website, go to the Import page and upload the archive. This will launch the Duplicator migration wizard, which will walk you through the installation.
If you want to clone your WordPress site to a new domain, create a package of your original site with Duplicator Pro. Then, download the package’s archive and installer files. Upload these to the new server.
In a new browser, visit https://yournewdomain.com/installer.php
In the top-right corner of the installer wizard, select the Advanced view:
Now you’ll be able to update your domain during the migration. Simply enter your old domain in the Search field and the new one underneath it:
Duplicator will automatically import all of your old data into the new site. Plus, it’ll search your database for the old domain and update it with the new one.
By now, you can clone your WordPress site to a new staging environment, domain name, or server!
While you’re here, you may like these extra WordPress tips, tricks, and guides:
Are you ready to clone your existing website? Download Duplicator Pro to quickly create copies of your site and move them wherever you need to!
Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. We only recommend products that we believe will add value to our readers.