# Request timeout while taking snapshot of indices for backup

**URL:** <https://discuss.elastic.co/t/request-timeout-while-taking-snapshot-of-indices-for-backup/238815>\
**Category:** Elasticsearch\
**Created:** [June 26, 2020, 8:45am UTC](https://discuss.elastic.co/t/request-timeout-while-taking-snapshot-of-indices-for-backup/238815 "2020-06-26T08:45:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pratiksha](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@pratiksha](https://discuss.elastic.co/u/pratiksha)\
**Post date:** [June 26, 2020, 8:45am UTC](https://discuss.elastic.co/t/request-timeout-while-taking-snapshot-of-indices-for-backup/238815/1 "2020-06-26T08:45:58Z")

</div>

Hi,  
I am trying to take backup of around 2TB in Elasticsearch(version 7.0.1) and the request timeouts exactly after 1 hr of processing.

Please find the curl command for taking snapshot below:  
`curl -s -X PUT "<ELASTICSEARCHSERVICE>:<CLIENT_PORT>/_snapshot/es_backup/$index-$snapshot_date_format?wait_for_completion=true" -H 'Content-Type: application/json' -d' {"ignore_unavailable": true,"include_global_state": true}'`

Please note that I have set parameter `wait_for_completion=true` in the request  
Is there any time limit set for this `wait_for_completion` option?  
Kindly let me know if there is any other parameter that needs to be set or updated in the curl request?

Thanks in advance

---

<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:** [July 24, 2020, 8:58am UTC](https://discuss.elastic.co/t/request-timeout-while-taking-snapshot-of-indices-for-backup/238815/2 "2020-07-24T08:58:56Z")

</div>

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