Shin Code log

Logs of solution for code
December 19, 2023

[Postgres] Restore backup file, sql file type

[Postgres] Restore backup file, sql file type

Using psql command to restore:

psql -U username -d database_name -h host_address < script.sql

Using pgrestore command to restore:
```
pg
restore -h localhost -p 5432 -U postgres -d olddb -v
or
pg
restore -U username -d dbname -1 filename.dump
```