Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
9 ตอบกลับ
97028 มุมมอง

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

 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

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

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?

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

คำตอบที่ดีที่สุด

video reference here


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Odoo database backup in local/server : 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

i backup

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You can use this addon for backup.

https://apps.odoo.com/apps/modules/13.0/auto_backup_odoo/

https://automaticbackup.odoo.com/

How to backup odoo database automatically

Available Backup DB/Filestore Modes:

  • Local
  • Remote Server
  • Google Drive
  • Dropbox

Module For backup ODOO databases and automating the backup process of ODOO.

  • Multiple Backup Modes
  • Filestore Backup
  • Backup ODOO Databases in specified path
  • Detailed Message Log
  • Backup Status Information and History
  • User can select the format to dump, either custom archive, plain text SQL or tar archive
  • Archive Backup Process
  • Repeat Missed Backup Process

Features

  • Dump ODOO Database in specified format
  • Output a custom archive suitable for input into pg_restore. This is the most flexible format in that it allows the reordering of loading data as well as to object definitions. This format is also compressed by default. Here we user gzip ie, test.gz, We also recommend you to select Custom, because Using the custom format you can restore single objects from a backup.
  • Output a plain-text SQL script file (the default). The plain text format is useful for very small databases with a minimal number of objects but other than that, it should be avoided.
  • Output a tar archive suitable for input into pg_restore. Using this archive format allows reordering and/or exclusion of database objects at the time the database is restored. It is also possible to limit which data is reloaded at restore time. we use tar with gzip
  • Backup Filestore
  • Multiple backup modes at sametime

Get Module From Here


Video Demonstration

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

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

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

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?

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.

does this module includes filestore backup?

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

ผู้เขียน คำตอบที่ดีที่สุด

Thank you buddy,

for all the answers useful ,


greetings ^ - ^

 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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/

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
9
ก.ค. 25
64241
1
ก.ค. 22
4668
12
มิ.ย. 24
21215
0
เม.ย. 22
50
Error installing auto-backup on Oddo 15 แก้ไขแล้ว
2
มี.ค. 22
3913