https://github.com/framsouza/elasticsearch-snapshot
Code responsable to run snapshot & restore on Elasticearch
https://github.com/framsouza/elasticsearch-snapshot
Last synced: 2 months ago
JSON representation
Code responsable to run snapshot & restore on Elasticearch
- Host: GitHub
- URL: https://github.com/framsouza/elasticsearch-snapshot
- Owner: framsouza
- Created: 2020-06-04T09:51:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-17T10:07:14.000Z (over 2 years ago)
- Last Synced: 2025-03-20T04:40:06.668Z (about 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# elasticsearch-snapshot
This code suppose you already have the repository plugin installed. If you still need to configure it, jump to the Elasticsearch docs: https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-register-repository.html
## Variables needed
- `ELASTIC_HOST`
- `REPO_NAME`
## How to use it
This code is responsable to connect into Elasticsearch cluster and take a snapshot twice a day (at the beginning & at the end of the day). The snapshot file is store in a Google Cloud Storage.
The code is executed in a Kubernetes CronJob, that means it's trigger automatically every day at certain time.
To send slack notification when the snapshot is finished, remember to add slack token and a slack channel name or id.