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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.