Easy methods to Restore WordPress from Backup

  • January 13, 2023
  • elkenz
  • 12 min read

Do it’s worthwhile to restore WordPress from a backup file?

Backups enable you to restore your web site in case one thing goes unsuitable. Nevertheless, restoring WordPress from a backup file shouldn’t be straightforward for rookies.

On this article, we’ll present you tips on how to simply restore WordPress from a backup step-by-step.

How to Restore WordPress from Backup

Understanding Backups and Restoring WordPress

There are other ways to create backups in your WordPress web site. One of the simplest ways to create a backup is through the use of a WordPress backup plugin.

Alternatively, it’s also possible to create a guide backup of your WordPress database and obtain your WordPress recordsdata utilizing an FTP consumer.

Restoring WordPress from backups relies upon completely on the way you created the backup. For instance, backups created utilizing BackupBuddy or UpdraftPlus might be restored through the use of the identical plugin. Equally, guide backups must be manually restored.

A number of WordPress customers don’t backup their complete web sites. As an alternative, they solely backup their WordPress theme, uploads listing, and their WordPress database. This reduces their backup dimension however will increase the steps wanted to revive the positioning.

Regardless of the way you create your backup, the essential steps are the identical.

Let’s check out tips on how to restore your WordPress web site from backup. Since we’re masking totally different restore strategies, please skip to the part that applies to you.

Observe: This information is about restoring a WordPress web site from a backup. In case you are making an attempt to maneuver your web site to a brand new area, then it’s best to take a look at our information on shifting WordPress to a brand new area with out shedding web optimization.

In case you are making an attempt to maneuver from localhost to a reside hosting account, then comply with this information on tips on how to transfer WordPress from a neighborhood server to a reside web site.

Restoring WordPress utilizing UpdraftPlus Backup

UpdraftPlus is one other widespread WordPress backup plugin. It means that you can simply backup and restore your WordPress web site.

First, it’s worthwhile to just be sure you have an entire backup of your WordPress web site created by UpdraftPlus. Subsequent, it’s worthwhile to obtain the backup recordsdata to your pc.

In case your backups are saved by UpdraftPlus on a distant storage location like Dropbox, Google Drive, and so on, then you’ll be able to obtain your backup recordsdata from these areas to your pc.

Subsequent, it’s worthwhile to hook up with an FTP consumer and delete all WordPress recordsdata. After that, it’s worthwhile to set up WordPress once more and log in to your web site.

You will want to put in and activate the UpdraftPlus plugin. For extra particulars, please see our information on tips on how to set up a WordPress plugin.

Upon activation, go to the Settings » UpdraftPlus Backups web page out of your WordPress dashboard and click on the Restore button.

Upload your backup files

Subsequent, it’s worthwhile to click on on the ‘Add backup recordsdata’ hyperlink.

After that, merely add the backup recordsdata you downloaded earlier.

Uploading backup files

As soon as your backup recordsdata are uploaded, UpdraftPlus will scan these recordsdata and can present them on the backups web page.

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

Restore backup files

This may deliver up a popup the place it’s worthwhile to click on on the restore button once more to proceed.

Make it possible for all accessible backup recordsdata comparable to plugins, databases, themes, and others are chosen.

Restoring backup files

UpdraftPlus will now begin extracting and restoring knowledge from these recordsdata.

Upon completion, you can be redirected to the success web page.

Backup restored

That’s all, you may have efficiently restored your WordPress web site from a UpdraftPlus backup.

Restoring WordPress from BackupBuddy Backup File

BackupBuddy is a well-liked premium WordPress backup plugin. When you used BackupBuddy to create backups, then this part is for you.

BackupBuddy provides a really handy method to restore WordPress from a backup. It’s worthwhile to login to your WordPress web site and go to BackupBuddy » Restore/Migrate web page.

You will want to obtain a duplicate of importbuddy.php file. Within the course of, you can be requested to supply a password for ImportBuddy. This password will likely be used whenever you restore your web site.

