Creating and restoring WordPress backup is a simple task if you follow the proper guidance. In this tech guide, I will show you different ways to restore WordPress site to the previous date.
Users can easily create a backup of their WordPress site without paying any money to a web developer or purchasing a plugin to for you. And, you can easily restore your site to the previous build.
There are 2 way you can restore a WordPress i.e by using Cpanel/phpMyAdmin or by downloading files from the server.
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 your WordPress database. Most hosting companies provide this functionality in all their hosting plans. So, if you created your backup with Cpanel, then you’ll also 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.
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 mentioned below to restore the backup.
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 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.
If you’re a newbie to FTP and don’t know how to setup your FTP account for free, then read this simple guide on how to use FTP for WordPress.
- 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 restore WordPress site 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.