Backup
![Card image cap](https://stoeps.de/posts/2022/backup-elasticsearch-indices-cronjob/jandira-sonnendeck-AcW1ZwD-qC0-unsplash_hu26d67ebfb66a91035cfd61679b5843cb_703344_350x175_fill_q75_box_smart1.jpg)
Last week I played around with the HCL Connections documentation to backup Elasticsearch in the article Backup Elasticsearch Indices in Component Pack .
In the end I found that I couldn’t get the snapshot restored and that I have to run a command outside of my Kubernetes cluster to get a snapshot on a daily basis. That’s not what I want.
Created: Read in about 4 min
![Card image cap](https://stoeps.de/posts/2022/backup-elasticsearch-indices/markus-winkler-cV9-hOgoaok-unsplash_hu04e9b688a6e7c4bd08c386f4d2166a8e_2922477_350x175_fill_q75_box_smart1.jpg)
During a migration from Cognos Metrics to Elasticsearch Metrics, I had some issues with the index. So I wanted to create a backup of the already migrated data and start over from scratch.
The official documentation has an article on the topic: Backing up and restoring data for Elasticsearch-based components , but I had to slightly adjust the commands to get a successful snapshot.
Created:
Last Update: Read in about 6 min
Last Update: Read in about 6 min
![Aaron Burden: Fountain pen and a notebook](https://stoeps.de/images/list-featured.jpg)
Please remember to backup your data! […] When a hard drive fails and the data isn’t backed up, it’s gone. And it’s not a question of if your drive will fail, it’s when. Remember, every single computer component will fail eventually. […] Read more
Created:
Last Update: Read in about 1 min
Last Update: Read in about 1 min