gateway-snapshot.asciidoc 1014 B

1234567891011121314151617181920212223242526272829
  1. [[indices-gateway-snapshot]]
  2. == Gateway Snapshot
  3. The gateway snapshot API allows to explicitly perform a snapshot through
  4. the gateway of one or more indices (backup them). By default, each index
  5. gateway periodically snapshot changes, though it can be disabled and be
  6. controlled completely through this API.
  7. Note, this API only applies when using shared storage gateway
  8. implementation, and does not apply when using the (default) local
  9. gateway.
  10. [source,js]
  11. --------------------------------------------------
  12. $ curl -XPOST 'http://localhost:9200/twitter/_gateway/snapshot'
  13. --------------------------------------------------
  14. [float]
  15. === Multi Index
  16. The gateway snapshot API can be applied to more than one index with a
  17. single call, or even on `_all` the indices.
  18. [source,js]
  19. --------------------------------------------------
  20. $ curl -XPOST 'http://localhost:9200/kimchy,elasticsearch/_gateway/snapshot'
  21. $ curl -XPOST 'http://localhost:9200/_gateway/snapshot'
  22. --------------------------------------------------