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

Hi,

I have been playing Odoo 9 for a while now. I recently notice that my database backups are shrinking in size (substantially) after each backup. Does Odoo or PostgreSQL somehow optimize the database after a period of time?

Thanks

Antonio

อวตาร
ละทิ้ง

I've noticed that some of the product pictures are missing after each database backup.
Not really sure what to do to prevent it happening.

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

I doubt that, unless you actually removed records from the database, or removed files from the filestore in case of zip backups. If neither is the case, I would check a restore of one of the small dumps and check whether there is data missing. I had incomplete dumps without error message recently but that may have been due to a misconfiguration on my side.

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

Thanks, I will check. At a glance it seems the sql dump is smaller in size,but I couldn't tell what is missing now.

Convert a big and a small dump to sql txt file "pg_restore db1.dump > db1.sql", then count the lines and compare "cat db1.sql | wc -l". It is only a crude measure but it should give a hint.

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

Thanks Mark. I found that the temp data or so called transient data were deleted after a period of time by Odoo and that made a huge size difference on the dump.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Download database with only master data แก้ไขแล้ว
2
ต.ค. 24
1871
1
ก.ค. 24
6797
4
ก.ย. 20
5362
A column for Sizes of shoes แก้ไขแล้ว
2
มี.ค. 20
3855
0
มี.ค. 18
2760