Difference between revisions of "GET / snapshot"
Jump to navigation
Jump to search
↑ https://www.elastic.co/guide/en/elasticsearch/reference/current/put-snapshot-repo-api.html
(20 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | GET /_snapshot | + | [[Elasticsearch snapshot repository]] |
− | * https://www.elastic.co/guide/en/elasticsearch/reference/current/ | + | GET [[/_snapshot]] |
+ | * https://www.elastic.co/guide/en/elasticsearch/reference/current/get-snapshot-api.html | ||
+ | |||
+ | |||
+ | [[GET /_cat/snapshots/]] | ||
+ | [[PUT /_snapshot/]][[your-snapshot-repo]] | ||
+ | POST /_snapshot/your-snapshot-repo | ||
+ | GET /_snapshot | ||
{ | { | ||
"your_repo": { | "your_repo": { | ||
Line 9: | Line 16: | ||
"bucket": "your-bucket-name", | "bucket": "your-bucket-name", | ||
"client": "default", | "client": "default", | ||
− | "base_path": "your-base-path", | + | "[[base_path]]": "your-base-path", |
"region": "eu-central-1", | "region": "eu-central-1", | ||
"compress": "true" | "compress": "true" | ||
Line 16: | Line 23: | ||
} | } | ||
+ | |||
+ | curl -s [[-i]] -k [[-XPUT]] -u elastic:yourpass | ||
+ | "https://elasticsearch-master:9200/_snapshot/your_repo/%3Csnapshot-%7Bnow%2Fd%7D%3E" | ||
+ | |||
+ | |||
+ | GET [[/_cat/snapshots/]] | ||
Line 26: | Line 39: | ||
== Related == | == Related == | ||
+ | * [[Elasticsearch snapshots]] | ||
* [[Elasticsearch curl URLs]] | * [[Elasticsearch curl URLs]] | ||
− | * <code>[[/_cat/repositories]]</code> | + | * List repositories: <code>[[/_cat/repositories]]</code> |
+ | * [[Create or update snapshot]] <ref>https://www.elastic.co/guide/en/elasticsearch/reference/current/put-snapshot-repo-api.html</ref>: <code>PUT /_snapshot/[[your_repo]]</code> | ||
== See also == | == See also == | ||
+ | * {{ES snapshots}} | ||
* {{elasticsearch}} | * {{elasticsearch}} | ||
[[Category:Elasticsearch]] | [[Category:Elasticsearch]] |
Latest revision as of 08:03, 7 November 2022
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]
- Elasticsearch snapshots
- Elasticsearch curl URLs
- List repositories:
/_cat/repositories
- Create or update snapshot [1]:
PUT /_snapshot/your_repo
See also[edit]
- Elasticsearch snapshots
- Elasticsearch, installation, ELK, Elastic X-Pack,
elasticsearch.yml
, logs, ECK, Elasticsearch curl URLs, Elastisearch REST APIs,/_cat/, /_cluster/, /_xpack/
, QueryShardException, Elasticsearch index, ELK backup and restore,elasticsearch-cli
, Elasticsearch versions, ElasticSearch Snapshot Lifecycle Management (SLM), Low disk watermark, Elasticsearch storage, Elasticsearch users, Elasticsearch roles, search context, shards, Elastic Cloud, Elastic Licensing, ElasticSearch alerts, ESQL
Advertising: