# Restore api vs custom copy script

**URL:** <https://discuss.elastic.co/t/restore-api-vs-custom-copy-script/17991>\
**Category:** Elasticsearch\
**Created:** [June 9, 2014, 12:03pm UTC](https://discuss.elastic.co/t/restore-api-vs-custom-copy-script/17991 "2014-06-09T12:03:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chetana](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@Chetana](https://discuss.elastic.co/u/Chetana)\
**Post date:** [June 9, 2014, 12:03pm UTC](https://discuss.elastic.co/t/restore-api-vs-custom-copy-script/17991/1 "2014-06-09T12:03:05Z")

</div>

I have a secondary index storage where I have both snapshot (taken from ES  
server) and valid lucene index (content is same as snapshot). If ES server  
index is cleared/deleted though the mapping is retained, could someone tell  
me which is the better option to restore in terms of time taken:

a) restoring from secondary index storage to ES using ES restore api (  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-snapshots.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-snapshots.html)  
)  
b) using custom coping technique (scp, ftp like) to copy lucene index from  
secondary index storage to ES

Thanks,

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/05fc095a-2fa9-43ef-8fe3-5efc031925e1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/05fc095a-2fa9-43ef-8fe3-5efc031925e1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:23am UTC](https://discuss.elastic.co/t/restore-api-vs-custom-copy-script/17991/2 "2017-07-06T01:23:49Z")

</div>

Closed on July 6, 2017, 1:23am UTC


