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

There are multiple ways to backup Database. Namely

  1. Backup from the Web client: Before login go to Database and create Backup Manually
  2. Auto Backup Module: Install Auto Backup Module and Schedule automatically
  3. Run Bash shell Script: Create a shell script and dump PostgresSQL database

My Questions are a. I need a reliable backup. If any issues I can restore and run smoothly. Is their any difference between the above 3. b. For Shell script we need to stop server. What is server runs 24x7 (Example manufacturing environment) and we can't stop the server. What are the best option?

Thank you

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

Three backups you mentioned are not sufficient. They are the easy part ....

You forget a very important thing: YOU NEED ALSO A BACKUP OF YOUR SOFTWARE If something break your software you need to repair or reinstall. If your Hardware fails you need to reinstall your software.

For these things I have:

  1. All installables including modules added scripts, added libraries, etc. Including descriptions of how to install.
  2. An identical hardware / software installation.
  3. An identical virtual machine with the OS and software installation.
  4. You need to test restore of database on a regular basis.
  5. You need to test recovery of OS and Hardware on a regular basis.
อวตาร
ละทิ้ง

Dear Ton,

Pelase let me know, how to accomplished these, Automatically?

@GuruDev I do not have the answer on this. I do it by hand.

My god! Same hardware too? And what happens if we change the server, the O.S. or another upgrade? I see this like a real problem!

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

Chances are... something will go wrong with your server before going wrong with the database. So first I would take a look at backing up and restoring the server, specially the OpenERP server installation. Then I would backup the database with pg_dump, that does a pretty good job in backing up your database.

Now, if you need 24/7 availability, try replicating your database. PostgreSQL does a good job in replicating your DB

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
9
เม.ย. 25
62884
how to backup ? แก้ไขแล้ว
9
ก.ค. 24
94901
1
ก.ค. 22
4177
12
มิ.ย. 24
20644
0
เม.ย. 22
50