Dropbox Backup - Database Backup to Your Dropbox
by Tamadoo https://tamadoo-odoo.github.io/modules/tamadoo_db_backup_dropbox/
Odoo
$ 29.00
Dropbox Backup - Database Backup to Your Dropbox
Send your scheduled Odoo backups to your own Dropbox — off-site, one-click authorization, automatic retention.
Odoo 16
Extra Tools
What it does
Adds Dropbox as a destination for the free Tamadoo Database Backup engine. Every scheduled (or manual) backup is uploaded to a folder in your Dropbox, and old backups there are pruned with the same retention policy as the local backups.
- One-click authorization with your own Dropbox app: no access token to copy by hand. The refresh token is stored and the short-lived access token is renewed automatically.
- App folder access: the module only sees its own folder in your Dropbox, never your other files.
- Retention in Dropbox: keep N days of backups plus the latest backup of each of the last M months. Only backups of this database inside the configured folder are ever deleted.
- Upload sessions for large databases (above 64 MB), streamed from disk in 32 MB chunks.
- Test Connection (shows the Dropbox account) and Refresh Dropbox List right on the form.
- Clear error messages for a missing permission, a revoked authorization, a wrong key or a full Dropbox; failure e-mail from the backup engine. A failed cleanup never turns a successful upload into a failure.
- App secret and tokens shown masked and readable by administrators only.
- No extra Python packages to install: no Dropbox SDK.
How it looks
The Dropbox settings on the backup form, ready to authorize. Copy the Redirect URI into your Dropbox app:
After Authorize Dropbox, Test Connection and Back Up Now: the connected account and the backups now in Dropbox (account e-mail and App Key hidden here):
Step by step setup in Odoo 16
Part 1 — Create your Dropbox app (one time, about 3 minutes)
- Sign in at dropbox.com/developers/apps with the Dropbox account that should receive the backups, and click Create app.
- Choose Scoped access, then App folder, give the app a name
(e.g.
Odoo Backup MyCompany; it must be unique on Dropbox) and click Create app. - Open the Permissions tab, tick
files.metadata.read,files.content.writeandfiles.content.read, then click Submit. - Back on the Settings tab, under OAuth 2 → Redirect URIs, paste the
Redirect URI shown in Odoo (Part 2, step 3) and click Add. It looks like
https://your-odoo-domain.com/tamadoo_db_backup_dropbox/oauth/callbackIt must match character for character and use
https://(plainhttp://is only accepted forlocalhost). - On the same tab copy the App key and the App secret (click Show). The app can stay in Development status: it is only used by your own Dropbox account.
Part 2 — Configure in Odoo 16
- Install this module from Apps (the free Tamadoo Database Backup engine installs with it).
- Open Backups → Database Backups → New, give it a Name and set Store To = Dropbox. The Dropbox section appears.
- Paste the App Key and App Secret, optionally a Folder inside the app
folder (e.g.
/production), and copy the read-only Redirect URI into your Dropbox app (Part 1, step 4). Save. - Click Authorize Dropbox, sign in to Dropbox if asked and click Allow. You come back to the form with Authorized next to the buttons.
- Click Test Connection: it shows Connection OK, the Dropbox account and the number of backups already in the folder.
- Click Back Up Now. The file appears under Existing Backups and in your Dropbox under Apps → (your app name).
- Set Frequency, Keep Daily, Keep Monthly and a Notify On Failure e-mail. The scheduled action uploads and prunes from now on.
Troubleshooting
| Message | Fix |
|---|---|
| Dropbox page says Invalid redirect_uri | Add the exact Redirect URI from the Odoo form under Settings → OAuth 2 → Redirect URIs
(same scheme and domain, no trailing slash). If it shows the wrong domain, fix the system parameter web.base.url. |
| The Dropbox app is missing a permission (missing_scope) | Tick the three permissions on the Permissions tab, click Submit, then Re-authorize: new permissions only apply to a new authorization. |
| Dropbox no longer accepts the stored authorization (invalid_grant) | The app was disconnected in Dropbox (Settings → Connected apps) or the token was revoked: click Re-authorize. |
| Dropbox rejected the App Key or App Secret | Copy both again from the App Console, Settings tab (no spaces). |
| Your Dropbox is full | Free space, lower Keep Daily / Keep Monthly or upgrade the Dropbox plan. |
| State mismatch | Start again with Authorize Dropbox on the form; do not reuse an old Dropbox tab. |
| Cannot reach Dropbox | The Odoo server needs outgoing HTTPS to api.dropboxapi.com and content.dropboxapi.com (firewall, proxy). |
Requirements
- Odoo 16 — Community or Enterprise, on-premise or Odoo.sh.
- Tamadoo Database Backup (
tamadoo_database_backup, free) — the backup engine. - A Dropbox account (Basic, Plus or Business) and a free Dropbox app (steps above).
- Odoo reachable in the browser at the address of
web.base.url, over HTTPS (or onlocalhost). - Enough free disk space in the server's temp folder for one backup file (it is written there, uploaded, then removed).
Works well with
Other Tamadoo backup apps for Odoo 16.0 that pair well with this one:
- S3 Backup - Database Backup to Amazon S3, Cloudflare R2, Wasabi, Backblaze B2, MinIO: also send each backup to Amazon S3 or any S3-compatible storage, with retention in the bucket.
- Google Drive Backup - Database Backup to Your Drive: free, keep a second copy of each backup in your Google Drive.
Tamadoo · tama.odoo@gmail.com
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 751 |
| Technical Name |
tamadoo_db_backup_dropbox |
| License | OPL-1 |
| Website | https://tamadoo-odoo.github.io/modules/tamadoo_db_backup_dropbox/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module