# Data restore with elasticdump

**URL:** <https://discuss.elastic.co/t/data-restore-with-elasticdump/283945>\
**Category:** Elasticsearch\
**Created:** [September 11, 2021, 3:15pm UTC](https://discuss.elastic.co/t/data-restore-with-elasticdump/283945 "2021-09-11T15:15:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravi\_Gusain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_gusain/32/61522_2.png) [@Ravi\_Gusain](https://discuss.elastic.co/u/Ravi_Gusain)\
**Post date:** [September 11, 2021, 3:15pm UTC](https://discuss.elastic.co/t/data-restore-with-elasticdump/283945/1 "2021-09-11T15:15:10Z")

</div>

Hi, I am making use of elasticdump to restore data from one Elastic cluster to another Elastic cluster.  
I have restored all the data of previous day till midnight with the help of snapshots and now need to restore all the data written after midnight to now with elasticdump. I have written below query for the same but it don't result in any data

```auto
elasticdump --type=data --input=https://elastic:<password>@<IP>:9200 --input-index=news --output=xyz.json --searchBody="{\"query\": {\"range\": {\"timestamp\": {\"gte\": \"now-1d\", \"lt\": \"now\"}}}}" --limit 1000

Sat, 11 Sep 2021 14:52:59 GMT | got 0 objects from source elasticsearch (offset: 0)
Sat, 11 Sep 2021 14:52:59 GMT | Total Writes: 0
Sat, 11 Sep 2021 14:52:59 GMT | dump complete

```

Can some one please let me know if the above query has any issues?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 9, 2021, 3:15pm UTC](https://discuss.elastic.co/t/data-restore-with-elasticdump/283945/2 "2021-10-09T15:15:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
