Data mirror image backup method and device, equipment, medium and product

By establishing a connection between the data collector and the mirror server, the data reposting unit and the data receiving unit are used to achieve data automation transmission and backup of data, which solves the problem of time -consuming and high error rate of traditional data backup methods, and improves data backup. Efficiency and reliability.

CN119377007APending Publication Date: 2025-01-28北京力控元通科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411397824.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

Traditional data backup methods are time-consuming and labor-intensive, and have a high error rate, which cannot effectively ensure the integrity and availability of data.

Method used

By establishing a connection between the data collector and the mirror server, the data forwarding unit and the data receiving unit are used to achieve the automated transmission and backup of the data, and the integrity of the transmission process is verified.

Benefits of technology

Improve the efficiency and reliability of data backup, reduce error rate, and ensure the integrity and availability of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119377007A_ABST
    Figure CN119377007A_ABST
Patent Text Reader

Abstract

The invention discloses a data mirror image backup method and device, equipment, a medium and a product, and relates to the field of data storage, and the method comprises the steps: obtaining production data, and storing the production data to a data collection module; a data forwarding unit is constructed in the data acquisition module, a data receiving unit is constructed in the mirror image server, and the data forwarding unit is used for monitoring data streams in a data acquisition unit and packaging acquired production data into information to be sent; a connection is established between the data collector and the mirror image server, and when the connection is normal, the production data is transmitted to the data receiving unit through the data forwarding unit to realize data mirror image backup; and verifying the integrity of the production data transmission process. According to the invention, the efficiency and reliability of data backup are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data storage, and in particular to a data mirroring backup method, device, equipment, medium and product. Background Art

[0002] In the application scenario of data collection, in order to ensure the security and reliability of the data, certain measures need to be taken to protect the above data. One of the key steps is to back up the data points for archiving, management and analysis. In order to achieve the above goals, it is necessary to ensure smooth data transmission between the two servers to ensure the integrity and availability of the data.

[0003] In traditional data backup methods, all data files that need to be backed up are usually generated and stored in the file directory of the acquisition server. When data backup is required, the operator needs to manually copy the data to the backup server so that the data can be restored when needed.

[0004] However, although the above method can realize data backup, the whole operation process is time-consuming and labor-intensive, and has a high error rate. Summary of the invention

[0005] The purpose of this application is to provide a data mirroring backup method, device, equipment, medium and product, which can improve the efficiency and reliability of data backup.

[0006] To achieve the above objectives, this application provides the following solutions:

[0007] In a first aspect, the present application provides a data mirroring backup method, which is used to transmit production data stored in a data collector to a mirroring server for storage, comprising:

[0008] Acquire production data, and store the production data in a data acquisition module;

[0009] A data forwarding unit is constructed in the data acquisition module, and a data receiving unit is constructed in the mirror server, wherein the data forwarding unit is used to monitor the data stream in the data collector and encapsulate the acquired production data into information to be sent;

[0010] Establishing a connection between the data collector and the mirror server, when the connection is normal, the information to be sent is transmitted to the data receiving unit through a data forwarding unit to realize the data mirror backup;

[0011] Verify the integrity of the production data transfer process.

[0012] Optionally, the production data in the data collector is transmitted to a local database for storage, and the production data in the mirror server is transmitted to a mirror server database for storage.

[0013] Optionally, the establishing a connection between the data collector and the mirror server, when the connection is normal, the production data is transmitted to the data receiving unit through a data forwarding unit to implement the data mirror backup, specifically including:

[0014] Sending a connection request to the data receiving unit;

[0015] receiving first confirmation connection information from the data receiving unit;

[0016] Based on the first confirmation connection information, second confirmation connection information is sent to the data receiving unit to complete the connection between the data collector and the mirror server;

[0017] Sending a heartbeat packet to the data receiving unit regularly, wherein the heartbeat packet is used to detect the connection status between the data collector and the mirror server;

[0018] When the data forwarding unit receives the reply information from the data receiving unit, the data collector is connected to the mirror server normally; otherwise, the data collector is connected to the mirror server abnormally.

