I’ve already mentioned how handy the Duplicator plugin is for backing up your WordPress sites, but where it really excels is when it comes to moving your sites to a new server. When I used to develop sites for clients, I would build them either locally on my own computer or online on my own webspace. The most difficult part of the process was always moving the site across to their server.If you get an error message that a file wasn’t removed successfully, you can just delete it manually using your FTP program.
When I first started developing websites, back in the late ‘90s (eek!), it was a simple case of uploading all the files via FTP and doing a quick test. WordPress is a lot more powerful than the simple sites I used to make back then but it also means the method of transferring a site is more complex.
You’ll also get a warning at the top of the screen that the install files are still located within the WordPress directory and this could pose a security risk. You can delete the files directly using the link on this page.
Duplicator Plugin Overview
After clicking the Next button, the plugin will perform a scan of the server, files and database to detect any possible issues. It’s not mandatory for all the checks to pass to build the package, but it’s good to be aware of them as they can cause problems in some cases.
1. Download and Install the Plugin
If any of the requirements fail, you can click the link for further information about how to solve the issue. Some common problems you may be able to fix by yourself but in other cases, you may have to contact your hosting provider to make changes for you.
The problems you’re likely to run into when moving a WordPress site are database import and export errors, file path errors, permission errors, and a whole host of other potential road blocks. It also takes a lot of time to set up a new site including plugins and make sure everything is working correctly on the new server. It does get easier to move sites once you’ve done a few but it’s a task that requires your full concentration and a good few hours of your time.
2. Activate the Plugin and Create a Site Package
Under the Archive section, there is a dropdown box to change the file format (only .zip is available in the current version). You don’t need to enable the file or database filters unless you wish to exclude something from your site backup.
Duplicator can be installed directly from the WordPress dashboard. Under the Plugins option of your dashboard, click the “Add New” button and then search for “duplicator”. The plugin you’re looking for should be the first result but double check that it’s authored by LifeInTheGrid. Go ahead and click “Install Now”:
Finally you have an option of skipping the system scan and going directly to the package build, however I would leave this unchecked so that you’re aware of any potential problems.
The final screen displays a report of the installation with any errors and warnings and some steps you should complete before using your new site.
Click the “Create New” tab. This will take you to the package creation wizard.
You can then press the “Test Connection” button to check that the script can connect to the database ok. With any luck you’ll get a pop up box telling you that the server is found and the script managed to connect to the database. If you get a fail for either of these, follow the advice under “common connection issues” or contact your hosting provider for help.
After installation, you’ll be presented with a page showing you the old and new Path and URL settings for your site. You have the opportunity to change your page title here and create a new admin user if you wish.
Related Reading: 7 Top Backup Plugins for Your WordPress Website
The name will be pre-filled (you can change this if you wish), you have the option to create some notes about the package and there are further options under Archive and Installer.
You should see a screen like the one below. Fill out the fields with the information for the database you just set up:
Clicking on the Save Permalinks will take you straight to the WordPress dashboard of your new site. You may have to login (using your original admin username and password or the new one your set up in the previous screen).
Make sure to make a note of your database host (if on a different server to your website files – localhost works for many hosts), username, password and database name as you’ll need them in the next step
After clicking build, the software will go ahead and back up your whole site including all plugins themes, pages, posts and media to a single file. After the build has finished, you’ll be presented with download buttons for an installer (a PHP file) and the archive you just created as a zip file, so go ahead and download these files:
Again, if you do have any warnings on this page, click the relevant link for more information. If you have a very large site or large files such as video files this might throw up a warning as they can cause timeouts. If this is the case, you might want to go back and use the filter option to exclude such files from the package. It’s also a good idea to clean up the database of very large sites before you export the package. Don’t be too worried about getting warnings as they often won’t cause any problems but the information on this page may help you sort out issues if you get an error during package creation.
Select the permalinks structure that you wish to use and save the setting.
After activating the plugin, you’ll get a new navigation option in your main WordPress dashboard menu: “Duplicator”. Select this and you’ll enter the main setup screen with a warning message that you haven’t created any packages yet:
When I first installed the plugin, it failed at the “Zip Archive Enabled” step. In my case, I needed to upgrade the PHP version of my domain in order to activate the zip extension so try this from your hosting dashboard if you are getting an error.
3. Prepare New Server for Installation
This is where the Duplicator plugin comes in handy. Rather than having to run down a checklist of everything you need to do to move your WordPress site across manually (you can review the manual process here), it does everything for you, reducing the process to a few quick and easy steps.
While it’s fairly simply to use the WordPress Duplicator plugin, it can be a little confusing at first so I decided to write this tutorial you can follow to reduce any confusion and hopefully solve any problems that crop up.
4. Run the Site Installer
Before the package can be created, there are several requirements that need to be fulfilled. Hopefully you’ll have a “pass” in this, but if not, you can expand the box to find out where the problem is:
Congratulations! You’ve successfully moved your site to a new server – get yourself a coffee, you’ve earned it!
Before proceeding you then need to tick the box to say you’ve read all the warnings and notices, and then click“Run Deployment”. You’ll get a warning reminding you that any data existing in the database will be overwritten (so double-check you’ve entered the name of your new database and not an existing one!) which you can click OK to.
If you have problems with certain plugins when you’re copying your site across, you can disable them from the advanced options section. You can then hit the “Run Update” button to update the database and finish off the site install.
Access the installer script in your web browser from wherever you copied it to. For example http://www.mysite.com/newsite/installer.php
You can then go ahead and check your site from the front end to see if everything works properly. Sometimes a plugin or two may need reinstalling but otherwise, you should have an exact copy of your original site.
The installer section is for entering details about the server you will be moving your WordPress site to. You can fill these out now or you can leave it until the installation step. I prefer to leave these fields blank to have a clean backup package that can be installed anywhere (although it is possible to change the details later so this is no real problem if you fill them out).
Hopefully you’ll then see the system starting to deploy the files. If you get an error, try re-uploading your archive file in case it became corrupt during the file transfer.
The one thing that the plugin doesn’t handle for you is setting up a new database for your site on the new server, so you’ll need to do this manually. The process for doing this will depend on your webhost, so refer to their documentation for a guide. If your hosting provider uses cPanel, follow these instructions for setting up your database.
If you just want to backup your site, your job is done! For extra security, make a copy on an external hard drive or upload it to cloud storage.
You won’t have to worry about backing up your database, images, plugins, and moving them all separately – Duplicator takes care of all this for you. Best of all, the plugin is free!
The package will now be listed back on the packages tab with date and size information, which is useful for backup purposes. The package files are stored in a new wp-snapshots directory that you’ll find in your main website directory.
The next step is to connect to the new server you want to move your site to via FTP and upload the installer.php and your archive zip file to the directory you want to install the site in. You don’t need to install WordPress on the new server.
If you’d like to move your site to another server, read on for the next step.