Announcing Duplicator WP-CLI Commands (And How They Speed Up Backups)
Announcing Duplicator WP-CLI Commands (And How They Speed Up Backups)
Migrating your WordPress site can give you a fresh start with a new host or domain name.
However, you don’t want to risk losing any of your website’s content.
Whether you’re moving to a new web host, domain, or server, it doesn’t have to be a complicated process. With the right approach, you’ll migrate your site without any downtime or data loss.
In this step-by-step guide, we’ll show you how to migrate a WordPress site!
To quickly get you started, here’s how to migrate a WordPress site!
When you migrate a website, you’ll move your entire site to a different location. Usually, this is a big change like using a new host, server, or domain.
Over time, you’ll start increasing your online traffic. Your current hosting provider may not be able to support this higher volume. In this case, it’s a good idea to find a new WordPress host or upgrade your hosting plan.
During this process, you won’t want to lose any of your website’s content or traffic. To make a smooth transition, you can migrate your website.
Here are some common reasons why you might need to migrate your website:
A WordPress site migration can also be helpful when you’re changing your website’s design, navigation, or structure. You can simply move your site to a local server for safe testing and updates. Then, migrate these changes back to your live server.
As a beginner, you might not know exactly how to migrate your WordPress site safely. To help you get started, we’ll walk you through this process step by step!
If you manage an e-commerce store or blog, you’ll want to find the fastest way to move WordPress sites. Fortunately, there are many WordPress migration plugins available to make this process easier.
Duplicator is a popular and flexible tool for migrating your website. With this plugin, you can create copies of your site and upload them to another location.
During a manual migration, you might be worried about downtime or data loss. Using Duplicator, you can quickly and safely move your entire site to a different domain or hosting provider. This makes it one of the best WordPress migration plugins you can find.
Here are some more helpful features you can expect from Duplicator Pro:
When you’re ready to migrate your website, sign up for a Duplicator subscription. With Duplicator Pro, you can access unlimited migrations, drag-and-drop installs, and cloud storage integrations.
After downloading Duplicator, open the WordPress dashboard for your original site. Then, install and activate the plugin.
You’ll also need to activate the license key you received with your purchase. To do this, go to Duplicator Pro » Settings » General. Paste your license key and hit Activate.
After this, it’s time to create a backup of your original site. This is a copy of all your existing site’s content, plugins, themes, database, and WordPress files.
First, navigate to Duplicator Pro » Backups » Add New.
Give the backup a name with dynamic tags. Choose the Local storage location.
To migrate your entire site, you’ll need to create a complete backup. In the Backup section, click on the Full Site preset.
The Duplicator plugin will then check your website’s setup for issues. Review any notices before creating the backup.
As Duplicator builds the backup, you can track its progress. You’ll know the files are ready to download when they appear on the Backups page.
To migrate your website, you’ll need to download the zip file with your site’s data. Next to the backup you just created, click on Download » Archive.
Once you download your website files, log into your second site. In your new dashboard, install and activate Duplicator Pro. This will allow you to import your core data without needing a File Transfer Protocol (FTP) client or phpMyAdmin.
Next, click on Duplicator Pro » Import Backups. Here, drop your saved archive file into the import box.
Once it imports, you can view details about the backup. If everything looks correct, hit Continue.
To continue migrating your site, click on Launch Installer.
On the next page, select Full install single site as the Install type. This will completely clear the current site and replace it with your original files.
Then, click on Validate. After you review any notices and warnings, select the terms and notices checkbox and continue to the next page.
Lastly, you’ll need to confirm the installation settings. Make sure the WordPress database settings are correct before hitting OK.
Now Duplicator will migrate your previous WordPress website to its new home! Keep in mind that if you’re migrating to a new domain, you may also need to update your Domain Name Server (DNS).
If you don’t want to install a new plugin, you can also migrate your site manually. However, this method is best for more advanced WordPress users.
In a manual migration, you’ll need to access and edit your site files and database. Before you get started, it’s important to back up your website. This way, you can easily restore a previous version if you accidentally break your site.
It’s also important to keep in mind that many web hosts offer free migration services. This can prevent you from having to perform this process manually.
First, start by exporting your database. If your old site is live, sign into phpMyAdmin to manage your database. For a localhost, you can use MySQL Workbench instead.
In this tutorial, we’ll be using phpMyAdmin. First, click on the Export tab at the top of your dashboard.
For the Export method, select Quick. The Format should be SQL. Then, hit Go.
After the database downloads, save the file to your local computer. If your new web host also uses phpMyAdmin, zip the file.
Next, log into the file manager for your original hosting account. Depending on your host, this could be cPanel or a custom-branded manager. Alternatively, you may have to use an SFTP/FTP client like FileZilla.
Select all of the files in the root folder (public_html). This includes important files like wp-admin and wp-content. Right-click on them and hit Download.
After downloading your site files to your local computer, compress them into a zip file.
Now you’ll need to go to the file manager for your new site. Open the root directory, select all of the files, and delete them.
Once the root directory is empty, hit Upload. In the upload box, add your zipped file.
Lastly, extract the zip file. You should see the files from your original site.
To store your site’s data, it’s important to create a new MySQL database. If you’re using cPanel, start by finding the MySQL Databases button.
Then, give the database a name and hit Create Database.
After creating a database, you’ll need to create a new user with rights to control the database. Under MySQL Users, add a username and password for the new user.
Find the Add User To Database section. Here, select the user and database you just created.
You can then assign all privileges to the new user. This will allow the user to make changes to the database.
Open phpMyAdmin for the new site. At the top of the page, select the Import tab.
Now you’re going to import the database that you saved earlier. Under File to import, upload your saved SQL file.
Make sure the database is a zipped SQL file. Then, import the new database.
After a manual migration, you’ll need to update a few values in your new site’s wp-config.php file. To do this, reopen the file manager for your new site. Then, find the wp-config.php file in the public_html folder.
In the wp-config.php file, locate the database settings. You’ll need to redefine the database name, username, and password values to match your new site.
Here are the values to update:
You’ll also need to search this file for your old domain name. Delete this text and replace it with your new domain. Similarly, search for your old URL path and add your new one.
Whether you migrate your WordPress site manually or with a plugin, there are a few post-migration tasks you’ll need to complete. This way, your new site functions well and continues to appear in search results.
After fully moving your site’s files and database to the new location, here’s what to do next:
If you moved your site manually, you’ll also need to run a search and replace script to make sure your database references the new site’s URL. If you’re not sure how to do this, a plugin like Better Search Replace can automate this process for you.
However, Duplicator is a better option because it performs a search and replace during the migration. You won’t have to worry about doing any extra steps or installing a new plugin to do this job.
To take advantage of this feature, make sure to click the Advanced option after you upload your archive file to the new site. Under Custom Search & Replace in Step 3, enter your old and new website URLs.
After a migration, it’s important to remember that it takes time for your DNS to propagate. We’d recommend not deleting your old hosting account until this is finished.
You can migrate your WordPress site for free using the free version of Duplicator. After creating a backup, download both the archive and installer files. Then, upload these files to the new server.
In a new browser window, paste this URL: https://your-domain/installer.php
This will automatically open the Duplicator migration wizard. In the Setup, section, add the details for your new database.
Continue confirming the installation. Once the migration is complete, use the Admin Login button to sign into your newly migrated site!
Alternatively, you can have your hosting service migrate your site for you. Usually, web hosts provide a free way to move your old content to the new website.
Migrating your website can temporarily affect your Search Engine Optimization (SEO) rankings. When you start using a new web host, you’ll have an entirely new IP address and server location. Search engine bots will re-crawl your website, which could impact SEO and organic traffic.
However, you can easily migrate your site without losing SEO. The Duplicator plugin can help you safely move your content to a new location. Then, be sure to set up permanent redirects and notify Google about any domain changes.
Migrating a WordPress site can take just a few minutes with the right tools. Using Duplicator, you can quickly back up your site files and database. To migrate this data to another WordPress site, simply drag and drop the backup into the Import Backups page.
Duplicator is the best WordPress plugin for quick and easy migrations. You can use this tool to drag and drop your website to a new server, domain name, or any other location that hosts WordPress.
Alternative: All-in-One WP Migration is another effective plugin for migrating WordPress sites. However, Duplicator Pro is better equipped for handling larger sites and WordPress multisite networks.
To copy a WordPress site, we’d recommend using a cloning plugin like Duplicator Pro. With this tool, you can create copies (or backups) of your site. If you want to move them somewhere else, upload the backup archive and installer to the new server. Use this link to launch the installer: https://your-domain/installer.php
Yes, you can move your WordPress site to another domain. Duplicator offers the easiest way to do this. Back up your site and drag and drop it into the new location. When the installer launches, choose the Advanced mode.
In Step 3, use the search and replace tool to update your database with the new domain. Simply enter the old domain for the Search value and the new domain underneath it.
Hopefully by now, you know how to migrate a WordPress site!
While you’re here, you may also like these extra WordPress tutorials:
Do you want to avoid the hassle of a manual migration? Download Duplicator Pro to access drag-and-drop WordPress migrations!
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.