Odoo Help

Welcome!

This community 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.

0

how to backup ?

By
rakhmat dp
on 5/4/15, 10:03 AM 672 views

excuse me, I am new in this field ,

how to make a backup of the database on odoo_8.0 ??

whether someone who can answer ?

Thank you

 

2

Yenthe

--Yenthe--
6721
| 7 7 8
Turnhout, Belgium
--Yenthe--

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

Yenthe
On 5/4/15, 10:34 AM

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

upvote for xmlrpc option ;)

Temur
on 5/4/15, 10:57 AM

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

Yenthe
on 5/4/15, 11:29 AM
0
TecDiSol
On 5/7/15, 1:28 PM

i backup

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

0
rakhmat dp
On 5/4/15, 7:10 PM

Thank you buddy,

for all the answers useful ,


greetings ^ - ^

 

0

Temur

--Temur--
2896
| 6 5 7
Tbilisi, Georgia
--Temur--
Programmer
Temur
On 5/4/15, 10:25 AM

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"

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

Yenthe
on 5/4/15, 10:33 AM

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.).

Temur
on 5/4/15, 10:41 AM

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

Yenthe
on 5/4/15, 10:43 AM

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?

Temur
on 5/4/15, 10:57 AM

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.

Yenthe
on 5/4/15, 11:28 AM

does this module includes filestore backup?

Temur
on 5/4/15, 11:43 AM

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

Yenthe
on 5/4/15, 1:28 PM
0
sameer alhwety
On 5/4/15, 10:39 AM

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

-1

Ankit H Gandhi(AHG)

--Ankit H Gandhi(AHG)--
996
| 5 3 6
Rajkot, India
--Ankit H Gandhi(AHG)--

Learning Python..

Ankit H Gandhi(AHG)
On 5/4/15, 10:34 AM

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/

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 5/4/15, 10:03 AM
Seen: 672 times
Last updated: 5/12/15, 1:23 PM