Database auto-backup to DropBox

by
Odoo
v 15.0 Third Party 520
Download for v 15.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 290
Technical Name backup_to_dropbox
LicenseLGPL-3
Websitehttps://github.com/fasilwdr
Versions 13.0 14.0 15.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 290
Technical Name backup_to_dropbox
LicenseLGPL-3
Websitehttps://github.com/fasilwdr
Versions 13.0 14.0 15.0

Automated backups to DropBox

A tool for backup both Database and File store

Features

Local Backup

Taking backups to local folder

Backups to DropBox

Uploading backups to DropBox

Error Notification

Sending E-mail on backup failure

Auto Remove Backups

Remove uploaded back-ups from both local and dropbox after n days(as per you given)

Pre-Requirement

Install dropbox python library and dependencies

pip install tqdm

pip install dropbox

Configure Dropbox API

Go to  this URL and Create account in Dropbox or Login if you have account already.

Configure Backups

Go to Settings --> Technical --> Configure back-ups

E-mail on backup failure

Stay informed of problems, automatically!

Do you want to know if the database backup failed? Check the checkbox 'Enable' under Error Notification and fill in your e-mail. Every time a backup fails you will get an e-mail in your mailbox with technical details.

Change Scheduled Backups

Go to Settings --> Technical --> Scheduled Actions --> DropBox Backup scheduler

Contact / Support

Need help or want extra features?

Need help with the configuration or want this module to have more functionalities? Please contact me on email

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
There are no ratings yet!
working for odoo sh ..??
by
Khattab Aldabagh
on 4/18/24, 3:50 AM

If it works for the Odoo.sh, the (host) and the (database) and (port) for what .? 
Or what should I write in these fields?


Does it work on Enterprise?
by
Elder Id
on 4/10/22, 11:40 AM

Hi


Does this work on Enterprise?

Re: Does it work on Enterprise?
by
Fasil
on 4/10/22, 12:18 PM Author

Yes. It will work on enterprise also


ErRPC_ERROR Odoo Server Error
by
CERGIO MONASTERIO
on 3/14/22, 6:42 PM
RPC_ERROR
Odoo Server Error

Traceback (most recent call last):
  File "/opt/bitnami/odoo/lib/odoo-15.0.post20220310-py3.8.egg/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/opt/bitnami/odoo/lib/odoo-15.0.post20220310-py3.8.egg/odoo/http.py", line 688, in dispatch
    result = self._call_function(**self.params)
  File "/opt/bitnami/odoo/lib/odoo-15.0.post20220310-py3.8.egg/odoo/http.py", line 360, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/bitnami/odoo/lib/odoo-15.0.post20220310-py3.8.egg/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/bitnami/odoo/lib/odoo-15.0.post20220310-py3.8.egg/odoo/http.py", line 349, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/bitnami/odoo/lib/odoo-15.0.post20220310-py3.8.egg/odoo/http.py", line 917, in __call__
    return self.method(*args, **kw)
  File "/opt/bitnami/odoo/lib/odoo-15.0.post20220310-py3.8.egg/odoo/http.py", line 536, in response_wrap
    response = f(*args, **kw)
  File "/opt/bitnami/odoo/lib/odoo-15.0.post20220310-py3.8.egg/odoo/addons/web/controllers/main.py", line 1352, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/opt/bitnami/odoo/lib/odoo-15.0.post20220310-py3.8.egg/odoo/addons/web/controllers/main.py", line 1340, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/bitnami/odoo/lib/odoo-15.0.post20220310-py3.8.egg/odoo/api.py", line 464, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/opt/bitnami/odoo/lib/odoo-15.0.post20220310-py3.8.egg/odoo/api.py", line 451, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/bitnami/odoo/addons/backup_to_dropbox/models/db_backup.py", line 69, in schedule_backup
    os.makedirs(rec.folder)
  File "/opt/bitnami/python/lib/python3.8/os.py", line 223, in makedirs
    mkdir(name, mode)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/bitnami/odoo/lib/odoo-15.0.post20220310-py3.8.egg/odoo/http.py", line 644, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/bitnami/odoo/lib/odoo-15.0.post20220310-py3.8.egg/odoo/http.py", line 302, in _handle_exception
    raise exception.with_traceback(None) from new_cause
PermissionError: [Errno 13] Permission denied: '/home/bitnami/backups'
Re: ErRPC_ERROR Odoo Server Error
by
Fasil
on 3/15/22, 2:31 AM Author

Hi,


It is permission issue, Please provide permission for the folder '/home/bitnami/backups'

You can use below code

sudo chmod a+rwx /home/bitnami/backups