Rollover snapshot - Creation error

As per the documentation here We should be able to have a rollover date-math name for the snapshot (eg. snapshot-2019.05.13). However on executing the below via kibana, I run into the following error. How do I rectify this?

PUT /_snapshot/es_backup/%3Csnapshot-%7Bnow%2Fd%7D%3E?wait_for_completion=true
{
  "indices": "logstash-*",
  "ignore_unavailable": true,
  "include_global_state": false
}

Error:

{
  "error": {
    "root_cause": [
      {
        "type": "invalid_snapshot_name_exception",
        "reason": "[es_backup:<snapshot-{now/d}>] Invalid snapshot name [<snapshot-{now/d}>], must not contain the following characters [ , \", *, \\, <, |, ,, >, /, ?]"
      }
    ],
    "type": "invalid_snapshot_name_exception",
    "reason": "[es_backup:<snapshot-{now/d}>] Invalid snapshot name [<snapshot-{now/d}>], must not contain the following characters [ , \", *, \\, <, |, ,, >, /, ?]"
  },
  "status": 400
}

Are you sure this is the documentation for the version you're using? Date math in snapshot names was added in 6.4.0. Which version are you using?

Oh no. I'm on 6.3.2. Bummer.

1 Like

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