include_global_state
编辑include_global_state编辑
此设置必须为 True
或 False
。
此设置的值决定 Elasticsearch 是否应在快照或恢复中包含全局集群状态。
执行 快照 时,此设置的默认值为 True
。
执行 恢复 时,此设置的默认值为 False
。
actions: 1: action: restore description: Restore my_index from my_snapshot in my_repository options: repository: my_repository name: my_snapshot indices: my_index include_global_state: False wait_for_completion: True max_wait: 3600 wait_interval: 10 filters: - filtertype: state state: SUCCESS exclude: - filtertype: ...
action: snapshot description: >- Snapshot selected indices to 'repository' with the snapshot name or name pattern in 'name'. Use all other options as assigned options: repository: my_repository name: my_snapshot include_global_state: True wait_for_completion: True max_wait: 3600 wait_interval: 10 filters: - filtertype: ...