Restore data from data folder

I've messed up something with my backups an I accidently deleted few indexes. I have a file system copy of an index (from elastic data folder), but I have deleted index in elastic. When I copy the files into elastic data folder, index is not recognized. I also tried to create index with same name with put method, and copy files into newly created folder, but after elastic restart the index status is red.

Is there any way to restore index?

Which version of Elasticsearch are you using?


Then I do not think it is possible to restore it. recent versions of Elasticsearch has improved resiliency and file system consistency checks so while this MAY have been possible in earlier versions it is no longer. Backing up Elasticsearch using file-system level snapshots is not supported and you need to use the snapshot and restore APIs.

1 Like

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