更新时间:2022-06-30 GMT+08:00

查询所有备份列表

您可以使用GES提供的接口查询当前租户所有图的备份列表。示例代码如下:

  private static void listBackups(GesClient client) throws GesSdkException
    {
        GesBackUpList gesBackUpList = client.queryBackups();
        if (null == gesBackUpList.getBackupList())
        {
            System.out.println("backup is null");
        }
        else
        {
            for(GesBackUp backUp: gesBackUpList.getBackupList())
            {
                System.out.println(backUp);
            }
        }
    }