From a076d20cbac8be5a4eaddcec204b8f87a34ab73b Mon Sep 17 00:00:00 2001 From: smilerz Date: Tue, 28 Nov 2023 15:51:51 -0600 Subject: [PATCH] Update updating.md --- docs/system/updating.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/system/updating.md b/docs/system/updating.md index 21d07f6f..96ff61c7 100644 --- a/docs/system/updating.md +++ b/docs/system/updating.md @@ -33,16 +33,18 @@ One option is to manually [backup/restore](https://docs.tandoor.dev/system/updat A full list of options to upgrade a database provide in the [official PostgreSQL documentation](https://www.postgresql.org/docs/current/upgrading.html). 1. Collect information about your environment. + ``` bash grep -E 'POSTGRES|DATABASE' ~/.docker/compose/.env docker ps -a --format 'table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.Status}}' | awk 'NR == 1 || /postgres/ || /recipes/' ``` -[ ] Database Container -[ ] Tandoor Container -[ ] Database User +- Database Container +- Tandoor Container +- Database User 2. Export the tandoor database + ``` bash docker exec -t {{database_container}} pg_dumpall -U {{djangouser}} > ~/tandoor.sql ```