Blockchain-based distributed backup data integrity verification method and system
By employing a blockchain-based distributed backup data integrity verification method, the risks of centralization and tampering are mitigated, enabling real-time verification and end-to-end traceability. This enhances the security and reliability of data backup and is applicable to critical sectors such as finance and government.
Patent Information
- Application Number
- CN202611406578.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-27
AI Technical Summary
Existing distributed backup data verification solutions suffer from centralization risks, tampering vulnerabilities, poor real-time performance, and insufficient traceability, making it difficult to meet the requirements of "zero tampering, real-time verification, and full-link traceability" for data backup scenarios with cross-regional, large-scale, and high-security needs.
A blockchain-based distributed backup data integrity verification method is adopted. Data is collected by receiving notifications from backup nodes, global or fragmented hashes are calculated, hash data packets are generated and stored on the blockchain, and smart contracts are used to realize real-time verification and anomaly handling to build a full-link traceability system.
It achieves decentralized evidence storage, eliminates the risk of tampering, improves the real-time performance and efficiency of verification, supports large-scale expansion, and meets the compliance needs of fields such as finance and government.
Smart Images

Figure CN123179478A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of backup data verification technology, specifically to a blockchain-based distributed backup data integrity verification method and system. Background Technology
[0002] With the deepening development of the digital economy, the amount of data held by enterprises and individuals is growing exponentially, making data security a core requirement. Distributed backup technology, with its advantages of "multi-node storage and no single point of failure," has been widely applied in critical sectors such as finance, healthcare, and government. By distributing data across multiple physical or virtual nodes, it reduces the risk of data loss due to the failure of a single node. The core value of data backup lies in "recoverability," and "integrity" is a prerequisite for recoverability—only by confirming that the backup data has not been tampered with or damaged can the effectiveness of data recovery be ensured.
[0003] Currently, the integrity verification of distributed backup data mainly adopts the following schemes:
[0004] Centralized verification node solution: Deploy a centralized verification server. Each backup node uploads the verification value (such as MD5, SHA-1 hash value) of the local backup data to the verification server. During verification, the verification server aggregates the verification values of each node and compares them with the original records to determine the integrity of the data.
[0005] Point-to-point verification scheme between nodes: Each backup node pre-stores the verification values of other nodes, periodically initiates point-to-point verification requests, compares the verification values through interaction between nodes, and marks an anomaly if there is an inconsistency.
[0006] Periodic full verification scheme: Perform full hash calculation on all backup data according to a preset period (such as daily or weekly), compare the result with the historical baseline value, and confirm whether the data is complete.
[0007] However, the above solutions have obvious limitations in practical applications:
[0008] Single point of failure risk: The centralized verification node solution relies on the core server. If the server is attacked, crashes, or internal personnel tamper with the verification records, the entire verification system will fail.
[0009] High verification latency: The periodic full verification scheme requires traversing all backup data. For TB / PB level large files or massive small files, the calculation and comparison take a very long time and cannot meet the real-time verification requirements.
[0010] Potential for tampering: In point-to-point verification schemes between nodes, the verification value of a single backup node is easily tampered with locally, and there is a lack of tamper-proof records from third parties, making it difficult to trace tampering behavior.
[0011] Poor scalability: As the number of backup nodes increases (such as in a cross-regional distributed cluster), the communication and computing pressure on the centralized verification server increases linearly, the number of point-to-point verification interactions increases exponentially, and the system performance drops sharply.
[0012] Lack of traceability: Existing solutions only record the final verification results and do not retain key information such as "backup time, verification node, and modification record". When data anomalies occur, it is impossible to restore the event chain and it is difficult to locate the cause of the failure.
[0013] To address the aforementioned shortcomings, existing technologies deploy verification agents on each backup node to upload verification values to a distributed coordination node, which then centrally schedules verification tasks and aggregates the results. While this approach mitigates the single point of failure risk associated with centralized verification, it still suffers from the following core drawbacks:
[0014] Risks of semi-centralized architecture: Relying on "distributed coordination nodes" as the scheduling core of verification tasks, the coordination node cluster is still a semi-centralized architecture. If the coordination node is attacked or the data is tampered with, the global verification results will be distorted; and the performance bottleneck of the coordination node will still limit the expansion of large-scale node clusters.
[0015] Unreliable verification value storage: The verification value and verification record are stored in the local database or distributed file system of the coordinating node, without adopting tamper-proof storage technology, which poses a risk that internal personnel may maliciously modify the verification record and cover up data tampering.
[0016] The contradiction between real-time performance and resource consumption: To improve real-time performance, the verification cycle needs to be shortened, but frequent verification tasks will consume a lot of computing resources (such as CPU and memory) of the backup node, resulting in a decline in the performance of the core backup function of the backup node; if the cycle is extended, data anomalies cannot be detected in time.
[0017] Low efficiency in large file verification: Full hash calculation is used for GB / TB-level large files, without distinguishing between "static data" and "dynamic data". The hash value of unmodified data is repeatedly calculated, resulting in wasted computing power. The verification delay still cannot meet the needs of critical business.
[0018] Lack of automated anomaly handling: It can only detect data integrity anomalies, requiring manual intervention to locate faulty nodes and determine the cause of tampering. It cannot automatically trigger emergency operations such as "isolieving abnormal nodes and restoring original data", thus prolonging the fault recovery time.
[0019] Insufficient traceability: Only "verification results" and "node identifiers" are recorded, without retaining full-chain information such as "backup data generation time, verification task initiator, and abnormal event timestamps," making it impossible to provide a complete chain of evidence in case of disputes or audits.
[0020] In summary, existing technologies still have limitations in terms of architectural security, evidence credibility, real-time performance, and scalability. In particular, in distributed backup scenarios with cross-regional, large-scale, and high security requirements (such as government data backup and financial core data backup), it is difficult to meet the requirements of "zero tampering, real-time verification, and full-link traceability". Summary of the Invention
[0021] Therefore, this application provides a blockchain-based distributed backup data integrity verification method and system to solve the problems of centralization risk, tampering risk, poor real-time performance and insufficient traceability in existing distributed backup verification methods.
[0022] To achieve the above objectives, this application provides the following technical solution:
[0023] Firstly, a blockchain-based distributed backup data integrity verification method includes:
[0024] Step 1: Receive backup completion notifications sent by each backup node after completing data backup, and collect backup data according to the backup completion notifications; the backup completion notifications include: data size, data identifier, node ID, and backup timestamp;
[0025] Step 2: Determine whether the data size exceeds a preset threshold. If it does not exceed the preset threshold, calculate the global hash. If it exceeds the preset threshold, divide the backup data into shards and calculate the shard hash. Construct the global root hash based on the shard hash.
[0026] Step 3: Generate a hash data packet based on the data identifier, the node ID, the backup timestamp, the global hash or the global root hash, and the shard hash;
[0027] Step 4: Perform format verification on the hash data packet. If the format verification is successful, write it into the blockchain ledger to form a notarized hash. Upload the backup data to the InterPlanetary File System or Distributed File System for storage. Associate the storage address with the data identifier and write it into the blockchain ledger.
[0028] Step 5: Send a real-time hash calculation request to the target backup node according to the preset verification rules, obtain the real-time hash of the current data, compare and verify the real-time hash with the evidence hash, and obtain the verification result;
[0029] Step 6: If the verification result is successful, the verification result is written into the blockchain ledger; if the verification result shows data abnormality, the abnormal information is recorded and an abnormal alarm is pushed to the administrator. At the same time, the complete backup data is obtained from the InterPlanetary File System or Distributed File System, and a data recovery instruction is sent to the abnormal node.
[0030] Step 7: After confirming that the abnormal node has recovered complete data, write the recovery result and recovery timestamp into the blockchain ledger, and isolate the abnormal node;
[0031] Step 8: Receive query requests initiated by users through the visual monitoring interface, retrieve corresponding data from the blockchain ledger based on the query requests, and generate a standardized audit report.
[0032] Optionally, in step 1, the backup node includes: a physical server, a cloud storage node, and an edge device.
[0033] Optionally, in step 2, the preset threshold is 1GB; the global hash is a SHA-256 hash; and the global root hash is a Merkle tree-generated root hash.
[0034] Optionally, in step 2, for incremental backup data, when calculating the global hash or the global root hash, only the incremental hash is calculated, and the incremental hash is merged with the historical base hash to generate a new global hash or global root hash.
[0035] Optionally, in step 4, the format verification includes: whether it contains required fields and whether the hash format is correct.
[0036] Optionally, in step 5, the verification rules include: real-time triggering, timed triggering, and event triggering. The timed triggering is to verify immediately after the new data backup is completed; the timed triggering is to verify the core data at a preset time; and the event triggering is to verify when a node anomaly is detected.
[0037] Optionally, in step 6, the abnormal alarm is sent to the administrator via SMS, email, or system notification; the abnormal alarm includes abnormal details and handling suggestions.
[0038] Optionally, in step 8, when retrieving the corresponding data from the blockchain ledger according to the query request, multi-dimensional queries by data identifier, time range, and node ID are supported.
[0039] Optionally, in step 8, the visualization monitoring interface adopts a web-based visualization interface, which can display the status of backup nodes, data integrity verification results, verification task progress and abnormal event statistics, and supports user-defined verification rules and management of backup nodes.
[0040] Secondly, a blockchain-based distributed backup data integrity verification system includes:
[0041] The data acquisition module is used to receive backup completion notifications sent by each backup node after completing data backup, and to acquire backup data according to the backup completion notifications; the backup completion notifications include: data size, data identifier, node ID, and backup timestamp;
[0042] The hash generation module is used to determine whether the data size exceeds a preset threshold. If it does not exceed the preset threshold, a global hash is calculated. If it exceeds the preset threshold, the backup data is sharded and the shard hash is calculated. A global root hash is constructed based on the shard hash.
[0043] And generate a hash data packet based on the data identifier, the node ID, the backup timestamp, the global hash or the global root hash, and the shard hash;
[0044] The blockchain evidence storage module is used to perform format verification on the hash data packet. After the format verification is passed, it is written into the blockchain ledger to form the evidence storage hash. The backup data is uploaded to the InterPlanetary File System or Distributed File System for storage. The storage address is associated with the data identifier and then written into the blockchain ledger.
[0045] The smart contract verification module is used to send a real-time hash calculation request to the target backup node according to the preset verification rules, obtain the real-time hash of the current data, compare and verify the real-time hash with the evidence hash, and obtain the verification result.
[0046] The anomaly warning module is used to write the verification result into the blockchain ledger if the verification result is successful; if the verification result shows data anomaly, it records the anomaly information and pushes an anomaly alarm to the administrator.
[0047] The recovery module is used to obtain the complete backup data from the InterPlanetary File System or Distributed File System, send data recovery instructions to the abnormal node, and after confirming that the abnormal node has recovered the complete data, write the recovery result and recovery timestamp into the blockchain ledger, while isolating the abnormal node.
[0048] The traceability and auditing module is used to receive query requests initiated by users through a visual monitoring interface, retrieve corresponding data from the blockchain ledger based on the query requests, and generate standardized audit reports.
[0049] Compared with the prior art, this application has at least the following beneficial effects:
[0050] This application provides a blockchain-based distributed backup data integrity verification method. The method involves collecting backup data via backup completion notifications sent by each backup node; determining if the data size exceeds a preset threshold; if not, calculating a global hash; if it does exceed the threshold, sharding the backup data and calculating shard hashes, constructing a global root hash based on the shard hashes; generating a hash data packet and performing format verification; after successful verification, writing it into the blockchain ledger to form a notarized hash; uploading the backup data to the InterPlanetary File System (IPS) or a distributed file system for storage; associating the storage address with the data identifier and writing it into the blockchain ledger; and sending a real-time hash calculation request to the target backup node according to preset verification rules. The system acquires the real-time hash of the current data and compares it with the stored hash to obtain a verification result. If the verification result passes, it is written to the blockchain ledger. If the verification result indicates data anomaly, the system records the anomaly information, pushes an anomaly alarm to the administrator, retrieves complete backup data from the InterPlanetary File System or Distributed File System, and sends data recovery instructions to the abnormal node. After confirming that the abnormal node has recovered complete data, the recovery result and recovery timestamp are written to the blockchain ledger, and the abnormal node is isolated. The system also receives query requests initiated by users through a visual monitoring interface, retrieves the corresponding data from the blockchain ledger, and generates a standardized audit report. This application effectively overcomes the centralized dependence and tampering risks of existing solutions, achieves real-time verification response and full-link traceability of abnormal events, and significantly improves the credibility and efficiency of distributed backup data integrity verification. Attached Figure Description
[0051] To more intuitively illustrate the prior art and this application, exemplary drawings are provided below. It should be understood that the specific shapes and structures shown in the drawings should not generally be regarded as limiting conditions for implementing this application; for example, based on the technical concept disclosed in this application and the exemplary drawings, those skilled in the art are able to easily make conventional adjustments or further optimizations to the addition / reduction / classification, specific shapes, positional relationships, connection methods, size ratios, etc. of certain units (components).
[0052] Figure 1 This is a flowchart of a blockchain-based distributed backup data integrity verification method provided in Embodiment 1 of this application. Detailed Implementation
[0053] The present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0054] In the description of this application: unless otherwise stated, "a plurality of" means two or more. The terms "first," "second," "third," etc., in this application are intended to distinguish the objects referred to and do not have any special meaning in terms of technical connotation (e.g., they should not be construed as an emphasis on importance or order). Expressions such as "including," "comprising," and "having" also mean "not limited to" (certain units, components, materials, steps, etc.).
[0055] The terms used in this application, such as "upper," "lower," "left," "right," and "middle," are generally used to indicate the general relative positional relationship for the purpose of intuitive understanding by referring to the accompanying drawings, and are not absolute limitations on the positional relationship in the actual product.
[0056] Example 1
[0057] This embodiment provides a blockchain-based distributed backup data integrity verification method. This method utilizes the "immutable, decentralized, and traceable" characteristics of blockchain, combined with sharded hash calculation and smart contract automated scheduling technology, to solve the problems of "centralization risk, tampering risk, poor real-time performance, and insufficient traceability" of traditional distributed backup verification schemes. This improves the integrity and reliability of distributed backup data and verification efficiency, ensures the effectiveness of data recovery, and provides technical support for data security in key areas.
[0058] Specific objectives include: achieving decentralized notarization of backup data verification values to eliminate the risk of single-point tampering; optimizing the efficiency of large file verification by reducing computational power consumption through sharding hashing and incremental verification to meet real-time verification requirements; building a full-link traceability system for backup data to retain a complete record of "backup-verification-anomaly"; using smart contracts to automatically trigger verification tasks, locate abnormal nodes, and initiate emergency responses to reduce the cost of manual intervention; and supporting the expansion of cross-regional, large-scale backup node clusters to avoid performance bottlenecks.
[0059] Please see Figure 1 This embodiment provides a blockchain-based distributed backup data integrity verification method, including:
[0060] S1: Receive backup completion notifications sent by each backup node after completing data backup, and collect backup data according to the backup completion notifications; the backup completion notifications include: data size, data identifier, node ID, and backup timestamp;
[0061] Specifically, after each backup node (such as physical servers, cloud storage nodes, and edge devices) completes data backup, it automatically sends a backup completion notification (using HTTP or HTTPS as the backup node communication protocol). The backup completion notification carries the data size, data identifier (such as file ID), node ID, and backup timestamp, and the backup data is collected based on the backup completion notification.
[0062] This embodiment supports the collection of backup data from multiple regions and types of backup nodes (physical servers, cloud storage nodes, edge devices).
[0063] S2: Determine if the data size exceeds the preset threshold. If it does not exceed the preset threshold, calculate the global hash. If it exceeds the preset threshold, split the backup data into shards and calculate the shard hash. Construct the global root hash based on the shard hash.
[0064] Specifically, this step selects the hash calculation method based on the data size: for small files (<1GB), the global SHA-256 hash is calculated directly; for large files (≥1GB), they are fragmented (e.g., each fragment is 100MB), fragment hashes (leaf nodes) are calculated, and a Merkle tree is constructed to generate the root hash. Selecting the hash calculation method based on the data size in this step can improve efficiency.
[0065] For incremental backup data, when calculating the global hash or global root hash, only the incremental hash is calculated, and the incremental hash is merged with the historical base hash to generate a new global hash or global root hash.
[0066] This embodiment distinguishes between "static data" and "dynamic data": for small static files, a global hash (SHA-256) is directly calculated to generate a unique data identifier, avoiding the hash collision risk of MD5 / SHA-1; for large files (≥1GB), a "fragment hash + global root hash" scheme (based on a Merkle tree structure) is adopted to generate an immutable hash identifier, and only the root hash needs to be verified to confirm the overall integrity, while also supporting the location of specific tampered fragments; for dynamic data (such as real-time updated database backups), the hash of the incrementally modified parts is recorded to reduce redundant calculations, avoid the waste of computing power in full calculations, and improve real-time verification efficiency.
[0067] S3: Generate hash data packets based on data identifier, node ID, backup timestamp, global hash or global root hash, and fragment hash;
[0068] Specifically, this step generates a "hash data packet", which includes: global hash / root hash, key shard hash (for large file scenarios), data identifier, node ID, and backup timestamp.
[0069] S4: Perform format verification on the hash data packet. After passing the format verification, write it into the blockchain ledger to form a notarized hash. Upload the backup data to the InterPlanetary File System or Distributed File System for storage. After associating the storage address with the data identifier, write it into the blockchain ledger.
[0070] Specifically, this step performs format verification on the hash data packet (e.g., whether it contains required fields, whether the hash format is correct, and whether the hash length is 64 bits (SHA-256)). After the format verification is passed, the Hyperledger Fabric node interface is called to write the hash data packet into the blockchain ledger to form a notarized hash, ensuring that the data cannot be tampered with.
[0071] Simultaneously, the original backup data is uploaded to the InterPlanetary File System (IPFS) or a distributed file system for storage, and the storage address is obtained. The storage address is then associated with the "data identifier" and written into the blockchain ledger to form a correspondence between "original data address - hash identifier". This data is then submitted to the consensus node (using the Raft / PBFT consensus mechanism) and waits for the consensus node to complete the consistency verification (e.g., leader election and log replication in Raft consensus) to confirm that the transaction has been successfully uploaded to the blockchain.
[0072] After the blockchain nodes complete the consensus, they return a "successful evidence storage" confirmation (including block height and transaction ID) and record the information. At the same time, they provide an on-chain query interface to support reading the evidence storage data by data identifier / node ID, which is convenient for subsequent traceability.
[0073] This embodiment adopts a consortium blockchain architecture (Hyperledger Fabric), which supports multiple organizations (such as enterprise IT departments and third-party auditing institutions) as consensus nodes. It ensures ledger consistency through the Raft / PBFT consensus mechanism; it utilizes the immutability of blockchain to store and verify core data, eliminating the risk of tampering; and it achieves automated scheduling of verification tasks through on-chain smart contracts, reducing manual intervention.
[0074] Meanwhile, storing the original backup data in IPFS or a distributed file system, and associating only the IPFS storage address with the blockchain hash, reduces the cost of blockchain storage; and by utilizing the distributed nature of IPFS, single points of failure can be avoided, and data can be quickly retrieved through content addressing (based on file hash location); associating the IPFS storage address with the blockchain hash ensures a unique correspondence between "original data - hash identifier".
[0075] S5: Send a real-time hash calculation request to the target backup node according to the preset verification rules, obtain the real-time hash of the current data, compare and verify the real-time hash with the evidence hash, and obtain the verification result;
[0076] Specifically, this step automatically triggers a verification task based on preset verification rules, which include:
[0077] The system is triggered periodically and verifies the data immediately after the backup is completed. Specifically, once a new "hash data packet" is detected being written to the blockchain, a "real-time hash calculation request" is immediately sent to the corresponding backup node.
[0078] The system is triggered on a timed basis to verify core data at a preset time, i.e., at a preset time (e.g., 02:00 every day) according to the smart contract, and sends verification requests in batches to the core backup nodes.
[0079] Event-triggered verification is triggered when a node anomaly is detected, specifically when a backup node is detected to be offline or online, the historical data verification of that node is triggered.
[0080] After receiving the "real-time hash calculation request", the backup node recalculates the real-time hash of the target backup data (following the hash calculation rules of step S2) and returns the "real-time hash data packet" (containing the real-time hash, node ID, and calculation timestamp). The smart contract (written in Solidity / Go language) reads the evidence hash of the backup data from the blockchain ledger, compares it with the real-time hash, and obtains the verification result.
[0081] S6: If the verification result is successful, the verification result is written to the blockchain ledger; if the verification result shows that the data is abnormal, the abnormal information is recorded and an abnormal alarm is pushed to the administrator. At the same time, the complete backup data is obtained from the InterPlanetary File System or Distributed File System, and a data recovery instruction is sent to the abnormal node.
[0082] Specifically, if the verification result shows that the evidence hash and the real-time hash are consistent, it is marked as "verification passed" and the verification result is written into the blockchain ledger; if the verification result shows that the evidence hash and the real-time hash are inconsistent, it is marked as "data abnormal", and the abnormal information (abnormal node ID, data identifier, evidence hash, real-time hash, abnormal timestamp) is immediately recorded in the blockchain ledger, and an abnormal alarm is pushed to the administrator via SMS, email or system notification. The abnormal alarm includes abnormal details and handling suggestions.
[0083] Simultaneously, an emergency recovery is automatically initiated: a complete historical backup of the backup data is obtained from the InterPlanetary File System (IPFS) or a distributed file system (IPFS address based on blockchain evidence), and a data recovery command is sent to the abnormal node to overwrite the tampered data.
[0084] S7: After confirming that the abnormal node has recovered complete data, write the recovery result and recovery timestamp into the blockchain ledger, and isolate the abnormal node at the same time;
[0085] Specifically, after the recovery is completed, the verification task is retried to confirm the data integrity has been restored. The "recovery result and recovery timestamp" are written into the blockchain ledger. At the same time, the abnormal node is isolated (prohibiting it from participating in subsequent backup / verification tasks) to prevent the risk from spreading and to ensure data security. The system will be reactivated after the administrator investigates the cause of the tampering.
[0086] S8: Receives query requests initiated by users through the visual monitoring interface, retrieves corresponding data from the blockchain ledger based on the query requests, and generates standardized audit reports.
[0087] Specifically, users or auditors can initiate a query request through the "visual monitoring interface," input query conditions (such as data identifier, time range, node ID), and read the corresponding "backup records, verification records, abnormal records, and recovery records" from the blockchain ledger according to the query conditions. The data is then organized into structured data in chronological order to generate a standardized audit report.
[0088] The standardized audit report supports PDF / Excel export and includes data integrity statistics (validation pass rate, anomaly rate), anomaly event analysis (high-frequency anomaly nodes, tampering types), and processing result summary to meet compliance audit requirements.
[0089] The visual monitoring interface adopts a web-based visual interface to display the running status. The web-based visual interface can display the status of backup nodes (online / offline), data integrity verification results (pass / abnormal), verification task progress (pending / in execution / completed), and abnormal event statistics. It also supports user-defined verification rules (such as hourly verification of core data), management of backup nodes (adding / deleting nodes, configuring permissions), and initiation of manual verification tasks, realizing convenient operation and maintenance.
[0090] The web-based visualization interface can also display key metrics (such as verification pass rate, number of abnormal nodes, and backup completion rate) through dashboards, and show historical verification trends and distribution of abnormal events through charts; it can also receive user operation requests, forward them to the corresponding operations (such as configuring rules → smart contract verification, adding nodes → data collection), and provide feedback on the operation results.
[0091] This embodiment adopts a "blockchain wallet address + role permission" mechanism to distinguish roles such as "backup node administrator, verification task initiator, and auditor". Only authorized nodes can upload hash data, and only auditors can query complete traceability records to prevent unauthorized operations.
[0092] This embodiment provides a blockchain-based distributed backup data integrity verification method that addresses the core pain points of traditional distributed backup verification through technological integration, specifically including:
[0093] Decentralized evidence storage architecture: It adopts a consortium blockchain to store and verify core data (hash, node, time), eliminating the risk of single point of failure, preventing tampering, and improving credibility;
[0094] Merkle tree + incremental hashing optimization: Large files are "sharded for verification + quick tamper location" through Merkle trees, while dynamic data is reduced in computing power consumption through incremental hashing, balancing efficiency and accuracy;
[0095] Smart contract fully automated verification: From task scheduling and hash comparison to anomaly triggering, the entire process is automated without manual intervention, reducing operation and maintenance costs and meeting real-time verification requirements;
[0096] End-to-end traceability: The blockchain retains a complete record of "backup-verification-anomaly-recovery", supporting multi-dimensional queries and audits to meet compliance requirements;
[0097] IPFS + Blockchain Collaborative Storage: Raw data is stored in IPFS (saving on blockchain storage costs), and hashes are associated with IPFS addresses on the blockchain to ensure a unique correspondence between "data" and "identifier," thereby improving security.
[0098] The blockchain-based distributed backup data integrity verification method provided in this embodiment has the following advantages:
[0099] 1. Enhanced security: The immutability of blockchain prevents verification data from being tampered with, and the multi-node consensus of consortium blockchains reduces single-point risks; SHA-256 and Merkle tree technologies avoid hash collisions and ensure that data identifiers are unique, thus guaranteeing that backup data is "immutable and verifiable" from a technical perspective.
[0100] 2. Efficiency Improvement: Large file fragment verification and dynamic data incremental verification reduce verification time by more than 50% (e.g., the verification time for a 1TB file is reduced from 2 hours to 30 minutes); smart contract automated scheduling reduces manual operations by 90%, and real-time verification response time is ≤10 seconds, meeting the real-time requirements of critical business.
[0101] 3. Enhanced traceability: Blockchain's end-to-end recording supports "tracing back from abnormal results to the backup source," improving the efficiency of locating faulty nodes and tampering times by 80%, facilitating auditing and liability determination, and meeting compliance requirements in fields such as finance and government (such as the provisions of the Data Security Law regarding data backup and auditing).
[0102] 4. Scalability optimization: The consortium blockchain architecture supports adding backup nodes (across regions and organizations) without reconstructing the system; only consensus nodes need to be added. IPFS distributed storage supports petabyte-level data expansion, avoiding the capacity bottleneck of traditional centralized storage.
[0103] 5. Cost reduction: Automated verification reduces manual operation and maintenance costs (based on 100 backup nodes, annual operation and maintenance costs are reduced by 60%); IPFS storage costs are only 1 / 3 of traditional cloud storage, and the blockchain only stores hash data, further reducing storage costs; automatic anomaly recovery shortens downtime and reduces business losses caused by data loss.
[0104] 6. Enhanced User Experience: The visual interface intuitively displays the system status, allowing users to quickly configure rules, query results, and export reports without needing to master the underlying technology; multi-channel early warning and automatic recovery reduce the emergency pressure on administrators and improve the convenience of operation and maintenance.
[0105] This embodiment breaks through the limitations of traditional "centralized verification" and "semi-automated process", and builds an integrity verification system with "decentralized evidence storage, automated verification, full-link traceability and low-cost expansion", providing technical protection for the security of distributed backup data and promoting the application of distributed backup technology in scenarios with higher security requirements (such as core financial data and sensitive government data).
[0106] In summary, this embodiment effectively overcomes the centralized dependence and tampering risks of existing solutions, realizes real-time verification response and full-link traceability of abnormal events, and significantly improves the credibility and efficiency of distributed backup data integrity verification.
[0107] Example 2
[0108] This embodiment provides a blockchain-based distributed backup data integrity verification system, including:
[0109] The data acquisition module is used to receive backup completion notifications sent by each backup node after completing data backup, and to acquire backup data according to the backup completion notifications; the backup completion notifications include: data size, data identifier, node ID, and backup timestamp;
[0110] The hash generation module is used to determine whether the data size exceeds a preset threshold. If it does not exceed the preset threshold, a global hash is calculated. If it exceeds the preset threshold, the backup data is sharded and the shard hash is calculated. A global root hash is constructed based on the shard hash.
[0111] And generate a hash data packet based on the data identifier, the node ID, the backup timestamp, the global hash or the global root hash, and the shard hash;
[0112] The blockchain evidence storage module is used to perform format verification on the hash data packet. After the format verification is passed, it is written into the blockchain ledger to form the evidence storage hash. The backup data is uploaded to the InterPlanetary File System or Distributed File System for storage. The storage address is associated with the data identifier and then written into the blockchain ledger.
[0113] The smart contract verification module is used to send a real-time hash calculation request to the target backup node according to the preset verification rules, obtain the real-time hash of the current data, compare and verify the real-time hash with the evidence hash, and obtain the verification result.
[0114] The anomaly warning module is used to write the verification result into the blockchain ledger if the verification result is successful; if the verification result shows data anomaly, it records the anomaly information and pushes an anomaly alarm to the administrator.
[0115] The recovery module is used to obtain the complete backup data from the InterPlanetary File System or Distributed File System, send data recovery instructions to the abnormal node, and after confirming that the abnormal node has recovered the complete data, write the recovery result and recovery timestamp into the blockchain ledger, while isolating the abnormal node.
[0116] The traceability and auditing module is used to receive query requests initiated by users through a visual monitoring interface, retrieve corresponding data from the blockchain ledger based on the query requests, and generate standardized audit reports.
[0117] For details on the specific implementation of each module in a blockchain-based distributed backup data integrity verification system, please refer to the above description of the limitations of a blockchain-based distributed backup data integrity verification method, which will not be repeated here.
[0118] The technical features of the above embodiments can be combined in any way (as long as there is no contradiction in the combination of these technical features). For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described; these embodiments not explicitly written should also be considered to be within the scope of this specification.
Claims
1. A blockchain-based distributed backup data integrity verification method, characterized in that, include: Step 1: Receive backup completion notifications sent by each backup node after completing data backup, and collect backup data according to the backup completion notifications; The backup completion notification includes: data size, data identifier, node ID, and backup timestamp; Step 2: Determine whether the data size exceeds a preset threshold. If it does not exceed the preset threshold, calculate the global hash. If it exceeds the preset threshold, divide the backup data into shards and calculate the shard hash. Construct the global root hash based on the shard hash. Step 3: Generate a hash data packet based on the data identifier, the node ID, the backup timestamp, the global hash or the global root hash, and the shard hash; Step 4: Perform format verification on the hash data packet. If the format verification is successful, write it into the blockchain ledger to form a notarized hash. Upload the backup data to the InterPlanetary File System or Distributed File System for storage. Associate the storage address with the data identifier and write it into the blockchain ledger. Step 5: Send a real-time hash calculation request to the target backup node according to the preset verification rules, obtain the real-time hash of the current data, compare and verify the real-time hash with the evidence hash, and obtain the verification result; Step 6: If the verification result is successful, the verification result is written into the blockchain ledger; if the verification result shows data abnormality, the abnormal information is recorded and an abnormal alarm is pushed to the administrator. At the same time, the complete backup data is obtained from the InterPlanetary File System or Distributed File System, and a data recovery instruction is sent to the abnormal node. Step 7: After confirming that the abnormal node has recovered complete data, write the recovery result and recovery timestamp into the blockchain ledger, and isolate the abnormal node; Step 8: Receive query requests initiated by users through the visual monitoring interface, retrieve corresponding data from the blockchain ledger based on the query requests, and generate a standardized audit report.
2. The blockchain-based distributed backup data integrity verification method according to claim 1, characterized in that, In step 1, the backup nodes include: physical servers, cloud storage nodes, and edge devices.
3. The blockchain-based distributed backup data integrity verification method according to claim 1, characterized in that, In step 2, the preset threshold is 1GB; the global hash is a SHA-256 hash; and the global root hash is a Merkle tree-generated root hash.
4. The blockchain-based distributed backup data integrity verification method according to claim 1, characterized in that, In step 2, for incremental backup data, when calculating the global hash or the global root hash, only the incremental hash is calculated, and the incremental hash is merged with the historical base hash to generate a new global hash or global root hash.
5. The blockchain-based distributed backup data integrity verification method according to claim 1, characterized in that, In step 4, the format verification includes: whether it contains required fields and whether the hash format is correct.
6. The blockchain-based distributed backup data integrity verification method according to claim 1, characterized in that, In step 5, the verification rules include: real-time triggering, timed triggering, and event triggering. Timed triggering is to verify immediately after the new data backup is completed; timed triggering is to verify core data at preset times; and event triggering is to verify when a node anomaly is detected.
7. The blockchain-based distributed backup data integrity verification method according to claim 1, characterized in that, In step 6, the abnormal alarm is pushed to the administrator via SMS, email, or system notification; the abnormal alarm includes abnormal details and handling suggestions.
8. The blockchain-based distributed backup data integrity verification method according to claim 1, characterized in that, In step 8, when retrieving the corresponding data from the blockchain ledger according to the query request, multi-dimensional queries by data identifier, time range, and node ID are supported.
9. The blockchain-based distributed backup data integrity verification method according to claim 1, characterized in that, In step 8, the visualization monitoring interface adopts a web-based visualization interface, which can display the status of backup nodes, data integrity verification results, verification task progress and abnormal event statistics, and supports user-defined verification rules and management of backup nodes.
10. A blockchain-based distributed backup data integrity verification system, characterized in that, include: The data acquisition module is used to receive backup completion notifications sent by each backup node after completing data backup, and to acquire backup data according to the backup completion notifications. The backup completion notification includes: data size, data identifier, node ID, and backup timestamp; The hash generation module is used to determine whether the data size exceeds a preset threshold. If it does not exceed the preset threshold, a global hash is calculated. If it exceeds the preset threshold, the backup data is sharded and the shard hash is calculated. A global root hash is constructed based on the shard hash. And generate a hash data packet based on the data identifier, the node ID, the backup timestamp, the global hash or the global root hash, and the shard hash; The blockchain evidence storage module is used to perform format verification on the hash data packet. After the format verification is passed, it is written into the blockchain ledger to form the evidence storage hash. The backup data is uploaded to the InterPlanetary File System or Distributed File System for storage. The storage address is associated with the data identifier and then written into the blockchain ledger. The smart contract verification module is used to send a real-time hash calculation request to the target backup node according to the preset verification rules, obtain the real-time hash of the current data, compare and verify the real-time hash with the evidence hash, and obtain the verification result. The anomaly warning module is used to write the verification result into the blockchain ledger if the verification result is successful; if the verification result shows data anomaly, it records the anomaly information and pushes an anomaly alarm to the administrator. The recovery module is used to obtain the complete backup data from the InterPlanetary File System or Distributed File System, send data recovery instructions to the abnormal node, and after confirming that the abnormal node has recovered the complete data, write the recovery result and recovery timestamp into the blockchain ledger, while isolating the abnormal node. The traceability and auditing module is used to receive query requests initiated by users through a visual monitoring interface, retrieve corresponding data from the blockchain ledger based on the query requests, and generate standardized audit reports.
