Curator
Last updated
client:
hosts:
- 127.0.0.1
port: 9200
url_prefix:
use_ssl: False
certificate:
client_cert:
client_key:
ssl_no_validate: False
http_auth:
timeout: 30
master_only: False
logging:
loglevel: INFO
logfile:
logformat: default
blacklist: ['elasticsearch', 'urllib3']actions:
1:
action: snapshot
description: >-
Snapshot all indices. Wait for the snapshot to complete. Do not skip
the repository filesystem access check.
options:
repository: snowowl-snapshots
name:
ignore_unavailable: False
include_global_state: True
partial: False
wait_for_completion: True
skip_repo_fs_check: False
disable_action: False
filters:
- filtertype: none
2:
action: delete_snapshots
description: >-
Keep 10 most recent snapshots in the selected repository
(based on creation_date), for 'curator-' prefixed snapshots. Ordering
is age-based and reversed by default for the 'count' filter.
options:
repository: snowowl-snapshots
disable_action: False
ignore_empty_list: True
filters:
- filtertype: pattern
kind: prefix
value: curator-
exclude:
- filtertype: count
count: 10
use_age: True
source: creation_date$ curator --config curator.yml snowowl_snapshot.ymlactions:
1:
action: restore
description: >-
Restore all indices in the most recent curator-* snapshot with state SUCCESS. Wait
for the restore to complete before continuing. Do not skip the repository
filesystem access check.
options:
repository: snowowl-snapshots
# If name is blank, the most recent snapshot by age will be selected
name:
# If indices is blank, all indices in the snapshot will be restored
indices:
include_aliases: False
ignore_unavailable: False
include_global_state: False
partial: False
rename_pattern:
rename_replacement:
extra_settings:
wait_for_completion: True
skip_repo_fs_check: False
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: curator-
- filtertype: state
state: SUCCESS$ curator --config curator.yml snowowl_restore.yml0 3 * * * /path/to/curator --config /path/to/snowowl/configs/curator.yml /path/to/snowowl/configs/curator/snowowl_snapshot.yml > /var/log/backup.log 2>&1