Beginner’s Guide: How to Restore WordPress from Backup

Do you need to restore WordPress from a backup file? Backups help you restore your website in case something goes wrong. However, restoring WordPress from a backup file is not easy for beginners. In this article, we will show you how to easily restore WordPress… Read More »

The post Beginner’s Guide: How to Restore WordPress from Backup appeared first on WPBeginner.

Do you need to restore WordPress from a backup file? Backups help you restore your website in case something goes wrong. However, restoring WordPress from a backup file is not easy for beginners. In this article, we will show you how to easily restore WordPress from backup step by step.

How to Restore WordPress from Backup

Since this is a lengthy article, we have added table of contents for easier navigation.

Note: This guide is about restoring a WordPress site from backup. If you are trying to move your website to a new domain, then you should check out our guide on moving WordPress to a new domain without losing SEO.

If you are trying to move from localhost to a live web hosting account, then follow this guide on how to move WordPress from local server to live site.

Understanding Backups and Restoring WordPress

There are different ways to create backups for your WordPress site. The best way to create a backup is by using a WordPress backup plugin.

Alternately, you can also create manual backup of your WordPress database and download your WordPress files using FTP.

Restoring WordPress from backups depends entirely on how you created the backup. For example, backups created using BackupBuddy or UpdraftPlus can be restored by using the same plugin. Similarly, manual backups need to be manually restored.

A lot of WordPress users don’t backup their entire websites. Instead, they only backup their theme, uploads directory, and their WordPress database. This reduces their backup size, but increases the steps needed to restore the site.

No matter how you created your backup, the basic steps are the same.

Let’s take a look at how to restore your WordPress site from backup. Since we’re covering different restore methods, please skip to the section that applies to you.

Restoring WordPress from BackupBuddy Backup File

BackupBuddy is a popular premium WordPress backup plugin. If you used BackupBuddy to create backups, then this section is for you.

BackupBuddy offers a very convenient way to restore WordPress from a backup. You need to login to your WordPress website and go to BackupBuddy » Restore/Migrate page.

You will need to download a copy of importbuddy.php file. In the process, you will be asked to provide a password for importbuddy. This password will be used when you restore your website.

Download importbuddy

Next, you need to download a copy of your backup if you haven’t already done so. You can download it from BackupBuddy » Backups or the destination that you used to store your backups.

Once you have the backup zip file and importbuddy.php stored on your computer, connect to your website using FTP.

If you have a complete backup of your website, then delete all files and folders from your server.

However, if you have a partial backup, then you need to first download the files that you haven’t backed up. Once you are sure that you have everything backed up, proceed deleting all files and folders from your website’s root directory.

Delete old WordPress files

Next you need to upload your BackupBuddy backup and importbuddy.php files to your website’s root folder.

Once both files are uploaded to the server, visit importbuddy.php in your web browser. It is in your website’s root directory, so its URL will be something like:

http://www.example.com/importbuddy.php

ImportBuddy will now ask for the password that you created when you downloaded ImportBuddy.

importbuddy password

On the next screen, ImportBuddy will display the backup file you uploaded. In case you did not upload your backup file using FTP, then you can click on the upload tab to upload the backup file now. If you have your backups stored on iTheme’s Stash storage service, then you can connect to it by clicking on stash tab now. Once you have selected your database, click on Next Step to continue.

Select your backup file

ImportBuddy will unzip your backup file and show you a success message when it has extracted the files. Click on the next step button to continue.

On the next screen, ImportBuddy will ask you to provide site URL and database information.

If you are restoring a hacked WordPress website or trying to remove malware, then you do not want to use your old database.

You can either drop tables from your old database using phpMyAdmin, or create a new database using cPanel. Once you are done creating a new database or emptying the old one, provide your database details.

On the other hand, if you are sure your site wasn’t hacked, then you can use the same old database details.

database settings

Click on the next button to continue and importbuddy will now test your database settings and import your data. Once it is done, click next step to continue.

Now ImportBuddy will update your site URLs, paths, etc. After that, you will be asked to test your site. If everything is working fine, then you have successfully restored your website.

Review and cleanup

On the importbuddy page, click ‘Clean up and remove temporary files’ button. This will delete temporary data in database and files created during restoration.

Restoring WordPress using UpdraftPlus Backup

UpdraftPlus is another popular WordPress backup plugin. It allows you to easily backup and restore your WordPress site.

First you need to make sure that you have a complete backup of your WordPress site created by UpdraftPlus. Next, you need to download the backup files to your computer.

If your backups are stored by UpdraftPlus on a remote storage location like Dropbox, Google Drive, etc, then you can download your backup files from those locations to your computer.

Next, you need to connect to an FTP client and delete all WordPress files. After that you need to install WordPress again and login to your website.

You will need to install and activate the UpdraftPlus plugin. Upon activation, visit Settings » UpdraftPlus Backups page and click on the Restore button.

Upload your backup files

Next, you need to click on the ‘Upload backup files’ link and then uplaod the backup files you downloaded earlier.

Uploading backup files

Once your backup files are uploaded, UpdraftPlus will scan those files and will show them on the backups page.

You will need to click on the ‘Restore’ button to proceed.

Restore backup files

This will bring up a popup where you need to click on the restore button again to continue. Make sure that all available backup files such as plugins, database, themes and others are selected.

Restoring backup files

UpdraftPlus will now start extracting and restoring data from those files. Upon success, you will be redirected to the success page.

Backup restored

That’s all, you have successfully restored your WordPress site from an UpdraftPlus backup.

Restoring WordPress Database from Backup using phpMyAdmin

When restoring a manually created backup, you may come across two possible choices. You can either create a new database and import your backup into it, or you can empty your existing database and import backup.

If you are cleaning a hacked WordPress website, then it is very important to change your MySQL username and password before creating a new database or importing into existing database.

To create a new database, login to the cPanel dashboard of your WordPress hosting account and click on the MySQL Databases icon.

MySQL Databases in Cpanel

Next, you will be asked to provide a name for your database and then click on the ‘Create Database’ button.

Create new database

After creating the new database, you need a MySQL user associated with that new database. Scroll down to the MySQL users section and add a new user.

Add new database user

Next, you need to add this user to the MySQL database. Scroll down to ‘Add user to database’ section and select the user along with the database from the drop down menus and then click on the add button.

Add user to db

Now your new database is ready. You can use it to restore your WordPress database backup.

Head over to the cPanel dashboard again and then click on the phpMyAdmin icon.

Launch phpMyAdmin

Next, you need to click on your new database name and then click on the import button.

Importing your database

Click on ‘choose file’ button to select your WordPress database backup file and then click on the go button at the bottom of the page to continue.

PhpMyAdmin will now upload your backup and import it into your database.

You will see a success message upon completion.

That’s all. You have successfully imported your WordPress database. Now the next step is to install WordPress using your new database. If you have already installed WordPress, then add your new database settings into your wp-config.php file, and you will be good to go.

Restoring WordPress Database Backup using cPanel

If you manually created a WordPress database backup using the cPanel on your shared hosting, then you can also restore that database using cPanel.

Log into your cPanel account and under the files section click on Backup.

Backup in cPanel

On the backups page, scroll down to ‘Restore a MySQL database backup’.

Next, click on the choose file button and select the backup file from your hard disk. Once done, click on the upload button.

Restore database using cPanel

Manually Restoring WordPress Files using FTP

If you are restoring WordPress to clean up a hacked site, then you first need to delete all existing WordPress files and directories.

Only do this if your backup is upto date, and you have everything customized, changed, or uploaded on your website.

If you have all your uploads and customizations, then you can safely delete everything on your website using cpanel (way faster) or using FTP.

To delete all files from your website, login to the cPanel of your hosting / VPS hosting and under files section click on the file manager icon.

File manager in cPanel

Go ahead and choose Web root as your directory and proceed. File manager interface will now open in a new browser tab. You will need to select all WordPress files and delete them. This way is much faster.

You can also delete files using FTP, but it’s slower. Simply connect to your website using an FTP client and select all files in your WordPress root directory to delete them.

Delete old WordPress files

Next, you need to download a fresh copy of WordPress from WordPress.org and extract it to your hard disk.

Launch your FTP client and then upload all WordPress files to your server.

Upload WordPress files

Once you have uploaded WordPress files, you can upload wp-config.php file from your backup (only if you are sure that it is clean and not compromised).

Alternately, you can rename wp-config-sample.php file in your freshly uploaded WordPress files to wp-config.php file. After that you will need to edit wp-config.php file and enter your database information.

Don’t forget to save the file and upload it back to your website.

Next, you need to upload other files from your backup. We will recommend that you only upload your images in /wp-content/uploads/ directory.

Once you have uploaded these, visit your website to check that everything is working fine.

Next, you need to login to your WordPress admin area and start installing plugins you had on your site.

Now you can move on to install your theme. If you had customized your WordPress theme or were using a child theme, then you can restore it from backup. However, make sure that those files are clean.

Lastly, go to Settings » Permalinks and adjust permalinks settings to match your site and then update permalinks.

Troubleshooting WordPress Backup Restore Issues

There are some common problems that you may come across when restoring your WordPress website. We have separate guides for each of them.

Things to do After Restoring your WordPress Site

Once you have successfully restored your website, we strongly recommend that you improve your website security.

If you haven’t done so already, please make sure that you have a regular WordPress backup with one of these WordPress backup plugins.

For securing your website, we will recommend that you immediately change your WordPress password. If you are running a multi-user website, then ask all users to update their passwords immediately.

You can also install a website firewall. At WPBeginner, we use Sucuri to monitor and strengthen security of our website. It monitors for security threats, and they also offer malware removal service with their subscription plans. See how Sucuri helped us block 450,000 attacks in 3 months.

We hope this article helped you learn how to restore WordPress from backup. You may also want to see our ultimate step by step WordPress security guide for beginners.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post Beginner’s Guide: How to Restore WordPress from Backup appeared first on WPBeginner.

7 Best WordPress Backup Plugins Compared (Pros and Cons)

Creating regular WordPress backups is the best thing you can do for your website. Backups give you peace of mind and can save you in catastrophic situations when your site gets hacked or you accidentally lock yourself out. There are several free and paid backup… Read More »

The post 7 Best WordPress Backup Plugins Compared (Pros and Cons) appeared first on WPBeginner.

Creating regular WordPress backups is the best thing you can do for your website. Backups give you peace of mind and can save you in catastrophic situations when your site gets hacked or you accidentally lock yourself out. There are several free and paid backup plugins for WordPress, and most of them are fairly easy to use. In this article, we will show you the 7 best backup plugins for WordPress.

Best WordPress Backup Plugins Compared

Important: Many WordPress hosting providers offer limited backup services, but please remember that it is your responsibility to backup your website on your own. Do not rely solely on your hosting provider for backups.

If you are not already backing up your site, then you should pick one of these 7 best WordPress backup plugins and start using it right away.

1. BackupBuddy

BackupBuddy

BackupBuddy is the most popular premium WordPress backup plugin. It allows you to easily schedule daily, weekly, or monthly backups. It can also automatically store your backups in Dropbox, Amazon S3, Rackspace Cloud, FTP, Stash (their cloud service), and even email it to yourself.

If you use their Stash service, then you also have the ability to do real-time backups.

The biggest advantage of using BackupBuddy is that it is not a subscription based service, so there is no monthly fee. You can use the plugin on the number of sites mentioned in your plan. You also get access to premium support forums, regular updates, and 1GB of cloud storage to store your backups.

You can even use BackupBuddy to duplicate, migrate and restore websites.

2. UpdraftPlus

UpdraftPlus

UpdraftPlus is a free WordPress backup plugin. It allows you to create complete backup of your WordPress site and store it on the cloud or download to your computer.

The plugin supports scheduled as well as on-demand backups. You can also choose which files to backup. It can automatically upload your backups to Dropbox, Google Drive, S3, Rackspace, FTP, SFTP, email, and several other cloud storage services (see our step by step guide on how to backup & restore your WordPress site with UpdraftPlus).

