From f0db4d9942d317a72e9a38fdc239767326563d0b Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Thu, 25 Aug 2016 12:59:56 +0200 Subject: [PATCH] Add an example call of how to stop a snapshot or restore operation (#20153) --- docs/reference/modules/snapshots.asciidoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/reference/modules/snapshots.asciidoc b/docs/reference/modules/snapshots.asciidoc index 3b3980f7ca7..9fd8e069480 100644 --- a/docs/reference/modules/snapshots.asciidoc +++ b/docs/reference/modules/snapshots.asciidoc @@ -498,6 +498,12 @@ running snapshot was executed by mistake, or takes unusually long, it can be ter The snapshot delete operation checks if the deleted snapshot is currently running and if it does, the delete operation stops that snapshot before deleting the snapshot data from the repository. +[source,sh] +----------------------------------- +DELETE /_snapshot/my_backup/snapshot_1 +----------------------------------- +// CONSOLE + The restore operation uses the standard shard recovery mechanism. Therefore, any currently running restore operation can be canceled by deleting indices that are being restored. Please note that data for all deleted indices will be removed from the cluster as a result of this operation.