# Where does export command export the data on server

**URL:** <https://discuss.dgraph.io/t/where-does-export-command-export-the-data-on-server/12422>\
**Category:** Dgraph\
**Created:** [January 24, 2021, 9:08am UTC](https://discuss.dgraph.io/t/where-does-export-command-export-the-data-on-server/12422 "2021-01-24T09:08:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![moditej](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/moditej/32/6028_2.png) [@moditej](https://discuss.dgraph.io/u/moditej)\
**Post date:** [January 24, 2021, 9:08am UTC](https://discuss.dgraph.io/t/where-does-export-command-export-the-data-on-server/12422/1 "2021-01-24T09:08:41Z")

</div>

I want to take backup of dgraph database in community edition.

I have executed the curl command : **curl --location --request POST ‘[http://localhost:8080/admin](http://localhost:8080/admin)’ --header ‘Content-Type: application/json’ --data-raw '{“query”:“mutation {\n export(input: {format: “json”}) {\n response {\n message\n code\n }\n }\n}”,“variables”:{}}'**  
Got a success response as well.  
But my query is where exactly is the backup created on my machine and how can I use it to import again in future. Any help will be appreciated.

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [January 24, 2021, 4:40pm UTC](https://discuss.dgraph.io/t/where-does-export-command-export-the-data-on-server/12422/2 "2021-01-24T16:40:55Z")

</div>

It will be where you have started the Dgraph binary. If you are using docker(always good to contextualize upfront) the export will be inside the container.
