public static String findMostRecentBackupId(String[] backupIds) {
    long recentTimestamp = Long.MIN_VALUE;
    for (String backupId : backupIds) {
      long ts = Long.parseLong(Iterators.get(Splitter.on('_').split(backupId).iterator(), 1));
      if (ts > recentTimestamp) {
        recentTimestamp = ts;
      }
    }
    return BackupRestoreConstants.BACKUPID_PREFIX + recentTimestamp;
  }
Build temporary output path
@param fs   filesystem for default output dir
@param conf configuration
@return output path
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/util/BackupUtils.java