docs: update command for postgres migrate

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2549>
This commit is contained in:
Alexander Dunkel 2023-08-24 09:07:21 +02:00 committed by Marge
parent 739e5fa3b7
commit 58fe1c4e57
2 changed files with 5 additions and 2 deletions

View File

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

4
docs/administrator/upgrade/docker.md Normal file → Executable file
View File

@ -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,7 +94,7 @@ 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