I've snapshot indices that are older than 7 days and store them in s3 as a backup
And I want to delete them after 30 days via bucket policies using prefix
Is it possible to create a snapshot folder name after indices?
ps.
I'm using Elastic Cloud and make a snapshot via Elastic Curator
e.g.
/indices-name-06-09-2018
/indices-name-05-09-2018
I've delete them after snapshot
So it's not possible to delete them via APIs (because it's gone)
My use case is -
Indices that older than X days are moved outside elasticsearch (to s3)
By moving, It's mean snapshot and delete them
at s3, indices (snapshots) that are older than Y days are deleted permanently
s3 are just like cold storage to us
in case we want to use old data, we just restore to another cluster
if not, we just delete it
Short answer: No. As has already been stated, you should never interact with snapshots or the repository except via the API. Everything has names when you use the API.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.