How to back monthly indices with curator day to day?

Hi running Curator 5.1 and Elasticsearch 6.4.2

I have the following Curator action... Which works. My concern is how do I catch the last day of the month?

So on September 1st I would need to make sure the last bit of August gets backed up...

    action: snapshot
    description: Daily raange backups.
      repository: s3-repository
      name: test-%Y.%m.%d
      wait_for_completion: True
      max_wait: 1200
      wait_interval: 10
      ignore_unavailable: True
      include_global_state: True
      partial: False
      skip_repo_fs_check: False
    - filtertype: pattern
      kind: regex
      value: '^(.*-prod-xxxxxx-).*$'
    - filtertype: period
      period_type: relative
      source: name
      range_from: 0
      range_to: 0
      timestring: '%Y.%m'
      unit: months

Should I just put...

range_from: -1
range_to: 0

Which will index the previous month once and then subsequently only the current month will be indexed because it's the only one that changed?

The easiest way to see is to set that and test with the --dry-run flag. It will not do the actions, but will show you what it would have done.

So, putting

from: -1 to: 0

captures the previous month and current month. This means that on daily backups it will backup the previous month and current month every day.

Since snapshots track the differences and not everything get's backed up, I guess I can live with it.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.