With WordPress powering more than 38% of the internet, it has now become very easy to build and maintain a website. However, there are many functions to take care of. Say you have to migrate your company’s website to a different web host. You’re not worried – after all, you have done this before.
But what if after completing the migration, you discover that some critical WordPress files have not been migrated? Unfortunately, there is no easy “Reset” or “Undo” button that could reverse this. This is why it’s important to keep the website backed up- you can restore the files and repeat the migration.
There are multiple ways of restoring WordPress websites from backup, which we shall discuss in the following sections. But first, let’s understand the various components of a website that need to be backed up and restored.
Any WordPress installation comprises various components, which are its essential building blocks. There are 4 WordPress components that you should always back up:
A WordPress backup typically contains all these four components. As a result, restoring a backup means restoring these components to the website. Let’s now look at how to perform the restore process.
You can perform a WordPress restore using any of the following methods:
We shall look at each of these restore methods in more detail in the next section. However, to perform manual restores, you first need to have:
If you have used the phpMyAdmin tool to backup your site, you can easily use it to restore the backup as well. You can either download the phpMyAdmin tool on your own or use the preinstalled tool provided by your web host provider from their control panel.
Here are the steps that you need to perform:
PHPMyAdmin can be used to backup and restore your website data.
If you are familiar with SQL commands and have created your website backups using the MySQL tool, you can restore the backup files using the same.
Here are the manual steps that you need to execute:
Note: If your database backup was *.tar.gz (for example: blog.bak.sql.tar.gz, then)
tar -zxvf blog.bak.sql.tar.gz
Note: If your database backup was *.bz2 (for example: blog.bak.sql.bz2, then)
[email protected]:~/files/blog> bzip2 -d blog.bak.sql.bz2
[email protected]:~/files/blog> mysql -h mysqlhostserver -u mysqlusername -p databasename < blog.bak.sql Enter password: (enter your mysql password) [email protected]:~/files/blog>
With that, you can restore your database backups to your WordPress website.
While both of these manual methods are efficient, they are only useful for restoring WordPress database files. You need to perform some extra manual steps to restore other WordPress components from the available backup. Additionally, to perform manual restores, you should have sufficient technical knowledge to execute it smoothly on your system and troubleshoot if any issues crop up.
A better backup and restore option for novice or non-technical WordPress user is automated restores using a WordPress backup and restore plugin tool.
Let’s look at how you can use the BlogVault plugin to restore a backup. It creates and stores multiple versions of your website backups in a safe and independent location. During the restore process, you can select any of these backup versions to restore on your website.
To perform an automatic restore:
BlogVaults restore process is simplified yet detailed; you can choose which backup version you want to restore.
BlogVaults restore process is simplified yet detailed; you can choose which backup version you want to restore.
Alternately, if you want to restore another version of the website backup:
Choose the folder where your WordPress is installed. Usually it is in the “public_html” folder.
That’s it. This process is easy and faster than the manual procedures. Besides, you can perform it yourself without any technical assistance.
Here’s something else you should know – Just like any other WordPress file, backup files can also be corrupted or damaged. Restoring corrupted backup files can further damage your website. How do you prevent this?
A simple solution is to create a staging site and test the backup you want to restore. In case of BlogVault, you can use its “Smart Backup Test Restore” functionality which directly loads the last backup version on a staging site.
You can also use plugins like WP Staging or Duplicator to create a staging site. Once you are satisfied, you can go ahead and merge the backup with the live website.
In the current online world, one can never be too careful when it comes to their website. Ensuring that it is backed up is vital to the health of a site. It acts as a safety net against data loss and minimizes downtime. But what’s a backup if it cannot be restored?
For website backups to be useful in the event of any website crash, WordPress users should be able to access and restore their backups in as little time as possible. While it is possible to do this manually, it usually is a complex procedure which requires time and patience. Even the smallest mistake can necessitate redoing the restore.
In such a case, it is best to opt for a backup plugin which has simplified the restore process. Automated tools provide user-friendly restore processes that can be executed faster and without much hassle.