docs: update command for postgres migrate

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2549>
environments/review-docs-devel-5tyv5s/deployments/18763
Alexander Dunkel 2023-08-24 09:07:21 +02:00 zatwierdzone przez Marge
rodzic 739e5fa3b7
commit 58fe1c4e57
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -0,0 +1 @@
`postgres > db_dump.sql` cannot be used if the postgres container is stopped. Update command.

Wyświetl plik

@ -83,6 +83,8 @@ Funkwhale depends on Postgres for its database container. To upgrade Postgres, y
To update your Postgres container, follow these steps:
1. Stop all Funkwhale services
```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.
```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
```console