# Dgraph backup

**URL:** <https://discuss.dgraph.io/t/dgraph-backup/14471>\
**Category:** Issues\
**Created:** [June 8, 2021, 11:50am UTC](https://discuss.dgraph.io/t/dgraph-backup/14471 "2021-06-08T11:50:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![preema](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/preema/32/8366_2.png) [@preema](https://discuss.dgraph.io/u/preema)\
**Post date:** [June 8, 2021, 11:50am UTC](https://discuss.dgraph.io/t/dgraph-backup/14471/1 "2021-06-08T11:50:09Z")

</div>

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**

---

<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:** [June 8, 2021, 2:23pm UTC](https://discuss.dgraph.io/t/dgraph-backup/14471/2 "2021-06-08T14:23:13Z")

</div>

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.
