mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add migration instructions
This commit is contained in:
parent
a1f087d833
commit
cda80f1083
1 changed files with 11 additions and 0 deletions
11
migrations/README.md
Normal file
11
migrations/README.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Migrations
|
||||
|
||||
Dump postgresql database from docker container:
|
||||
```sh
|
||||
docker exec -t nourybot-postgres-1 pg_dumpall -c -U nourybot > dump_$(date +%Y-%m-%d_%H_%M_%S).sql
|
||||
```
|
||||
|
||||
Restore postgres database to docker container:
|
||||
```sh
|
||||
cat dump_2024-07-17_22_23_32.sql | docker exec -i nourybot-postgres-1 psql -U nourybot
|
||||
```
|
Loading…
Reference in a new issue