# base_infrastructure Infrastructure for base server #### For postgreSQL multiple databases scripts: ```sh chmod +x scripts/create-multiple-postgresql-databases.sh ``` #### For [pgAdmin](https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html#mapped-files-and-directories): ```sh sudo chown -R 5050:5050 ``` #### Database backup & restore: Backup: ```sh docker exec -t pg_dumpall -c -U > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql ``` Restore: ```sh cat .sql | docker exec -i psql -U ``` #### Example of connection: ```sh # host = container_name postgres://username:password@container_name:port/db_name ```