When you need to migrate a WordPress site, make an emergency backup, or generate a copy of your website for testing, you should consider using the WordPress Duplicator plugin.
In this article, we will show you how easy it is to backup and restore your site. We’ll also go over some of the other tools included in the WordPress Duplicator plugin.
- What is the WordPress Duplicator Plugin?
- WordPress Duplicator Plugin Settings
- How to Use the Duplicator Plugin
What is the WordPress Duplicator Plugin?
The WordPress Duplicator plugin is a free plugin that allows users to make and deploy a copy of their WordPress website.
The plugin groups all website files into a single portable zip file called a “package.” The Duplicator package can then be used to quickly and efficiently migrate your entire WordPress website site to a new host, domain, or staging site.
WordPress Duplicator Plugin Settings
The WordPress Duplicator plugin can do more than just backup and restore WordPress sites. It gives users several options such as enabling debugging, choosing an SQL backup script, setting the archive engine, or managing your WordPress Duplicator plugin license.
For this article, we are using the free version of Duplicator, so the below steps will not cover any of the Pro Features.
For those considering the premium version of the WordPress Duplicator Plugin, below is what is included with the Pro Features:
- Works with Multiple Sites and Subsites
- Fast Package Engine Can Handle Large Sites
- Choose Backup Limits to Avoid Maxing Storage Space
- Use Existing Databases or Build New Ones
- Overwrite Old Sites with A Click
- Simple Single-Archive Bundles
- Receive Email Notifications
Now we will cover how to change your WordPress Duplicator plugin settings.
- Click Duplicator then Settings in the WordPress Dashboard menu.
- You will then be able to choose your Duplicator settings. Select the tabs to access the available options.
- Choose your settings as needed, but be sure to click the Save Settings option before changing between tabs. Below is a summary of the available options.General
Version View the version of the WordPress Duplicator plugin you are using. Uninstall Choose if you want to delete your plugin settings and the entire storage directory when you uninstall the Duplicator plugin. Storage View the full path that your WordPress Duplicator plugin snapshots are stored in and disable the .htaccess file in the storage directory. Custom Roles Check this if you want to integrate the User Role Editor plugin. Checking this will allow you to create and manage custom user roles to your liking. Debugging Select this option to enable debugging. Trace Log If this is enabled it will begin logging all PHP errors and trace logs.Packages SQL Script Select if you want to use Mysqldump or PHP Code to export the database. You can also enter a custom file path to store the database backup. Archive Engine Choose if you want to archive your files with ZipArchive (archive.zip) or DupArchive (archive.daf). Archive Flush Select this option to try and keep the network connected when backing up an archive. Created Format Choose the date and time format to be added to the archive name.License Manage Click to access and manage Duplicator licenses. Type View the type of WordPress Duplicator plugin license you are using. License Key View your Duplicator license here. This will only apply to Duplicator Pro licenses.About Rate Duplicator Review the Duplicator plugin on WordPress.org. Spread the Word Access the social media accounts associated with the WordPress Duplicator plugin. Stay in the Loop Enter your email address to subscribe to the Duplicator newsletter.
View PHP Information in WordPress
Do you need to know the PHP settings of your WordPress Hosting Account? Details such as PHP memory_limit, max_execution_time, and environmental variables can all be seen right in your Dashboard. This will help you confirm if you meet the minimum requirements for a new plugin or when troubleshooting a WordPress issue. You can also view your PHP Settings with a phpinfo Page.
- Click Duplicator then Tools in the menu of your WordPress Dashboard.
- You will then be on the Diagnostic Tools page. Click the PHP Information link.
- Your detailed PHP information will be displayed. You can scroll down to see more details.
View WordPress Server Settings
Do you need to see the settings for your WordPress server? Maybe you’re installing new software and want to ensure your environment is compatible. As we continue covering the WordPress Duplicator plugin, we will now show you how to view server settings with the WordPress Duplicator plugin. This can provide important information about the environment you are hosting your website on. Details about your operating system, WordPress version, MySQL, server disk, and PHP setup can quickly be seen in your Dashboard.
- Click Duplicator then Tools in your WordPress Dashboard menu.
- You will then be on the Diagnostic Tools page. Click the Server Settings link.
It will then drop down and list detailed information about your server settings.
How to Use the Duplicator Plugin
Now that you know how to configure your WordPress Duplicator plugin settings, we will teach you how to create a backup using the Duplicator plugin, and restore a backup once you have done so.
We will also cover how to remove stored data from WordPress.
Backup WordPress to File
The first step when using the Duplicator plugin is to create a backup of your WordPress site.
Performing backups is one of the most critical steps you should take when hosting a WordPress website since it can help you recover after a disaster. You can also use the backup to migrate your site to a different server or folder location.
Follow the steps below to create a backup using the plugin.
- After you have installed the WordPress Duplicator plugin by Snap Creek, click the Duplicator link in the navigation menu.
- On the Packages page click the Create New button.
- Enter a name for the WordPress backup, then click the Next button.
- Your website will then be scanned to see if it can be backed up successfully. Once the scan is complete click the Build button.
- Once the package has been built you can download the Installer files and Archive.
- You can also select the One-Click Download button to download both the installer.php and Archive (.zip) files at the same time.
How to Restore a Duplicator Backup
Now that you know how to make a backup of your site, we’ll show you how to restore a WordPress site backup using the steps outlined below.
This can be used to migrate your site to a new server, make a copy of your site for testing, or restore your site after a problem occurs.
First, you must create a database then upload the installer file and archive. Once you have done that, you can navigate to the installer page and begin the restoration.
- Log into your cPanel.
- Create a database, database user, and password. To do this, click the MySQL Database Wizard under the Databases heading.
Next to New Database enter a name for your database and click Next Step.
Next to Username enter a username. Enter a password next to Password, enter it again for Password (Again) and then click Create User.
On the next page, you’ll assign privileges for the user to the database. Check the box next to All Privileges and then click Next Step.
Be sure to save all of this for later use.
- Upload both files to the document root of your website.
- In a browser, enter your website address then add /installer.php to the end of the address. Such as: example.com/installer.php
- You will see the Duplicator menu come up. Click the terms & notices link to read them. Check the box to confirm that you read and accept them, then click the Next button.
- You will then be on the Install Database page, enter the database information you setup in Step 2 then click the Test Database button.
- When you see a “Success” message, click the Next button. If you do not see the “Success” message, you may need to re-upload your files to the document root of your website again.
- An install confirmation message will pop-up and ask if you want to “Run installer with these settings.” Click the Yes button.
- The WordPress Duplicator plugin will display your site Title, URL, and installation Path. Verify they are correct and make any changes if necessary. Then, click the Next button.
- Once your site has been installed, click the Admin Login button.
- Log into your WordPress Dashboard and you will see a message stating “This site has been successfully migrated!” Click the link to Remove Installation Files Now!
- You are finished when the installer files are successfully removed.
Remove Stored Data from WordPress
Once you have finished restoring your WordPress site with the Duplicator plugin, you have the option to remove your stored data from WordPress.
We will now show you how to remove all reserved installer files and build data that is used by the WordPress Duplicator plugin when backing up your WordPress site. This can free up space and make your site more secure by removing temporary files from your server.
- In your WordPress Dashboard click Duplicator then Tools in the navigation menu.
- You will then be on the diagnostic tools page. In the Data Cleanup section click the Remove Installation Files button. The install file cleanup will then run.
- Click the Clear Build Cache button.
- A message will pop-up stating “This process will remove all build cache files. Be sure no packages are currently building or else they will be canceled.” Click the OK button. You are finished when you see a message stating “Build cache removed.”