Backup and restore - custom destination folder


(Tomer Praizler) #1

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!


(system) #2