# Create Snapshots using curator

**URL:** <https://discuss.elastic.co/t/create-snapshots-using-curator/88597>\
**Category:** Elasticsearch\
**Created:** [June 7, 2017, 2:30pm UTC](https://discuss.elastic.co/t/create-snapshots-using-curator/88597 "2017-06-07T14:30:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![owenbutt](https://avatars.discourse-cdn.com/v4/letter/o/ac8455/32.png) [@owenbutt](https://discuss.elastic.co/u/owenbutt)\
**Post date:** [June 7, 2017, 2:30pm UTC](https://discuss.elastic.co/t/create-snapshots-using-curator/88597/1 "2017-06-07T14:30:41Z")

</div>

Hi Guys,  
New to using curator and have been able to successfully setup and install it. Now when I run it, I'm getting the following error message:

`[root@localhost ~]# curator --config /root/config.yml --dry-run snapshot.yml`

I'm using the examples at the link below for config file:

[https://www.elastic.co/guide/en/elasticsearch/client/curator/current/configfile.html](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/configfile.html)

and for action:

[https://www.elastic.co/guide/en/elasticsearch/client/curator/current/actionfile.html](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/actionfile.html)

`[root@localhost ~]# curator --config /root/config.yml --dry-run snapshot.yml 2017-06-07 15:22:12,615 ERROR Schema error: required key not provided @ data['repository'] Configuration: options: Location: Action ID "1", action "snapshot": Bad Value: "(could not determine)", required key not provided @ data['repository']. Check configuration file.`

I've been researching this the whole day and added a filename as well to the name: field. Any help would be much appreciated.

---

<div class="post-metadata">

**Author:** ![lzukel](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@lzukel](https://discuss.elastic.co/u/lzukel)\
**Post date:** [June 14, 2017, 10:46pm UTC](https://discuss.elastic.co/t/create-snapshots-using-curator/88597/2 "2017-06-14T22:46:01Z")

</div>

You need to include the name of the repository you created in the repository field.  
Following this [https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#\_repositories](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_repositories) documentation. I named my repository es\_backups.

Example:

```
actions:
  1:
    action: snapshot
    description: >-
      Snapshot indices older than 0 day (based on index
      creation_date) with the default snapshot name pattern of
      'curator-%Y%m%d%H%M%S'. Wait for the snapshot to complete. Do not skip
      the repository filesystem access check. Use the other options to create
      the snapshot.
    options:
      repository: es_backups
      # Leaving name blank will result in the default 'curator-%Y%m%d%H%M%S'
      name:
      ignore_unavailable: False
      include_global_state: True
      partial: False
      wait_for_completion: True
      skip_repo_fs_check: False
      disable_action: False
    filters:
    - filtertype: age
      source: creation_date
      direction: older
      unit: days
      unit_count: 0
```

---

<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:** [July 12, 2017, 10:46pm UTC](https://discuss.elastic.co/t/create-snapshots-using-curator/88597/3 "2017-07-12T22:46:20Z")

</div>

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