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

Support creating a snapshot from a DB dump #78

Open
oyamauchi opened this issue Apr 26, 2019 · 0 comments
Open

Support creating a snapshot from a DB dump #78

oyamauchi opened this issue Apr 26, 2019 · 0 comments

Comments

@oyamauchi
Copy link

We have a scheduled job to create a snapshot of our prod Postgres database on a scratch server, to allow devs to work with the prod data and quickly restore to a clean state:

  1. pg_dump the prod database
  2. pg_restore it on the scratch DB server
  3. stellar snapshot the restored DB on the scratch server
  4. Devs have their own DBs on the scratch server and can restore that snapshot to them

Steps 2 and 3 seem redundant: there's the restored copy and Stellar's copy, both of which take a long time to create (this database is pretty large). It doesn't seem like a stretch for Stellar to support creating a snapshot directly from a dump file. Do you think this is feasible?

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

No branches or pull requests

1 participant