pythonodoo

Backup Odoo db from within odoo


I need to backup the current db while logged into odoo. I should be able to do it using a button, so that suppose I click on the button, it works the same way as odoo default backup in manage databases, but I should be able to do it from within while logged in.

Is there any way to achieve this? I do know that this is possible from outside odoo using bash but thats not what I want.


Solution

  • By using this module you can backup your database periodically

    https://www.odoo.com/apps/modules/7.0/crontab_config/ (v7)

    you can also test this module

    https://www.odoo.com/apps/modules/6.1/db_backup_ept/ (v6 it can be miggrated to v7)

    in your case you can add button to execute the function that will call (/web/database/backup) post method , with proper args. It will backup the database.