[0019] Optionally, the data mirroring backup method further includes:

[0020] When the connection between the data collector and the mirror server is abnormal, the temporary data generated during the abnormal connection time is stored in the local database, and the abnormal connection time is recorded. When the connection between the data collector and the mirror server is restored, the temporary data is supplemented to the mirror server.

[0021] Optionally, the data mirroring backup method further includes:

[0022] The mirror server is configured to be in a continuous monitoring mode, wherein the monitoring mode is used to ensure that the mirror server continuously waits for and receives a transmission request from the data collector.

[0023] Optionally, the verifying the integrity of the production data transmission specifically includes:

[0024] Within a preset time period, the production data records in the mirror server database are obtained, the production data records in the mirror server database are compared with the production data in the local database, and the integrity of the production data is determined based on the comparison result.

[0025] In a second aspect, the present application provides a data mirroring backup device, comprising:

[0026] An acquisition module, used for acquiring production data and storing the production data in a data acquisition module;

[0027] A construction module, used to construct a data forwarding unit in the data acquisition module and a data receiving unit in the mirror server, wherein the data forwarding unit is used to monitor the data stream in the data collector and encapsulate the acquired production data into information to be sent;

[0028] A transmission module, used to establish a connection between the data collector and the mirror server. When the connection is normal, the production data is transmitted to the data receiving unit through a data forwarding unit to realize the data mirror backup;

[0029] The verification module is used to verify the integrity of the production data transmission process.

[0030] In a third aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any one of the above-mentioned data mirroring backup methods.

[0031] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the above-described data mirroring backup methods.

[0032] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any one of the above-mentioned data mirror backup methods.

[0033] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0034] The present application provides a data mirror backup method, device, equipment, medium and product, which obtains production data, wherein the production data comes from a data collector, which is used to receive data collected by sensors in the production area, determines that the data collector and the mirror server use the same transmission protocol, and establishes a connection between the data acquisition host and the mirror server. When the connection is normal, the data acquisition host transmits the production data to the mirror server, and finally verifies the integrity of the production data transmission. The problem of high error rate of traditional data backup methods is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 A flowchart of a data mirroring backup method provided in one embodiment of the present application;

[0037] Figure 2 A schematic diagram of functional modules of a data mirroring backup device provided in one embodiment of the present application;

[0038] Figure 3 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0040] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0041] In an exemplary embodiment, Figure 1 As shown, the data mirroring backup method includes the following steps 101 to 104:

[0042] Step 101: Obtain production data and store the production data in a data acquisition module.

[0043] Step 102: construct a data forwarding unit in the data acquisition module and construct a data receiving unit in the mirror server, wherein the data forwarding unit is used to monitor the data stream in the data collector and encapsulate the acquired production data into information to be sent.

[0044] Step 103: Establish a connection between the data collector and the mirror server. When the connection is normal, the production data is transmitted to the data receiving unit through the data forwarding unit to realize data mirror backup.

[0045] Step 104: Verify the integrity of the production data transmission process.

[0046] Specifically, in order to obtain production data, it is first necessary to ensure that the data collector can receive data from sensors in the production area. Sensors are responsible for real-time monitoring and recording of various key parameters in the production process. The data collector collects the data collected by the sensors and summarizes them. Next, it is necessary to ensure that the same transmission protocol is used between the data collector and the mirror server, and the connection is completed by configuring parameters such as the IP port of the receiving unit. The transmission protocol is a standard that needs to be followed during data transmission to ensure that data can be correctly transmitted from the data collector to the mirror server. The transmission protocol selected in this embodiment is TCP / IP, and HTTP, FTP, etc. can also be selected as needed.

[0047] For example, in order to achieve effective data transmission, the application layer data transmission protocol, namely Hypertext Transfer Protocol (HTTP), is used. In this way, data is transmitted in a specific format to ensure the integrity and reliability of the data. The transmitted data is encoded in JSON format. JSON format is a lightweight data exchange format. The JSON data structure is as follows:

[0048]

[0049] In this JSON object, the "ts" field represents the timestamp of the data, which uses the timestamp format of the Linux system. The "values" field is an object that contains the name of the data and the corresponding value. In this example, "value1" and "value2" are the names of the data, and the corresponding data values ​​are 12 and 22 respectively. This structure makes it easy to organize and access data, and keeps the data consistent and readable during transmission.

[0050] It can be understood that in order to ensure smooth data transmission, it is necessary to verify whether the connection is normal. In this embodiment, this is achieved by sending a test data packet or performing heartbeat monitoring. Only when the connection status is normal will the data acquisition host start to transmit the production data to the mirror server. To verify the integrity of the production data transmission, the transmission integrity verification is usually implemented by methods such as checksums, hash values, or digital signatures. Ensure that the data has not been tampered with or damaged during transmission. If an integrity problem is found during the data transmission process, the system will automatically trigger the retransmission mechanism to resend the lost or damaged data packets to ensure that the data received by the mirror server is complete and accurate.

[0051] In a specific embodiment, the data collector will transfer the collected production data to the local database for storage. These production data include but are not limited to key parameters, equipment status information, and production progress in various production processes. In this way, the real-time and accuracy of the production data can be ensured. At the same time, in order to improve the security and reliability of the data, the production data can also be transmitted to the mirror server database for storage. The role of the mirror server database is to serve as a backup of the local database to ensure that the data can still be restored from the mirror server database in the event of a failure or data loss in the local database. In this way, through the dual storage mechanism, the data security and stability of the entire production system can be improved. In addition, the data in the mirror service database is used for backup, data display and data analysis. The mirror service of these data ensures the redundancy and security of the data so that the data can be quickly restored when the main database fails. At the same time, the mirror database can also be used for data display, providing real-time data access, which is convenient for users to view and use data. In addition, valuable information is extracted by analyzing the mirror data.

[0052] In another exemplary embodiment of the present application, the above step 103 is replaced by the following steps 1031 to 1035:

[0053] Step 1031, sending a connection request to a data receiving unit;

[0054] Step 1032: Receive first connection confirmation information, where the first connection confirmation information comes from a data receiving unit;

[0055] Step 1033: Based on the first confirmation connection information, the second confirmation connection information is sent to the data receiving unit to complete the connection between the data collector and the mirror server;

[0056] Step 1034, regularly sending a heartbeat packet to the data receiving unit, the heartbeat packet is used to detect the connection status between the data collector and the mirror server;

[0057] Step 1035: When the data forwarding unit receives the reply information from the data receiving unit, the connection between the data collector and the mirror server is normal; otherwise, the connection between the data collector and the mirror server is abnormal.

[0058] Specifically, the data forwarding unit will actively initiate a connection request and send the request to the data receiving unit. In the process of the data forwarding unit initiating the connection request, it will generate a specific request message and send the request message to the data receiving unit through the network. After receiving the connection request sent by the data forwarding unit, the data receiving unit will check and confirm the request. After confirming that it is correct, the data receiving unit will generate a confirmation message and reply the confirmation message to the data forwarding unit. After receiving the confirmation message sent back by the data receiving unit, the data forwarding unit will perform a confirmation operation again. In order to ensure the establishment of the connection, the data forwarding unit will generate a secondary confirmation message and send the secondary confirmation message to the data receiving unit. After receiving the secondary confirmation message, the data receiving unit will confirm again and send the confirmation result back to the data forwarding unit. Through this series of confirmation and reply operations, the data forwarding unit and the data receiving unit can ensure the stability and reliability of the connection, thereby completing the entire connection process and achieving successful connection between the data forwarding unit and the data receiving unit.

[0059] It should be noted that when judging the connection status, in order to ensure the reliability and stability of data transmission, the data forwarding unit will periodically send heartbeat packets to the data receiving unit. Heartbeat packets are used to detect the active state of the connection. The data forwarding unit sends heartbeat packets to the data receiving unit at predetermined time intervals to ensure the continuity and stability of the connection. When the data receiving unit receives the heartbeat packet sent by the data forwarding unit, it will respond immediately. In order to confirm the receipt of the heartbeat packet, the data receiving unit will reply a heartbeat confirmation message to the data forwarding unit. This confirmation message indicates that the data receiving unit has successfully received the heartbeat packet and the network connection is normal.

