I am using Dgraph 1.0.0. Is there someway I could take the backup of data with node ids (uids).
Apparently, uids change after importing the data in new dgraph alpha instance. Our needs is to keep the same uids after import.
I used the below commands to test how backup works:
To export - curl localhost:7080/admin/export
To import - curl “localhost:8080/mutate?commitNow=true” --silent --request POST --header “Content-Type:application/rdf” --data-binary @g01.rdf | python -m json.tool | less