How to export data from one dgraph and import the data to other dgraph?

How to export data from one dgraph and import the data to other dgraph

Data can be exported using Export Data mutation. You may chose to export data in rdf or json format. The destination of export directory could be specified with --export flag to dgraph alpha or along with the export mutation.

The exported data can then be imported using fast data loading. Bulk Loader or Live Loader could be used depending on your use case (importing to a fresh cluster or to an already running cluster).