I am using the below approach to backup/restore elasticsearch data
Snapshot the data to Shared File system Repo.
Before copying the contents, I made the repository read only , so no more data will be written to it.
Copy the data to Tape Storage
Later when the File system is full delete the contents of snapshot ( as it is already backed up in tape) and unregister the repo.
Now when I try to restore the the content from tape,
I copy the contents of snapshot to a folder called say restore to the shared file system (say /my/repo is the path I registered in elasticsearch.yml as snapshot folder, I copy to the path /my/repo/restore)
After copying when I try to register the repository (/my/repo/restore)
The repository is getting registered, however the snapshots are not getting listed in Kibana UI or API
It sounds like you are trying to restore a repository backup, but you are not precisely following the documented process for doing so. If you don't follow this exact process you will encounter problems. In particular,
When restoring a repository from a backup, you must not register the repository with Elasticsearch until the repository contents are fully restored. If you alter the contents of a repository while it is registered with Elasticsearch then the repository may become unreadable or may silently lose some of its contents.
Hi, with full what I meant is I keep the snapshot in the NAS storage till I reach a scenario where I don't have enough storage to back up other data and decide to delete it (as I already have the backup in tape) which I can use to restore when I need it. Now when I try to restore from tape ( I follow the same procedure as in I ve to move data from one cluster to another) but it is not working. I couldnt figure out why
If so, the usual explanation is that you are not restoring the repository to the exact state it was in when you took the snapshot. You must for instance delete any files that have been created since.
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.