From 5444ab40df4a48ce57058b485a59e341c8429a01 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Sun, 2 Jan 2022 14:47:35 +0100 Subject: [PATCH] Make sure database backup and restore are running with tty --- CHANGELOG | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index fb8ee5908..fd5780ffb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -26,9 +26,9 @@ If you are running the All-in-One-Container since a longer time, you probably ne Make sure the Funkwhale version is set to `1.1.4` in `docker-compose.yml`. Now you can run this command to dump the database into a file: -`docker-compose exec funkwhale pg_dump -c -U funkwhale > "db.dump"` +`docker-compose exec -t funkwhale pg_dump -c -U funkwhale > "db.dump"` -Now you can update the Funkwhale version in `docker-compose.yml` to `1.2.0`. Additionally you should save your `data` directory, eg by running `mv data data.bak && mkdir data`. Stop Funkwhale and start it again with the new version, by using `docker-compose down && docker-compose up -d`. This will initialize a fresh DB and applies all migrations. Now you can restore your database with the following command: `cat db.dump | docker-compose exec funkwhale psql -U funkwhale`. Thats it, enjoy! +Now you can update the Funkwhale version in `docker-compose.yml` to `1.2.0`. Additionally you should save your `data` directory, eg by running `mv data data.bak && mkdir data`. Stop Funkwhale and start it again with the new version, by using `docker-compose down && docker-compose up -d`. This will initialize a fresh DB and applies all migrations. Now you can restore your database with the following command: `cat db.dump | docker-compose exec -t funkwhale psql -U funkwhale`. Thats it, enjoy! Features: