docs: update command for postgres migrate
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2549>
This commit is contained in:
parent
739e5fa3b7
commit
58fe1c4e57
|
@ -0,0 +1 @@
|
||||||
|
`postgres > db_dump.sql` cannot be used if the postgres container is stopped. Update command.
|
|
@ -83,6 +83,8 @@ Funkwhale depends on Postgres for its database container. To upgrade Postgres, y
|
||||||
|
|
||||||
To update your Postgres container, follow these steps:
|
To update your Postgres container, follow these steps:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1. Stop all Funkwhale services
|
1. Stop all Funkwhale services
|
||||||
|
|
||||||
```console
|
```console
|
||||||
|
@ -92,9 +94,9 @@ To update your Postgres container, follow these steps:
|
||||||
2. Create a backup of your Funkwhale database. We will import this into the new postgres container later.
|
2. Create a backup of your Funkwhale database. We will import this into the new postgres container later.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
# docker compose exec -i postgres pg_dump -U postgres postgres > db_dump.sql
|
# docker compose run --rm postgres pg_dump -U postgres postgres > db_dump.sql
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Move the {file}`data/postgres` directory to another location to back it up
|
3. Move the {file}`data/postgres` directory to another location to back it up
|
||||||
|
|
||||||
```console
|
```console
|
||||||
|
|
Loading…
Reference in New Issue