From a7fe590d9660b6120579fc0c8701ee648b908997 Mon Sep 17 00:00:00 2001 From: Chiranjeevi Tirunagari Date: Wed, 2 Oct 2024 01:03:53 +0530 Subject: [PATCH] Fix commands related to external database setup --- src/pages/en/configuration/external-db.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/en/configuration/external-db.mdx b/src/pages/en/configuration/external-db.mdx index 01b9a7b6..6831e913 100644 --- a/src/pages/en/configuration/external-db.mdx +++ b/src/pages/en/configuration/external-db.mdx @@ -15,7 +15,7 @@ The local schema and recorded data must now be exported to the external Postgres 1. First, backup the local database: ```bash -kubectl exec -n db postgresql-postgresql-0 -- bash -c 'PGPASSWORD= pg_dumpall -U postgres '" > ~/path/to/dump.sql +kubectl exec -n db postgresql-0 -- bash -c 'PGPASSWORD= pg_dumpall -U postgres ' > ~/path/to/dump.sql ``` 2. Install the Postgres client on your OpenReplay instance and ensure it has access to the external database: @@ -27,7 +27,7 @@ sudo apt install postgresql-client 3. Restore the backup into the new externalPostgres: ```bash -PGPASSWORD=PG_PASSWORD psql -U PG_USERNAME -h [RDS_URL} -d postgres < /path/to/dump.sql +PGPASSWORD=PG_PASSWORD psql -U PG_USERNAME -h {RDS_URL} -d postgres < /path/to/dump.sql ``` 4. Finally, update all `postgres` variables in `openreplay -e` and point them towards the external database: