restore postgres database in Odoo

Jeevachaithanyan Sivanandan - May 14 - - Dev Community

To restore the database gzip file to a database,

gunzip < backup_database.sql.gzip  | psql -d <db_name> 
Enter fullscreen mode Exit fullscreen mode

if you want to restore from .sql file then

psql -d new_database_name -f /path/to/your/sql/file.sql
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player