Rehmat Alam A blogger who has fallen in love with coding! Here at, I share things that relate to coding, servers, E-marketing, and other related fields.

Using Google Drive With WordPress via UpdraftPlus Backup Plugin

2 min read

UpdraftPlus – Backup/Restore is undoubtedly the best online backup solution for WordPress blogs which comes with many handy features including support for cloud services like Google Drive, Amazon S3, DropBox and many others. In this tutorial, I will guide you through the procedure of integrating Google Drive free cloud storage with your WordPress blog using UpdraftPlus. I’m recommending Google Drive as it is reliable, flexible and free at the same time. Google Drive gives you a free cloud storage of 15GB which is more than enough for keeping any personal or small business blog backups. If you need more, you can upgrade the storage too. In addition, the service is being maintained by Google so quality can be imagined.

So to keep your backups at Google Drive, you need to follow below instructions. Read the instructions carefully to ensure that everything works fine.

Integrating WP with Google Drive Online Storage

1# Install UpdraftPlus Plugin

In first step, install UpdraftPlus – Backup/Restore plugin by either searching it in plugin directory from your blog’s admin dashboard or by downloading it from After installing the plugin, activate it and then navigate to its settings.


2# Configure Google Drive

Leave the plugin settings page open, open a new browser tab or window and go to your Google Drive account at Log in using your Google ID credentials and create a new folder for keeping your backups. Name it as “My Blog Backups” or something else as you wish.


Once the folder is created, it will be displayed in interface. Now click on created folder name and open it.


After creating the folder, open it and copy its access URL from browser address bar.


Next, go to UpdraftPlus settings page in your WordPress blog and scroll down unless you find a headline “Copying Your Backup To Remote Storage”. Under this, select Google Drive.


After selecting Google Drive as remote storage, scroll down to the configuration area as shown in below screenshot. Now paste the folder URL (which you have copied earlier from Google drive page) in last field (Google Drive Folder ID field).

Now you need to obtain two more values from Google drive. First is Google Drive Client ID and the second is Google Drive Client Secret. To obtain and configure these, visit and create a new project. Name the project as “Blog Backups” or something else.


After creating the project, open it and go to Registered apps under APIs & auth section and register a new app


Write “Blog Backups” as new project name, select Web Applications as platform and register the app


Once the app is registered, expand OAuth 2.0 Client ID section, copy the details (Client ID and Client Secret) from there and paste in concerned fields at UpdraftPlus settings page on your blog


Next, you need to copy Web Origin and Redirect URLs for your app. You can obtain these URLs from UpdraftPlus settings on your blog. Copy as Redirect URL and or as Web Origin URL. Go back to the aap page you created earlier and paste these two URLs in Google drive application under OAuth 2.0 Client ID section and click Generate button. Replace green highlighted URLs with your blog URL. (The redirect URL may change in upcoming versions of UpdraftPlus. If my suggested URL doesn’t work, look for redirect URL in plugin settings page).


Now switch to plugin settings on your blog again and save its settings by clicking the Save Settings button at bottom of the settings page. After saving settings, the page will reload. Now follow the authentication link in UpdraftPlus settings page as shown below.


Once you will follow the authentication link, a new page will open at Google asking you to allow the access. Accept the authorization by clicking Accept button. After acceptation, you will be redirected to plugin settings page and then you can configure the backup schedule and more.


Now you have completed the authorization and have connected your Google Drive free cloud storage with UpdraftPlus, so the plugin will send backup data there. Your worries will end here as Google Drive will take a good care of your data and there is no fear of losing anything. Just configure the backup schedule from the same settings page of plugin and forget about your blog’s safety. UpdraftPlus will keep sending the backup at your defined schedule automatically and you can restore everything to last backup if something goes wrong.

If the tutorial didn’t make you understand about the configuration of UpdraftPlus with Google Drive, you can ask me in comments or can contact me via contact form. I will help you directly in solving issues if any.

Rehmat Alam A blogger who has fallen in love with coding! Here at, I share things that relate to coding, servers, E-marketing, and other related fields.

PHPMailer: Called Mail() without being connected cPanel/WHM

PHPMailer is the most trusted PHP class to send emails that provide a complete set of features to enable you to send emails the easy...
Rehmat Alam
1 min read

How to bulk delete posts by a user in…

vBulletin is the most powerful forum software out there but sometimes its complex (or I can say that the ugly) administration control panel makes...
Rehmat Alam
1 min read

How to Backup and Restore a Large MySQL Database

phpMyAdmin is the most familiar tool for database management on small and medium-sized websites and blogs. This free tool makes the task of database...
Rehmat Alam
1 min read

8 Replies to “Using Google Drive With WordPress via UpdraftPlus Backup Plugin”

  1. Thanks Rehmat brother, I have just setup updraft plugin on my blog. Since its been more than 6 months and i have no backup of my site.. 😛

  2. how do you restore from the backup? there is one zip called db and it asks for the extension when I try to unzip it.

    1. Hi Shelley,
      Are you trying to restore the backup manually? Use UpdraftPlus plugin for that purpose. It will restore it automatically. You don’t need to unzip anything. If UpdraftPlus is configured to access the backup file, then it will restore the backup itself. Simply click Restore button.

    1. Then do a fresh install of WordPress on your domain, install UpdraftPlus plugin, activate it and configure it the way it was before. Then restore the content. It will bring your blog back to the state of most recent backup. If you can’t do it by yourself, drop an email at rehmat (at), I’ll guide you further.

  3. Hi Rehmat, Very detailed and timely post. Best instruction I have seen for connecting to Google Drive. Most are cryptic or so out of date as to be dead ends.
    Only issue I had was in using redirect “. . /wp-admin/options-general.php?page=updraftplus&action=updraftmethod-googledrive-auth” which caused an error.
    So I used one supplied by Updraft in otherwise brief instructions being, “wp-admin/options-general.php?action=updraftmethod-googledrive-auth”.
    Not sure if this is a variation or what!

    1. Hi John, it is good that the tutorial helped you a little :). Thank you for mentioning the bug related with redirect URI, I’ll edit the post. Again thank you for leaving your response and letting me know about the bug.

Leave a Reply

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