[0060] It is understandable that the data forwarding unit will make further judgments after receiving the heartbeat confirmation message sent back by the data receiving unit. According to the reply, the data forwarding unit can evaluate the current connection status. If the data forwarding unit successfully receives the reply and there is no problem with the confirmation message, it will consider the current connection status to be normal. This means that data transmission can continue and the network connection is reliable. However, if the data forwarding unit fails to receive the heartbeat confirmation message sent back by the data receiving unit within the preset time, or there is a problem with the received confirmation message, the data forwarding unit will determine that the connection is in an abnormal state. This situation may be caused by network delays, interruptions or other problems. In this case, the data forwarding unit may take some measures, such as resending the heartbeat packet, trying to reestablish the connection, or notifying the system administrator for further troubleshooting.

[0061] In another exemplary embodiment of the present application, the data mirroring backup method may further include the following steps 1051 to 1052:

[0062] Step 1051: When the connection between the data collector and the mirror server is abnormal, the temporary data generated during the abnormal connection time is stored in the local database, and the abnormal connection time is recorded;

[0063] Step 1052: When the connection between the data collector and the mirror server is restored, the temporary data is restored to the mirror server.

[0064] Specifically, when the network connection between the data acquisition host and the mirror server is interrupted, the system will automatically create a temporary data cache file directory within a preset time range. The main function of this temporary data cache file directory is to store and save all production data collected during the connection interruption. In this way, even in the case of a connection interruption, the data acquisition host can still continue to collect and record production data without data loss due to network problems. Once the network connection between the data acquisition host and the mirror server is restored to normal, the system will immediately perform a backfill operation. The purpose of the backfill operation is to transfer all data stored in the temporary data cache file directory to the mirror server. In this way, it can be ensured that the data collected during the connection interruption can be fully synchronized to the mirror server, and the data can be synchronized and backed up even in the case of network instability, thereby ensuring the integrity and consistency of the data.

[0065] It should be noted that the data transmission process can be divided into two main parts: real-time data push and data backfill operation. Real-time data push refers to the process of transferring data from one system to another within a specific time period. This time period can be customized, for example, it can be set to push data once every minute, or every two minutes. The receiving unit will insert the data into the relational database for storage according to the timestamp of the data for subsequent query and processing. On the other hand, the data backfill operation is performed when the connection between the forwarding unit and the receiving unit is disconnected. In this case, the forwarding unit will temporarily save the received data in the local database to prevent data loss. Once the connection is restored, the forwarding unit will take out the data that failed to be transmitted during the disconnection period from the local database and transmit the data to the receiving unit. In this way, even in the case of a connection interruption, the integrity and consistency of the data can be guaranteed.

[0066] In a specific embodiment, when a connection abnormality occurs between the data collector and the mirror server, the abnormal connection may be caused by a failure of the data receiving unit. In order to deal with this situation, the following emergency measures are taken:

[0067] S1. When a connection anomaly is detected, the connection between the data forwarding unit and the data receiving unit will be disconnected immediately. At this time, the data is automatically cached in the local database to ensure that the data will not be lost due to connection problems.

[0068] S2. In order to restore the connection as quickly as possible, the data forwarding unit starts a reconnection mechanism.

[0069] For example, every minute, the data forwarding unit will try to reestablish the connection with the data receiving unit. If the connection fails three times in a row, the reconnection mechanism will adjust the strategy to try to connect once every fifteen minutes until the connection is successful. This strategy of gradually extending the reconnection interval is intended to avoid frequent invalid connection attempts, thereby saving system resources.

[0070] S3. When the system is powered on again after a power outage, the data receiving unit will immediately resume the data monitoring function, and the data forwarding unit will also perform the corresponding recovery operation synchronously, ensuring that in the event of an accident, the system can quickly resume normal operation and ensure the continuity and reliability of data transmission.

[0071] In another exemplary embodiment of the present application, the data mirroring backup method further includes: configuring the mirroring server to a continuous listening mode, where the listening mode is used to ensure that the mirroring server continuously waits for and receives a transmission request from the data collector.

[0072] Specifically, the mirror server is configured in a continuous monitoring mode, which is mainly to ensure that the mirror server can continuously maintain a waiting state and be ready to receive transmission requests from the data collector at any time. Through this continuous monitoring mechanism, the mirror server can respond to any transmission requirements issued by the data collector in real time, thereby ensuring that the data can be synchronized in time and ensuring the efficiency of the transmission process.

[0073] In another exemplary embodiment of the present application, the above step 104 specifically includes:

[0074] Step 1041: Generate a group of data packets with unique identifiers in a data forwarding unit.

[0075] Specifically, these packets are given specific identifiers so that they can be accurately identified and tracked during transmission. The process of generating packets ensures that each packet has a unique identity, thereby avoiding confusion or errors in the transmission of packets.

[0076] Step 1042: Send the data packet to the data receiving unit via a preset transmission protocol.

[0077] Specifically, the above step 1042 ensures that encryption and authentication mechanisms are used during the transmission process to prevent data from being tampered with or intercepted during the transmission process.

[0078] Step 1043: Check the integrity of the data packet at the data receiving unit.

[0079] Specifically, the integrity check of the data packet can be implemented by verifying the metadata such as the checksum, timestamp and data length of the data packet. If the data packet is found to be damaged or lost during transmission, the data forwarding unit is notified and the corresponding data packet is retransmitted. For each received data packet, the data receiving unit should perform decryption and authentication operations to ensure that the data packet has not been tampered with during transmission. If the data packet is found to be tampered with during transmission, the data forwarding unit should be notified immediately and the corresponding data packet should be retransmitted.

[0080] Step 1044: reassemble all data packets into the original data format, and perform integrity verification by comparing the unique identifier of the data packet and the data packet content.

[0081] Specifically, all received data packets are reassembled into the original data format. This process involves arranging the individual data packets in the correct order and performing integrity checks by comparing the unique identifier of each data packet and the data packet content. The integrity check ensures that the data packets have not been lost or misplaced during transmission and that the content of each data packet remains intact. In this way, the original data format can be accurately restored, ensuring data integrity and consistency.

[0082] Based on the same inventive concept, the embodiment of the present application also provides a data mirror backup device for implementing the data mirror backup method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data mirror backup device embodiments provided below can refer to the limitations on the data mirror backup method above, and will not be repeated here.

[0083] In an exemplary embodiment, Figure 3 As shown, a data mirroring backup device is provided, comprising:

[0084] An acquisition module 210 is used to acquire production data and store the production data in a data acquisition module;

[0085] A construction module 220 is used to construct a data forwarding unit in the data acquisition module and a data receiving unit in the mirror server, wherein the data forwarding unit is used to monitor the data stream in the data collector and encapsulate the acquired production data into information to be sent;

[0086] The transmission module 230 is used to establish a connection between the data collector and the mirror server. When the connection is normal, the production data is transmitted to the data receiving unit through the data forwarding unit to realize data mirror backup;

[0087] The verification module 240 is used to verify the integrity of the production data transmission process.

[0088] As an optional implementation manner, the transmission module 230 is specifically configured to:

[0089] sending a connection request to a data receiving unit;

[0090] receiving first connection confirmation information, the first connection confirmation information coming from a data receiving unit;

[0091] Based on the first confirmation connection information, the second confirmation connection information is sent to the data receiving unit to complete the connection between the data collector and the mirror server;

[0092] Send heartbeat packets to the data receiving unit regularly. The heartbeat packets are used to detect the connection status between the data collector and the mirror server.

[0093] When the data forwarding unit receives the reply information from the data receiving unit, the data collector is connected to the mirror server normally; otherwise, the data collector is connected to the mirror server abnormally.

[0094] As an optional implementation, the data mirroring backup device further includes:

[0095] When the connection between the data collector and the mirror server is abnormal, the temporary data generated during the abnormal connection time is stored in the local database, and the abnormal connection time is recorded;

[0096] When the connection between the data collector and the mirror server is restored, the temporary data will be backfilled to the mirror server.

[0097] As an optional implementation, the data mirroring backup device further includes:

[0098] The mirror server is configured to be in continuous listening mode. The listening mode is used to ensure that the mirror server continuously waits for and receives transmission requests from the data collector.

[0099] As an optional implementation, the verification module 250 is specifically configured to:

[0100] Within a preset time period, the production data records in the mirror server database are obtained, the production data records in the mirror server database are compared with the production data in the local database, and the integrity of the production data is determined based on the comparison results.

[0101] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store video tag processing data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data mirror backup method is implemented.

[0102] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0103] In an exemplary embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0104] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0105] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0106] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0107] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0108] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0109] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0110] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A data mirroring backup method, characterized in that: The data mirroring backup method is used to transmit the production data stored in the data collector to the mirroring server for storage, and the data mirroring backup method includes: Acquire production data, and store the production data in a data acquisition module; A data forwarding unit is constructed in the data acquisition module, and a data receiving unit is constructed in the mirror server, wherein the data forwarding unit is used to monitor the data stream in the data collector and encapsulate the acquired production data into information to be sent; Establishing a connection between the data collector and the mirror server, when the connection is normal, the information to be sent is transmitted to the data receiving unit through the data forwarding unit to realize the data mirror backup; Verify the integrity of the production data transfer process.

2. The data mirroring backup method according to claim 1, characterized in that: Before verifying the integrity of the production data transmission process, the data mirroring backup method further includes: The production data in the data collector is transmitted to a local database for storage, and the production data in the mirror server is transmitted to a mirror server database for storage.

3. The data mirroring backup method according to claim 1, characterized in that: The establishment of a connection between the data collector and the mirror server, when the connection is normal, the production data is transmitted to the data receiving unit through the data forwarding unit to implement the data mirror backup, specifically includes: Sending a connection request to the data receiving unit; receiving first confirmation connection information from the data receiving unit; Based on the first confirmation connection information, second confirmation connection information is sent to the data receiving unit to complete the connection between the data collector and the mirror server; Sending a heartbeat packet to the data receiving unit regularly, wherein the heartbeat packet is used to detect the connection status between the data collector and the mirror server; When the data forwarding unit receives the reply information from the data receiving unit, the data collector is connected to the mirror server normally; otherwise, the data collector is connected to the mirror server abnormally.

4. The data mirroring backup method according to claim 2, characterized in that: The data mirroring backup method further includes: When the connection between the data collector and the mirror server is abnormal, the temporary data generated during the abnormal connection time is stored in the local database, and the abnormal connection time is recorded; When the connection between the data collector and the mirror server is restored, the temporary data is replenished to the mirror server.

5. The data mirroring backup method according to claim 1, characterized in that: The data mirroring backup method further includes: The mirror server is configured to be in a continuous monitoring mode, and the continuous monitoring mode is used to ensure that the mirror server continuously waits for and receives a transmission request from the data collector.

6. The data mirroring backup method according to claim 1, characterized in that: The verifying the integrity of the production data transmission specifically includes: Generating a group of data packets with unique identifiers in the data forwarding unit; Sending the data packet to the data receiving unit via a preset transmission protocol; Checking the integrity of the data packet at the data receiving unit end; All the data packets are reassembled into the original data format, and integrity verification is performed by comparing the unique identifier of the data packet and the content of the data packet.

7. A data mirror backup device, characterized in that: The data mirror backup device comprises: An acquisition module, used for acquiring production data and storing the production data in a data acquisition module; A construction module, used to construct a data forwarding unit in the data acquisition module and a data receiving unit in the mirror server, wherein the data forwarding unit is used to monitor the data stream in the data collector and encapsulate the acquired production data into information to be sent; A transmission module, used for establishing a connection between the data collector and the mirror server, and when the connection is normal, the information to be sent is transmitted to the data receiving unit through a data forwarding unit to realize the data mirror backup; The verification module is used to verify the integrity of the production data transmission process.

8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the data mirroring backup method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data mirroring backup method described in any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the data mirroring backup method described in any one of claims 1 to 6 are implemented.