From fbc29da8b3324b9498db20cc26f1293009e0f366 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 8 Jun 2023 16:30:20 -0400 Subject: [PATCH] Forgot to add a chown command for docker restore. (#192) * Forgot to add a chown command for docker restore. * Add depending on system. --- src/en/administration/backup_and_restore.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/en/administration/backup_and_restore.md b/src/en/administration/backup_and_restore.md index 4c1f436..f50ca32 100644 --- a/src/en/administration/backup_and_restore.md +++ b/src/en/administration/backup_and_restore.md @@ -34,6 +34,13 @@ docker-compose up -d postgres # Restore from the .sql.gz backup gunzip < db_dump.sql | docker-compose exec -T postgres psql -U lemmy + +# Note: You may need to change the permissions on the postgres directory, depending on your system. +chown -R $USER volumes +docker-compose restart postgres + +# Continue with the startup +docker-compose up -d ``` If you've accidentally already started the lemmy service, you need to clear out your existing database: