How to connect Google Drive to Postgresus?

To keep your backups in Google Drive you need:

Step 1

Create Google Cloud project so you can access Google Drive API

Step 2

Sign in via your Google Account

How to create Google Cloud project?

1 Create new project

Go to https://console.cloud.google.com/

Choose "new project" (top left)

2 Enable Google Drive API

Go to "API & Services" tab, then to "API library"

Choose Google Drive API and enable it:

Step 2

3 Configure consent screen

Go to "Credentials""Create credentials""Configure consent screen" and fill any data there:

Step 3

4 Create OAuth client ID

Go to "Credentials""Create credentials""OAuth client ID":

Step 4

5 Configure application settings

Fill the following data:

Application type: Web application

Authorized JavaScript origins: https://postgresus.com

Authorized redirect URIs: https://postgresus.com/storages/google-oauth

And copy credentials
Step 5 - 1 Step 5 - 2

6 Add scope

Go to "Data Access" and add scope "/auth/drive.file"

Step 6

7 Publish the app

Go to "Audience" and publish an app

Step 7

Sign in via your Google Account

1 Fill credentials data

Fill data from the previous step:

Step 1

2 Choose your account

Choose your account to sign in

3 Handle security warning

If you see a warning, click "Advanced" (left bottom corner) and choose "Proceed anyway"

⚠️ This warning appears because your app is not yet verified by Google. It's safe to proceed for your own application.

🎉 Setup Complete!

Your Google Drive is now connected to Postgresus and ready to store your PostgreSQL backups securely in the cloud.