copy data from one postgres container to another

Solutions on MaxInterview for copy data from one postgres container to another by the best coders in the world

showing results for - "copy data from one postgres container to another"
Romina
13 Apr 2018
1docker exec -t your-db-container pg_dumpall -c -U postgres > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
2cat your_dump.sql | docker exec -i your-db-container psql -U postgres