|
@@ -224,7 +224,7 @@ filtering settings and rebalancing algorithm) once the snapshot is finished.
|
|
|
|
|
|
Once a snapshot is created information about this snapshot can be obtained using the following command:
|
|
|
|
|
|
-[source,shell]
|
|
|
+[source,sh]
|
|
|
-----------------------------------
|
|
|
GET /_snapshot/my_backup/snapshot_1
|
|
|
-----------------------------------
|
|
@@ -232,7 +232,7 @@ GET /_snapshot/my_backup/snapshot_1
|
|
|
|
|
|
All snapshots currently stored in the repository can be listed using the following command:
|
|
|
|
|
|
-[source,shell]
|
|
|
+[source,sh]
|
|
|
-----------------------------------
|
|
|
GET /_snapshot/my_backup/_all
|
|
|
-----------------------------------
|
|
@@ -240,14 +240,14 @@ GET /_snapshot/my_backup/_all
|
|
|
|
|
|
coming[2.0] A currently running snapshot can be retrieved using the following command:
|
|
|
|
|
|
-[source,shell]
|
|
|
+[source,sh]
|
|
|
-----------------------------------
|
|
|
$ curl -XGET "localhost:9200/_snapshot/my_backup/_current"
|
|
|
-----------------------------------
|
|
|
|
|
|
A snapshot can be deleted from the repository using the following command:
|
|
|
|
|
|
-[source,shell]
|
|
|
+[source,sh]
|
|
|
-----------------------------------
|
|
|
DELETE /_snapshot/my_backup/snapshot_1
|
|
|
-----------------------------------
|
|
@@ -261,7 +261,7 @@ started by mistake.
|
|
|
|
|
|
A repository can be deleted using the following command:
|
|
|
|
|
|
-[source,shell]
|
|
|
+[source,sh]
|
|
|
-----------------------------------
|
|
|
DELETE /_snapshot/my_backup
|
|
|
-----------------------------------
|
|
@@ -275,7 +275,7 @@ the snapshots. The snapshots themselves are left untouched and in place.
|
|
|
|
|
|
A snapshot can be restored using the following command:
|
|
|
|
|
|
-[source,shell]
|
|
|
+[source,sh]
|
|
|
-----------------------------------
|
|
|
POST /_snapshot/my_backup/snapshot_1/_restore
|
|
|
-----------------------------------
|
|
@@ -368,7 +368,7 @@ index will not be successfully restored unless these index allocation settings a
|
|
|
|
|
|
A list of currently running snapshots with their detailed status information can be obtained using the following command:
|
|
|
|
|
|
-[source,shell]
|
|
|
+[source,sh]
|
|
|
-----------------------------------
|
|
|
GET /_snapshot/_status
|
|
|
-----------------------------------
|
|
@@ -377,7 +377,7 @@ GET /_snapshot/_status
|
|
|
In this format, the command will return information about all currently running snapshots. By specifying a repository name, it's possible
|
|
|
to limit the results to a particular repository:
|
|
|
|
|
|
-[source,shell]
|
|
|
+[source,sh]
|
|
|
-----------------------------------
|
|
|
GET /_snapshot/my_backup/_status
|
|
|
-----------------------------------
|
|
@@ -386,7 +386,7 @@ GET /_snapshot/my_backup/_status
|
|
|
If both repository name and snapshot id are specified, this command will return detailed status information for the given snapshot even
|
|
|
if it's not currently running:
|
|
|
|
|
|
-[source,shell]
|
|
|
+[source,sh]
|
|
|
-----------------------------------
|
|
|
GET /_snapshot/my_backup/snapshot_1/_status
|
|
|
-----------------------------------
|
|
@@ -394,7 +394,7 @@ GET /_snapshot/my_backup/snapshot_1/_status
|
|
|
|
|
|
Multiple ids are also supported:
|
|
|
|
|
|
-[source,shell]
|
|
|
+[source,sh]
|
|
|
-----------------------------------
|
|
|
GET /_snapshot/my_backup/snapshot_1,snapshot_2/_status
|
|
|
-----------------------------------
|
|
@@ -409,7 +409,7 @@ the simplest method that can be used to get notified about operation completion.
|
|
|
|
|
|
The snapshot operation can be also monitored by periodic calls to the snapshot info:
|
|
|
|
|
|
-[source,shell]
|
|
|
+[source,sh]
|
|
|
-----------------------------------
|
|
|
GET /_snapshot/my_backup/snapshot_1
|
|
|
-----------------------------------
|
|
@@ -421,7 +421,7 @@ for available resources before returning the result. On very large shards the wa
|
|
|
|
|
|
To get more immediate and complete information about snapshots the snapshot status command can be used instead:
|
|
|
|
|
|
-[source,shell]
|
|
|
+[source,sh]
|
|
|
-----------------------------------
|
|
|
GET /_snapshot/my_backup/snapshot_1/_status
|
|
|
-----------------------------------
|