Without any doubt, WordPress is the most popular and easy to use platform for making blogs and websites on the internet. Despite its popularity and benefits, there is a chance for sudden hack and crash of the site. Even though the WordPress crashes or Hack happens very rarely, they cause plenty of problems when they occur.
Typically as a blogger, you spend most of the time in managing your website or blog. So imagine how awful it will be if you lose all that hard work. Just like saving your things and important things, it is vital to keep copies of your website, so that you can restore it later.
Fortunately, there is more option to restore your site without loss of content. If you need to know, how to retrieve and restore data’s from your backups manually? Don’t Worry; Here is the handy guide to guide you in your work.
An Ultimate Guide To Restore WordPress From BackUp
Most of the newcomers in WordPress install plugins for backup and restore to ease the process, but web experts shouldn’t do that because too many plugins will slow down your site performance.
Good news to those of you who need to restore WordPress process without a plugin and that is the “Manual Approach”. The manual approach gives you total control n your WordPress site. Below, I have shown the manual restore process in detail. Take a look!
Step 1: Backup Your Site files
The very first thing you need to do in restoring is having a backup of your site file it can be done either manually or by use of plugins. If you use plugins for backup, it will automatically take backup by scheduling whereas in the manual method you have to perform a full backup weekly and a database backup every day.
What needed to be back up???
Before stepping in, you should know what are the things exactly required for backup to perform successful restoration, they are
Database – Database plays a crucial part in the website as it contains all the raw data of your sites such as posts, pages, comments and many.
WordPress files – It includes your website themes, plugins, images, code files, etc. and these will be located in your public_html folder
Generally, these two elements are the two most important part to be backed up on a regular basis. With your wp root files and database file, you can restore or migrate your site to any hosting account.
To Backup Your Database
Luckily, the WordPress database backup process is very simple and it can be done using a handy tool called phpMyAdmin, which is usually available through your cPanel of your hosting.
- Log in to your cPanel and click the phpMyAdmin icon in the Databases section.
- In phpMyAdmin you will see a list of database names, Simply select all the databases
- Then click the Export tab at the top of the screen.
- In the proceeding page, choose export method as “Quick” and the Format as “SQL”.
- click “Go” button. Backup downloads your database file to your computer.
To Backup Your WordPress files
Like the database, WordPress file data backup process is also simple, let us start with by signing into cPanel account.
- Navigate and click on the “File Manager” icon under the “File Management” section.
- A pop-up will appear and in that select Web Root (public_html/www) and click Go.
- In the new window, it shows all your files, right-click on them and select “Compress”.
- Choose the compression type as “Zip Archive” and then click Compress File(s).
- This will create a file called wp-content.zip and place it within your root folder.
- Simply double-click on it to begin the download.
Note: If you think that this manual backup process is very hard, you can automate this process by installing some WordPress backup plugins. All you have to do is install your favorite WordPress backup plugin and to configure few settings.
Step 2: Restore WordPress Database from backup
In order to do so, you need to login to the cPanel and then install the WordPress for your website to access the phpMyAdmin. In your cPanel scroll down to the database section and click phpMyAdmin.
Your old database no longer exists, and hence you have to create a new one, so provide a name for your database and hit create button. If your database does still exist, you need to click on it and “Drop” all of the remaining tables within. Once you have created the database, click on the “Import” option on the top of that page. Do you remember the database file you saved earlier? Choose that file for backup.
That’s it! If you try to access your site now, you can find that the content of your site has been restored. But your themes, plugins, and media will all still be missing. So continue the next step.
Step 3: Upload Files To Your Site Via FTP
As we said earlier in the backup you will get databases and root files; the databases are properly uploaded and installed via phpMyAdmin. Now it’s time to restore the data, and it can be done via FTP (FileZilla), the file manager provided by the hosting company.
Now, Login to your website via your FTP account using your hostname, username, password, and port. And navigate to the root directory. There you can find a comprehensive list of files and folders make sure to delete all existing files.
If you check your website, it will show a blank page as there are no files on your server. Now you can upload your downloaded WordPress root files to your server. Initially, zip the source files as public_html.zip file
- Sign into cPanel, select upload from the file manager menu
- From there browse for public_html.zip file
- Confirm that you want to upload the file and then refresh
- In the end, select the zipped file and hit “Extract” to unzip the files
- To confirm it works visit your website, That’s it!
Congratz! You have just restored your WordPress site from backup successfully. It simple, right? Now your site will be restored and function as the former site. The process seems tedious for the first time only and then it will take only a few minutes.
Backing up your site regularly is much important as you can restore whenever you lose your data. But knowing how to restore that backed up data is so important to regain the original state. That’s why I have provided this exclusive guide with different restore methods.
Do you have any other method for restoring your WordPress site? Kindly share with us…