CN109257404B - Data backup method, device and system - Google Patents

Data backup method, device and system Download PDF

Info

Publication number
CN109257404B
CN109257404B CN201710577163.XA CN201710577163A CN109257404B CN 109257404 B CN109257404 B CN 109257404B CN 201710577163 A CN201710577163 A CN 201710577163A CN 109257404 B CN109257404 B CN 109257404B
Authority
CN
China
Prior art keywords
data
standby
backup
control device
main control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710577163.XA
Other languages
Chinese (zh)
Other versions
CN109257404A (en
Inventor
杜云飞
卢祖友
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201710577163.XA priority Critical patent/CN109257404B/en
Publication of CN109257404A publication Critical patent/CN109257404A/en
Application granted granted Critical
Publication of CN109257404B publication Critical patent/CN109257404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements

Abstract

The embodiment of the invention provides a data backup method, a device and a system, and relates to the field of data communication. The method comprises the steps that the main control equipment acquires associated first data and second data, then sends a first backup data association message to the standby main control equipment, and sends the first data and the second data to the standby main control equipment one by one; then the standby main control equipment backs up the first data and the second data; after the transmission of the primary main control device is completed, a first backup data disassociation message is sent to the standby main control device, so that the backup data disassociation message and the backup data disassociation message are respectively sent before and after the associated data are backed up, and the integrity of the associated data backup is ensured.

Description

Data backup method, device and system
Technical Field
The present invention relates to the field of data communication, and in particular, to a data backup method, apparatus, and system.
Background
With the development of the internet, higher and higher requirements are put on the reliability of network equipment. In order to improve the reliability of the network device, a dual-master redundancy backup technology is generally adopted in the network device. And in the normal operation process of the equipment, backing up the data on the main control board to the standby main control board. When the main-standby switching occurs, the standby main control board takes over the main control board, and the uninterrupted operation of the equipment is ensured. At present, when data backup is performed between a main control board and a standby main control board, data to be backed up usually belongs to non-relational data, that is, the data to be backed up are completely independent, and there is no correlation or dependency relationship between the data to be backed up, so that the existing data backup is relatively simple. After the main/standby switching occurs, if the backup data is lost, no influence is caused on other backup data, and the backup main control board only needs to restore the existing backup data without paying attention to the lost backup data.
The methods related to the existing backup technology are all proposed based on non-relational data backup, and no solution for relational data backup exists.
Disclosure of Invention
The present invention is directed to a data backup method, device and system to solve the above problems. In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
in a first aspect, an embodiment of the present invention provides a data backup method, where the method includes: the main master control equipment acquires associated first data and second data; the main master control equipment sends a first backup data association message to the standby master control equipment; the main master control equipment sends the first data and the second data to the standby master control equipment one by one; the standby main control equipment backs up the first data and the second data; and after the transmission of the main master control equipment is finished, the main master control equipment transmits a first backup data disassociation message to the standby master control equipment.
In a second aspect, an embodiment of the present invention provides a data backup method, where the method includes: the method comprises the steps that a main control device obtains associated first data and second data, sends a first backup data association message to a standby main control device, and sends the first data and the second data to the standby main control device one by one so that the standby main control device can backup the first data and the second data; and after the transmission of the main master control equipment is finished, the main master control equipment transmits a first backup data disassociation message to the standby master control equipment.
In a third aspect, an embodiment of the present invention provides a data backup apparatus, where the apparatus includes a first sending unit, a second sending unit, and a third sending unit. And the first sending unit is used for acquiring the associated first data and second data and sending a first backup data association message to the standby main control equipment. And the second sending unit is used for sending the first data and the second data to the standby main control equipment one by one so that the standby main control equipment can backup the first data and the second data. And the third sending unit is used for sending a first backup data disassociation message to the standby main control device after the sending is finished.
In a fourth aspect, an embodiment of the present invention provides a data backup system, where the system includes an active main control device and a standby main control device. The active main control device is used for acquiring the associated first data and second data and sending a first backup data association message to the standby main control device. The active main control device is further configured to send the first data and the second data to the standby main control device one by one. The standby main control device is used for backing up the first data and the second data. The primary master control device is further configured to send a first backup data disassociation message to the standby master control device after the sending is completed.
The embodiment of the invention provides a data backup method, a device and a system, wherein a main control device acquires associated first data and second data, sends a first backup data association message to a standby main control device, and sends the first data and the second data to the standby main control device one by one; then the standby main control equipment backs up the first data and the second data; after the transmission of the primary main control device is completed, a first backup data disassociation message is sent to the standby main control device, so that the backup data disassociation message and the backup data disassociation message are respectively sent before and after the associated data are backed up, and the integrity of the associated data backup is ensured.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a block diagram of a data backup system according to an embodiment of the present invention;
fig. 2 is a flowchart of a data backup method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another data backup method according to an embodiment of the present invention;
fig. 4 is a block diagram of a data backup device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
The following embodiments of the present invention can be applied to the data backup system 200 shown in fig. 1 without specific description, and as shown in fig. 1, the system 200 includes an active master device 100 and a standby master device 210.
The active main control device 100 is configured to obtain associated first data and second data, and send a first backup data association message to the standby main control device 210.
The active main control device 100 is further configured to send the first data and the second data to the standby main control device 210 one by one.
The standby main control device 210 is configured to backup the first data and the second data.
The active main control device 100 is further configured to send a first backup data disassociation message to the standby main control device 210 after the sending is completed.
As an embodiment, the data backup system 200 may be a distributed network device, and the distributed network device may include an active main control device 100 and a standby main control device 210. The active main control device 100 is an active main control board, the standby main control device 210 is a standby main control board, and the active main control board and the standby main control board are electrically connected.
Referring to fig. 2, an embodiment of the present invention provides a data backup method, where the method includes step S300, step S310, step S320, step S330, step S340, step S350, and step S360.
Step S300: the active main control device acquires the associated first data and second data.
When the primary main control device executes data backup, if mutual association or dependency exists between backed-up data, the data are considered to belong to relational data. For example, there are configuration data and operation data for a network device, and the operation data depends on the configuration data, and when data backup is performed, the two belong to relational data. In this embodiment, the first data may be configuration data, and the second data may be operation data.
Step S310: and the main master control equipment sends a first backup data association message to the standby master control equipment.
In this embodiment, the rollback point may be set by sending the backup data association message, and the rollback point may be defined as a rollback point message. When the application program on the primary main control device backs up the relational data, the backup data association message sent to the standby main control device first is the first rollback point message. For example, when configuration data changes, corresponding running data changes are triggered, at this time, both the configuration data and the running data need to be backed up, and a first rollback point message is sent before the backup.
Step S320: and the main master control equipment sends the first data and the second data to the standby master control equipment one by one.
After the primary master control device sends the first rollback point message, real data backup is started, and the backup is performed in a mode that single data is independent one by one. For example, for backup of the configuration data and the operation data, the configuration data is backed up to the standby main control device first, and then the operation data is backed up to the standby main control device.
Step S330: the standby main control equipment backs up the first data and the second data.
As an implementation manner, after receiving the first backup data association message, the standby main control device establishes a backup data cache queue, and backs up the first data and the second data to the backup data cache queue.
For example, after receiving the first rollback point message, the standby master control device establishes a backup data cache queue rollback. And the standby main control equipment continues to receive the real backup data and adds the received backup data into the established backup data cache queue RollbackQueue. This portion of data is temporarily not handed over to the application on the standby master device, indicating to the application that no backup data has been received.
Step S340: and after the transmission of the main master control equipment is finished, the main master control equipment transmits a first backup data disassociation message to the standby master control equipment.
In this embodiment, the rollback canceling point may be set by sending a backup data disassociation message, and the rollback canceling point is defined as a rollback cancel message. After the primary main control device finishes sending the relational backup data, namely the first data and the second data, sending a first rollback Cancel message to the standby main control device. The first RollbackCancel message is paired with the first RollbackPoint message for identifying the integrity of the relational backup data.
As an implementation manner, before step S340, when the primary main control device further acquires the relational backup data, the method further includes:
when the main master control device detects third data associated with the second data, acquiring the third data, sending a second backup data association message to the standby master control device, and sending the third data to the standby master control device;
the standby main control equipment backs up the third data to the backup data cache queue;
and after the transmission of the primary main control equipment is finished, transmitting a second backup data disassociation message to the standby main control equipment.
It should be noted that, the operations of step S300, step S310, step S320, step S330 and step S340 may be referred to for reference, and are not described herein again.
It is understood that similar operations may be repeated, and the active master device sends the fourth data associated with the third data to the standby master device … …, and so on, which will not be described herein again.
Further, as an implementation manner, based on step S320, when the active main control device sends the second data, it is detected that the second data includes at least two associated second sub-data, and step S320 may include:
the main master control device sends the first data to the standby master control device so that the standby master control device can backup the first data to the backup data cache queue;
the main master control device obtains that the second data comprises at least two associated second sub-data, sends a third backup data association message to the standby master control device, and sends the at least two associated second sub-data to the standby master control device one by one, so that the standby master control device backs up the at least two associated second sub-data to the backup data cache queue;
and after the transmission of the main master control equipment is finished, the main master control equipment transmits a third backup data disassociation message to the standby master control equipment.
It should be noted that, the operations of step S300, step S310, step S320, step S330 and step S340 may be referred to for reference, and are not described herein again.
Further, in order to ensure that the backup data received by the standby master control device is complete, the method may further include:
after receiving the first backup data association message, the standby main control equipment adds a first preset constant to a current counter; after receiving the third backup data association message, the standby master control device adds a second preset constant to the current counter; correspondingly, after receiving the third backup data disassociation message, the standby main control device decrements a second preset constant for the current counter; after receiving the first backup data disassociation message, the standby main control device subtracts the first preset constant from a current counter; and when the standby main control equipment detects that the current counter value is a third preset constant, judging that the backup data is complete, wherein the initial counter value of the counter is the third preset constant.
Similarly, after receiving the second backup data association message, the standby master control device adds the first preset constant to the current counter; correspondingly, after receiving the second backup data disassociation message, the standby main control device decrements a first preset constant for a current counter.
In this embodiment, the first predetermined constant may be 1, the second predetermined constant may be 1, and the third predetermined constant may be 0. After receiving the first backup data backup association message, the standby main control device initializes a counter in advance, and the initial counter value of the counter is a third preset constant. The standby main control equipment adds 1 to the current counter RollbackCounter when receiving a RollbackPoint message; every time a rollback cancel message is received, the current counter rollback counter is decremented by 1. When the rollback counter is decreased to 0, it indicates that the relational data backup is complete, making the relational data backup atomic. In this embodiment, the values of the first preset constant, the second preset constant, and the third preset constant are not limited.
Step S350: and when the standby main control equipment detects that the current counter value is the third preset constant, uploading the data in the current backup data cache queue to a database in the standby main control equipment.
In this embodiment, the active main control device and the standby main control device respectively establish a distributed database. The respective distributed databases on the main control device and the standby main control device provide standard and uniform storage interfaces for all the respective application programs on the main control device and the standby main control device, and the respective distributed databases can be operated and controlled through the respective storage interfaces.
And when the standby main control equipment detects that the current counter Rollbackcounter is reduced to the preset counter value, the standby main control equipment represents that the relational data backup is finished. At this time, all the backup data cached in the current backup data cache queue are taken out one by one and uploaded to the distributed database in the standby main control equipment. And then the application program acquires the data of the distributed database in the standby main control equipment by calling the storage interface, and the application program finishes processing the data. For an application, backup data may only be received when the rollback counter has decreased to the initial counter value, i.e., the relational data backup is complete. The method and the device have the advantages that when the application program executes the relational data backup, the relational data can be directly backed up without disassembling the relational data into non-relational data, so that the requirements of the application program on the form of the backup data are reduced, and the difficulty of the application program in data backup is reduced.
Step S360: and when the standby main control equipment detects the main/standby switching, detecting whether the current counter is the third preset constant, and if not, clearing the data in the current backup data cache queue.
When the standby main control equipment detects the main-standby switching, before the standby main control equipment is upgraded to the main control equipment, the standby main control equipment detects the current counter Rollbackcounter, if the Rollbackcounter is not equal to the initial counter value, the relational data backup is incomplete, and the standby main control equipment discards all backup data cached in a backup data cache queue RollbackQueue. To the application, this indicates that no backup data has been received. After the main/standby switching, the relational data which is not backed up is directly discarded, and the application program does not actually process the incomplete backup data, so that the application program does not need to perform processing such as rollback/smoothing on the incomplete dirty data, and the complexity of the application program in processing the backup data is reduced.
The embodiment of the invention provides a data backup method, wherein a main control device acquires associated first data and second data, sends a first backup data association message to a standby main control device, and sends the first data and the second data to the standby main control device one by one; then the standby main control equipment backs up the first data and the second data; after the transmission of the primary main control device is completed, a first backup data disassociation message is sent to the standby main control device, so that the backup data disassociation message and the backup data disassociation message are respectively sent before and after the associated data are backed up, and the integrity of the associated data backup is ensured.
Referring to fig. 3, an embodiment of the present invention provides a data backup method, which includes step S400 and step S410.
Step S400: the method comprises the steps that the main control equipment obtains associated first data and second data, sends a first backup data association message to the standby main control equipment, and sends the first data and the second data to the standby main control equipment one by one so that the standby main control equipment can backup the first data and the second data.
As an implementation manner, the active main control device obtains associated first data and second data, sends a first backup data association message to the standby main control device, and sends the first data and the second data to the standby main control device one by one, so that the standby main control device establishes a backup data cache queue after receiving the first backup data association message, and backs up the first data and the second data in the backup data cache queue.
Step S410: and after the transmission of the main master control equipment is finished, the main master control equipment transmits a first backup data disassociation message to the standby master control equipment.
As an implementation manner, before step S410, when the primary main control device further acquires the relational backup data, the method further includes:
when the main master control device detects third data associated with the second data, acquiring the third data, sending a second backup data association message to the standby master control device, and sending the third data to the standby master control device, so that the standby master control device backs up the third data to the backup data cache queue;
and after the transmission of the primary main control equipment is finished, transmitting a second backup data disassociation message to the standby main control equipment.
Further, as an implementation manner, based on step S400, when the active main control device sends the second data, it is detected that the second data includes at least two associated second sub-data, and step S400 may include:
the main master control device sends the first data to the standby master control device so that the standby master control device can backup the first data to the backup data cache queue;
the main master control device obtains that the second data comprises at least two associated second sub-data, sends a third backup data association message to the standby master control device, and sends the at least two associated second sub-data to the standby master control device one by one, so that the standby master control device backs up the at least two associated second sub-data to the backup data cache queue;
and after the transmission of the main master control equipment is finished, the main master control equipment transmits a third backup data disassociation message to the standby master control equipment.
The embodiment of the invention provides a data backup method, wherein a main control device acquires associated first data and second data, sends a first backup data association message to a standby main control device, and sends the first data and the second data to the standby main control device one by one so that the standby main control device backs up the first data and the second data; and then after the transmission of the primary main control equipment is finished, transmitting a first backup data disassociation message to the standby main control equipment, so that the backup data association message and the backup data disassociation message are respectively transmitted before and after the associated data are backed up, and the integrity of the associated data backup is ensured.
Referring to fig. 4, an embodiment of the present invention provides a data backup apparatus 500, where the apparatus 500 includes: a first transmission unit 510 and a second transmission unit 520 and a third transmission unit 540.
A first sending unit 510, configured to obtain the associated first data and second data, and send a first backup data association message to the standby master device.
A second sending unit 520, configured to send the first data and the second data to the standby main control device one by one, so that the standby main control device backs up the first data and the second data.
As an embodiment, the second transmitting unit 520 may include a second transmitting subunit 521.
A second sending subunit 521, configured to send the first data to the standby main control device, so that the standby main control device backs up the first data to the backup data cache queue; acquiring second data comprising at least two associated second sub-data, sending a third backup data association message to the standby main control equipment, and sending the at least two associated second sub-data to the standby main control equipment one by one so that the standby main control equipment backs up the at least two associated second sub-data to the backup data cache queue; and after the sending is finished, sending a third backup data disassociation message to the standby main control equipment.
A third sending unit 540, configured to send a first backup data disassociation message to the standby main control device after the sending is completed.
The apparatus 500 may further comprise a detection unit 530.
A detecting unit 530, configured to, when third data associated with the second data is detected, obtain the third data, send a second backup data association message to the standby main control device, and send the third data to the standby main control device, so that the standby main control device backs up the third data to the backup data cache queue; and after the sending is finished, sending a second backup data disassociation message to the standby main control equipment.
The above units may be implemented by software codes, and in this case, the above units may be stored in a memory. The above units may also be implemented by hardware, for example, an integrated circuit chip.
The data backup apparatus 500 according to the embodiment of the present invention has the same implementation principle and technical effect as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments for parts that are not mentioned in the apparatus embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method for data backup, the method comprising:
the main master control equipment acquires associated first data and second data;
the main master control equipment sends a first backup data association message to the standby master control equipment;
the main master control equipment sends the first data and the second data to the standby master control equipment one by one;
after receiving the first backup data association message, the standby main control device establishes a backup data cache queue, backs up the first data and the second data to the backup data cache queue, and temporarily does not submit the first data and the second data to an application program on the standby main control device;
after the transmission of the main master control equipment is finished, transmitting a first backup data disassociation message to the standby master control equipment;
and when detecting that the data backup is completed, the standby main control equipment takes out all the backup data cached in the current backup data cache queue one by one and uploads the backup data to a distributed database in the standby main control equipment.
2. The method according to claim 1, wherein after the sending by the active main control device is completed, before sending the first backup data disassociation message to the standby main control device, the method further comprises:
when the main master control device detects third data associated with the second data, acquiring the third data, sending a second backup data association message to the standby master control device, and sending the third data to the standby master control device;
the standby main control equipment backs up the third data to the backup data cache queue;
and after the transmission of the primary main control equipment is finished, transmitting a second backup data disassociation message to the standby main control equipment.
3. The method of claim 1, wherein sending the first data and the second data one by one from the active master control device to the standby master control device comprises:
the main master control device sends the first data to the standby master control device so that the standby master control device can backup the first data to the backup data cache queue;
the main master control device obtains that the second data comprises at least two associated second sub-data, sends a third backup data association message to the standby master control device, and sends the at least two associated second sub-data to the standby master control device one by one, so that the standby master control device backs up the at least two associated second sub-data to the backup data cache queue;
and after the transmission of the main master control equipment is finished, the main master control equipment transmits a third backup data disassociation message to the standby master control equipment.
4. The method of claim 3, further comprising:
after receiving the first backup data association message, the standby main control equipment adds a first preset constant to a current counter;
after receiving the third backup data association message, the standby master control device adds a second preset constant to the current counter;
correspondingly, after receiving the third backup data disassociation message, the standby main control device decrements a second preset constant for the current counter;
after receiving the first backup data disassociation message, the standby main control device subtracts the first preset constant from a current counter;
and when the standby main control equipment detects that the current counter value is a third preset constant, judging that the backup data is complete, wherein the initial counter value of the counter is the third preset constant.
5. The method of claim 4, further comprising:
and when the standby main control equipment detects that the current counter value is the third preset constant, uploading the data in the current backup data cache queue to a database in the standby main control equipment.
6. The method of claim 4, further comprising:
and when the standby main control equipment detects the main/standby switching, detecting whether the current counter is the third preset constant, and if not, clearing the data in the current backup data cache queue.
7. A data backup apparatus, characterized in that the apparatus comprises:
the first sending unit is used for acquiring the associated first data and second data and sending a first backup data association message to the standby main control equipment;
a second sending unit, configured to send the first data and the second data to the standby main control device one by one, so that after receiving the first backup data association message, the standby main control device establishes a backup data cache queue to backup the first data and the second data to the backup data cache queue, where the first data and the second data are temporarily not handed over to an application program on the standby main control device;
a third sending unit, configured to send a first backup data disassociation message to the standby master control device after the sending is completed;
the standby main control equipment detects that data backup is completed and is used for taking out all backup data cached in the current backup data cache queue one by one and uploading the backup data to a distributed database in the standby main control equipment.
8. A data backup system is characterized in that the system comprises a main control device and a standby main control device,
the main master control equipment is used for acquiring associated first data and second data and sending a first backup data association message to the standby master control equipment;
the main master control device is further configured to send the first data and the second data to the standby master control device one by one;
the standby main control device is configured to establish a backup data cache queue after receiving the first backup data association message, and backup the first data and the second data to the backup data cache queue, where the first data and the second data are temporarily not handed over to an application program on the standby main control device;
the main master control device is further configured to send a first backup data disassociation message to the standby master control device after the sending is completed;
the standby main control equipment detects that the data backup is completed, and the standby main control equipment is also used for taking out all the backup data cached in the current backup data cache queue one by one and uploading the backup data to a distributed database in the standby main control equipment.
CN201710577163.XA 2017-07-14 2017-07-14 Data backup method, device and system Active CN109257404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710577163.XA CN109257404B (en) 2017-07-14 2017-07-14 Data backup method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710577163.XA CN109257404B (en) 2017-07-14 2017-07-14 Data backup method, device and system

Publications (2)

Publication Number Publication Date
CN109257404A CN109257404A (en) 2019-01-22
CN109257404B true CN109257404B (en) 2022-04-05

Family

ID=65051279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710577163.XA Active CN109257404B (en) 2017-07-14 2017-07-14 Data backup method, device and system

Country Status (1)

Country Link
CN (1) CN109257404B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004078425A (en) * 2002-08-13 2004-03-11 Fuji Electric Holdings Co Ltd Duplex switching method of duplex control system
CN101183990A (en) * 2007-12-11 2008-05-21 华为技术有限公司 Data backup method and application processing system
CN101282207A (en) * 2008-06-05 2008-10-08 华为技术有限公司 Method and apparatus for recording data update as well as data backup method and system
CN101436151A (en) * 2008-12-01 2009-05-20 成都索贝数码科技股份有限公司 Data real time backup method and system based on file system
CN102571850A (en) * 2010-12-24 2012-07-11 中国移动通信集团山东有限公司 Transaction committing system, method and equipment
CN103678396A (en) * 2012-09-20 2014-03-26 阿里巴巴集团控股有限公司 Data backup method and device based on data models
CN103778031A (en) * 2014-01-15 2014-05-07 华中科技大学 Distributed system multilevel fault tolerance method under cloud environment
CN104850598A (en) * 2015-04-28 2015-08-19 江苏瑞中数据股份有限公司 Method for recovering backup of real-time database
CN105159793A (en) * 2015-08-18 2015-12-16 上海新炬网络信息技术有限公司 Data replication backup method based on GoldenGate
CN106254100A (en) * 2016-07-27 2016-12-21 腾讯科技(深圳)有限公司 A kind of data disaster tolerance methods, devices and systems
CN106407356A (en) * 2016-09-07 2017-02-15 网易(杭州)网络有限公司 Data backup method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8768891B2 (en) * 2012-04-27 2014-07-01 Sap Ag Ensuring database log recovery consistency
JP5991699B2 (en) * 2014-08-08 2016-09-14 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Information processing apparatus, information processing system, backup method, and program
US9575849B2 (en) * 2014-11-25 2017-02-21 Sap Se Synchronized backup and recovery of database systems

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004078425A (en) * 2002-08-13 2004-03-11 Fuji Electric Holdings Co Ltd Duplex switching method of duplex control system
CN101183990A (en) * 2007-12-11 2008-05-21 华为技术有限公司 Data backup method and application processing system
CN101282207A (en) * 2008-06-05 2008-10-08 华为技术有限公司 Method and apparatus for recording data update as well as data backup method and system
CN101436151A (en) * 2008-12-01 2009-05-20 成都索贝数码科技股份有限公司 Data real time backup method and system based on file system
CN102571850A (en) * 2010-12-24 2012-07-11 中国移动通信集团山东有限公司 Transaction committing system, method and equipment
CN103678396A (en) * 2012-09-20 2014-03-26 阿里巴巴集团控股有限公司 Data backup method and device based on data models
CN103778031A (en) * 2014-01-15 2014-05-07 华中科技大学 Distributed system multilevel fault tolerance method under cloud environment
CN104850598A (en) * 2015-04-28 2015-08-19 江苏瑞中数据股份有限公司 Method for recovering backup of real-time database
CN105159793A (en) * 2015-08-18 2015-12-16 上海新炬网络信息技术有限公司 Data replication backup method based on GoldenGate
CN106254100A (en) * 2016-07-27 2016-12-21 腾讯科技(深圳)有限公司 A kind of data disaster tolerance methods, devices and systems
CN106407356A (en) * 2016-09-07 2017-02-15 网易(杭州)网络有限公司 Data backup method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"From Backup to Hot Standby: High Availability for HDFS";André Oriani et al;《2012 IEEE 31st Symposium on Reliable Distributed Systems》;20130201;全文 *
"基于云平台的电信数据仓库文件备份和分布动态调整算法";杨苗苗等;《南京邮电大学学报(自然科学版)》;20140327;全文 *

Also Published As

Publication number Publication date
CN109257404A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
US20220179682A1 (en) Task processing method, apparatus, and system based on distributed system
CN110825562B (en) Data backup method, device, system and storage medium
CN110554930A (en) Data storage method and related equipment
WO2017028375A1 (en) Version upgrading method and system
CN112433885A (en) Block chain consensus processing method and device, electronic equipment and storage medium
CN107172112B (en) Computer file transmission method and device
CN109257404B (en) Data backup method, device and system
CN112506682A (en) Method, device and computer readable storage medium for relieving abnormity of business server
CN103581262A (en) Master-and-backup data synchronizing method, device and system
CN111367934A (en) Data consistency checking method, device, server and medium
CN114647531B (en) Failure solving method, failure solving system, electronic device, and storage medium
CN115396296A (en) Service processing method and device, electronic equipment and computer readable storage medium
CN111737043A (en) Database disaster tolerance method, device, server and storage medium
CN110958287A (en) Operation object data synchronization method, device and system
CN105630626A (en) Transaction backup processing method and device
CN114091909A (en) Collaborative development method, system, device and electronic equipment
CN111625402A (en) Data recovery method and device, electronic equipment and computer readable storage medium
CN115543698B (en) Data backup method, device, equipment and storage medium
CN106375354B (en) Data processing method and device
CN105376276A (en) System data backup method and device
CN114244638B (en) Multicast network communication method, device, equipment and medium
CN110362422A (en) A kind of data back up method, apparatus and system
CN113986620B (en) Multi-region information backup verification recovery method and device suitable for middle station
US8234246B1 (en) Method and apparatus for providing event based data replication
JP2010146134A (en) Distributed transaction processing system, server device and method for restoring failure of distributed transaction to be used for the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant