Last active
November 8, 2016 03:02
-
-
Save santiblanko/750c9a04529253019228bffb62fb7973 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.karelbemelmans.com/2015/03/elasticsearch-backup-script-with-snapshot-rotation/