How to Restore WordPress from Backup – Step by Step Guide

In this WordPress guide, I will teach you how to restore a WordPress site from a backup. Every WordPress site consists of 2 types of backup – one is WordPress database and the other is WordPress files.

Creating and restoring WordPress backup is a simple task if you follow the proper guidance. In this article, I will show you different ways to restore WordPress site to the previous date.

For any WordPress website, you can easily backup WordPress database manually and WordPress files can be downloaded using FTP. First, I will show you how to restore MySQL database using Cpanel or phpMyAdmin. Then, you will learn to restore WordPress files using FileZilla(FTP).

Points to be noted: Screenshots shown are taken using Hostgator dashboard. Depending on your hosting company, images may or may not be similar.

Restore WordPress database backup using Cpanel

This is the easiest to way to restore WordPress database backup. Most hosting companies provide this functionality in all their hosting plans. So, if you created your backup with Cpanel, then you’ll have an option to restore it.

Step 1 – Login to your hosting Cpanel account. Under Files, Find Backup option and open it.


Step 2 – Scroll down to find Restore a MySQL Database Backup.

restore MySQL database backup

Step 3 – Click on Choose file to select the backup file from your computer. Now, click the Upload button as shown in above screenshot.

Your WordPress database will be restored back. If your hosting provider doesn’t allow the backup feature, follow the below alternate method to restore the database.

If you are fixing a WordPress website after it has been hacked, then it is recommended to reset your WordPress password before going through the WordPress site restoration process.

Restoring Database backup using phpMyAdmin

Follow the steps below to restore your WordPress MySQL database using phpMyAdmin.

Step 1: Login to your hosting Cpanel account.

Step 2: Under “Database” section, open phpMyAdmin.


Step 3: phpMyAdmin window will open in new tab. Select your database.


Step 4: You’ll see the list of tables present in your database. At the top menu bar, you’ll see “Import” button. Click it.


Step 5: On the next screen, click on ‘Choose file’ button to select the backup(database) file from your computer.


Step 6: Finally, click ‘Go’ button at the bottom.

Your backup will be uploaded and restored back. After restoring your site database, follow below guide to restore your WordPress files back to the server.

Restore WordPress Files using FTP – FileZilla

To restore your WordPress files using FTP, you must have a backup of your WordPress files downloaded to your computer. If you don’t know how to download files using FTP, go to this section on how to manually backup WordPress files using FTP.

For example – If your WordPress site is hacked and compromised, then you would want to restore your Website to the previous date when everything was under your control.

You can do so by using the backup file you created using FTP. That’s why it is important to manually backup your WordPress files regularly using an FTP Client software like FileZilla.

Now, you have all your WordPress backup files with the latest customization. Let’s move to the next step to restore them.

Read this article to learn how to use FTP to upload WordPress files.

  • Connect your Website to an FTP client. Install FileZilla Client for an FTP connection.
  • Username, password, and host(your domain name) can be found in the mail sent to you by your hosting company at the time of registration.
  • Upload backup files from the computer to the server.
  • Use drag n drop feature to upload WordPress files.

You should have a clear knowledge about placing/uploading files at their correct location. i.e theme folder must be uploaded to wp-content/theme/, plugins in wp-content/plugins, images in wp-content/uploads.

That’s it. You have successfully learned to perfectly restore WordPress from backup.

If you get any error after restoring your WordPress website, share your problem in the comment below. I’ll try to help as much as I can.

Please share the article with your friends and colleagues using the below social icon.

Add a Comment

Your email address will not be published. Required fields are marked *