Clone a snapshot
Added in 7.10.0
Clone part of all of a snapshot into another snapshot in the same repository.
Path parameters
-
repository
string Required A repository name
-
snapshot
string Required The name of the snapshot to clone from
-
target_snapshot
string Required The name of the cloned snapshot to create
Query parameters
-
master_timeout
string Explicit operation timeout for connection to master node
PUT
/_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}
curl \
--request PUT 'http://api.example.com/_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '"{\n \"indices\": \"index_a,index_b\"\n}"'
Request example
Run `PUT /_snapshot/my_repository/source_snapshot/_clone/target_snapshot` to clone the `source_snapshot` into a new `target_snapshot`.
{
"indices": "index_a,index_b"
}