How To: Backup Your WordPress site to Google Drive

Published on September 12th, 2012

Last Updated on April 14th, 2021

Tags:

Share This Article

Whether you are new to WordPress or an expert, you should know that backing-up your WordPress blog is an essential step you must take after the installation of your WordPress site. Not just once but regularly to prevent loss of your work after a hosting failure, hacking attack, or even plugin failure.

Oli explained the benefits of backing-up your WordPress in his latest article “7 Lessons Learned from 7 Years of using WordPress” and I want to quote his words …

Sooner or later, something will go wrong with your site – whether that’s a hosting failure, a hacking, a plugin problem – backing up regularly will prevent any stress should this happen. Depending on the scale of your site you will want to keep an hourly, daily or weekly backup incase something goes wrong. We have looked at the Backup Buddy plugin and a free plugin to backup to Dropbox in the past. I would recommend one of these solutions in addition to the backup provided by your web hosting company.

Today’s Tutorial is about “How to backup WordPress to Google drive” before we go through the tutorial we need to know what is Google’s latest amazing service ” Google Drive”. Google Drive is a new Cloud Storage service by Google that was released on April 24, 2012. Google Drive gives all users 5 GB of cloud storage to start with, You can upgrade your plan from 5GB to 25GB by paying a small fee of $2.45/month” or 100GB for $4.99 / Month.

In this guide, I’ll show you how to use the free WordPress plugin “Google Drive for WordPress” to backup your WordPress site regularly or manually and how to store those backups on Google drive.

Install The Plugin

Download Google Drive plugin, then in your WordPress admin, visit “Plugins” > “Add New” > “Upload” and upload the file.

Activate the plugin and you will see a new menu item called “Configure Google Drive”

Configure The Plugin To Get Access To Your Google Drive

Article Continues Below

Open ” Google API Console” in the new tab so you can create Authorize client Id.

Click Create Project, Then give the project name for example “Wplift Backup” and Logo image url to show next to your project. See below.

Create client Id: Click “Next” Then the application type “Web Application” and then click more option so you able to select both

“Authorized Redirect URIs” Given by the plugin and you can find it in the plugin admin page it will be some thing like “https://yoursite.com/wp-admin/admin.php?page=configure_google&action=auth”.

and

Authorized JavaScript Origins” Which is your site address.

Click create account id then get the “Client ID” and “Client secret” as seen in the example below.

Then paste the Ids into the plugin admin page and click “Allow Access” see below.

Article Continues Below

Configure The Plugin

Now after authorizing the plugin to use Google Drive as remote backup storage you need to configure the plugin to select the type of backup you wish to have if it “Files only ” Database only” or both.

1: Backup Setting, there you can see the plugin setting whatever you need to receive an E-mail notification if the backup is done or not, BackUp Schedule ( Schedule an automatic backup on your google drive), and finally the time of next Schedule.


2: Database Setting, Where you can chose if you want to include the database in the backup or not, Exclude some tables and not include them in the database backup, Select number of database backup you want to keep in Google drive from one to three or manage the old database by “Download, Move or Delete”.


3: Manage Files,  like said before in the database setting you can exclude some files from the backup process, Set Backup Limit, and Manage old backups.

One Time Backup

This option allows you to do manual backups and you can also test if the plugin works for you or not by click”backup now” after clicking the button it will show ” Processing” and after the plugin finishes the job you will receive a notification E-mail with the backup info.

Check backups on Google Drive

After successful backup you can manage your backup files in your Google Drive account it will be something like the example below.

A team of WordPress experts that love to test out new WordPress related software, WordPress plugins and WordPress themes.