private boolean backupTopicDeployConfig(StringBuilder strBuff) {
        logger.info("[Backup Topic Deploy] begin ");
        Map<String, TopicDeployEntity> topicDeployMap = getTopicDeployInfos(strBuff);
        if (topicDeployMap == null) {
            logger.error("  download topic-deploy configurations is null!");
            return false;
        }
        logger.info("[Backup Topic Deploy] store topic-deploy configurations to local file");
        storeObjectToFile(topicDeployMap, backupAndRecoveryPath, storeFileNameTopicDeploy);
        logger.info("[Backup Topic Deploy] verify configurations");
        Map<String, TopicDeployEntity> storedTopicDeployMap =
                (Map<String, TopicDeployEntity>) readObjectFromFile(
                        backupAndRecoveryPath, storeFileNameTopicDeploy);
        if (storedTopicDeployMap == null) {
            logger.error(strBuff.append("  read configure file ")
                    .append(backupAndRecoveryPath).append("/")
                    .append(storeFileNameTopicDeploy).append(" failure!").toString());
            strBuff.delete(0, strBuff.length());
            return false;
        }
        if (storedTopicDeployMap.size() != topicDeployMap.size()) {
            logger.error("  verify failure, stored topic-deploy configures size not equal!");
            return false;
        }
        for (Map.Entry<String, TopicDeployEntity> qryEntry : topicDeployMap.entrySet()) {
            TopicDeployEntity targetEntity = storedTopicDeployMap.get(qryEntry.getKey());
            if (targetEntity == null || !targetEntity.isDataEquals(qryEntry.getValue())) {
                logger.error(strBuff
                        .append("  verify failure, stored topic-deploy value not equal!")
                        .append(" data in server is ").append(qryEntry.getValue().toString())
                        .append(", data stored is ").append((targetEntity == null)
                                ? null
                                : targetEntity.toString())
                        .toString());
                return false;
            }
        }
        logger.info("[Backup Topic Deploy] end, success!");
        return true;
    }
Backup topic deploy 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