How To Automatically Backup Your WordPress Site To Google Drive Using UpdraftPlus Plugin

You probably know that, making regular backups of your website is really a good thing to do. But, how cumbersome is that, if you have to manually perform the backup yourself, regularly and repeatedly?

There is a better way to automate things, and have your website backups stored to your Google Drive or other popular cloud storages. In case things go wrong, you can simply restore it to it’s previous state.

UpdraftPlus plugin allows you to schedule your website backups; daily, weekly, monthly, even every after 4 hours. You can then choose a remote storage where you want your backups kept; Google Drive, Dropbox, S3 Amazon and One Note, etcetera.

In this guide, I’m choosing Google drive because it’s the most complicated to connect. In case you choose to backup your website to other drives like Dropbox, it’s pretty easy and you won’t need to follow these procedures.

Using UpdraftPlus to backup and restore your wordpress sites is free. Migrating/Cloning a website requires you to purchase a Migrator add-on. However, a paid version is definitely worth it.


Install & Activate UpdraftPlus plugin.

updraftPlus

From your WordPress dashboard, head over to Plugins. Search, Install and Activate UpdraftPlus plugin, and you are ready to start backup process.

locating_ud_pluginYou can also download the plugin and manually upload it to your wordpress installation. Here is a link to download this plugin.

After you have activated the plugin, hover Settings from your WordPress dashboard and you will be able to see UpdraftPlus Backup right there. So, click to start the plugin.

You’ll see a window similar to one I provided in the screenshot below (You haven’t made any backup, so your ‘Existing Backup’ will be 0 of course).

updraftplus_backup&restor

Though you can straight away backup your website by clicking on Buckup Now button, I suggest you consider setting up your backup settings.

So, click Setting tab above the buttons to start setting up your plugin (See screenshot below).


Settings

updraftPlus_settings

As you can see from the screenshot above, the first part of settings allows you to choose your preferred backup interval. You can also exclude or include plugins, themes and uploads by simply checking or unchecking the little boxes against them.

If you are backing up for the first time, you will want to leave the “Include in files backup” section as it is by default.

Connecting Your Google Drive to UpdraftPlus

While still on Settings, you will want to scroll the page down until where you see “Copying Your Backup To Remote Storage“.

Just below this, you will see “Choose your remote storage“. Click drop down menu to choose Google Drive (See screenshot below).

remote_storage_ud_chosing_google_drive

After selecting Google Drive as your remote storage, your screen should change an appear like in a screenshot below.

copy_buckup2remote_storage

Now, the only confusing part is configuring your Google Drive API to work with Updraft plugin. However, the following steps should guide to do this quite easily.

Step #1: Visit Google API Console & Create New Project.

google_console_create_project

The very first step is to visit Google Developers Console and create a new project. Click this link to visit your Google API Console, however, you should be logged into your Google account.

Press the blue “Create project” button and you should see the following form appear:-

google_console_new_project

Go ahead and type project name as “UpdraftPlus“. There is no need to worry about project ID, you can leave it to what is already generated. So, go ahead and click the “Create” button to Create the project.

This will lead you to a new window, which takes us to the next step.

Step #2: Activate the Drive API

On creating a new project, a new window like one below will show up…

google_api_activation-1

On this window, look at the left menu and click on “APIs & auth” to expand this section.

Under API & auth, click on “APIs”. See screenshot below.

apis&auth

On clicking APIs, a new window showing popular APIs shows up, and above them you can search for an API using a search input.

In the search field, type in Drive to find the Drive API. See image below.

drive_search

Typing drive in the search field, lets Drive API to show up in the search results.

Click on “Drive API” to open activation page below

enable_drive_api

To activate the API, click Enable API blue button.

Step #3: Setting up Product Name and Email Address

From left hand menu, choose Credential below APIs & oauth.

On the new screen that shows up, you will want to look at the tabs up and switch to “AOuth screen conscent“.

You will then have to choose your Email and provide Product Name.

You can leave the rest of the fields empty. See image below.

oauth_consent_screen

Click Save button at the bottom of the form to proceed.

Step #4: Setting Up API Access Credentials

On clicking the Save button from the previous step, a screen (like one below) will show up.

access_credentials

Click on the drop down menu “Add credentials” and select “OAuth 2.0 client ID” from the menu.

This will bring up a screen where you have to choose Application type.

From the option provided, choose “Web Application“.(See screenshot below).

create_client_id_part-1

This form requires you to provide the following:-

  • Name: You can give it any name, such as UpdraftPlus.
  • Authorized JavaScript origins:

This should be your website address. http://www.demo2.wpchap.com for my. You should have your own.

Avoid adding a forward slash at th end of the address, for instance http://www.demo2.wpchap.com/.

  • Authorized redirect URIs

To get this, you will have to return to UpdraftPlus plugin in your WordPress Dashboard.

remote_storage_ud_part1

Copy this code and paste it in this field. (See screenshot below).

create_client_id_part-2

Click Create button to create your application.

If you have provided correct information, you should see a screen like one below:

oauth_client

This is the information required by UpdraftPlus plugin in order to start saving your backups to the Google Drive.

Completing UpdraftPlus Settings to Connect to Google Drive

setting_up_updraft_google_drive

Copy client ID from last step and paste it in Google Drive Client ID.

Similarly, copy the client secret code and past it in Google Drive Client Secret.

Save changes by clicking the Save Changes button at the bottom.

Completing authentication with Google.

After saving changes, you have to return to the plugin settings and complete authentication with Google.

setting_up_updraft_google_drive

To complete authentication, click on the link (see screenshot above) and the screen below will show up.

allow_updraft_to_use_google_drive


Final Remarks

Click Allow button and that is it!

You just finished the hardest part and your the plugin is now ready to save your backups to your Google Drive.

Depending on how you scheduled your backups, Updraft plugin will then automatically store a copy of your backup to your Google drive.

A folder called UpdraftPlus is created on your Google drive by the plugin, and backups stored in it.

google_drive_updraftplus

Just to remind you, this plugin allows other cloud drives too. Just in case you find setting up Google drive complicating, you can choose to use other drives like Dropbox.

However, with the steps above, you should be able to connect your to Google drive without much trouble.

Please leave your comment or questions below and I will be happy to read and reply to you.

Get Free WordPress Checklist

Going to launch? Here’s a full WordPress checklist for a successful launch!

Share this post with your friends

Daniel Emunot

Daniel Emunot

Over 5 years ago, I had no idea on how to use WordPress. Now I professionally build websites for my clients using WordPress. Over the past years I have gained experience and therefore, I spend my spare time writing articles that help beginners skip the Jibber Jabber and quickly start launching websites in the shortest time possible.

6 thoughts on “How To Automatically Backup Your WordPress Site To Google Drive Using UpdraftPlus Plugin”

  1. Hi,

    Thank you for writing this great post about UpdraftPlus, it’s very informative (like the cover photo too). As you mention in the introduction, UpdraftPlus is compatible with a wide range of remote storage locations other than google drive all of which can be found here: http://updraftplus.com/shop/
    Thanks,
    Abbie
    Marketing Manager @ UpdraftPlus

  2. Hi,

    Thank you for writing this great post about UpdraftPlus, it’s very informative (like the cover photo too). As you mention in the introduction, UpdraftPlus is compatible with a wide range of remote storage locations other than google drive all of which can be found here: http://updraftplus.com/shop/
    Thanks,
    Abbie
    Marketing Manager @ UpdraftPlus

Leave a Comment

%d bloggers like this: