Answers for "transfer a local postgres database to docker"

2

connect to postgres database in docker container

$ docker exec -it postgres-container psql -U postgres
Posted by: Guest on July-28-2020
0

backup postgres database docker

docker exec -t your-db-container pg_dumpall -c -U postgres > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Posted by: Guest on March-08-2021

Code answers related to "transfer a local postgres database to docker"

Browse Popular Code Answers by Language