Skip to content
Maintenance and snapshotsElasticsearch

PUT _snapshot/<repo>/<snapshot>

PUT _snapshot/<repo>/<snapshot>GET _snapshot

Create and inspect snapshots for disaster recovery.

Command
curl -X PUT "http://:9200/_snapshot//?wait_for_completion=true" -H 'Content-Type: application/json' -d '{"indices":"","ignore_unavailable":true}'

Example usage

Save point-in-time snapshots and list available backups.

curl -X PUT "http://<host>:9200/_snapshot/<repo>/<snapshot>?wait_for_completion=true" -H 'Content-Type: application/json' -d '{"indices":"<index>","ignore_unavailable":true}'
curl -X GET "http://<host>:9200/_snapshot/<repo>/_all?pretty"

Related tags

Maintenance and snapshotsGET _snapshotsearchobservabilityrest-api