The Pro version of our BackWPup plugin supports the backup of WordPress databases and files to Google Drive. But how do you set something like that up? And how do you get your hands on the Google API Keys you need? Find out in our step-by-step guide.
The installation process is the same, regardless of whether you want to run the backup just once or regularly. This means you can even backup changed directories to Google Drive (to transfer files that have changed since the last backup).
Set up Google API Keys
In order to be able to automatically save a backup on Google Drive you need so-called API keys. These enable Google to authenticate the BackWPup plugin/your WordPress installation.
- Go to https://code.google.com/apis/console. Click on Create project:
- Then click on the created project and select the menu item Enable and manage APIs:
- Enter “drive” into the search bar, then select the link Drive API:
- Activate Drive by clicking on the Enable API button.
- A message box will then appear. Click on Go to Credentials:
- Then in a new window go to the “OAuth consent screen” tab. Then select your Email address and enter a Product name (e.g. the name of your WordPress project). Then confirm by “Save”:
- Go to “Credentials” and select OAuth client ID:
- Now go to the WordPress dashboard and then → BackWPup Pro → Settings → API Key → Google API Keys. There you’ll find the Redirect URI. Enter this into the Authorized redirect URIs field in Google. Confirm by clicking “Create Client ID”.
- You will now receive a Client ID and a Client secret:
- Place them in the fields Client ID and Client secret in the BackWPup API settings. Finish by clicking “Save changes”:
Now you can set up the backup yourself:
- On your dashboard go to → BackWPup Pro → New Job. Give the backup a Job Name.
- Under Job details, determine whether just the database and/or files and any other components in your WordPress installation are to be backed up. Under Backup File Creation, you can define the archive name and backup format etc.
- In the Job Destination Folder select “Backup to Google Drive”. At the top of the page a new tab will appear “To: GDrive”:
- Here there are more options, such as changing the Folder in Google Drive an File deletion settings. Now click on Reauthenticate. You then need to permit access in Google by clicking Allow:
- If the API Keys have been created correctly, you should now see the following status message in the BackWPup Pro settings:
You will find the usual BackWPup options such as timed backup under “planning”. All you have to do now is start the job.
Important information: Please test the connection and ensure that the files are uploading to Google Drive correctly by doing a manual backup before you turn on timed backups.
In addition to Google Drive BackWPup Pro also supports WordPress backup via FTP, email, Dropbox, S3 service providers (including Amazon, Google Storage), SugarSync, Microsoft Azure, Rackspace Cloud and Amazon Glacier.
Find out how to restore a WordPress backup in an emergency in this tutorial.
New Plugin: Slack Connector - Connect WordPress, WooCommerce and Slackby Michael Firnkes
Initially we merely wanted to optimize our own Slack-processes. With automated notifications from our MarkettPress shop, the blog and our forums. The resul ...Read more
Inpsyde is the first WordPress.com VIP partner in Germanyby Michael Firnkes
Automattic has given us the title of WordPress.com VIP Service Partner, the first in Germany, Austria and Switzerland. Worldwide, there are only eleven com ...Read more
Inpsyde is a WooExperts Gold Partner of WooCommerceby Michael Firnkes
A few weeks ago, Inpsyde GmbH with MarketPress became a certified WooExperts Gold Partner. This is confirmation from WooThemes of our agency’s know-h ...Read more
MultilingualPress - Multilingual WordPress for Everyone, Forever Freeby Caspar Hübinger
Our plugin MultilingualPress has been available as a free and a premium version (“PRO”) so far. As of today, both versions are merged into one. Multili ...Read more