Two data folder present

Hello All,

I am having the scenario two data folder present. I have accidently changed the path.data in elasticsearch.yml file. So, Two data folder present, one with old data and another with new data.

I need to merge into one data folder. Since, I am new to elasticsearch, any help would be appreciated.

Thanks,
Sabari.

This is not possible, when you changed the data folder you basically recreated the node, you can't manually move files in the elasticsearch data folder.

The best option is to start your elasticsearch with the configuration using one of the data folders, take a snapshot of the data, stop the elasticsearch, and start it again with the data folder that you want to use, configure the snapshot repository and restore it.

1 Like

Thanks.

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