Skip to content

Instantly share code, notes, and snippets.

@santiblanko
Last active November 8, 2016 03:02
Show Gist options
  • Select an option

  • Save santiblanko/750c9a04529253019228bffb62fb7973 to your computer and use it in GitHub Desktop.

Select an option

Save santiblanko/750c9a04529253019228bffb62fb7973 to your computer and use it in GitHub Desktop.
DELETE /workflow2@gd_doc/
#Permite contar el numero de serie de subseries y de tipos indexados.
GET /workflow2@gd_trd/gd_tipodocumental/_count
GET /workflow2@gd_trd/gd_subserie/_count
GET /workflow2@gd_trd/gd_serie/_count
#Asi se hace un backup
#Registro de backup
#La ruta donde se guardaran los backups
PUT _snapshot/my_backup
{
"type": "fs",
"settings": {
"location": "/Users/santiago/elasticsearch/backups/my_backup"
}
}
#Hacemos PUT del snapshot_1
PUT /_snapshot/my_backup/snapshot_1
{
"indices": "workflow2@gd_doc",
"ignore_unavailable": true,
"include_global_state": false
}
#Recuperamos los datos del snapshot_1
POST /_snapshot/my_backup/snapshot_1/_restore
GET /_snapshot/_status
@santiblanko
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment