Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to migrate from the built-in postgres database to an external database without losing data.#7058

Answeredbykylecarbs
matifali asked this question inGeneral
Discussion options

Is there a way to migrate to an external database from the built-in database without losing the data?

You must be logged in to vote

The following steps should work:

  1. Stop your Coder deployment.
  2. Runcoder server postgres-builtin-serve in a background terminal.
  3. Runcoder server postgres-builtin-url and copy its output command.
  4. Runpg_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

Comment options

The following steps should work:

  1. Stop your Coder deployment.
  2. Runcoder server postgres-builtin-serve in a background terminal.
  3. Runcoder server postgres-builtin-url and copy its output command.
  4. Runpg_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!

You must be logged in to vote
3 replies
@matifali
Comment options

matifaliApr 12, 2023
Maintainer Author

Thanks, Kyle, for the detailed steps. It was swift to move to an external DB.

@matifali
Comment options

matifaliMay 21, 2023
Maintainer Author

Moving these steps to our docs.

@matifali
Comment options

matifaliMay 22, 2023
Maintainer Author

Answer selected bydeansheather
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
2 participants
@matifali@kylecarbs
Converted from issue

This discussion was converted from issue #7057 on April 09, 2023 04:23.


[8]ページ先頭

©2009-2025 Movatter.jp