backup wordpress on google drive

How I Backup My WordPress Sites to Google Drive using Free Plugin, Must Read…

A website is a digital asset that needs to be protected from any disaster. Can you imagine after building your website for years and it contains hundreds or thousands of content suddenly gone because of hardware broken on your hosting provider? What would you do? You will need to restart everything from the beginning, and this will cost you a lot of time, money, and frustration.

To mitigate this kind of problem you need to have a backup that works and is ready to be restored anytime.

Not to keep backups on external storage.

Recently one of my websites cannot be accessed, after I check with the hosting company they said that the database is somehow gone, and no further action from their end.

From here I try to fix the problem myself. I tried to restore yesterday’s data but still cannot be accessed. I tried 1 week and 1 month ago data but still not working.

After checking I found that the tables in the database are corrupted. At this point I regret that I save my backup files on the hosting server and not using external storage.

I finally found a year ago backup data on my laptop which is not good but still better compared to starting from scratch.

This incident makes me realize that it is very important to store working backup files somewhere else outside the hosting server. After searching for the perfect plugin to do this job, I decided to use Updraftplus and configure it to use Google Drive as external storage to keep the backup data.

Here are the steps to configure Updraftplus plugin (free version) to backup data using Google Drive as external storage.

After installing and activating, open your Updraftplus dashboard.

1.  Open the Setting tab, files backup, and database backup I set it to weekly as I don’t update the site every day and retain 3 copies (means up to 3 weeks behind) of backups. You can change this for your own needs.

upfraftplus settings1

Scroll down and you will see Google Drive folder name is UpdraftPlus and we cannot change this in free version. Make sure the backup includes plugins themes and uploads folder.

upfraftplus settings2

Scroll down and checked the option email, as it will let you know when the backup successful or failed, and hit the Save Changes button.

upfraftplus settings3

2. On Backup / Restore tab, you want to make sure when the next backup will happen. We cannot change the backup time in free version. Click the Backup Now button to start the backup right away.

upfraftplus settings4

You see the backup files are divided into 5 sections: Databases, Plugins, Themes, Uploads, and others.

Steps to restore from the backup files on Google Drive

The restore steps are also an important part as they will be useless when you cannot restore your backup files. In this post, I will restore the backup data to my local webserver using Laragon.

Laragon is a portable, isolated, fast, and powerful universal development environment for building and managing various web applications based on PHP, Node.js, Python, Go, and Ruby. It is a single executable file that can be installed on Windows, macOS, and Linux.

1. Install WordPress on Laragon. When you install WordPress on Laragon and give it a name, it will add .test extension. So for may case I type yunarwinardi and it will become yunarwinardi.test
When restoring to a different name it will be considered as migration and UpdraftPlus will warn you about this and you will need a migration add on.

2. Install UpdraftPlus plugin on the new WordPress installation.

3. Restore the backup files

Open the Backup / Restore tab, scroll down and click Upload Backup files

restore1

Choose all backup files you downloaded before.

restore2

Click the Restore button.

restore3

Choose the components you want to restore, as we restore / migrate it to new WordPress installation, then we need to choose all: Plugins, Themes, Uploads, Others, and Database.

restore4

restore5

restore6

restore7

The error above is not an error during the backup process but was caused by a corrupted file that we downloaded, don’t worry just re-download and make sure the file is good by trying to open that zipped format file. If you can open the file then the file is good.

 

I already tried this and the website was restored successfully.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *