# Backup and restore - custom destination folder

**URL:** <https://discuss.elastic.co/t/backup-and-restore-custom-destination-folder/40586>\
**Category:** Elasticsearch\
**Created:** [January 31, 2016, 2:34pm UTC](https://discuss.elastic.co/t/backup-and-restore-custom-destination-folder/40586 "2016-01-31T14:34:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpraizler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tpraizler/32/46271_2.png) [@tpraizler](https://discuss.elastic.co/u/tpraizler)\
**Post date:** [January 31, 2016, 2:34pm UTC](https://discuss.elastic.co/t/backup-and-restore-custom-destination-folder/40586/1 "2016-01-31T14:34:15Z")

</div>

Hey!

I am running my cluster on found, and I am trying to configure s3 bucket to be able to create snapshots of my own.  
According to the documentation this is a valid repository creation request (which I used):

```
{
    "type": "s3",
    "settings": {
       "bucket": "elasticsearch-snapshots",
       "region": "region",
       "access_key": "ACCESS_KEY",
       "secret_key": "MY_SECRET_KEY",
       "compress": true
   }
}

```

I have 2 problems here:

- I want to be able to create snapshot and store it in a directory which will be created as part of the process. So the idea is to have a new folder with the date of creation that will store the snapshot. I didn't find any way to do that.

- Is there a way to configure this backup in elasticsearch? or I should send request to elasticsearch with my own scheduler, to take this backup?

Thanks!

---

<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 5, 2017, 11:20pm UTC](https://discuss.elastic.co/t/backup-and-restore-custom-destination-folder/40586/2 "2017-07-05T23:20:06Z")

</div>


