NM Naufaldo
NM Naufaldo

Reputation: 1160

Odoo - How to Import Odoo Database Dump File

I'm new with Odoo and I want to see just the database tables (the data is not really important) from database IDE e.g. DataGrip. There are 2 options to download the database from Odoo:

I create a temporary Postgres database to import the file. It seem like the dump.sql from zip (includes filestore) work when I imported, but I get some errors like:

Log summary:

Summary: 11748 of 11748 statements executed, 4886 failed in 16 s 642 ms (1525350 symbols in file)

Environment:

Upvotes: 0

Views: 2513

Answers (2)

Adnan Malik
Adnan Malik

Reputation: 65

Backup and Restore using url:port/web/database/manager https://odoosolution.blogspot.com/2021/01/odoo-database-backup-restore.html

Upvotes: 1

Laurenz Albe
Laurenz Albe

Reputation: 247950

Take the custom format dump and restore it with the PostgreSQL client tool pg_restore:

pg_restore --schema-only -d targetdb -h dbhost -p 5432 -U postgres dumpfile

That will restore only the table definitions without the data.

Upvotes: 1

Related Questions