DETETE snapshot using DATE MATH


(Hamid) #1
Hello,

I'm trying to DELETE snapshots using DATE MATH.

After creating  daily  snapshot by using DATE MATH descriptors
PUT /_snapshot/ES_Backup/%3Csnapshot-%7Bnow%2Fd%7D%3E

I would like to delete those older then 7 days using

DELETE /<snapshot-{now/d-7d}>

DETELE /_snapshot/ES_Backup/%3Csnapshot-%7Bnow%2Fd-7d%7D%3E

I'm getting the following error

   {
  "error": {
    "root_cause": [
      {
        "type": "snapshot_missing_exception",
        "reason": "[ES_Backup:<snapshot-{now/d}>] is missing"
      }
    ],
    "type": "snapshot_missing_exception",
    "reason": "[ES_Backup:<snapshot-{now/d}>] is missing"
  },
  "status": 404
} 

Is there any way to delete snapshots using DATE MATH ?

Regards

(Aaron Mildenstein) #2

Setup and use Elasticsearch Curator


(system) #3

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