CN109257404A - Data back up method, apparatus and system - Google Patents

Data back up method, apparatus and system Download PDF

Info

Publication number
CN109257404A
CN109257404A CN201710577163.XA CN201710577163A CN109257404A CN 109257404 A CN109257404 A CN 109257404A CN 201710577163 A CN201710577163 A CN 201710577163A CN 109257404 A CN109257404 A CN 109257404A
Authority
CN
China
Prior art keywords
data
main control
control device
backup
spare
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.)
Granted
Application number
CN201710577163.XA
Other languages
Chinese (zh)
Other versions
CN109257404B (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Hardware Redundancy (AREA)

Abstract

The embodiment of the invention provides a kind of data back up method, apparatus and system, are related to data communication field.The method includes primary main control devices to obtain associated first data and the second data, then sends the first Backup Data association messages to spare main control device, sends first data and second data one by one to the spare main control device;Then the spare main control device backs up first data and second data;After the primary main control device is sent completely, the first Backup Data, which is sent, to the spare main control device cancels association messages, it is realized before and after backing up associated data with this, sends Backup Data association messages respectively and Backup Data cancels association messages, guarantee the integrality of associated data backup.

Description

Data back up method, apparatus and system
Technical field
The present invention relates to data communication fields, in particular to a kind of data back up method, apparatus and system.
Background technique
With the development of internet, increasingly higher demands are proposed to the reliability of the network equipment.In order to improve network The reliability of equipment generallys use dual master control redundancy backup technology in the network device.It, will in equipment normal course of operation Data on main control board backup to slave control board.When masterslave switchover occurs, slave control board will take over primary master control Plate guarantees the continual operation of equipment.The existing data for currently, when carrying out data backup between active and standby master control borad, needing to back up Non-relational data are generally fallen into, that is, the data being backed up are completely independent, between each other without association or dependence, so that existing Some data backups are relatively easy, and Backup Data is directly sent to slave control board by the application program on main control board, standby Application program is directly submitted after receiving Backup Data with master control borad, Backup Data is directly handled by application program.Occur it is active and standby fall After changing, loses, other Backup Datas will not be impacted, slave control board need to only restore to have standby in case of Backup Data Part data do not need the Backup Data that concern is lost.
The method that existing redundancy technique is related to is based on non-relational data backup proposition, not standby for relational data The solution of part.
Summary of the invention
The purpose of the present invention is to provide a kind of data back up method, apparatus and system, to improve the above problem.For reality Existing above-mentioned purpose, the technical solution adopted by the present invention is as follows:
In a first aspect, the embodiment of the invention provides a kind of data back up method, which comprises primary main control device Obtain associated first data and the second data;The primary main control device sends the first backup number to spare main control device According to association messages;The primary main control device sends first data and second number to the spare main control device one by one According to;The spare main control device backs up first data and second data;After the primary main control device is sent completely, The first Backup Data, which is sent, to the spare main control device cancels association messages.
Second aspect, the embodiment of the invention provides a kind of data back up method, which comprises primary main control device Associated first data and the second data are obtained, the first Backup Data association messages are sent to spare main control device, to institute It states spare main control device and sends first data and second data one by one, so as to spare main control device backup described first Data and second data;After the primary main control device is sent completely, the first backup is sent to the spare main control device Data cancel association messages.
The third aspect, the embodiment of the invention provides a kind of data backup device, described device include the first transmission unit, Second transmission unit and third transmission unit.First transmission unit, for obtaining associated first data and the second data, The first Backup Data association messages are sent to spare main control device.Second transmission unit, for the spare main control device by One sends first data and second data, so that spare main control device backs up first data and second number According to.Third transmission unit sends the cancellation association of the first Backup Data to the spare main control device and disappears after being sent completely Breath.
Fourth aspect, the embodiment of the invention provides a kind of data backup systems, and the system comprises primary main control devices With spare main control device.Primary main control device is set for obtaining associated first data and the second data to spare master control Preparation send the first Backup Data association messages.The primary main control device is also used to send one by one to the spare main control device First data and second data.The spare main control device, for backing up first data and second number According to.The primary main control device after being also used to be sent completely, sends the first Backup Data to the spare main control device and cancels pass Join message.
The embodiment of the invention provides a kind of data back up method, apparatus and system, primary main control device obtains associated The first data and the second data, then to spare main control device send the first Backup Data association messages, to the spare master Control equipment sends first data and second data one by one;Then the spare main control device backs up first data With second data;After the primary main control device is sent completely, the first Backup Data is sent to the spare main control device Cancel association messages, realized before and after backing up associated data with this, sends Backup Data association messages and backup number respectively According to association messages are cancelled, guarantee the integrality of associated data backup.
Other features and advantages of the present invention will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing understanding of the embodiment of the present invention.The objectives and other advantages of the invention can be by written theory Specifically noted structure is achieved and obtained in bright book, claims and attached drawing.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the structural block diagram of the data backup system of the embodiment of the present invention;
Fig. 2 is a kind of flow chart of data back up method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another data back up method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural block diagram of data backup device provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.Therefore, below to the reality of the invention provided in the accompanying drawings The detailed description for applying example is not intended to limit the range of claimed invention, but is merely representative of selected implementation of the invention Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts Every other embodiment, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
The following each embodiments of the present invention are can be applied to unless otherwise instructed in data backup system 200 as shown in Figure 1, As shown in Figure 1, the system 200 includes primary main control device 100 and spare main control device 210.
Primary main control device 100, for obtaining associated first data and the second data, to spare main control device 210 send the first Backup Data association messages.
The primary main control device 100, be also used to send one by one to the spare main control device 210 first data and Second data.
The spare main control device 210, for backing up first data and second data.
After being also used to be sent completely, it is standby to send first to the spare main control device 210 for the primary main control device 100 Part data cancel association messages.
As an implementation, the data backup system 200 can be distributed network equipment, the distributed network Network equipment may include primary main control device 100 and spare main control device 210.Wherein, the primary main control device 100 is primary Master control borad, the spare main control device 210 are slave control board, the main control board and slave control board electrical connection.
Referring to Fig. 2, the method includes the steps S300, step the embodiment of the invention provides a kind of data back up method Rapid S310, step S320, step S330, step S340, step S350 and step S360.
Step S300: primary main control device obtains associated first data and the second data.
When primary main control device executes data backup, if there are interrelated or dependence between the data of backup, Then think these data relation belonging to type data.For example, there are configuration data and operation data, fortune for the network equipment Row data depend on configuration data, and when carrying out data backup, the two is with regard to relation belonging to type data.In the present embodiment, first Data can be configuration data, and the second data can be operation data.
Step S310: the primary main control device sends the first Backup Data association messages to spare main control device.
In the present embodiment, rollback point can be set by way of sending Backup Data association messages, and by rollback point It is defined as RollbackPoint message.Then the application program on primary main control device is first when backing up to relational data It is first the first RollbackPoint message to the Backup Data association messages that spare main control device is sent.For example, configuration data When variation, corresponding operation data variation is triggered, at this point, configuration data and operation data will be backed up, then before backup First send the first RollbackPoint message.
Step S320: the primary main control device sends first data and described to the spare main control device one by one Second data.
Primary main control device starts real data backup, using single after sending the first RollbackPoint message The mode of Dynamic data exchange backed up one by one carries out.For example, the backup for configuration data and operation data, first by configuration data Spare main control device is backuped to, then operation data is backuped into spare main control device.
Step S330: the spare main control device backs up first data and second data.
As an implementation, the spare main control device is after receiving the first Backup Data association messages, Backup Data buffer queue is established, by first data and second data backup to the Backup Data buffer queue In.
For example, spare main control device after receiving the first RollbackPoint message, establishes Backup Data buffer queue RollbackQueue.Spare main control device continues to true Backup Data, and the Backup Data received is added to In the Backup Data buffer queue RollbackQueue being set up.This partial data temporarily not on give on spare main control device Application program, for application program, expression do not receive any Backup Data.
Step S340: after the primary main control device is sent completely, the first backup number is sent to the spare main control device According to cancellation association messages.
In the present embodiment, cancellation rollback point can be set by way of sending Backup Data and cancelling association messages, and Rollback point will be cancelled and be defined as RollbackCancel message.Primary main control device by relationship type Backup Data i.e. the first data and After second data are sent completely, the first RollbackCancel message is sent to spare main control device.First RollbackCancel message and the first RollbackPoint message are matched, for the complete of identified relationships type Backup Data Whole property.
As an implementation, before step S340, when primary main control device also gets relationship type Backup Data, The method also includes:
When the primary main control device detects third data associated with second data, the third number is obtained According to the second Backup Data association messages of the spare main control device transmission, to the spare main control device transmission third Data;
The spare main control device is by the third data backup into the Backup Data buffer queue;
After the primary main control device is sent completely, the second Backup Data is sent to the spare main control device and cancels association Message.
It should be noted that this part operation can use for reference step S300, step S310, step S320, step S330 and Step S340, which is not described herein again.
It is understood that similar operation can be repeated, primary main control device counts third data the associated 4th According to the spare main control device ... is sent to, which is not described herein again.
Further, as an implementation, be based on step S320, primary main control device when sending the second data, Detect that the second data include at least two associated second subdatas, step S320 may include:
The primary main control device sends first data to the spare main control device, so that the spare master control is set It is standby by first data backup into the Backup Data buffer queue;
It includes at least two associated second subdatas that the primary main control device, which gets second data, to institute It states spare main control device and sends third Backup Data association messages, send described at least two one by one to the spare main control device Associated second subdata, so that the spare main control device backs up to described at least two associated second subdatas In the Backup Data buffer queue;
After the primary main control device is sent completely, third Backup Data is sent to the spare main control device and cancels association Message.
It should be noted that this part operation can use for reference step S300, step S310, step S320, step S330 and Step S340, which is not described herein again.
Further, in order to guarantee that the received Backup Data of spare main control device is complete, the method can also include:
After the spare main control device receives the first Backup Data association messages, is added to current counter One preset constant;After the spare main control device receives the third Backup Data association messages, to current counter Add the second preset constant;Correspondingly, after the spare main control device receives the third Backup Data cancellation association messages, To the current counter preset constant that subtracts the second;The spare main control device receives the first Backup Data cancellation association and disappears After breath, first preset constant is subtracted to current counter;When the spare main control device detects current counter Value when being third preset constant, judge that Backup Data is complete, the initial counter value of the counter is third preset constant.
Similarly, after the spare main control device receives the second Backup Data association messages, to current counting Device adds first preset constant;Correspondingly, the spare main control device receives the second Backup Data cancellation association and disappears After breath, to the current counter preset constant that subtracts the first.
In the present embodiment, the first preset constant can be 1, and the second preset constant can be 1, and third preset constant can be with It is 0.Spare main control device is after receiving the first Backup Data backup association messages, preparatory initialization counter, counter Initial counter value be third preset constant.Spare main control device often receives a RollbackPoint message, to current Counter RollbackCounter execute plus 1;A RollbackCancel message is often received, to current counter RollbackCounter execution subtracts 1.When counter RollbackCounter reduces to 0, indicate that relational data backup is completed, Relational data backup is set to have atomicity.It is not default to the first preset constant, the second preset constant and third in the present embodiment The value of constant is defined.
Step S350: when the spare main control device detects that the value of current counter is the third preset constant, Data in current backup data buffer storage queue are uploaded to the database in the spare main control device.
In the present embodiment, the primary main control device and spare main control device, which are respectively established, is distributed formula database.It is main It is each on primary main control device and spare main control device with respective distributed data base on main control device and spare main control device From all application programs, respectively providing the unified memory interface of standard may be implemented by respective memory interface to each From Distributed Database Operation and control.
The spare main control device detects that current counter RollbackCounter is reduced to and presets Counter Value When, indicate that relational data backup is completed.At this point, one by one by all Backup Datas cached in current backup data buffer storage queue Take out the distributed data base being uploaded in the spare main control device.Then application program is obtained by calling memory interface The data of distributed data base in spare main control device are handled by the complete paired data of application program.For application program For, only when counter RollbackCounter reduces to initial counter value, i.e., when relational data backup is complete, Backup Data can be received.Application program is realized when executing relational data backup, without being by relational data dismantling Non-relational data can directly back up relational data, reduce requirement of the application program to Backup Data form, drop Low application program carries out the difficulty of data backup.
Step S360: when the spare main control device detects masterslave switchover, detect whether current counter is described Third preset constant, if it is not, then removing the data in current backup data buffer storage queue.
When the spare main control device detects masterslave switchover, spare main control device upgrade to primary main control device it Before, nonce counter RollbackCounter is detected, if RollbackCounter is not equal to initial counter value, Indicate that relational data backup is imperfect, spare main control device will cache in Backup Data buffer queue RollbackQueue All Backup Datas all abandon.For application program, expression does not receive any Backup Data.Due in masterslave switchover Afterwards, the relational data for being not backed up completion, the incomplete Backup Data of the non-actual treatment of application program, so that answering directly have been abandoned Do not need to carry out retracting to incomplete dirty data with program/smooth equal processing, reduces application program to Backup Data processing Complexity.
The embodiment of the invention provides a kind of data back up method, primary main control device obtain associated first data with And second data, then the first Backup Data association messages are sent to spare main control device, it is sent out one by one to the spare main control device Send first data and second data;Then the spare main control device backs up first data and second number According to;After the primary main control device is sent completely, the first Backup Data is sent to the spare main control device and cancels association messages, It is realized before and after backing up associated data with this, transmission Backup Data association messages are associated with Backup Data cancellation and disappear respectively Breath guarantees the integrality of associated data backup.
Referring to Fig. 3, the method includes the steps S400 and step the embodiment of the invention provides a kind of data back up method Rapid S410.
Step S400: primary main control device obtains associated first data and the second data, to spare main control device The first Backup Data association messages are sent, send first data and second number one by one to the spare main control device According to so that spare main control device backs up first data and second data.
As an implementation, primary main control device obtains associated first data and the second data, to spare Main control device sends the first Backup Data association messages, sends first data and described one by one to the spare main control device Second data establish Backup Data so that the spare main control device is after receiving the first Backup Data association messages Buffer queue, by first data and second data backup into the Backup Data buffer queue.
Step S410: after the primary main control device is sent completely, the first backup number is sent to the spare main control device According to cancellation association messages.
As an implementation, before step S410, when primary main control device also gets relationship type Backup Data, The method also includes:
When the primary main control device detects third data associated with second data, the third number is obtained According to the second Backup Data association messages of the spare main control device transmission, to the spare main control device transmission third Data, so as to the spare main control device by the third data backup into the Backup Data buffer queue;
After the primary main control device is sent completely, the second Backup Data is sent to the spare main control device and cancels association Message.
Further, as an implementation, be based on step S400, primary main control device when sending the second data, Detect that the second data include at least two associated second subdatas, step S400 may include:
The primary main control device sends first data to the spare main control device, so that the spare master control is set It is standby by first data backup into the Backup Data buffer queue;
It includes at least two associated second subdatas that the primary main control device, which gets second data, to institute It states spare main control device and sends third Backup Data association messages, send described at least two one by one to the spare main control device Associated second subdata, so that the spare main control device backs up to described at least two associated second subdatas In the Backup Data buffer queue;
After the primary main control device is sent completely, third Backup Data is sent to the spare main control device and cancels association Message.
The embodiment of the invention provides a kind of data back up method, primary main control device obtain associated first data with And second data, the first Backup Data association messages are sent to spare main control device, are sent one by one to the spare main control device First data and second data, so that spare main control device backs up first data and second data;So After the primary main control device is sent completely afterwards, the first Backup Data is sent to the spare main control device and cancels association messages, It is realized before and after backing up associated data with this, transmission Backup Data association messages are associated with Backup Data cancellation and disappear respectively Breath guarantees the integrality of associated data backup.
Referring to Fig. 4, the embodiment of the invention provides a kind of data backup device 500, described device 500 includes: first Transmission unit 510 and the second transmission unit 520 and third transmission unit 540.
First transmission unit 510 is sent out for obtaining associated first data and the second data to spare main control device Send the first Backup Data association messages.
Second transmission unit 520, for sending first data and described second one by one to the spare main control device Data, so that spare main control device backs up first data and second data.
As an implementation, second transmission unit 520 may include the second transmission sub-unit 521.
Second transmission sub-unit 521, for sending first data to the spare main control device, so as to described spare Main control device is by first data backup into the Backup Data buffer queue;Getting second data includes at least Two kinds of associated second subdatas send third Backup Data association messages to the spare main control device, to described spare Main control device sends described at least two associated second subdatas one by one, so that the spare main control device general is described at least Two kinds of associated second subdatas back up in the Backup Data buffer queue;After being sent completely, to the spare master control Equipment sends third Backup Data and cancels association messages.
Third transmission unit 540 sends the first Backup Data to the spare main control device and cancels after being sent completely Association messages.
Described device 500 can also include detection unit 530.
Detection unit 530 when for detecting third data associated with second data, obtains the third number According to the second Backup Data association messages of the spare main control device transmission, to the spare main control device transmission third Data, so as to the spare main control device by the third data backup into the Backup Data buffer queue;It is sent completely Afterwards, the second Backup Data is sent to the spare main control device cancel association messages.
The above each unit can be by software code realization, at this point, above-mentioned each unit can be stored in memory.More than Each unit can equally be realized by hardware such as IC chip.
The technical effect of data backup device 500 provided in an embodiment of the present invention, realization principle and generation and aforementioned side Method embodiment is identical, and to briefly describe, Installation practice part does not refer to place, can refer in corresponding in preceding method embodiment Hold.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of data back up method, which is characterized in that the described method includes:
Primary main control device obtains associated first data and the second data;
The primary main control device sends the first Backup Data association messages to spare main control device;
The primary main control device sends first data and second data to the spare main control device one by one;
The spare main control device backs up first data and second data;
After the primary main control device is sent completely, the cancellation association of the first Backup Data is sent to the spare main control device and is disappeared Breath.
2. the method according to claim 1, wherein the spare main control device backs up first data and institute State the second data, comprising:
The spare main control device establishes Backup Data buffer queue after receiving the first Backup Data association messages, By first data and second data backup into the Backup Data buffer queue.
3. according to the method described in claim 2, it is characterized in that, after the primary main control device is sent completely, to described standby Before sending the first Backup Data cancellation association messages with main control device, the method also includes:
When the primary main control device detects third data associated with second data, the third data are obtained, The second Backup Data association messages are sent to the spare main control device, send the third number to the spare main control device According to;
The spare main control device is by the third data backup into the Backup Data buffer queue;
After the primary main control device is sent completely, the cancellation association of the second Backup Data is sent to the spare main control device and is disappeared Breath.
4. according to the method described in claim 2, it is characterized in that, the primary main control device to the spare main control device by One transmission first data and second data include:
The primary main control device sends first data to the spare main control device, so that the spare main control device will First data backup is into the Backup Data buffer queue;
It includes at least two associated second subdatas that the primary main control device, which gets second data, to described standby Third Backup Data association messages are sent with main control device, it is related to send described at least two one by one to the spare main control device Second subdata of connection, so as to the spare main control device described at least two associated second subdatas are backed up to it is described In Backup Data buffer queue;
After the primary main control device is sent completely, the cancellation association of third Backup Data is sent to the spare main control device and is disappeared Breath.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
After the spare main control device receives the first Backup Data association messages, current counter is added first pre- If constant;
After the spare main control device receives the third Backup Data association messages, current counter is added second pre- If constant;
Correspondingly, after the spare main control device receives the third Backup Data cancellation association messages, to current meter Preset constant that number device subtracts the second;
After the spare main control device receives the first Backup Data cancellation association messages, institute is subtracted to current counter State the first preset constant;
When the spare main control device detects that the value of current counter is third preset constant, judge that Backup Data is complete Whole, the initial counter value of the counter is third preset constant.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
When the spare main control device detects that the value of current counter is the third preset constant, by current backup data Data in buffer queue are uploaded to the database in the spare main control device.
7. according to the method described in claim 5, it is characterized in that, the method also includes:
When the spare main control device detects masterslave switchover, detect whether current counter is the third preset constant, If it is not, then removing the data in current backup data buffer storage queue.
8. a kind of data back up method, which is characterized in that the described method includes:
Primary main control device obtains associated first data and the second data, sends the first backup number to spare main control device According to association messages, first data and second data are sent one by one to the spare main control device, so as to spare master control First data described in device backup and second data;After the primary main control device is sent completely, to the spare master control Equipment sends the first Backup Data and cancels association messages.
9. a kind of data backup device, which is characterized in that described device includes:
First transmission unit sends first to spare main control device for obtaining associated first data and the second data Backup Data association messages;
Second transmission unit, for sending first data and second data one by one to the spare main control device, with Just spare main control device backs up first data and second data;
Third transmission unit sends the cancellation association of the first Backup Data to the spare main control device and disappears after being sent completely Breath.
10. a kind of data backup system, which is characterized in that the system comprises primary main control device and spare main control device,
Primary main control device sends first to spare main control device for obtaining associated first data and the second data Backup Data association messages;
The primary main control device is also used to send first data and second number one by one to the spare main control device According to;
The spare main control device, for backing up first data and second data;
The primary main control device after being also used to be sent completely, sends the first Backup Data to the spare main control device and cancels Association messages.
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 true CN109257404A (en) 2019-01-22
CN109257404B 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 (14)

* 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
US20130290268A1 (en) * 2012-04-27 2013-10-31 Sap Ag Ensuring database log recovery consistency
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
US20160041884A1 (en) * 2014-08-08 2016-02-11 International Business Machines Corporation Data backup using metadata mapping
US20160147614A1 (en) * 2014-11-25 2016-05-26 Kaushal MITTAL Synchronized Backup and Recovery of Database Systems
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

Patent Citations (14)

* 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
US20130290268A1 (en) * 2012-04-27 2013-10-31 Sap Ag Ensuring database log recovery consistency
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
US20160041884A1 (en) * 2014-08-08 2016-02-11 International Business Machines Corporation Data backup using metadata mapping
US20160147614A1 (en) * 2014-11-25 2016-05-26 Kaushal MITTAL Synchronized Backup and Recovery of Database Systems
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
ANDRÉ ORIANI ET AL: ""From Backup to Hot Standby: High Availability for HDFS"", 《2012 IEEE 31ST SYMPOSIUM ON RELIABLE DISTRIBUTED SYSTEMS》 *
杨苗苗等: ""基于云平台的电信数据仓库文件备份和分布动态调整算法"", 《南京邮电大学学报(自然科学版)》 *

Also Published As

Publication number Publication date
CN109257404B (en) 2022-04-05

Similar Documents

Publication Publication Date Title
WO2018103318A1 (en) Distributed transaction handling method and system
US9753954B2 (en) Data node fencing in a distributed file system
CN110807064B (en) Data recovery device in RAC distributed database cluster system
CN106843749A (en) Write request processing method, device and equipment
CN103581225A (en) Distributed system node processing task method
CN107480014A (en) A kind of High Availabitity equipment switching method and device
CN104601668B (en) Data push method, device and system based on condition managing
CN105760519A (en) Cluster file system and file lock allocation method thereof
US20120030503A1 (en) System and Method for Providing High Availability for Distributed Application
CN103152390A (en) Method and device and nodes and system for node configuration of distributed storage system
CN102035683A (en) Control method and system for switching of main board and standby board
CN107506266A (en) A kind of data reconstruction method and system
CN105812161B (en) A kind of controller failure backup method and system
CN105760251B (en) A kind of method and apparatus of Backup Data
CN102457400B (en) Method for preventing split brain phenomenon from occurring on distributed replicated block device (DRBD) resource
CN105808374A (en) Snapshot processing method and associated equipment
CN109002462A (en) A kind of method and system for realizing distributed things
CN110291505A (en) Reduce the recovery time of application
US10417101B2 (en) Fault monitoring device, virtual network system, and fault monitoring method
CN109508261A (en) A kind of electric network data node standby method and standby system based on big data
CN110780945B (en) Cross-chain bridging method, device and storage medium for pluggable heterogeneous blockchain
CN106250048A (en) The method and device of management storage array
CN102521023B (en) Multi-system transaction integration processing method and transaction integration processing system
CN109257404A (en) Data back up method, apparatus and system
CN112948484A (en) Distributed database system and data disaster recovery drilling method

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