Skip to content

Commit

Permalink
Fix commands related to external database setup
Browse files Browse the repository at this point in the history
  • Loading branch information
vchiranjeeviak authored Oct 1, 2024
1 parent 406895b commit a7fe590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/en/configuration/external-db.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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=<postgresPassword from vars.yaml> pg_dumpall -U postgres '" > ~/path/to/dump.sql
kubectl exec -n db postgresql-0 -- bash -c 'PGPASSWORD=<postgresPassword from vars.yaml> 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:
Expand All @@ -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:
Expand Down

0 comments on commit a7fe590

Please sign in to comment.