- The location is the path where the snapshots will be stored, this path need to be set in the elasticsearch.yml file in the path.repo property
- example: path.repo: ["/usr/share/elasticsearch/backup"]
- After setting the path.repo property in the elasticsearch.yml file, restart the elasticsearch service
curl -XPUT -k -u elastic:changeme "https://localhost:9200/_snapshot/repository_backups" -H 'Content-Type: application/json' -d '{
"type": "fs",
"settings": {
"location": "/usr/share/elasticsearch/backup"
}