private boolean backupConsumeCtrlConfig(StringBuilder strBuff) {
        logger.info("[Backup Csm Ctrl] begin ");
        Map<String, GroupConsumeCtrlEntity> groupCsmInfoMap = getGroupCsmCtrlInfos(strBuff);
        if (groupCsmInfoMap == null) {
            logger.error("  download consume-ctrl configurations is null!");
            return false;
        }
        logger.info("[Backup Csm Ctrl] store consume-ctrl configurations to local file");
        storeObjectToFile(groupCsmInfoMap, backupAndRecoveryPath, storeFileNameCsmCtrl);
        logger.info("[Backup Csm Ctrl] verify configurations");
        Map<String, GroupConsumeCtrlEntity> storedGroupCsmMap =
                (Map<String, GroupConsumeCtrlEntity>) readObjectFromFile(
                        backupAndRecoveryPath, storeFileNameCsmCtrl);
        if (storedGroupCsmMap == null) {
            logger.error(strBuff.append("  read configure file ")
                    .append(backupAndRecoveryPath).append("/")
                    .append(storeFileNameCsmCtrl).append(" failure!").toString());
            strBuff.delete(0, strBuff.length());
            return false;
        }
        if (storedGroupCsmMap.size() != groupCsmInfoMap.size()) {
            logger.error("  verify failure, stored consume-ctrl configures size not equal!");
            return false;
        }
        for (Map.Entry<String, GroupConsumeCtrlEntity> qryEntry : groupCsmInfoMap.entrySet()) {
            GroupConsumeCtrlEntity targetEntity = storedGroupCsmMap.get(qryEntry.getKey());
            if (targetEntity == null || !targetEntity.isDataEquals(qryEntry.getValue())) {
                logger.error(strBuff
                        .append("  verify failure, stored consume-ctrl value not equal!")
                        .append(" data in server is ").append(qryEntry.getValue().toString())
                        .append(", data stored is ").append((targetEntity == null)
                                ? null
                                : targetEntity.toString())
                        .toString());
                strBuff.delete(0, strBuff.length());
                return false;
            }
        }
        logger.info("[Backup Csm Ctrl] end, success!");
        return true;
    }
Backup consume control configurations

@param strBuff  the string buffer
@return         true for success, false for failure
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/tools/cli/CliMetaDataBRU.java