Skip to content

Commit 5113054

Browse files
authored
docs: Add steps to migrate from the built-in database to an external database (#7614)
1 parent ef2411e commit 5113054

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/admin/configure.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ coder server postgres-builtin-url
6565
psql "postgres://coder@localhost:49627/coder?sslmode=disable&password=feU...yI1"
6666
```
6767

68+
### Migrating from the built-in database to an external database
69+
70+
To migrate from the built-in database to an external database, follow these steps:
71+
72+
1. Stop your Coder deployment.
73+
2. Run `coder server postgres-builtin-serve` in a background terminal.
74+
3. Run `coder server postgres-builtin-url` and copy its output command.
75+
4. Run `pg_dump <built-in-connection-string> > coder.sql` to dump the internal database to a file.
76+
5. Restore that content to an external database with `psql <external-connection-string> < coder.sql`.
77+
6. Start your Coder deployment with `CODER_PG_CONNECTION_URL=<external-connection-string>`.
78+
6879
## System packages
6980

7081
If you've installed Coder via a [system package](../install/packages.md) Coder, you can

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy