public List<BackupInfo> getBackupHistory(String backupRoot) throws IOException {
    ArrayList<BackupInfo> history = getBackupHistory(false);
    for (Iterator<BackupInfo> iterator = history.iterator(); iterator.hasNext();) {
      BackupInfo info = iterator.next();
      if (!backupRoot.equals(info.getBackupRootDir())) {
        iterator.remove();
      }
    }
    return history;
  }
Get history for backup destination
@param backupRoot backup destination path
@return List of backup info
@throws IOException if getting the backup history fails
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupSystemTable.java