Updated on 2022-11-14 GMT+08:00

Querying Backups of All Graphs

You can use a specific API provided by GES to query backups of all graphs of the current tenant. The sample code is as follows:

  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);
            }
        }
    }