UpdraftPlus also has a premium version with add-ons to migrate or clone site, database search and replace, and multisite support among other things. The premium version also gets you access to priority support.

3. BackWPUp

BackWPUp

BackWPup is a free plugin that allows you to create complete WordPress backup for free and store it on the cloud (Dropbox, Amazon S3, Rackspace, etc), FTP, email, or on your computer.

It is extremely easy to use and allows you to schedule automatic backups according to your site’s update frequency.

Restoring a WordPress site from backup is also very simple. The BackWPup Pro version comes with priority support, ability to store backups on Google Drive, and some other cool features.

4. BackUpWordPress

BackUpWordPress

BackupWordPress is a complete WordPress backup plugin with automatic scheduling support. It allows you to create different schedules for your database and files. The only problem is that the free version does not allow you to store your WordPress backups to a cloud storage service.

If you want to store your backups on Dropbox, Google Drive, FTP, etc, then you will need to purchase a premium extension for it. The extensions are available for each service, and you can buy the one you need or the whole bundle.

5. Duplicator

Duplicator

As the name suggests, Duplicator is a popular WordPress plugin used to migrate WordPress sites. However it also has backup features.

It does not allow you to create automated scheduled backups which makes it less than ideal primary WordPress backup solution for a regularly maintained site.

6. WP-DB-Backup

WP-DB-Backup

With more than 400,000 active installs, WP-DB-Backup is one of the most popular WordPress backup plugins. The only problem is that it only backups your WordPress database.

This means that you will have to backup your media files manually. If you do not update a site too often or do not upload images, then you can use WP-DB-Backup as your primary WordPress backup plugin.

WP-DB-Backup makes it really simple to create database backups, schedule automated backups, and restore your database. It is also a very useful tool for users who do not have access to phpMyAdmin to backup WordPress dataabase manually.

7. VaultPress

VaultPress

At WPBeginner, we use VaultPress to backup our site. VaultPress was founded by Matt Mullenweg (WordPress co-founder) and his team at Automattic.

It has recently become part of Automattic’s another product called JetPack. You will need a JetPack subscription plan to use VaultPress. There are different pricing plans with different set of features.

VaultPress offers automated real-time cloud backup solution starting at $3.50 per month. Setting up VaultPress and restoring from backups is just a matter of clicks. With some of their packages, they even offer security scans.

There are a few downsides of using VaultPress. First, it is a recurring expense that can add up if you have multiple WordPress sites. Secondly, you will have to subscribe to JetPack, get a WordPress.com account, and install JetPack plugin on your site.

Lastly, on the lower plans backups are only stored for 30-day archive. If you want unlimited backup archive, then you have to pay the $29 per month fee per website which is significantly expensive for beginners.

We are still using VaultPress because we got grandfathered in at their older pricing which was a lot more favorable.

Final Thoughts

Each WordPress backup plugin has it’s pros and cons. We use VaultPress for two main reasons. It is extremely easy to use, and it offers real-time incremental backups. What this means is that instead of backing up all of your files every day or every hour, it only creates a backup of what has been updated literally within minutes of the update. This is ideal for a large sites like ours because it allows us to use our server resources efficiently.

However if you run a small to medium size website and hate paying monthly fees, then we recommend the popular BackupBuddy plugin. Why? Because they have their own cloud storage, Stash, which makes it easy for beginners to store their backups in cloud with a matter of few clicks.

Whichever WordPress backup plugin you end up choosing, please do NOT store your backups on the same server as your website.

By doing that, you are putting all of your eggs in one basket. If your server’s hardware fails or worst you get hacked, then you don’t have a backup which defeats the purpose of setting up regular backups.

This is why we highly recommend storing your backups on a third-party storage service like Dropbox, Amazon S3, Google Drive, etc.

That’s all. We hope that this list helped you pick the best WordPress backup plugin for your site. You may also want to see our step by step WordPress security guide for beginners.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post 7 Best WordPress Backup Plugins Compared (Pros and Cons) appeared first on WPBeginner.