Download importbuddy

Subsequent, it’s worthwhile to obtain a duplicate of your backup if you happen to haven’t already achieved so. You possibly can obtain it from BackupBuddy » Backups or the vacation spot that you simply used to retailer your backups.

Upon getting the backup zip file and importbuddy.php saved in your pc, hook up with your web site utilizing FTP.

When you’ve got an entire backup of your web site, then delete all recordsdata and folders out of your server.

Nevertheless, if in case you have a partial backup, then it’s worthwhile to first obtain the recordsdata that you simply haven’t backed up. As soon as you might be certain that you’ve every thing backed up, proceed to delete all recordsdata and folders out of your web site’s root listing.

Delete old WordPress files

Subsequent, it’s worthwhile to add your BackupBuddy backup and importbuddy.php recordsdata to your web site’s root folder.

As soon as each recordsdata are uploaded to the server, go to importbuddy.php in your internet browser. It’s in your web site’s root listing, so its URL will likely be one thing like:

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

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

importbuddy password

On the subsequent display, ImportBuddy will show the backup file you uploaded. In case you didn’t add your backup file utilizing FTP, then you’ll be able to click on on the add tab to add the backup file now.

When you’ve got your backups saved on iTheme’s Stash storage service, then you’ll be able to hook up with it by clicking on stash tab now. Upon getting chosen your database, click on on Subsequent Step to proceed.

Select your backup file

ImportBuddy will unzip your backup file and present you a hit message when it has extracted the recordsdata. Click on on the subsequent step button to proceed.

On the subsequent display, ImportBuddy will ask you to supply the positioning URL and database info.

In case you are restoring a hacked WordPress web site or making an attempt to take away malware, then you do not need to make use of your outdated database.

You possibly can both drop tables out of your outdated database utilizing phpMyAdmin, or create a brand new database utilizing cPanel. As soon as you might be achieved creating a brand new database or emptying the outdated one, present your database particulars.

Then again, if you’re certain your web site wasn’t hacked, then you need to use the identical outdated database particulars.

database settings

Click on on the subsequent button to proceed, and ImportBuddy will now take a look at your database settings and import your knowledge. As soon as it’s achieved, click on the subsequent step to proceed.

Now ImportBuddy will replace your web site URLs, paths, and so on. After that, you can be requested to check your web site. If every thing is working positive, then you may have efficiently restored your web site.

Review and cleanup

On the ImportBuddy web page, click on the ‘Clear up and take away non permanent recordsdata’ button. This may delete non permanent knowledge in database and recordsdata created throughout restoration.

Restoring WordPress Database from Backup utilizing phpMyAdmin

When restoring a manually created backup, chances are you’ll come throughout two alternatives. You possibly can both create a brand new database and import your backup into it, or you’ll be able to empty your current database and import the backup.

In case you are cleansing a hacked WordPress web site, then it is vitally vital to vary your MySQL username and password earlier than creating a brand new database or importing it into an current database.

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

MySQL Databases in Cpanel

Subsequent, you can be requested to supply a reputation in your database.

As soon as that’s achieved, click on the ‘Create Database’ button.

Create new database

After creating the brand new database, you want a MySQL consumer related to that new database.

Merely scroll right down to the MySQL customers part and add a brand new consumer.

Add new database user

Subsequent, it’s worthwhile to add this consumer to the MySQL database.

Scroll right down to the ‘Add consumer to database’ part and choose the consumer together with the database from the dropdown menus after which click on on the add button.

Add user to db

Now your new database is prepared. You should utilize it to revive your WordPress database backup.

Head over to the cPanel dashboard once more after which click on on the phpMyAdmin icon.

Launch phpMyAdmin

Subsequent, it’s worthwhile to click on in your new database title.

After that, click on on the ‘Import’ button.

Importing your database

Merely click on on the ‘select file’ button to pick out your WordPress database backup file after which click on on the go button on the backside of the web page to proceed.

PhpMyAdmin will now add your backup and import it into your database. You will note a hit message upon completion.

