Google Drive Backup - Database Backup to Your Drive

Google Drive backup: send your scheduled auto backup of the database to your own Drive with one-click OAuth, no service-account keys. Add-on for Database Backup.

Price
Free
Odoo versions
  • 16.0
  • 17.0
  • 18.0
  • 19.0
  • 20.0
Technical name
tamadoo_db_backup_gdrive
License
LGPL-3

Text and screenshots below are from the Odoo 20.0 version of this module.

Push your scheduled backups to your own Google Drive — one-click OAuth.

What it does

Adds Google Drive as a destination for Tamadoo Database Backup. Authorize with your own Google account in one click — backups land in your Drive and use your Drive quota. No service-account JSON keys, no quota walls, works with a plain Gmail account.

  • One-click OAuth authorization — no key files.
  • Least-privilege drive.file scope: the module only ever sees the backups it created.
  • Retention (keep N days + latest of each of M months) applied to the Drive folder too.
  • Test Connection and Refresh Drive List from the form.
  • No extra Python packages required.

How it looks

Paste your OAuth Client ID/Secret, copy the Redirect URI into Google, and authorize:

Google Drive backup configuration form

After authorizing: Test the connection, refresh the listing, and your backups appear in Drive:

Authorized Google Drive backup with Drive listing

Part 1 — Get your Google Client ID & Secret (one time, ~5 min)

The Client ID and Client Secret are two text strings you generate for free in Google's console. A Client ID looks like 8127364550-ab12cd.apps.googleusercontent.com; a secret like GOCSPX-AbC1dEf2.... (The Client Secret is always masked in the screenshots above — create your own Client ID and Secret.)

Do this at console.cloud.google.com, signed in with the Google account whose Drive you want the backups in.

1.1  Create (or pick) a project

  1. Top bar → project drop-down → NEW PROJECT → name it (e.g. Odoo Backup) → CREATE.
  2. Re-open the drop-down and select your new project.

1.2  Turn on the Google Drive API

  1. ☰ menu → APIs & Services → Library.
  2. Search Google Drive API → open it → ENABLE.

1.3  Set up the consent screen

(Newer console: “Google Auth Platform”. Older: “OAuth consent screen”. Same thing.)

  1. ☰ menu → APIs & Services → OAuth consent screen.
  2. App name (e.g. Odoo Backup) + User support email (your email).
  3. Audience / User type → External → Next, then fill contact email & accept.
  4. Make it permanent: on the OAuth consent screen, if Publishing status = Testing, click PUBLISH APP → confirm (→ In production).

⚠️ Important: while the app stays in Testing, Google deletes the refresh token after 7 days and your backups stop. Publishing to In production fixes this and needs no Google review with the drive.file scope — you only click through a one-time “unverified app” notice.

1.4  Create the OAuth client (gives the ID + Secret)

  1. ☰ menu → APIs & Services → Credentials.
  2. + CREATE CREDENTIALS → OAuth client ID.
  3. Application type → Web application; give it a name.
  4. Authorized redirect URIs → + ADD URI → paste the exact value from Odoo's Redirect URI field (Part 2, step 4):
    https://your-odoo-domain.com/tamadoo_db_backup_gdrive/oauth/callback
    Must match character-for-character — same https://, same domain, no trailing slash.
  5. CREATE.

1.5  Copy the two values

The pop-up shows Your Client ID and Your Client Secret. Copy both (retrievable any time from Credentials → your OAuth client).

Part 2 — Configure in Odoo

  1. Install Tamadoo Database Backup and this add-on from Apps.
  2. Backups → Database Backups → New.
  3. Set a Name and Store To = Google Drive — the Google Drive section appears.
  4. Paste the Client ID and Client Secret. (Optional) a Drive Folder ID (the part after /folders/ in a Drive URL; empty = My Drive root). Copy the read-only Redirect URI into Google (Part 1, step 1.4) if you haven't. Save.
  5. Click Authorize Google Drive → pick your account → Allow → back in Odoo it shows ✓ Authorized.
  6. Test Connection → Connection OK. Then Back Up Now — the file uploads and appears in your Drive.
  7. Set Frequency + retention; the scheduler runs and prunes automatically.

Troubleshooting

Symptom Fix
redirect_uri_mismatch The URI in the OAuth client must exactly equal the Odoo Redirect URI field — same scheme/domain, no trailing slash.
“No refresh token returned” Revoke the app at myaccount.google.com/permissions, then click Authorize again.
Backups stop after ~7 days The OAuth app is still in Testing — publish it to In production (Part 1, step 1.3).
“Access blocked: app not verified” Expected for a personal app — click Advanced → Go to (app), or publish to production.

Requirements

  • Odoo 20 — Community or Enterprise.
  • Tamadoo Database Backup (tamadoo_database_backup) — the base engine.
  • A Google account and a free Google Cloud OAuth client (steps above).

Works well with

Paid Tamadoo apps for Odoo 20.0 that pair well with this one:

Need more?

Need a change to this app, a custom Odoo module, or an Odoo upgrade? Tamadoo does fixed-price work for Odoo 16-20.

Tamadoo · tama.odoo@gmail.com

Get Google Drive Backup

Questions before buying? Write to tama.odoo@gmail.com.