Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

restroe pg_dump example

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #restroe
ADD COMMENT
Topic
Name
6+8 =