# Rollover snapshot - Creation error

**URL:** <https://discuss.elastic.co/t/rollover-snapshot-creation-error/180738>\
**Category:** Elasticsearch\
**Created:** [May 13, 2019, 6:28am UTC](https://discuss.elastic.co/t/rollover-snapshot-creation-error/180738 "2019-05-13T06:28:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueren](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@blueren](https://discuss.elastic.co/u/blueren)\
**Post date:** [May 13, 2019, 6:28am UTC](https://discuss.elastic.co/t/rollover-snapshot-creation-error/180738/1 "2019-05-13T06:28:09Z")

</div>

As per the documentation [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_snapshot) 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
}
```

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [May 13, 2019, 7:24am UTC](https://discuss.elastic.co/t/rollover-snapshot-creation-error/180738/2 "2019-05-13T07:24:02Z")

</div>

Are you sure this is the documentation for the version you're using? Date math in snapshot names was [added in 6.4.0](https://github.com/elastic/elasticsearch/pull/30479). Which version are you using?

---

<div class="post-metadata">

**Author:** ![blueren](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@blueren](https://discuss.elastic.co/u/blueren)\
**Post date:** [May 13, 2019, 7:34am UTC](https://discuss.elastic.co/t/rollover-snapshot-creation-error/180738/3 "2019-05-13T07:34:15Z")

</div>

Oh no. I'm on 6.3.2. Bummer.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 10, 2019, 7:34am UTC](https://discuss.elastic.co/t/rollover-snapshot-creation-error/180738/4 "2019-06-10T07:34:22Z")

</div>

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