From 0a97e762ad4868d0268d690f8ff9de939906187c Mon Sep 17 00:00:00 2001 From: Karan Rathod Date: Tue, 12 Dec 2023 17:56:50 +0530 Subject: [PATCH] add backup info for docker setup --- docs/docs/setup/docker.md | 10 ++++++++++ docs/versioned_docs/version-2.25.0/setup/docker.md | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/docs/docs/setup/docker.md b/docs/docs/setup/docker.md index 8a80874ba0..449e99e14c 100644 --- a/docs/docs/setup/docker.md +++ b/docs/docs/setup/docker.md @@ -133,6 +133,16 @@ Confused about which setup to select? Feel free to ask the community via Slack: +## Docker Backup +The is a Docker-specific feature that assists in backing up the database during an upgrade process. If you plan to utilize this feature, uncomment the backup service in the docker-compose file. Additionally, you need to set an environment variable: `DATABASE_BACKUP=true`. This enables the creation of a `pg_dump` file, which will be stored in the backup folder. + +To restore the database from this dump, execute the following command: + +``` +cat your_dump.sql | docker exec -i --user postgres psql -U postgres +``` + + ## Upgrading to v2.24.3-ee2.10.2 Version v2.24.3-ee2.10.2 includes architectural changes and, hence, comes with new migrations. diff --git a/docs/versioned_docs/version-2.25.0/setup/docker.md b/docs/versioned_docs/version-2.25.0/setup/docker.md index 8a80874ba0..9239a49390 100644 --- a/docs/versioned_docs/version-2.25.0/setup/docker.md +++ b/docs/versioned_docs/version-2.25.0/setup/docker.md @@ -133,6 +133,15 @@ Confused about which setup to select? Feel free to ask the community via Slack: +## Docker Backup +The is a Docker-specific feature that assists in backing up the database during an upgrade process. If you plan to utilize this feature, uncomment the backup service in the docker-compose file. Additionally, you need to set an environment variable: `DATABASE_BACKUP=true`. This enables the creation of a `pg_dump` file, which will be stored in the backup folder. + +To restore the database from this dump, execute the following command: + +``` +cat your_dump.sql | docker exec -i --user postgres psql -U postgres +``` + ## Upgrading to v2.24.3-ee2.10.2 Version v2.24.3-ee2.10.2 includes architectural changes and, hence, comes with new migrations.