2016-08-18 34 views
0

我正在使用curator(版本3.5.1)在S3存儲桶上執行每日備份。我找到了在ElasticSearch集羣中自動刪除索引的方法,但是可以自動刪除15天以前的s3備份,而不會在ES集羣中刪除它們?Elasticsearch curator purge s3

目前我館館長命令:

curator --host elastic-prod snapshot --request_timeout 7200 --repository s3.prod.backup.elasticsearch --skip-repo-validation indices --all-indices 

感謝

+0

您是否無法使用策展人刪除快照子命令? – untergeek

+0

當我嘗試過時,館長刪除了ElasticSearch中的索引,但沒有刪除S3中的索引。如果我將S3存儲桶內容的生命週期規則設置爲自動刪除超過15天的文件,您認爲它可以工作嗎?我不知道這種方法,因爲也許我會刪除Elasticsearch或Curator的一些「重要」文件... – Matt

回答

0

而不引起Elasticsearch一些悲痛。 API應該用於刪除快照,以便Elasticsearch可以正確跟蹤它們。

+0

當你說API時,它是我需要調用的Elasticsearch API?你有一個例子嗎? – Matt