Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init commands to download latest database dump & reseed db from file #731

Draft
wants to merge 8 commits into
base: dev
Choose a base branch
from

Conversation

Splines
Copy link
Member

@Splines Splines commented Dec 28, 2024

Tip

Converted to draft since I just found out we don't download .sql files, but a pg_dump, so will have to adapt the script accordingly (or maybe create another script since restoring from a .sql file might also be handy.

We recently encountered an issue that required us to tinker in the production database. But this is very, very dangerous and should be avoided. Instead, let's add some commands such that we can reproduce an issue locally:

just prod download-db-dump
just docker up-reseed-from-file ./path/to/file.sql -d

See this private Wiki entry to find out what data to provide to the scripts for them to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant