docker configuration for the main server
sudo docker exec -t docker_postgres_1 pg_dumpall -c -U postgres > dump_date +%d-%m-%Y"_"%H_%M_%S
.sql
cat your_dump.sql | sudo docker exec -i docker_postgres_1 psql -U archive
docker configuration for the main server
sudo docker exec -t docker_postgres_1 pg_dumpall -c -U postgres > dump_date +%d-%m-%Y"_"%H_%M_%S
.sql
cat your_dump.sql | sudo docker exec -i docker_postgres_1 psql -U archive