Commit 25704d1b authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Omite searchguard del backup y corrige restore

Parece haber un bug con la definición de los índices a restaurar. Según
la documentación, se pueden definir en cualquier formato lista de YAML,
pero en la práctica solo funciona si se especifican los elementos de la
lista separados por líneas. Por ahora, se define un solo índice, que
puede contener wildcards.
parent 10c0b4c8
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -30,12 +30,17 @@ actions:
      name: # default is 'curator-%Y%m%d%H%M%S'
      wait_for_completion: True
      max_wait: 3600
      wait_interval: 30
      disable_action: ${SNAPSHOT_DISABLE:False}
    filters:
    - filtertype: pattern
      kind: prefix
      value: ${LOG_INDEX_PREFIX:fluentd-}
      exclude: True
    - filtertype: pattern
      kind: prefix
      value: searchguard
      exclude: True

  3:
    action: delete_snapshots
@@ -62,7 +67,9 @@ actions:
    options:
      repository: ${SNAPSHOT_REPOSITORY:s3-backup}
      name: ${SNAPSHOT_RESTORE_NAME}
      indices: ${SNAPSHOT_RESTORE_INDICES}
      indices:
      - ${SNAPSHOT_RESTORE_INDICES}
      wait_interval: 30
      disable_action: ${RESTORE_SNAPSHOT_DISABLE:True}
    filters:
    - filtertype: state