Bryan Jyh Herng Chong
Bryan Jyh Herng Chong

Reputation: 630

How to export DGraph database in a docker container (Windows)

I hope I was terse but specific enough at the title:
What I am trying to do

Upvotes: 2

Views: 679

Answers (1)

Bryan Jyh Herng Chong
Bryan Jyh Herng Chong

Reputation: 630

  • execute docker exec -it <container id> curl localhost:8080/admin/export
  • ascertain that the export folder is found under /dgraph
  • cp from the dgraph server like so: docker cp <container id>:/dgraph/export .
  • locate your database export at your pwd
  • rm -rf the export folder in the container.

references:
- https://discuss.dgraph.io/t/unable-to-run-admin-export-on-server-via-putty/1748/9

Upvotes: 3

Related Questions