Odoo Enterprise Upgrade FAQ
1. Which database dump formats are supported by the migration platform?
The migration platform accepts a lot of different formats:
PostgreSQL custom dump, PostgreSQL tar-format, plain text sql or compressed plain text sql.
If you want to compress a plain text sql dump, you can use a variety of compression methods:
gzip, zip, rar, xz, 7zip, bzip2
If you don't really know which format to choose, see question 2.
2. Which database dump format is the best for the migration?
You have 2 choices:
- if you want a fast database dump and restore, choose the PostgreSQL tar-format compressed with gzip
- if you want a small database dump file, choose the PostgreSQL tar-format compressed with xz
If you want to know how to dump/restore the format of your choosing, see question 3.
3. What are the pros and cons of each database dump methods and how to dump/restore a database with the method of your choosing ?
PostgreSQL tar-format compressed with gzip | |
Commands to create |
pg_dump --format=t dbname | gzip > dbname.tar.gz
|
Commands to restore |
createdb migrated_dbname
|
Pros and cons | Pros:
|
PostgreSQL tar-format compressed with xz | |
Commands to create |
pg_dump --format=t dbname | xz > dbname.tar.xz
|
Commands to restore |
createdb migrated_dbname
|
Pros and cons | Pros:
|
PostgreSQL custom dump | |
Commands to create |
pg_dump --format=c dbname > dbname.dump
|
Commands to restore |
createdb migrated_dbname
|
Pros and cons | Pros:
|
Plain text SQL | |
Commands to create |
pg_dump -O dbname > dbname.sql
|
Commands to restore |
createdb migrated_dbname
|
Pros and cons | Pros: None Cons:
|