Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
16970 Visualizzazioni

Hi,

How can i restore my odoo .dump file (buckup file), How can i import this .dump file to new database ?


Thanks

Avatar
Abbandona
Risposta migliore

Hello,

first create new database using below command in terminal

createdb database_name

now restore the .dump file using below command

pg_restore -c -d [database_name] [dumpfile_name].dump
Avatar
Abbandona

I use the method described above or using the database manager "/web/database/manager" and use the restore option, but you also need to have a DB created to restore it to.

I think that the createdb has to be executed in psql and the pgrestore directly in terminal.

yes, you need to execute this command into terminal