Dgraph backup

Hi,

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

1 Like

This is a very old version, the latest one will export maintaining the UID. I think this was introduced somewhere like 2.x.x of after. Please, upgrade. We also don’t support old versions.

1 Like