Skip to content

Instantly share code, notes, and snippets.

@wvandrunen
Last active September 23, 2016 07:31
Show Gist options
  • Select an option

  • Save wvandrunen/06b3bc45b388babc99e2 to your computer and use it in GitHub Desktop.

Select an option

Save wvandrunen/06b3bc45b388babc99e2 to your computer and use it in GitHub Desktop.
Elasticsearch
## IN CONFIG
path.repo: ["\\\\PATH\\x\\ELASTIC\\DEV"]
## BUCKET AANMAKEN (op beide clusters)
PUT /_snapshot/DEV
{
"type": "fs",
"settings": {
"location": "\\\\PATH\\x\\ELASTIC\\DEV",
"compress": false
}
}
## SNAPSHOT MAKEN
PUT _snapshot/DEV/[NAAM]
{
"ignore_unavailable": false,
"include_global_state": false,
"indices": "*"
}
## RESTORE
POST /_snapshot/DEV/[NAAM]/_restore
{
"ignore_unavailable": false,
"include_global_state": false,
"indices": "*"
}
## STATUS
GET _cat/indices?bytes=human&ignore_unavailable=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment