I'm taking ES snapshots for every 15min, snapshot name will be in the format es-snapshot-YYYY-MM-DD-HH-MM-SS
Two questions:
As per documentation it will be incremental, and I never attempted to delete any. But after 3months, now I couldn't able to query the list of snapshots (giving timeouts). Am I doing anything wrong in maintaining my ES snapshots?
If I'm OK to delete few older snapshots, Is there a way to delete by using a prefix like "es-snapshot-2019-06*"?
Probably not. From the Elasticsearch snapshot API docs:
The documentation does suggest that you may experience timeouts as your snapshot repository grows. Running a
GET /_snapshot/<repo-name>/_all?verbose=false
should give you a successful response.Yes, that syntax is supported. In terms of how that works with incremental snapshots, I don't have a reference for this in the docs but my understanding is that the incremental files from your
2019-06-*
snapshots would all get merged into your first2019-07-01
snapshot, and this snapshot would effectively just be a bigger increment if that makes sense.