# Rsync data folder "nodes/0/indices" from broken node to working node

**URL:** <https://discuss.elastic.co/t/rsync-data-folder-nodes-0-indices-from-broken-node-to-working-node/134503>\
**Category:** Elasticsearch\
**Created:** [June 5, 2018, 12:27am UTC](https://discuss.elastic.co/t/rsync-data-folder-nodes-0-indices-from-broken-node-to-working-node/134503 "2018-06-05T00:27:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreCimander](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrecimander/32/30386_2.png) [@AndreCimander](https://discuss.elastic.co/u/AndreCimander)\
**Post date:** [June 5, 2018, 12:27am UTC](https://discuss.elastic.co/t/rsync-data-folder-nodes-0-indices-from-broken-node-to-working-node/134503/1 "2018-06-05T00:27:22Z")

</div>

I couldn't find a recent answer for this (but my search skills after 16 hours of 5-to-6-upgrade-work are a little... downscaled). Long story short: I have to move 14 shards from a broken-beyond-repair node, which is booted in rescue mode, to a working node.

Can I simply `rsync -a --ignore-existing /var/lib/elasticsearch/nodes/0/indices` from the broken node to the working node?

Do I need to stop the working node during the sync?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![AndreCimander](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrecimander/32/30386_2.png) [@AndreCimander](https://discuss.elastic.co/u/AndreCimander)\
**Post date:** [June 5, 2018, 3:22am UTC](https://discuss.elastic.co/t/rsync-data-folder-nodes-0-indices-from-broken-node-to-working-node/134503/2 "2018-06-05T03:22:35Z")

</div>

Turns out: yes, you totally can. Well, better to check the index uuid and select just the missing shards, otherwise you wait quite a while to copy 600GB from one shard via a 1GBit connection.

That was exhaustive... but the numbers look good so far, the garbage collection nightmare with 5.6 and extensive-terms-query caching seems to be resolved, hooray.

---

<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 3, 2018, 3:22am UTC](https://discuss.elastic.co/t/rsync-data-folder-nodes-0-indices-from-broken-node-to-working-node/134503/3 "2018-07-03T03:22:52Z")

</div>

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