This tutorial shows how to enable the Google Drive API for a specific Google account, and get the access credentials to be used from Iperius to make cloud backups. In fact, to make an online backup to Google Drive you first need to enable some specific options, then you have to create an account into Iperius using the credentials provided by Google (Client ID and Client Secret).
Sign in with your Google account in the reserved area where you can configure Google APIs, from this URL: https://console.developers.google.com/apis/library
1. Create a project
Create a project from “Select a project”:
2. Enable API
Once the project is created , go in “Library” and enable the “Google drive Api”
3. OAuth consent screen
In the left menu (“API and Services”), click on “OAuth consent screen“.
Select “External” and enter your email address and the name of the application. This is the name that will be shown in the “Consent screen” when making authentication from Iperius.
In the next step click on “Add or Remove scopes”, search for “google drive” and select only the following one:
Scrollo down and click on “Update”.
Leave all the other options to their default values and go ahead clicking on “SAVE AND CONTINUE“.
As last step go in the left menu on “OAuth consent screen” and click on “Publish App”, then click on on “Confirm” in the screen.
If all steps are made correctly you will have a scenario like this one:
4. Create credentials
In the left menu (“API and Services”), click on “Credentials” and choose OAuth Client ID from the “Create credentials” menu:
Now select “Web Application” as Application Type, and enter as Redirect URI “https://www.iperiusbackup.com“, as described in the following images.
Then click on “Create “.
Immediately, CLIENT ID and CLIENT SECRET will be shown on the right. Copy these credentials and paste them into Iperius, in the window where you’re creating the cloud account for Google Drive.
This tutorial shows how to create OAuth 2.0 credentials in Google Drive API, that are needed by any program that wants to access to Google Drive and upload files to it.
Click here to see the tutorial that shows how to make a backup to Google Drive with Iperius
How can I do to choice a especified folder to put my backup in the Google Drive?
Hi, this feature will be available very soon. Currently backup to a subfolder is supported only for Dropbox. For Amazon S3 and Azure Storage you can put files into separated Buckets and Containers.
Hello i have followed the above steps but after hitting the ‘safe’ button i get an error report saying the following;
Code: accesNotConfigured
Description: Access Not configured. The API (Drive API) is not enabled for your project. Please use the Google Developers Console to update your configuration.
Strange because i got the ID en the secret password and entered it.
Can you give me some advise?
Regards
Philippe Marchand
Hello,
you also need to enable the Drive API, not only generate the credentials. Drive API can be turned on in the API list.
How can I backup to MS OneDrive ?
Yes, take a look to the related tutorial https://www.iperiusbackup.net/en/backup-to-onedrive-iperius-backup/
Hello! I have successfully created google drive credential but while validating these from website , getting error server sends response which we cant understand.
Help !!!!
Hi,
please make sure you’r using the latest version of Iperius. Then, check you IE protection settings if you’re on a server. You must allow scripts.
I set up Google drive API as instructed and get the following error after the “Allow” window in Iperius.
Error connecting to Google Drive: Google drive server reports following error.
Code accessNot Configured
Description: Project xxxxx is not found and cannot be used for API calls.
How do I solve this?
Hi,
you’ve to create am api project. Follow exactly the tutorial and it should work. If not, please contact our support service at: support AT iperiusbackup DOT com.
Hi, I’m not able to understand what to fill in ‘Authorised redirect URIs’ field. please can somebody helps me
Leave that field empty. Use the default settings.
Good day,
I’ve configured Google Drive as it was in Tutorials and the system says that it’s ok. But when I start running backup job I always get:
Starting back up on cloud – GDrive
!Error: After the update to the latest version, you must re-configure Cloud backups (16.08.2018 13:44:22)
End of backup on cloud
Starting backup on cloud – GDrive
!Error: Generic error during backup: Error connecting to GDrive: (16.08.2018 13:44:33)
Please, help me.
Hi,
for technical support, send an email to support@iperius.net.
I follow step by step all instructions and get thiis message:
Error 400: redirect_uri_mismatch
The redirect URI in the request, urn:ietf:wg:oauth:2.0:oob, can only be used by a Client ID for native application. It is not allowed for the WEB client type. You can create a Client ID for native application at https://console.developers.google.com/apis/credentials/oauthclient
please help
Hi,
just update Iperius to version 7.6.0
For more technical support open a ticket on https://support.iperius.net
Hi!
I am using Google Drive API. The initial setup was successful, but then the error “Server reports: Invalid Grant Description: Token has been expired or revoked.” How can I resolve this error?
hi,
Probably some steps are missing, verify to have version of iperius backup 7.6.0. then do again all steps again in the tutorials.
For more technical support open a ticket to https://support.iperius.net
Hello,
Why don’t you use your own (already created) apps for cloud services in Iperius Backup? In this case a user will just need to login to his cloud account and authorize your app. That’s all. All these API settings should be made by you, not users.
Hi,
there are pro and contro in implementing this setting, however we are evaluating the possibility to change this behavior in future releases.
For more technical support open a ticket on https://support.iperius.net
Hello, we had two Gdrive APIs with Desktop app OAuth credentials till few days ago and backup was working properly. Till last week the connection between Iperius and gdrive was lost. I tried to recreate api project and credentials again and again but it is impossible to setup a gdrive cloud destination.
If i give credentials from the desktop client (as it was set till now) google setup i get the error 400: redirect_uri_mismatch.
If i use credentials from web client i get:
Error 400: redirect_uri_mismatch
You can’t sign in to this app because it doesn’t comply with Google’s OAuth 2.0 policy.
If you are the app developer, enter the redirect URI in the Google Cloud Console.
Learn more
The content in this section is provided by the developer of the application. This content has not been reviewed or verified by Google.
If you are the app developer, please ensure that these request details comply with Google’s policies.
redirect_uri: https://www.iperiusbackup.co.uk
What is happening? One Drive cloud destination also stoped connecting but i had not try anything for this yet, i struggle with gdrive for 3 days now
Hi,
just update Iperius to version 7.6.5 and do again the steps in the tutorials.
For more technical support open a ticket on https://support.iperius.net