Google Drive is the trickiest of the remote access methods to set up. The following instructions should see you through – but if you get stumped, then don’t fear. You can buy a setup support package from our shop; or try out one of the other cloud methods (e.g. Amazon S3, Dropbox, Rackspace Cloud Files – the easiest is Dropbox). You can also try searching YouTube for videos… various people have done them, but they may be out of date, of course (and not an official resource, so don’t blame us, etc.!).
Final note before beginning: every WordPress installation you set up should have its own, unique Google API project (that’s a unique API project, as in the notes below, not a unique Google account) . Google have not documented this anywhere, but several users have found that access to their Google Drive can randomly fail unless this is done. This might be a glitch somewhere in the innards of Google Drive – but it can’t be fixed from this end, so you will need to do this.
1. Visit the Google API console, and create a new project
To allow UpdraftPlus to have access to your Google Drive account, click on the link to your API console to take you to Google; then click on the “My Project” dropdown.
Select ‘My Project’, then click ‘create a project…’
Then fill in this form (just use whatever Project ID Google suggests – it does not matter)…
2. Activate the Drive API
Find ‘Drive API’ on the list of services:
Note: that was Drive API, not Drive SDK.
Follow the link, and click the ‘Enable API’ button:
3. Set up a product name and email address
Now go to ‘Credentials’ in the left sidebar.
This will take you to the Credentials settings for the project. First, you will need to enter some details in the ‘OAuth consent screen’ settings (accessible through the top tabs):
Specifically, you will need to enter a product name and select an email address. If you see errors later about missing an application name or empty email address, then this is the relevant step. These details are shown back to you in step 5 (below) – Google do not use them for anything else.
4. Set up API access credentials (OAuth)
Move to the ‘Credentials’ tab, and click ‘Add credentials’; then click on ‘OAuth 2.0 client ID’:
Next, enter some details:
- Under ‘Application type’ select ‘Web application’.
- Under ‘Name’ enter ‘UpdraftPlus’.
- Under ‘Authorized redirect URI’, paste in the URL that was shown to you on your UpdraftPlus settings page back in your WordPress admin console: (do paste it from there – don’t copy any screenshot below)
Click ‘Create’. You will then be shown your client ID and secret.
5. Go back to UpdraftPlus, and enter the details
You should now have a client ID and secret created. Paste the details back into the UpdraftPlus settings page in your WordPress admin console. Save the settings.
Then follow the link that WordPress will show you, to complete authorisation. The screenshot may not be identical to the one below:
Then, you’re done.
Not yet taken a look at UpdraftPlus Premium? Read more about it here…