docs(readme): add DB backup & restore instructions

master
arcbjorn 2 years ago
parent d22e6f146c
commit 9bdf7b5a44

@ -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 <postgres-container-id> pg_dumpall -c -U <user> > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
```
Restore:
```sh
cat <dump_name>.sql | docker exec -i <postgres-container-id> psql -U <user>
```

Loading…
Cancel
Save