Announcing Duplicator WP-CLI Commands (And How They Speed Up Backups)
Announcing Duplicator WP-CLI Commands (And How They Speed Up Backups)
Your WordPress site is thriving. Traffic is growing. Your audience is expandng.
But there’s a problem.
Your current hosting plan can’t keep up. Load times are sluggish. Crashes are becoming all too common.
It’s time to move your WordPress site to a new host. With the right approach, you can migrate your content with no downtime or data loss. Just a smooth transition to better performance.
In this tutorial, we’ll show you how to move your WordPress website to a new hosting provider!
When setting up your first website, you’ll choose a hosting plan with resources that meet your needs. However, as your audience grows, your web host may not be able to support your site anymore.
In this case, it’s time to find a better web host. Here are some benefits of migrating your site:
If you plan on owning a website for a long time, you’ll outgrow your hosting plan at some point. Especially if you start with a cheap hosting server, you’ll eventually need to find your site a new home.
Although migrations can seem technical and overwhelming, anyone can do it! With the right tools, you’ll quickly move your content to a new host without losing any data.
Let’s walk you through the process of moving your WordPress website to a new host!
Chances are, your current hosting provider is causing poor loading speed or doesn’t provide enough resources for your growing audience.
To make sure you don’t have to move more than once, it’s important to find the right host.
Shopping for a new web host can be overwhelming. With all of the different providers and plans out there, you might not know where to start.
To make your decision easier, here are some providers we personally recommend:
This affordable web host has many reliable shared hosting plans. For as little as $2.75 per month, you can get a WordPress hosting plan with a free Content Delivery Network (CDN) and 10 GB of storage.
Since SiteGround runs on Google Cloud, it tends to have fast loading speed and good uptime. Its plans are cost-effective and even come with a free migration tool.
If you want some extra security and a performance boost, check out WP Engine. This managed web host can be a good option if you receive a lot of visitors or want to outsource your WordPress maintenance tasks.
Once you purchase a web hosting plan, go ahead and install WordPress.
Keep in mind that some WordPress hosts will automatically migrate your original website for you. If you want to do it yourself, continue to the next step!
Don’t panic if your web host doesn’t offer a built-in migration service.
To safely migrate your content without data loss, you can use Duplicator Pro. This is the best WordPress migration plugin because it allows you to move your site without coding experience.
Here are some benefits of using Duplicator Pro:
To get started, choose a subscription for Duplicator Pro. The premium plans come with drag-and-drop migrations, which can make the move much easier.
When finished with your purchase, download Duplicator and install it on your original site.
As a final step, you’ll need to activate your license key. Copy the key you received with your purchase. Then head over to Duplicator Pro » Settings » General.
Paste your license key and hit Activate. Now you’re ready to start using Duplicator to migrate your website to the new host!
Next, you’ll compile all of your original WordPress files into a single backup. This makes it easy to transfer to a new location like a different web host.
Using Duplicator, start by clicking on Backups » Add New.
Name the backup and choose the Local storage location.
Open the Backup section. To migrate your entire site, click on Full Site.
If you want to exclude certain data from the migration, choose Custom. For extra customization, feel free to add file and database filters.
However, most migrations will need a full backup of the old site.
Unlike other migration plugins, Duplicator thoroughly scans your site for any issues. This way, you can resolve problems before they affect your migration.
To finish, hit Create Backup. Once Duplicator backs up your site, you’ll see it on the Backups page.
With Duplicator Pro, all you’ll need to download is the archive file. This allows you to import your WordPress site from a zip file.
When you want to move to a new host, you might think you’ll face inevitable downtime. However, your website can be live as you set up the new site.
To do this, you’ll have to make a few changes to your hosts file. The hosts file is a file on your local computer that maps hostnames to IP addresses.
By updating this file, you’ll make your computer think your site has moved. You’ll be able to access your new host’s files while your audience still visits the original site on your old host.
The first thing you’ll need to do is find your new host’s IP address. Usually, this will be in your hosting control panel.
For example, Bluehost users can click on Advanced and the IP address will be under General Information.
Now you can pull up your hosts file. How you do this will depend on your operating system.
If you’re a Mac user, open Terminal and run this command:
sudo nano /private/etc/hosts
For Windows users, open the Notepad app. Right-click on it and run it with administrator privileges.
In Notepad, go to File » Open and find this folder:
C:\Windows\System32\drivers\etc
Here, find and open the hosts file.
Once you open the hosts file, add your new IP address and your domain name at the bottom. It should look like this:
192.168.1.22 www.example.com
After this, save your changes. Your new host’s files are now linked to the domain name on your computer.
Before you move your website, it’s important to create a new WordPress database on your new host server. If you already have one set up, feel free to skip this step.
Many hosting companies make this process easy. With Bluehost, open your cPanel dashboard and click on MySQL Databases.
At the top of the page, enter a name for the new database and hit Create Database.
The new database will also need a new user. Under MySQL Users, enter a username and password to create the user.
Then, add the user to the database you just created.
You can assign the user all privileges. After this, it’s time to import your original WordPress website!
Although you could upload your backup files to an FTP client, Duplicator Pro offers an easier way.
Once you have WordPress set up on the new site, install and activate Duplicator Pro. Then, find the Import Backups page.
Drag and drop your archive file into the box. After it uploads, click Continue.
On the next page, Duplicator will show you all the data on your current site. Since you’re moving to a new server, this is likely a blank WordPress installation. To continue, hit Launch Installer.
Now the Duplicator migration wizard will help you install the original site. Be sure to choose Full install single site as the Install Type.
For the Setup section, enter your database name, username, and password. This should be the same information for the database you created.
Under Validation, you may see notices. After you review them for any issues, accept the terms and notices. Then, click on Next.
By importing your old website, you’ll completely overwrite the new site. To continue, you’ll have to confirm the installation.
Duplicator will then automatically replace the blank site with your original data! Once finished, use the Admin Login button to access your migrated site’s wp-admin dashboard.
After you log in, check the functionality of your new site to make sure everything was transferred correctly.
By now, you’ll have migrated a copy of your site’s files and database to the new web host. However, you’ll also need to make sure your domain points to the new hosting account.
This involves updating your Domain Name System (DNS) nameservers. Open your old web hosting account or domain registrar and find your DNS information.
There should be an option to edit your nameservers. Select Custom as the nameserver type.
Then, enter the nameservers for your new hosting provider.
After you save this change, your DNS will point to the new host. However, keep in mind that it may take up to 48 hours for this to propagate.
You can migrate your WordPress site to a new host for free by installing Duplicator Lite. This free WordPress plugin allows you to package your existing website into a zip file. Then, you can upload this file to your new host’s directory and launch the Duplicator installer.
First, be sure to install and activate the free version of Duplicator. Next, create a new backup. Select All under Components to include all the files and database tables in your current site.
Duplicator will scan your website and notify you of any issues. After reviewing them, click Build.
Now, you’ll see new archive and installer files. The archive contains all of your site’s files, while the installer will unpack and install the archive. On this page, hit Download Both Files.
After this, open a File Transfer Protocol (FTP) client, cPanel, or the custom file manager for your new host. In this tutorial, we’ll be using FileZilla, a free FTP client.
Once you open your new site’s files, find the public_html folder. Empty this directory and upload the archive and installer files.
Before you continue, create a new database on your new host. You can find instructions for this in Step 5 of the tutorial above.
In a web browser, paste this URL to launch the Duplicator installer: https://your-domain/installer.php
Under Setup, enter the information for your new database.
Then, hit Validate. Duplicator will test the database connection. If it is successful, accept the terms and notices and click Next.
Lastly, confirm the install settings.
After the migration is finished, you’ll see an Admin Login button that you can use to access your new site.
You can move your website to another host by creating a backup with Duplicator Pro. Then, drag and drop the backup’s archive file into the WordPress installation on the new host. This avoids using a File Manager or phpMyAdmin.
With the right tools, it can only take a few minutes to move a website to a new host. Duplicator Pro is a plugin that can simplify the migration process to just a few steps. Using direct server transfers, you’ll perform a full site migration almost immediately.
If your new web host has a built-in migration tool, you can move your site for free. If it doesn’t, the best option is to install a plugin like Duplicator Pro. This tool supports unlimited backups and migrations starting at $49.50 per year. Alternatively, Duplicator Lite is available for free on WordPress.org.
Migrating a website is easy with Duplicator Pro. You can create a backup that contains your website files and database tables. Then, simply upload this zip file to your new site.
If migrated incorrectly, you could lose organic traffic and decrease in SEO ranking. You may also face downtime or broken links. However, using a migration plugin like Duplicator Pro can help avoid all of these problems.
Just so you’re prepared for any possibility, here’s how to fix your WordPress site if it isn’t working after a migration.
You can manually migrate your WordPress website by using an FTP client like FileZilla to download your root directory, or public_html folder. After logging into phpMyAdmin, download your database as a SQL file.
Then, upload your old site files into the root folder for the new site. Create a new database and upload your original database. You’ll also need to update your wp-config.php file to reflect the new db_user, db_name, and db_password values.
Yes, you can change your web host and keep your old domain name. You’ll have to disable domain privacy and update your nameservers to point to the new host. Then, you can authorize and start the domain transfer using your new hosting control panel.
You can clone your WordPress site by installing Duplicator Pro and creating a full backup of the website. By downloading both the archive and installer files, you’ll have a full copy of your site that you can upload anywhere that supports WordPress.
That’s it! You’ve moved your WordPress site to a new host.
While you’re here, you may also like these WordPress migration tutorials:
Upgrade to Duplicator Pro to move your content to a new web host, domain, or server in just a few clicks!
Get Duplicator Pro NowDisclosure: 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.