Skip to content

Database recovery #6654

Answered by justinclift
jekeam asked this question in Q&A
Dec 10, 2023 · 6 comments · 5 replies
Discussion options

You must be logged in to vote

What I'd probably do is this:

  1. Make a backup of that old volume (somehow), such that you can restore it if things goes badly
  2. Also make a copy of those two environment files (redash.env, redash.env_back)
  3. Add a persistent volume option to your docker-compose.yml (like this one), so the database doesn't get lost when you restart Redash in future.
  4. Run the command to create a fresh new database in that new volume location: docker compose run server create_db <-- this is just to create the directory and initial files
  5. Shut down Redash again (docker compose down)
  6. Manually copy the files from that old volume into the new persistent storage volume. Don't do this blindly, make sure the structure mat…

Replies: 6 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jekeam
Comment options

@justinclift
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jekeam
Comment options

Comment options

You must be logged in to vote
2 replies
@jekeam
Comment options

@justinclift
Comment options

Answer selected by jekeam
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants