Restaurar la base de datos de Postgres desde el archivo SQL
psql -d database_name -f backup.sql
Bored Bison
psql -d database_name -f backup.sql
#To dump a database called mydb into a SQL-script file:
pg_dump mydb > db.sql
#To reload such a script into a (freshly created) database named newdb:
psql -d newdb -f db.sql
docker exec -it (container-name) bash # inter container
# go dump file location it will easy to target restore file
psql -U username -d dbname < filename.sql # then run this for restore
-- For Postgres versions 9.0 or earlier
psql -U username -d dbname -1 -f filename.sql