https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html
PUT https://<elastic-search-host>:9200/_snapshot/s3-backup
{
"type": "s3",
"settings": {
"bucket": "<s3 bucket name>",
"region": "us-east-1",
"access_key": "<aws access key>",
"secret_key": "<aws secret key>"
}
}
https://www.elastic.co/guide/en/elasticsearch/client/curator/current/snapshot.html
docker run --rm bobrik/curator:3.4.0 --host <elastic-search host> --port 9200 --use_ssl --ssl-no-validate snapshot --repository s3-backup indices --older-than 1 --time-unit days --timestring '%Y.%m.%d'
To list all snapshots: https://<elastic-search-host>:9200/_snapshot/s3-backup/_all
To retrieve a snapshot status: https://<elastic-search-host>:9200/_snapshot/s3-backup/<snapshot name>/_status
POST https://<elastic-search-host>:9200/_snapshot/s3-backup/<snapshot name>/_restore
{
"indices": "<index name>, <index name>",
"ignore_unavailable": "true",
"include_global_state": false,
"rename_pattern": "logstash-(.+)",
"rename_replacement": "restored-logstash-$1"
}
https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html