多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# cat snapshots 原文链接 : [https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cat-snapshots.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cat-snapshots.html) 译文链接 : [http://www.apache.wiki/display/Elasticsearch/cat+snapshots](http://www.apache.wiki/display/Elasticsearch/cat+snapshots) 贡献者 : [那伊抹微笑](/display/~wangyangting) **`snapshots`**展示了指定库中的所有快照。为了找出一个可以的库列表来查询,可以使用 **/_cat/repositories** 该命令。像下面这样查询名为 **repo1** 的快照库。 ``` % curl 'localhost:9200/_cat/snapshots/repo1?v' id status start_epoch start_time end_epoch end_time duration indices successful_shards failed_shards total_shards snap1 FAILED 1445616705 18:11:45 1445616978 18:16:18 4.6m 1 4 1 5 snap2 SUCCESS 1445634298 23:04:58 1445634672 23:11:12 6.2m 2 10 0 10 ``` 每一个快照包含了在它启动和停止时的信息。启动和停止的时间戳用两种格式表示。**HH:MM:SS** 输出格式便于人们查看。**epoch time**( 新纪元时间)保留了更多的信息,包括日期,并且如果快照是跨天的话,那么结果是机器排序的。