That’s all. You’ve efficiently imported your WordPress database. Now the subsequent step is to put in WordPress utilizing your new database. When you’ve got already put in WordPress, then add your new database settings to your wp-config.php file, and you can be good to go.

Restoring WordPress Database Backup utilizing cPanel

When you manually created a WordPress database backup utilizing the cPanel in your shared internet hosting, then it’s also possible to restore that database utilizing cPanel.

Log into your cPanel account and below the recordsdata part click on on Backup.

Backup in cPanel

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

Subsequent, click on on the select file button and choose the backup file out of your laborious disk. As soon as achieved, click on on the add button.

Restore database using cPanel

Manually Restoring WordPress Recordsdata utilizing FTP

In case you are restoring WordPress to scrub up a hacked web site, you then first have to delete all current WordPress recordsdata and directories.

Solely do that in case your backup is updated, and you’ve got every thing personalized, modified, or uploaded in your web site.

When you’ve got all of your uploads and customizations, then you’ll be able to safely delete every thing in your web site utilizing Cpanel (method quicker) or utilizing FTP.

To delete all recordsdata out of your web site, login to the cPanel of your internet hosting / VPS internet hosting. Then, below the recordsdata part, click on the file supervisor icon.

File manager in cPanel

Go forward and select Webroot as your listing and proceed. The file supervisor interface will now open in a brand new browser tab. You will want to pick out all WordPress recordsdata and delete them. This fashion is far quicker.

You too can delete recordsdata utilizing FTP, but it surely’s slower. Merely hook up with your web site utilizing an FTP consumer and choose all recordsdata in your WordPress root listing to delete them.

Delete old WordPress files

Subsequent, it’s worthwhile to obtain a recent copy of WordPress from WordPress.org and extract it to your laborious disk.

Launch your FTP consumer after which add all WordPress recordsdata to your server.

Upload WordPress files

Upon getting uploaded WordPress recordsdata, you’ll be able to add a wp-config.php file out of your backup (solely if you’re certain that it’s clear and never compromised).

Alternatively, you’ll be able to rename wp-config-sample.php file in your freshly uploaded WordPress recordsdata to wp-config.php file. After that, you will want to edit wp-config.php file and enter your database info.

Don’t overlook to save lots of the file and add it again to your web site.

Subsequent, it’s worthwhile to add different recordsdata out of your backup. We’ll advocate that you simply solely add your photos within the /wp-content/uploads/ listing.

Upon getting uploaded these, go to your web site to verify that every thing is working positive.

Subsequent, it’s worthwhile to login to your WordPress admin space and begin putting in plugins you had in your web site.

Now you’ll be able to transfer on to put in your theme. When you had personalized your WordPress theme or have been utilizing a toddler theme, then you’ll be able to restore it from backup. Nevertheless, be sure that these recordsdata are clear.

Lastly, go to Settings » Permalinks and alter permalinks settings to match your web site after which replace permalinks.

Troubleshooting WordPress Backup Restore Points

There are some widespread issues that you could be come throughout when restoring your WordPress web site.

We’ve got separate guides for every of them.

Issues to Do After Restoring your WordPress Website

Upon getting efficiently restored your web site, we strongly advocate that you simply enhance your web site safety.

When you haven’t achieved so already, please just be sure you have an everyday WordPress backup with one among these WordPress backup plugins.

To safe your web site, we’ll advocate that you simply instantly change your WordPress password. In case you are working a multi-user web site, then ask all customers to replace their passwords instantly.

You too can set up an internet site firewall. At WPBeginner, we use Sucuri to watch and strengthen the safety of our web site. It screens for safety threats, they usually additionally provide malware removing service with its subscription plans. See how Sucuri helped us block 450,000 assaults in 3 months.

We hope this text helped you learn to restore WordPress from backup. You might also wish to see our final step-by-step WordPress safety information for rookies and tips on how to get a free e-mail area.

When you favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You too can discover us on Twitter and Fb.