- Notifications
You must be signed in to change notification settings - Fork926
-
Is there a way to migrate to an external database from the built-in database without losing the data? |
BetaWas this translation helpful?Give feedback.
All reactions
The following steps should work:
- Stop your Coder deployment.
- Run
coder server postgres-builtin-serve
in a background terminal. - Run
coder server postgres-builtin-url
and copy its output command. - Run
pg_dump <connection-string>
to dump the database contents. Then restore that content to an external database, and start Coder pointing at the new one!
Let me know if something needs to be changed; happy to help!
Replies: 1 comment 3 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
The following steps should work:
Let me know if something needs to be changed; happy to help! |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Thanks, Kyle, for the detailed steps. It was swift to move to an external DB. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Moving these steps to our docs. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Available in docs at:https://coder.com/docs/v2/latest/admin/configure#migrating-from-the-built-in-database-to-an-external-database |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #7057 on April 09, 2023 04:23.