Odoo Help

1

1
15 Answers
3
Avatar

Yenthe Van Ginneken

--Yenthe Van Ginneken--
22835
| 9 9 12
Turnhout, Bélgica
--Yenthe Van Ginneken--

My Odoo training platform: https://www.oocademy.com
My Odoo blog: http://www.odoo.yenthevg.com/
My Twitter: https://twitter.com/Yenthe666

Yenthe Van Ginneken
04/05/15 10:34

Hi rakhmat,
You have four options.

  • Take a dump through the webinterface, via the URL:

    http://www.yourweburl.com:8069/web/database/manager
    Then click on "Backup database", you can take a dump from there.
  • Use a back-up module, as you can find here. This module is made by me so if you need help, let me know.
  • Take a dump through the terminal, via pg_dump.

    pg_dump db_name

  • Take a dump through XML-RPC.

     def get_db_list(self, cr, user, ids, host='localhost', port='8069', context={}):
            uri = 'http://' + host + ':' + port
            conn = xmlrpclib.ServerProxy(uri + '/xmlrpc/db')
            db_list = execute(conn, 'list')
            return db_list
4 Comments
Temur
04/05/15 10:57

upvote for xmlrpc option ;)

Yenthe Van Ginneken
04/05/15 11:29

Thanks Temur! :) I think its a handy option if you wish to work with automated back-ups!

Jonathan Leaders
18/04/19 17:00

This does not backup the file store. Isn't the file store also a required piece of Odoo to backup for it to function or be restored at another location?

Yenthe Van Ginneken
26/04/19 11:54

It does backup the filestore if you choose the right format (zip).

0
TecDiSol
07/05/15 13:28

i backup

Going to "My odoo.com Account" then click "Manage My Organizations", then "Backup"

0
rakhmat dp
04/05/15 19:10

Thank you buddy,

for all the answers useful ,


greetings ^ - ^

 

0
Avatar

Temur

--Temur--

3297
| 7 5 9
Tbilisi, Geórgia
--Temur--
Programmer
Temur
04/05/15 10:25

AFAIK there is no particular way for odoo. You can backup database using pg_dump (see here) or any other postgresql specific way. 

update:

if you mean backup from user interface, then there is backup option at /web/database/manager page in odoo. The "Database Management/Backup"

7 Comments
Yenthe Van Ginneken
04/05/15 10:33

http://yoururl.com:8069/web/database/manager has support for taking dumps from the webinterface.

Temur
04/05/15 10:41

Thanks Yenthe, I've updated answer. But this way allows only manual backup, that's why I don't consider it as option. gp_dump way may be easily automated using some tools (cron etc.).

Yenthe Van Ginneken
04/05/15 10:43

Yeah there are actually 3 options really. I'll expand my answer too.

Temur
04/05/15 10:57

I've not seen if you've separated answer, I thought you just commented here, that's why I've updated my answer with you option.. :) BTW the xmlprc option needs to adapt a bit? it seems that function is for gather database list?

Yenthe Van Ginneken
04/05/15 11:28

Correct, this function calls the database list and from there on you need to carry on. You can find all the code here: https://github.com/Yenthe666/auto_backup/tree/8.0/auto_backup my module does this exactly.

Temur
04/05/15 11:43

does this module includes filestore backup?

Yenthe Van Ginneken
04/05/15 13:28

Yep! It generates a .dump file which has an SQL file and everything from the filestore is also in the dump file.

0
sameer alhwety
04/05/15 10:39

You  use xmlrpc or from link with /web/database/manager

-1
Avatar

Ankit H Gandhi(AHG)

--Ankit H Gandhi(AHG)--

1397
| 6 5 8
Baroda, Índia
--Ankit H Gandhi(AHG)--

Learning Python..

Ankit H Gandhi(AHG)
04/05/15 10:34

Hello Rakhmat,


Please refer below link it will be help you.


http://maheshwarimayur.blogspot.in/2013/02/backup-and-restore-openerp-database.html

http://acespritechblog.com/2012/05/21/how-to-backup-and-restore-openerp-database/

Ask a Question
Writer
Tag
Keep Informed
2 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now