Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajivmehtaflex/b02d99a9173fe23b4cc3d84db29975c0 to your computer and use it in GitHub Desktop.
Save rajivmehtaflex/b02d99a9173fe23b4cc3d84db29975c0 to your computer and use it in GitHub Desktop.
//Get Repo List
GET /_cat/repositories
//Get Snapshot info
GET /_snapshot/gProviderbackup/_all
//Start Snapshot info
PUT _snapshot/gProviderbackup/snapshot-v1
//Set the status
GET _snapshot/_status
//Backup of perticular index
PUT /_snapshot/gProviderbackup/snapshot-v?wait_for_completion=true
{
"indices": "gdemo",
"ignore_unavailable": "true",
"include_global_state": false
}
DELETE /gdemo
//Restore process
POST /_snapshot/gProviderbackup/snapshot-v/_restore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment