You need to enable JavaScript to run this app.
导航

查看快照存储库

最近更新时间2023.11.10 10:33:49

首次发布时间2023.09.11 16:12:57

在实例中进行自动创建,或手动创建快照备份,系统将自动生成存储库用于存储快照。

前提条件

  • 已提前启用自动创建快照备份,且系统已经根据自动快照备份策略生成备份文件。如何开启自动快照备份功能,请参见自动创建快照
  • 已提前进行手动备份,且已经生成手动备份文件。如何手动创建快照备份,请参见手动创建快照

查看快照存储库

  1. 登录可视化工具控制台,具体操作,请参见登录可视化工具页面

  2. 在左侧导航栏单击Management > Dev Tools

  3. 查看实例的快照存储库。
    Dev Tools 页面,您可以通过 ES 的 API 查看实例的所有快照存储库。

    GET _snapshot?pretty
    

    图片
    返回如下类似信息。您可以从返回信息中获取到快照存储库的名称、TOS bucket 名称、Endpoint、存储路径等信息。

    {
      "s3_repo_o-**3s1" : {
        "type" : "s3",
        "settings" : {
          "bucket" : "doc-828",
          "path_style_access" : "false",
          "endpoint" : "tos-s3-cn-beijing.ivolces.com",
          "protocol" : "https",
          "client" : "default",
          "base_path" : "snapshot-o-**3s1",
          "region" : "cn-beijing"
        }
      },
      "s3_manual_repo_**h-snap" : {
        "type" : "s3",
        "settings" : {
          "bucket" : "doc-828",
          "path_style_access" : "false",
          "endpoint" : "tos-s3-cn-beijing.ivolces.com",
          "protocol" : "https",
          "client" : "default",
          "base_path" : "manual-snapshot-o-**3s1-**h-snap",
          "region" : "cn-beijing"
        }
      }
    }
    

查看存储库中的快照信息

  1. 获取目标存储库的名称。

  2. 查看存储库中的快照信息。

    GET _snapshot/s3_repo_iuz4gx4vfvyc****/_all?pretty
    

    图片
    返回如下类似信息。您可以从返回信息中获取到快照名称、快照状态、集群状态、快照中包含的索引、快照起始时间、快照结束时间等信息。

    {
      "snapshots" : [
        {
          "snapshot" : "**h-snap",
          "uuid" : "***FrW30h7aA",
          "version_id" : 7100299,
          "version" : "7.10.2",
          "indices" : [
            ".kibana_1",
            ".opendistro_security"
          ],
          "data_streams" : [ ],
          "include_global_state" : true,
          "state" : "SUCCESS",
          "start_time" : "2023-08-29T09:59:27.183Z",
          "start_time_in_millis" : 1693303167183,
          "end_time" : "2023-08-29T09:59:27.583Z",
          "end_time_in_millis" : 1693303167583,
          "duration_in_millis" : 400,
          "failures" : [ ],
          "shards" : {
            "total" : 2,
            "failed" : 0,
            "successful" : 2
          }
        }
      ]
    }