Backup and restore a WordPress website

by | Sep 17, 2022

🎯 What’s the goal?
To successfully enable a backup solution for your WordPress Website and allow you to always restore your website from it.
⚠️ Why does it matter?
Critical issues can arise either through a mistake by your web hosting company, a faulty plugin or theme, a corrupted upgrade and many more (hacking). Having a solution that allows you to recover your hard work and get your website up & running from a backup in less than an hour is critical.
🏁 What’s the result?
Your WordPress creates backups of your website to selected cloud services, on a regular basis, and you are able to restore your website from those files.
⌚ When do you do this?
A backup solution should be installed as soon as possible. Restoring from a backup should only be used if necessary as the process may cause data loss itself.
βœ… Any special requirements?
This SOP only works for WordPress websites.
πŸ™‹β€β™‚οΈWho should do it?
The person responsible for managing your website.

πŸ‘‰ Where this is done: IIn your WordPress Admin panel.

⏳ How long will this take? 20 – 45 minutes

Now let’s secure and store files of your website
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

Environment setup

Installing UpdraftPlus WordPress Plugin

  • β€œLog In” to your WordPress Admin Panel.
  • On the left-side menu navigate to β€œPlugins”, then click on β€œAdd New”.
  • Type in β€œUpdraft” in the Search Box.
  • In the search results, you should find UpdraftPlus WordPress Backup Plugin by UpdraftPlus.com and DavidAnderson
  • Click on β€œInstall Now”.
  • Then, on β€œActivate”.

Configuring UpdraftPlus WordPress Plugin storage

  • Once you log in to your WordPress Admin Panel,
    click on β€œSettings” on the left side menu.
  • From there navigate to β€œUpdraftPlus Backups”.
  • Choose the β€œSettings” tab.
  • The first option you can adjust to your preferences is β€œFiles backup schedule”.

Your files do not include your website content, it only includes files and folders on your server (e.g: Your plugin files, your theme files, your uploaded images, etc)

  • You can set if you want the backup to take place in predefined time intervals ( e.g: if you set this option to β€œDaily”, your site Files backup will be performed automatically every day) or you can leave it to β€œManual” so you will have to do it manually.
  • Then there is an option that allows you to set how many backup files you want to store at one time (e.g: if you set this to β€œ3”, every 4th backup will overwrite the oldest one).
  • The second option that you can adjust is β€œDatabase backup schedule”.

Your database does not include your entire WordPress website, instead, it will include, for instance, your Blog Posts, Pages, Comments and some settings.

  • For this option, you can adjust the same parameters as the previous one.
  • Finally, you should choose your β€œRemote Storage” for your backup files.

You can choose more than one storage. For this SOP we will choose β€œGoogle Drive”.

  • Select the desired storage option by clicking on it. In this case, this will be β€œGoogle Drive”.
  • You can rename Google Drive folder that will be created for storing your backup files.
  • Then scroll down and click on β€œSave Changes”.
  • β€œRemote storage authentication” pop up window will appear. Click on the provided link.
  • Sign In with your storage provider account (In this case Google).
  • Click on β€œAllow”.
  • You will be redirected to the last step of verification. Simply click on β€œComplete Setup”.
  • You should see the β€œSuccess” notification.

Creating a backup file with UpdraftPlus WordPress Plugin

  • On the left side menu of your WordPress Admin Panel choose β€œSettings”.
  • Then click on β€œUpdraftPlus Backups”.
  • Choose the β€œBackup / Restore” tab.
  • Click on β€œBackup Now”.
  • A pop-up window will appear. You should leave the first three options β€œselected”.

You can enable the last option if you want to allow this backup to be deleted ONLY manually (e.g: if you create β€œthe main backup” as a last resort option).

  • Then click on β€œBackup Now”.
  • Wait for the backup process to end.
  • Now your newly created backup should be visible on the β€œExisting backups” list. You can even download it directly from here (β€œclick to download”).

You can always download your backup files directly from selected cloud storage.

Restoring your WordPress site from the backup file

  • Once you log in to your WordPress Admin Panel, click on β€œSettings” on the left side menu.
  • Click on β€œUpdraftPlus Backups”.
  • Choose the β€œBackup / Restore” tab.
  • Scroll down to β€œExisting backups” list.
  • Find the backup file you want to use and click on β€œRestore” next to it.
  • Now choose the components to restore on your site.
  • For example, if you want to restore your β€œDatabase”, select it.
    You can choose multiple components.
  • Click on β€œNext”.
  • Your backup file will be downloaded.
  • After downloading, click on β€œRestore”.
  • Wait till the end of the restoration process.
  • Once β€œFinished” your site should be restored!

There you have it! Now if something goes wrong with your website you can always try to restore it to the previous state. Trying new features is always easier when you don’t have to worry about losing your content. 

Backup and restore a WordPress website

🎯 What’s the goal?To successfully enable a backup solution for your WordPress Website and allow you to always restore your website from it. ⚠️ Why does it matter?Critical issues can arise either through a mistake by your web hosting company, a faulty plugin or theme, a corrupted upgrade and many more (hacking). Having a solution […]
You May also Like: