docker postgresql restore database
cat your_dump.sql | docker exec -i your-db-container psql -U postgres
docker postgresql restore database
cat your_dump.sql | docker exec -i your-db-container psql -U postgres
restore database postgresql
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us