Commit 2a7bae0f authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Elimina documentación obsoleta

Actualmente ya se puede hacer la configuración de repositorios para
snapshots y restores desde la interfaz de Kibana, ya no se requiere la
ejecución manual de comandos en el contenedor de Elasticsearch.
parent 73a8b9af
Loading
Loading
Loading
Loading
+0 −23
Original line number Diff line number Diff line
# Elasticsearch

Elasticsearch is an open source distributed, RESTful search and analytics engine, scalable data store, and vector database

## Snapshots

In order to create backups, you must configure a snapshot repository first. Run these command once inside running container:

```sh
$ echo "${S3_ACCESS_KEY}" | elasticsearch-keystore add --stdin s3.client.default.access_key
$ echo "${S3_SECRET_KEY}" | elasticsearch-keystore add --stdin s3.client.default.secret_key

$ curl -XPOST -u <user>:<pass> 'http://localhost:9200/_nodes/reload_secure_settings'
// This can be run through Kibana console:
// POST _nodes/reload_secure_settings

$ curl -XPUT -u <user>:<pass> 'http://localhost:9200/_snapshot/s3-backup' -d '{
  "type": "s3",
  "settings": {
    "bucket": "redmic.elasticsearch.backup",
    "region": "eu-west-1"
  }
}'
// This can be run through Kibana console:
// PUT _snapshot/s3-backup { ... }
```