snapshot_create
Create backups of Elasticsearch/OpenSearch data by generating snapshots for specified indices or entire repositories to ensure data protection and recovery.
Instructions
创建快照
参数:
repository: 仓库名称
snapshot: 快照名称
indices: 索引列表(可选,不传则备份所有)
ignore_unavailable: 忽略不存在的索引
include_global_state: 包含集群状态
wait_for_completion: 等待完成
示例:
snapshot_create("my_backup", "snapshot_1")
snapshot_create("my_backup", "snapshot_2", indices=["logs-*", "metrics-*"])
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository | Yes | ||
| snapshot | Yes | ||
| indices | No | ||
| ignore_unavailable | No | ||
| include_global_state | No | ||
| wait_for_completion | No |