public void adminBackupCurrentGroupOffsets(HttpServletRequest req,
            StringBuilder strBuff) {
        ProcessResult result = new ProcessResult();
        if (!WebParameterUtils.getStringParamValue(req, WebFieldDef.BACKUPPATH,
                false, TServerConstants.CFG_DEF_BACKUP_PATH, strBuff, result)) {
            WebParameterUtils.buildFailResult(strBuff, result.getErrMsg());
            return;
        }
        String backupPath = (String) result.getRetData();
        if (backupPath.endsWith(File.separator)) {
            if (backupPath.length() == File.separator.length()) {
                WebParameterUtils.buildFailResult(strBuff, "Illegal parameter value, "
                        + WebFieldDef.BACKUPPATH.name + " only include separator!");
                return;
            }
            backupPath = backupPath.substring(0, backupPath.length() - File.separator.length());
        }
        RetValue retValue = this.broker.getOffsetManager().backupGroupOffsets(backupPath);
        if (retValue.isSuccess()) {
            WebParameterUtils.buildSuccessResult(strBuff);
        } else {
            WebParameterUtils.buildFailResult(strBuff,
                    "backup group offsets failed: " + retValue.getErrMsg());
        }
    }
Backup consume group offsets.

@param req      request
@param strBuff  process result
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/web/BrokerAdminServlet.java