Answers for "backup postgres database docker"

1

pgrestore schema backup to a container

docker exec -i pg_container_name psql --username pg_username [--password pg_password] database_name < /path/on/your/machine/dump.sql
Posted by: Guest on October-07-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 "backup postgres database docker"

Browse Popular Code Answers by Language