GET / snapshot

From wikieduonline
Revision as of 08:03, 7 November 2022 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Elasticsearch snapshot repository

GET /_snapshot


GET /_cat/snapshots/
PUT /_snapshot/your-snapshot-repo
POST /_snapshot/your-snapshot-repo
GET /_snapshot
{
  "your_repo": {
    "type": "s3",
    "settings": {
      "bucket": "your-bucket-name",
     "client": "default",
     "base_path": "your-base-path",
     "region": "eu-central-1",
     "compress": "true"
   }
 }
}


curl -s -i -k -XPUT -u elastic:yourpass
"https://elasticsearch-master:9200/_snapshot/your_repo/%3Csnapshot-%7Bnow%2Fd%7D%3E"


GET /_cat/snapshots/


GET /_cat/snapshot
{"error":"Incorrect HTTP method for uri [/_cat/snapshot] and method [GET], allowed: [POST]","status":405}


curl -X POST --insecure https://your_username:YOUR_PASS@localhost:9200/_snapshot/your_repo/your_latest_snapshot_name/_restore


Related[edit]

See also[edit]

  • https://www.elastic.co/guide/en/elasticsearch/reference/current/put-snapshot-repo-api.html
  • Advertising: