diff --git a/README.md b/README.md index b44f32c..1be42bf 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,22 @@ Infrastructure for base server -**Important note** - -For postgreSQL multiple databases scripts: +#### For postgreSQL multiple databases scripts: ```sh chmod +x scripts/create-multiple-postgres-databases.sh ``` + +#### 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 +```