Backing up WordPress with Google Drive
Backing up your WordPress site to Google Drive is an excellent idea for any website owner. Storing backups off of the server helps to protect the integrity of the backups. This insures that server issues or successful hacks will not affect the backups. In this article, we will show you how to back up your WordPress site using the UpdraftPlus plugin and a free Google Drive account.
Installing the UpdraftPlus plugin
First, you will need to be logged into your WordPress admin dashboard.
Now that you are logged in, hover over Plugins, then click Add New.
In the search box, enter UpdraftPlus - WordPress Backup and Restoration and click Search Plugins. After searching, you should be presented with your search results.
On your search results, there should only be one plugin listed. Click on Install Now. WordPress will then automatically take care of the download and installation of the UpdraftPlus plugin. Once complete, be sure to click Activate Plugin to activate it.
Configuring your WordPress backups to Google Drive
Before starting, you will need to be within the UpdraftsPlus settings page. To get there, hover over Settings within your WordPress admin dashboard, then click on UpdraftPlus Backups.
On your UpdraftsPlus settings page, scroll down to the heading labeled Copying Your Backup To Remote Storage. Under this heading, you will see a dropdown labeled Choose your remote storage. Use the dropdown box to select Google Drive.
Setting up your Google API keys
To back your content up to Google Drive, you will need to use the Google API Developers Console to generate OAuth credentials. If you are not familiar with generating OAuth credentials from Google, take a look at our article on generating Google API keys.
Your application will be using the Drive API, so be sure to turn it on within the APIs section in your Google Developers Console. The following are the settings that you will use when generating your new Client ID:
Application type: Web application
Authorized redirect URI: This is provided to you within your UpdraftPlus settings page and will look something like http://example.com/wp-admin/options-general.php?action=updraftmethod-googledrive-auth
Now that your credentials have been generated, you will simply need to input them into the UpdraftPlus settings page. Jump back over to the Google Drive section of the UpdraftPlus settings, and copy/paste your client IP and client secret keys into the fields labeled for them. Once these are in place, click the Save Changes button at the bottom of the page.
When your Google API key settings are saved, click the link labeled Authenticate with Google on your UpdraftPlus settings page. Upon doing so, you will be prompted to log into your Google account. After logging in, you will be prompted to accept the permissions that your WordPress site needs to interact with Google Drive. After accepting these permissions, you will be taken back to your WordPress dashboard in the UpdraftPlus settings page.
Backing up your WordPress site to Google Drive
Manually backing up WordPress to Google Drive
As you have followed the previous steps, your WordPress site is all set up to back up to Google Drive. To backup your content, click the button labeled Backup Now at the top of the UpdraftPlus settings page. Once this is clicked, a window will pop up asking if you want to exclude anything. If you want to back up your entire site, leave all checkboxes unchecked and click on Backup Now within the popup window. Once you have initiated the backup, you will see a progress bar next to Backups in Progress. Be sure to stay on this page until it is complete.
Automatically backing up your WordPress site to Google Drive
Within your UpdraftPlus settings page, there is a heading labeled Configure Backup Contents And Schedule. Within this section, you will be able to define the backup interval, the number of backups kept, as well as what files to include within the backups.
To set up automatic backups to Google Drive of your entire WordPress site, adjust the dropdowns labeled File backup intervals and Database backup intervals to your preferred timeframe. The number of backups to be kept can also be defined within these fields as well.
Restoring your WordPress site from Google Drive
Any backups that are created using UpdraftPlus can be easily restored. As you already have Google Drive configured in the UpdraftPlus settings, simply click the Restore button.
Upon clicking the restore button, you may be prompted with several restoration options. Simply click Restore to the right of the backup that you want to restore.
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!