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

Hello, I have an Odoo 8 installation on an Ubunut 14.04 VPS, it's working like a charm, however, I'm afraid one day something bad might happen!

So, I don't want to relay on manual backups done through odoo's interface; 8069/web/database/manager#action=database_manager , I want to make this automatic using cron, so far, I've tried pg_dump, I'm able to extract a database, however, I don't know how to restore it, I've tried creating a new one and populating it with the old database, however, odoo doesn't recognize and show it!

Can you please help me, I'd like two command lines I can run on my linux installation, one for backing up my Odoo db and one for restoring it.

Thanks so much.

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

Hi, you can use this commands

create database your_db_name;

alter database your_db_name owner to odoo;

pg_restore -i -h localhost -p 5432 -U odoo -d your_db_name -v "your_db_name .backup"

อวตาร
ละทิ้ง
ผู้เขียน

This seems very good, I'm going to give it a try when I go to work.

Do you have

ผู้เขียน

Do you have a command line for backing up odoo db, mine seems very weak, I use pg_dump dbname | gzip > dbname.gz

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

You might want to check the following module (more than 11000 downloads can't be wrong)  https://www.odoo.com/apps/modules/8.0/auto_backup/

อวตาร
ละทิ้ง
ผู้เขียน

I use it already, thanks, but I'm unable to restore my db from its backups.

Related Posts ตอบกลับ มุมมอง กิจกรรม
How to Restore Odoo Online Database? แก้ไขแล้ว
3
ก.ค. 24
7298
Backup procedure for Odoo 14 CE แก้ไขแล้ว
1
พ.ค. 21
4136
Can't install auto_backup module แก้ไขแล้ว
16
ก.ย. 20
22193
4
ก.ค. 18
13184
3
ก.ย. 17
3436