Whether you’re changing hosts, swapping domains, setting up a staging site, or making a backup, there are many reasons you might need to clone your WordPress website. A clone is an exact copy of your website, including all of its content and the core files it needs to run.
Luckily, the WordPress plugin Duplicator is built for this very task. In this post, I’ll explain why Duplicator is so useful, then we’ll cover how to use it to migrate your WordPress website from one web host to another.
What is the WordPress Duplicator plugin?
Duplicator is a free and powerful WordPress plugin that enables users to create a copy of their WordPress website. Duplicator groups all website files into a single portable zip file called a “package.” You can use your Duplicator package to migrate your entire site to a new host, domain, or staging site.
With over one million active installations, Duplicator is one of the leading WordPress cloning plugins. It’s renowned for being a quick, simplified solution to WordPress migration and backups. Using Duplicator, any website owner can package a website in a handful of steps. Once finished, the WordPress database, core files, active theme, and plugins are all easily portable.
If you’re moving web hosts, Duplicator handles most of the work you would otherwise need to do manually, saving time and reducing the chance of an error. Duplicator will even install WordPress on the new server when you re-upload your package, saving you an extra step.
Duplicator also sells a paid version for $59 per year, which comes with premium features like multisite migration and automatic routine backups. Duplicator Pro also lets you make backups via file transfer protocol (FTP), and lets you save your package straight to cloud storage services like Google Drive and Dropbox.
However, you don’t need to pay a cent to migrate a WordPress site to a new host with Duplicator. In the next section, I’ll explain how.
How to Migrate Your WordPress Site with WordPress Duplicator
- Prep for your migration.
- Install the Duplicator plugin.
- Build your package.
- Download your package.
- Create a backup file.
- Create a database on your new web server.
- Upload your Duplicator package to your new host.
- Point your domain to your new host.
- Check that your new site works.
Duplicator is built to help easily move your WordPress site between hosts with minimal to no downtime. Follow these steps for a seamless migration using Duplicator.
1. Prep for your migration.
Before the move, plan out your strategy carefully to reduce the risk of any unexpected obstacles. Here are some preliminary steps to take to ensure a smooth migration:
- Set up your new hosting account. Check whether your new host offers free migration assistance. If so, this can be a big help in the later stages of the transfer.
- Take inventory of your website resources, and determine which you want to transfer. Duplicator allows you to select certain website assets for your package and leave unwanted files out.
- Develop a migration schedule that sets realistic timeframes for your migration.
- If you’re transferring confidential data, review any relevant security regulations, and be sure to follow them.
- Update to the latest version of PHP if necessary. Duplicator requires PHP version 5.3 or later.
2. Install the Duplicator plugin.
To add Duplicator to your existing WordPress site, select Plugins > Add New from your WordPress dashboard and search for “Duplicator – WordPress Migration Plugin.” Install and activate the plugin. Once activated, you’ll see a new Duplicator option in your dashboard panel.
3. Build your package.
Select Duplicator > Packages, then select Create New in the top right corner. Name your package, then click Next. Duplicator will scan your site for potential issues. If it highlights any problems, resolve these and rescan before continuing.
Once the scan is complete and successful, click the Build button. Duplicator will create your package. This will take some time depending on the size of your site.
4. Download your package.
Once the backup file is built, select the One-Click Download option. This downloads both your backup file and the installer.php file to your device. installer.php will help install your package on your new host.
5. Create a backup file.
It’s always important to make a backup when making big changes to your site in order to prevent data loss. Simply make a copy of your package and store it safely throughout the rest of the migration.
If you plan to use your new host’s migration services, you now can follow their instructions. Be sure to check your site is working properly when your migration is complete! Otherwise, keep reading.
6. Create a database on your new web server.
You’ll now need to create a database on your new server to place your WordPress files. This is most easily done through cPanel, the administrator panel used by most well-known web hosting services.
To create a database on your hosting server:
- Log into your hosting account and navigate to the cPanel main menu.
- Under Databases, select MySQL Databases.
- Under Create a New Database, enter a name for the database and click Create Database. Remember this name for later.
- Add yourself as a user to modify the database. Under Add a New User, enter a username and password, then click Create a User. Remember these credentials for later.
- Scroll down to Add a User to a Database, choose the user and database you just created from the dropdowns, then click Add.
- On the Manage User Privileges screen, check the ALL PRIVILEGES box to give yourself full access to the database, then click Make Changes.
7. Upload your Duplicator package to your new host.
With a database set up, you can upload your Duplicator package. There’s no need to install WordPress on your new host first. Duplicator does this for you.
To install your Duplicator package to your new host:
- In cPanel, upload your site backup file and installer file to your root directory.
- Navigate to domain.com/installer.php, where “domain.com” is your domain name. You’ll see the duplicator installation wizard.
- Enter your database name, then your username and password that you just created (Host can stay as “localhost”).
- Click Test Connection. If the test runs properly, you’ll see the following:
- Click Run Deployment.
- The next screen will show your old and new URLs, which should be the same if you’re keeping your old domain. Click Run Update.
- On the final page, follow the testing suggestions if you’d like.
8. Point your domain to your new host.
At this point, Duplicator has done its job by recreating your site on a new host. Now you just need to change your domain name to direct users to your new host.
Your host will give you at least two nameservers, which connect your domain name to the server hosting your content. Find them through your hosting account. They’ll likely be stored in an accessible place.
After acquiring your nameservers, log into your domain registrar and replace the nameservers of your old host with those from your new host. You’ll need to wait up to a couple of days for the change to fully take effect.
9. Check that your new site works.
Your visitors shouldn’t notice any changes to your site while you switch hosts. Assuming no major issues with the transfer, your site will experience zero downtime during the migration, and all your content should look the same.
That said, it’s good practice to check as many pages as you can to ensure all content was moved properly, and replace any missing or broken files if necessary. Your backup might come in handy here.
Duplicator has earned its high reputation — it’s a great example of an easy-to-use, free-to-use, and safe-to-use WordPress plugin. After all, just copying your WordPress site and pasting it elsewhere shouldn’t be that difficult, right?