CN112579704B - Data reverse synchronization method, device, system, mirror server and storage medium - Google Patents

Data reverse synchronization method, device, system, mirror server and storage medium Download PDF

Info

Publication number
CN112579704B
CN112579704B CN202011555679.2A CN202011555679A CN112579704B CN 112579704 B CN112579704 B CN 112579704B CN 202011555679 A CN202011555679 A CN 202011555679A CN 112579704 B CN112579704 B CN 112579704B
Authority
CN
China
Prior art keywords
data
service
server
synchronized
synchronization
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
CN202011555679.2A
Other languages
Chinese (zh)
Other versions
CN112579704A (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.)
Shenzhen Clerware Technology Co ltd
Original Assignee
Shenzhen Clerware 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 Shenzhen Clerware Technology Co ltd filed Critical Shenzhen Clerware Technology Co ltd
Priority to CN202011555679.2A priority Critical patent/CN112579704B/en
Publication of CN112579704A publication Critical patent/CN112579704A/en
Application granted granted Critical
Publication of CN112579704B publication Critical patent/CN112579704B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a data reverse synchronization method, a device, a system, a mirror server and a storage medium, and belongs to the technical field of databases. According to the invention, the basic data is restored locally according to the target backup point, the service data to be synchronized which needs to be synchronized with the service server is obtained, and then the service data to be synchronized is sent to the service server so as to realize the service data reverse synchronization of the service server.

Description

Data reverse synchronization method, device, system, mirror server and storage medium
Technical Field
The present invention relates to the field of database technologies, and in particular, to a method, an apparatus, a system, a mirror server, and a storage medium for data reverse synchronization.
Background
At present, in order to ensure that a server can continuously provide services, for a service server, a mirror image server is configured for the service server, data in the service server can be synchronized into the mirror image server, and when the service server fails, service requests can be directly switched to be responded by the mirror image server, so that the service requests required by users can be prevented from being responded in time.
In the above processing manner, although the service request can be responded in time, if the service server performs the misoperation of data, the mirror server can synchronize the data after the misoperation in the service server, at this time, the service server and the mirror server both have data errors, if the service server needs to be restored to the state before the misoperation, the service server and the mirror server generally need to restore the data through the backup system, but the data volumes of the service server and the mirror server are often very large, so that the service request of the user is difficult to respond for a long time.
Disclosure of Invention
The invention mainly aims to provide a data reverse synchronization method, a device, a system, a mirror image server and a storage medium, and aims to solve the technical problem that a service server in the prior art is difficult to respond to a service request of a user for a long time when misoperation occurs.
In order to achieve the above object, the present invention provides a data reverse synchronization method, which includes the steps of:
when receiving a restoration instruction of a user, the mirror image server extracts a corresponding target backup time from the restoration instruction;
the target backup moment is sent to a backup server, so that the backup server searches and feeds back a target backup point corresponding to the target backup moment;
locally restoring basic data according to the target backup point to obtain service data to be synchronized, which needs to be synchronized with a service server;
and sending the service data to be synchronized to the service server so as to realize the service data reverse synchronization of the service server.
Optionally, the step of locally restoring the base data according to the target backup point to obtain the service data to be synchronized, where the service data to be synchronized needs to be synchronized with the service server includes:
searching starting data required by starting an operating system from the target backup point;
restarting the system according to the starting data;
and after the system is restarted, acquiring service data to be synchronized, which needs to be synchronized with a service server, according to the target backup point through an agent program which runs after the system is restarted.
Optionally, after the system is restarted, the step of obtaining the service data to be synchronized, which needs to be synchronized with the service server, according to the target backup point through the proxy program running after the system is restarted includes:
after the system is restarted, a service taking-over instruction is sent to a service server, so that the service server receives the service taking-over instruction and feeds back a received service request;
responding to the service request according to the target backup point through the proxy program operated after the system is restarted, and obtaining service data to be synchronized, which needs to be synchronized with the service server, according to the target backup point through the proxy program operated after the system is restarted.
Optionally, after the step of sending the service data to be synchronized to a service server to achieve reverse synchronization of the service data of the service server, the data reverse synchronization method further includes the following steps:
and sending a service regression instruction to the service server so that the service server responds to the received service request after receiving the service regression instruction.
Optionally, before the step of extracting the corresponding target backup time from the restore instruction when the mirror server receives the restore instruction of the user, the data reverse synchronization method further includes the following steps:
the mirror image server stores the effective data of all the hard disks of the service server to the backup server to form an initial backup point;
when a synchronization instruction is acquired, acquiring service data in a service server, and synchronizing the service data to the local so as to update the local current synchronization data;
and sending the current time and the current synchronous data to a backup server so that the backup server generates a current backup point by using the current time and the current synchronous data.
Optionally, after the step of sending the current time and the current synchronization data to the backup server to enable the backup server to generate the current backup point by using the current time and the current synchronization data, the data back-synchronization method further includes:
generating a synchronization instruction when detecting that the service data in the service server changes, returning to the step of acquiring the service data in the service server when acquiring the synchronization instruction, and synchronizing the service data to the local so as to update the local current synchronization data;
or alternatively, the first and second heat exchangers may be,
and starting timing, generating a synchronization instruction when the timing time reaches a synchronization period, returning to the step of acquiring service data in the service server when the synchronization instruction is acquired, and synchronizing the service data to the local so as to update the local current synchronization data.
In addition, to achieve the above object, the present invention also provides a data reverse synchronization apparatus, including:
the extraction module is used for extracting the corresponding target backup moment from the restoring instruction when the restoring instruction of the user is received;
the sending module is used for sending the target backup time to a backup server so that the backup server searches and feeds back a target backup point corresponding to the target backup time;
the restoring module is used for locally restoring the basic data according to the target backup point to obtain service data to be synchronized, which needs to be synchronized with the service server;
and the reverse synchronization module is used for sending the service data to be synchronized to the service server so as to realize the reverse synchronization of the service data of the service server.
In addition, to achieve the above object, the present invention also provides a mirror server including: a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the data inverse synchronization method as described above.
In addition, to achieve the above object, the present invention also provides a data reverse synchronization system, including: a service server, a mirror server as described above, and a backup server, which are in communication connection in this order.
In addition, in order to achieve the above object, the present invention also provides a storage medium having stored thereon a data reverse synchronization program which, when executed by a processor, implements the steps of the data reverse synchronization method as described above.
According to the invention, the basic data is restored locally according to the target backup point, the service data to be synchronized which needs to be synchronized with the service server is obtained, and then the service data to be synchronized is sent to the service server so as to realize the service data reverse synchronization of the service server.
Drawings
FIG. 1 is a schematic diagram of a data back synchronization system of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a mirror server of a hardware operating environment according to an embodiment of the present invention;
FIG. 3 is a flowchart of a first embodiment of a data back synchronization method according to the present invention;
FIG. 4 is a flowchart of a second embodiment of the data back synchronization method of the present invention;
fig. 5 is a block diagram of an embodiment of a data reverse synchronization apparatus according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
FIG. 1 is a schematic diagram of a data back-synchronization system for a hardware runtime environment in which embodiments of the present invention are directed. The service server 102, the mirror server 104, and the backup server 106 are sequentially connected in communication, and the communication connection manner may be, but is not limited to, a wired communication connection and a wireless communication connection. The mirror server 104 may be in data communication with the business server 102 and the backup server 106, respectively. The operating system and the database running on the mirror server 104 do not need to be consistent with the service server 102, and the mirror server 104 only needs to ensure that the service is provided to the outside in the same form as the service server 102. For example, the operating system running on the service server 102 may be a Linux operating system, while the operating system running in the mirror server 104 is a Windows operating system; the database of the business server 102 may be an oracle database and the database of the mirror server 104 may be a mysql database. The service server 102 is operated with a service system to provide service to the outside, and the mirror server 104 is configured to continuously synchronize service data in the service server 102 to the local and backup the synchronized data to the backup server 106 during the operation of the service server 102. The service server 102, the mirror server 104, and the backup server 106 may each be implemented as a stand-alone server or as a server cluster of multiple servers.
FIG. 2 is a schematic diagram of a mirror server architecture of a hardware runtime environment according to an embodiment of the present invention.
As shown in fig. 2, the mirror server may include: a processor 2001, such as a CPU, a network interface 2004, a user interface 2003, a memory 2005, a communication bus 2002. Wherein a communication bus 2002 is used to enable connected communications between these components. The user interface 2003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 2003 may also include a standard wired interface, a wireless interface. The network interface 2004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 2005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 2005 may alternatively be a storage device independent of the aforementioned processor 2001.
Those skilled in the art will appreciate that the mirror server architecture shown in FIG. 2 is not limiting and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 2, an operating system, a network communication module, a user interface module, and a data reverse synchronization program may be included in the memory 2005 as a computer storage medium.
In the mirror server shown in fig. 2, the network interface 2004 is mainly used to connect the service server 102 and the backup server 106, and is in data communication with the service server 102 and the backup server 106; the user interface 2003 is mainly used for connecting a client (user side) and communicating data with the client; and processor 2001 may be configured to invoke the data back-synchronization program stored in memory 2005 and to perform the following operations:
when a restoring instruction of a user is received, extracting a corresponding target backup time from the restoring instruction;
the target backup moment is sent to a backup server, so that the backup server searches and feeds back a target backup point corresponding to the target backup moment;
locally restoring basic data according to the target backup point to obtain service data to be synchronized, which needs to be synchronized with a service server;
and sending the service data to be synchronized to the service server so as to realize the service data reverse synchronization of the service server.
Further, the processor 2001 may call a data back-synchronization program stored in the memory 2005, and further perform the following operations:
searching starting data required by starting an operating system from the target backup point;
restarting the system according to the starting data;
and after the system is restarted, acquiring service data to be synchronized, which needs to be synchronized with a service server, according to the target backup point through an agent program which runs after the system is restarted.
Further, the processor 2001 may call a data back-synchronization program stored in the memory 2005, and further perform the following operations:
after the system is restarted, a service take-over instruction is sent to the service server, so that the service server receives the service take-over instruction and feeds back a received service request;
responding to the service request according to the target backup point through the proxy program operated after the system is restarted, and obtaining service data to be synchronized, which needs to be synchronized with the service server, according to the target backup point through the proxy program operated after the system is restarted.
Further, the processor 2001 may call a data back-synchronization program stored in the memory 2005, and further perform the following operations:
and sending a service regression instruction to the service server so that the service server responds to the received service request after receiving the service regression instruction.
Further, the processor 2001 may call a data back-synchronization program stored in the memory 2005, and further perform the following operations:
storing the effective data of all hard disks of the service server to a backup server to form an initial backup point;
when a synchronization instruction is acquired, acquiring service data in a service server, and synchronizing the service data to the local so as to update the local current synchronization data;
and sending the current time and the current synchronous data to a backup server so that the backup server generates a current backup point by using the current time and the current synchronous data.
Further, the processor 2001 may call a data back-synchronization program stored in the memory 2005, and further perform the following operations:
generating a synchronization instruction when detecting that the service data in the service server changes, returning to the step of acquiring the service data in the service server when acquiring the synchronization instruction, and synchronizing the service data to the local so as to update the local current synchronization data;
or alternatively, the first and second heat exchangers may be,
and starting timing, generating a synchronization instruction when the timing time reaches a synchronization period, returning to the step of acquiring service data in the service server when the synchronization instruction is acquired, and synchronizing the service data to the local so as to update the local current synchronization data.
In this embodiment, the base data is locally restored according to the target backup point, to-be-synchronized service data that needs to be synchronized with the service server is obtained, and then the to-be-synchronized service data is sent to the service server, so as to realize service data reverse synchronization of the service server.
Based on the above hardware structure, an embodiment of the data reverse synchronization method of the present invention is presented.
Referring to fig. 3, fig. 3 is a flowchart illustrating a data back synchronization method according to a first embodiment of the present invention.
In a first embodiment, the data reverse synchronization method includes the steps of:
s100: when receiving a restoring instruction of a user, the mirror image server extracts a corresponding target backup time from the restoring instruction.
It should be noted that, for the backup data, there may be multiple backup data at different times, and since the misoperation is difficult to be determined by the mirror server, the user may select the target backup time to be restored by himself, so when the restoration instruction of the user is received, the corresponding target backup time may be extracted from the restoration instruction.
S200: and sending the target backup time to a backup server so that the backup server searches and feeds back a target backup point corresponding to the target backup time.
It can be understood that, in order to improve the security of the data, in this embodiment, before step S100, the valid data of all the hard disks of the service server may be saved to the backup server to form an initial backup point, then, when a synchronization instruction is acquired, the service data in the service server is acquired, and the service data is synchronized to the local to update the local current synchronization data, and finally, the current time and the current synchronization data are sent to the backup server, so that the backup server generates the current backup point by using the current time and the current synchronization data.
In a specific implementation, the synchronization instruction may have two trigger modes, which correspond to two different backup modes:
the first mode is real-time synchronization; that is, when the service server changes data, the mirror server generates a synchronization instruction, uses the changed data in the service server as service data, synchronizes the service data to the local to update the local current synchronization data, and then sends the current time and the current synchronization data to the backup server, so that the backup server generates the current backup point by using the current time and the current synchronization data.
The second way is timing synchronization; that is, the mirror server may maintain a timer, count time by the timer, generate a synchronization command when the counted time reaches a synchronization period, synchronize the changed data in the service server as service data, and synchronize the service data to the local to update the local current synchronization data, and then send the current time and the current synchronization data to the backup server, so that the backup server generates the current backup point by using the current time and the current synchronization data.
In a specific implementation, whether the first mode or the second mode is adopted, backup points corresponding to different times are generated substantially, so that the target backup time can be sent to a backup server, and the backup server searches and feeds back the target backup point corresponding to the target backup time.
S300: and locally restoring the basic data according to the target backup point to obtain service data to be synchronized, which needs to be synchronized with the service server.
It should be noted that, the service data to be synchronized is a portion of the target backup point, where the portion is different from the service data in the service server, and at this time, the mirror server locally restores the basic data according to the target backup point, so as to obtain the service data to be synchronized with the service server.
It can be understood that the base data restore is performed locally according to the target backup point, which can be understood as being capable of locally accessing the data of the target backup point, that is, without completely restoring the data corresponding to the target backup point locally.
S400: and sending the service data to be synchronized to the service server so as to realize the service data reverse synchronization of the service server.
It should be understood that after the service data to be synchronized is sent to the service server, the service server will cover local service data according to the service data to be synchronized, and normally, the service server sends the service server to the mirror server to synchronize, and at this time, the service server data is synchronized according to the service data to be synchronized sent by the mirror server, so this process may be referred to as service data reverse synchronization.
In a specific implementation, after the service data to be synchronized is sent to the service server to realize the reverse synchronization of the service data of the service server, the service server has recovered the service data to the data state corresponding to the target backup time, that is, the service data of the service server is normal at this time, so that a service regression instruction can be sent to the service server, so that the service server responds to the received service request after receiving the service regression instruction.
According to the embodiment, the base data is locally restored according to the target backup point, the service data to be synchronized, which needs to be synchronized with the service server, is obtained, and then the service data to be synchronized is sent to the service server, so that the service data of the service server is reversely synchronized.
Further, as shown in fig. 4, a second embodiment of the data back synchronization method according to the present invention is proposed based on the first embodiment, in which step S300 includes:
s310: and searching starting data required by starting the operating system from the target backup point.
It should be noted that, the startup data is the data necessary for starting the operating system, that is, for the target backup point, the data size is generally larger, but for the startup data in the target backup point, the startup data is generally not too large, the startup data similar to the windows system is generally not more than 10G, the startup data of the linux system is generally not more than 1G, and therefore it takes less time to recover the data.
It can be understood that, in order to facilitate the rapid recovery of the basic data of the target backup point, in this embodiment, a rapid reconstruction technique may be adopted, and the recovery is divided into 2 stages: the first stage is to restore the starting data needed by the starting of the operating system to the mirror image server, and then the mirror image server restarts the system; the second stage is that after the mirror server is restarted, the agent will complete the recovery of the remaining data.
S320: and restarting the system according to the starting data.
S330: and after the system is restarted, acquiring service data to be synchronized, which needs to be synchronized with the service server, according to the target backup point through an agent program which runs after the system is restarted.
In a specific implementation, after the system restart of the mirror server is completed, the agent program monitors the read-write operations of all the hard disks of the whole system, and when the operating system or the system program reads and writes the hard disks, the agent program intercepts the operations and performs the following processes:
if the data of the read-write area is recovered in the first stage, the agent directly releases the read-write operations;
if the data of the areas are not recovered in the first stage, the data of the areas are acquired from the backup server, then written into the corresponding positions of the hard disk, and then the operation of reading and writing the hard disk is released.
The act of intercepting the hard disk read-write operation by the agent program is transparent to the operating system and the system program, so that the processing mode of the agent program is not perceived for the external operating system and the system program, that is, the agent program can be equivalent to the external operating system and the system program, and therefore, the operating system and the application program can run normally. When the system is idle, the agent automatically restores the data that is not accessed by the operating system or the system program and that is still on the backup server to the mirror server.
Therefore, after the system is restarted, the service data corresponding to the target backup point can be equivalent to the service data corresponding to the target backup point to exist in the mirror server, and at this time, the service data to be synchronized, which needs to be synchronized with the service server, can be obtained according to the proxy program that the target backup point runs after the system is restarted, that is, the service data corresponding to the target backup point can be compared with the service data in the service server, so as to determine the service data to be synchronized.
Because a certain time is also required when the service server is in reverse synchronization with service data, in order to ensure that the time can also respond to service requests, in this embodiment, after the system is restarted, a service take-over instruction can be sent to the service server, so that the service server receives the service take-over instruction and feeds back the received service requests; responding to the service request according to the target backup point through the proxy program operated after the system is restarted, and obtaining service data to be synchronized, which needs to be synchronized with the service server, according to the target backup point through the proxy program operated after the system is restarted.
For example, if the service data corresponding to the target backup point is denoted as a, the service data of the service server is denoted as B. The mirror image server compares the data in A and B one by one, if the table 1 exists in A and the table 1 does not exist in B, the table 1 is the service data to be synchronized, namely the data which needs to be added in the service server; if table 1 is not present in a and table 1 is present in B, then table 1 is also the service data to be synchronized, i.e. the data that needs to be deleted in the service server.
Assuming that the data on the service server is about 10TB when the data is mishandled, the data on the mirror server is also about 10TB, and if the data recovery is performed by using the conventional method, assuming that 100MB per second can be recovered, the time required for completing all the data recovery is about 29 hours (10×1024×1024/100/60/60), which means that the database can recover the service only after 29 hours. If the method of this embodiment is used for recovery, the first phase of recovery data takes 102 seconds (assuming a windows system, the data required to be recovered in one phase is less than 10GB, the time taken is 102 seconds (10×1024/10)), and then the system is restarted; assuming that 15 minutes are taken for the operating system and database to boot up, database traffic can be restored at 17 minutes, with a significant increase in recovery speed over conventional recovery techniques.
In addition, an embodiment of the present invention also proposes a computer-readable storage medium, on which a data reverse synchronization program is stored, which when executed by a processor, implements the following operations:
when a restoring instruction of a user is received, extracting a corresponding target backup time from the restoring instruction;
the target backup moment is sent to a backup server, so that the backup server searches and feeds back a target backup point corresponding to the target backup moment;
locally restoring basic data according to the target backup point to obtain service data to be synchronized, which needs to be synchronized with a service server;
and sending the service data to be synchronized to the service server so as to realize the service data reverse synchronization of the service server.
The data reverse synchronization program of the present embodiment may also be used to implement each step of the data reverse synchronization method described above, and will not be described herein.
In addition, an embodiment of the present invention further provides a data reverse synchronization device, referring to fig. 5, where the device includes:
the extracting module 501 is configured to extract, when a restore instruction of a user is received, a corresponding target backup time from the restore instruction;
the sending module 502 is configured to send the target backup time to a backup server, so that the backup server searches and feeds back a target backup point corresponding to the target backup time;
a restoring module 503, configured to locally restore the basic data according to the target backup point, so as to obtain service data to be synchronized that needs to be synchronized with the service server;
and the reverse synchronization module 504 is configured to send the service data to be synchronized to the service server, so as to implement reverse synchronization of the service data of the service server.
The modules in this embodiment may be further used to implement the steps of the data reverse synchronization method, which is not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. A data reverse synchronization method, characterized in that the data reverse synchronization method comprises the steps of:
when receiving a restoration instruction of a user, the mirror image server extracts a corresponding target backup time from the restoration instruction;
the target backup moment is sent to a backup server, so that the backup server searches and feeds back a target backup point corresponding to the target backup moment;
locally restoring basic data according to the target backup point to obtain service data to be synchronized, which needs to be synchronized with a service server;
the service data to be synchronized is sent to the service server so as to realize the reverse synchronization of the service data of the service server;
the step of locally restoring the basic data according to the target backup point to obtain the service data to be synchronized, which needs to be synchronized with the service server, includes:
searching starting data required by starting an operating system from the target backup point;
restarting the system according to the starting data;
after the system is restarted, obtaining service data to be synchronized, which needs to be synchronized with a service server, according to the target backup point through an agent program operated after the system is restarted;
after the system is restarted, the step of obtaining service data to be synchronized, which needs to be synchronized with a service server, according to the target backup point through an agent program operated after the system is restarted comprises the following steps:
after the system is restarted, a service taking-over instruction is sent to a service server, so that the service server receives the service taking-over instruction and feeds back a received service request;
responding to the service request through an agent program operated after the system is restarted according to the target backup point, and acquiring service data to be synchronized, which needs to be synchronized with the service server, according to the target backup point through the agent program operated after the system is restarted.
2. The data reverse synchronization method according to claim 1, wherein after the step of transmitting the service data to be synchronized to a service server to achieve the service data reverse synchronization of the service server, the data reverse synchronization method further comprises the steps of:
and sending a service regression instruction to the service server so that the service server responds to the received service request after receiving the service regression instruction.
3. The data reverse synchronization method according to any one of claims 1 to 2, wherein the mirror server, when receiving a restore instruction from a user, extracts a corresponding target backup time from the restore instruction, further comprises the steps of:
the mirror image server stores the effective data of all the hard disks of the service server to the backup server to form an initial backup point;
when a synchronization instruction is acquired, acquiring service data in a service server, and synchronizing the service data to the local so as to update the local current synchronization data;
and sending the current time and the current synchronous data to a backup server so that the backup server generates a current backup point by using the current time and the current synchronous data.
4. The data reverse synchronization method as claimed in claim 3, wherein after the step of transmitting the current time and the current synchronization data to the backup server so that the backup server generates the current backup point using the current time and the current synchronization data, the data reverse synchronization method further comprises:
generating a synchronization instruction when detecting that the service data in the service server changes, returning to the step of acquiring the service data in the service server when acquiring the synchronization instruction, and synchronizing the service data to the local so as to update the local current synchronization data;
or alternatively, the first and second heat exchangers may be,
and starting timing, generating a synchronization instruction when the timing time reaches a synchronization period, returning to the step of acquiring service data in the service server when the synchronization instruction is acquired, and synchronizing the service data to the local so as to update the local current synchronization data.
5. A data reverse synchronization device, the data reverse synchronization device comprising:
the extraction module is used for extracting the corresponding target backup moment from the restoring instruction when the restoring instruction of the user is received;
the sending module is used for sending the target backup time to a backup server so that the backup server searches and feeds back a target backup point corresponding to the target backup time;
the restoring module is used for locally restoring the basic data according to the target backup point to obtain service data to be synchronized, which needs to be synchronized with the service server;
the reverse synchronization module is used for sending the service data to be synchronized to the service server so as to realize the reverse synchronization of the service data of the service server;
the restoring module is further configured to search starting data required by the operating system when starting from the target backup point, restart the system according to the starting data, and obtain service data to be synchronized, which needs to be synchronized with the service server, according to an agent program running after the target backup point is restarted after the system restart is completed;
the restoration module is further configured to send a service takeover instruction to a service server after the system is restarted, so that the service server receives the service takeover instruction and feeds back a received service request; responding to the service request through an agent program operated after the system is restarted according to the target backup point, and acquiring service data to be synchronized, which needs to be synchronized with the service server, according to the target backup point through the agent program operated after the system is restarted.
6. A mirror server, the mirror server comprising: memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the data back synchronization method according to any one of claims 1 to 4.
7. A data reverse synchronization system, the data reverse synchronization system comprising: a service server, a mirror server according to claim 6, and a backup server in communication connection in this order.
8. A storage medium having stored thereon a data back-synchronization program which, when executed by a processor, implements the steps of the data back-synchronization method according to any one of claims 1 to 4.
CN202011555679.2A 2020-12-24 2020-12-24 Data reverse synchronization method, device, system, mirror server and storage medium Active CN112579704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011555679.2A CN112579704B (en) 2020-12-24 2020-12-24 Data reverse synchronization method, device, system, mirror server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011555679.2A CN112579704B (en) 2020-12-24 2020-12-24 Data reverse synchronization method, device, system, mirror server and storage medium

Publications (2)

Publication Number Publication Date
CN112579704A CN112579704A (en) 2021-03-30
CN112579704B true CN112579704B (en) 2024-04-09

Family

ID=75139720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011555679.2A Active CN112579704B (en) 2020-12-24 2020-12-24 Data reverse synchronization method, device, system, mirror server and storage medium

Country Status (1)

Country Link
CN (1) CN112579704B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006293910A (en) * 2005-04-14 2006-10-26 Kokolink:Kk Safe and fast database replication technology
CN1976275A (en) * 2006-12-15 2007-06-06 深圳市戴文科技有限公司 Data synchronizing system and method
CN101350839A (en) * 2008-09-22 2009-01-21 北京立通无限科技有限公司 Method, apparatus and system for implementing data synchronization of mobile terminal PIM service
CN103780417A (en) * 2012-10-23 2014-05-07 上海盛大网络发展有限公司 Database failure transfer method based on cloud hard disk and device thereof
CN105335255A (en) * 2015-12-10 2016-02-17 上海数腾软件科技股份有限公司 System and method capable of achieving quick service recovery
CN105991510A (en) * 2015-01-27 2016-10-05 腾讯科技(深圳)有限公司 Session synchronization method, device and system among multiple terminals
CN106339278A (en) * 2016-08-24 2017-01-18 浪潮电子信息产业股份有限公司 Data backup and recovery method for network file system
CN106919478A (en) * 2017-03-07 2017-07-04 中国建设银行股份有限公司 A kind of Website page element backup method and system
CN107025123A (en) * 2017-05-17 2017-08-08 上海酷卓信息科技有限公司 The method for managing system and device of desktop virtualization
CN110502572A (en) * 2019-06-26 2019-11-26 中电万维信息技术有限责任公司 A kind of method and server that data are synchronous
CN110955725A (en) * 2019-11-25 2020-04-03 北京工业大学 Industrial internet identification analysis root node data synchronization method
CN111045867A (en) * 2019-12-05 2020-04-21 深圳市科力锐科技有限公司 Data recovery method, device, server and storage medium
WO2020140661A1 (en) * 2019-01-04 2020-07-09 深圳壹账通智能科技有限公司 Data synchronization method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5042644B2 (en) * 2007-01-24 2012-10-03 株式会社日立製作所 Remote copy system
US20160306864A1 (en) * 2015-04-14 2016-10-20 Don Estes & Associates, Inc. Method and system for data synchronization

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006293910A (en) * 2005-04-14 2006-10-26 Kokolink:Kk Safe and fast database replication technology
CN1976275A (en) * 2006-12-15 2007-06-06 深圳市戴文科技有限公司 Data synchronizing system and method
CN101350839A (en) * 2008-09-22 2009-01-21 北京立通无限科技有限公司 Method, apparatus and system for implementing data synchronization of mobile terminal PIM service
CN103780417A (en) * 2012-10-23 2014-05-07 上海盛大网络发展有限公司 Database failure transfer method based on cloud hard disk and device thereof
CN105991510A (en) * 2015-01-27 2016-10-05 腾讯科技(深圳)有限公司 Session synchronization method, device and system among multiple terminals
CN105335255A (en) * 2015-12-10 2016-02-17 上海数腾软件科技股份有限公司 System and method capable of achieving quick service recovery
CN106339278A (en) * 2016-08-24 2017-01-18 浪潮电子信息产业股份有限公司 Data backup and recovery method for network file system
CN106919478A (en) * 2017-03-07 2017-07-04 中国建设银行股份有限公司 A kind of Website page element backup method and system
CN107025123A (en) * 2017-05-17 2017-08-08 上海酷卓信息科技有限公司 The method for managing system and device of desktop virtualization
WO2020140661A1 (en) * 2019-01-04 2020-07-09 深圳壹账通智能科技有限公司 Data synchronization method and system
CN110502572A (en) * 2019-06-26 2019-11-26 中电万维信息技术有限责任公司 A kind of method and server that data are synchronous
CN110955725A (en) * 2019-11-25 2020-04-03 北京工业大学 Industrial internet identification analysis root node data synchronization method
CN111045867A (en) * 2019-12-05 2020-04-21 深圳市科力锐科技有限公司 Data recovery method, device, server and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
镜像服务器之间的数据库同步与备份;袁晋武;《魅力中国》;20110817(第13期);261 *

Also Published As

Publication number Publication date
CN112579704A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
EP3493471B1 (en) Data disaster recovery method, apparatus and system
US20180150501A1 (en) Database system, server device, computer program product, and information processing method
US7428657B2 (en) Method for rolling back from snapshot with log
KR101662212B1 (en) Database Management System providing partial synchronization and method for partial synchronization thereof
US10565071B2 (en) Smart data replication recoverer
US11429599B2 (en) Method and apparatus for updating database by using two-phase commit distributed transaction
CN102308286B (en) Method and system for multi-server application synchronization without stopping I/O
US20020059279A1 (en) Apparatus and method for database synchronization in a duplex system
WO2014059804A1 (en) Method and system for data synchronization
CN105117246A (en) Method for rapidly booting electronic equipment
US20120278429A1 (en) Cluster system, synchronization controlling method, server, and synchronization controlling program
US7024428B1 (en) Reliable data synchronization over unreliable networks
CN102937955A (en) Main memory database achieving method based on My structured query language (SQL) double storage engines
EP4270299A1 (en) Operating system upgrade method, electronic device, and storage medium
US20100274758A1 (en) Data processing method, computer, and data processing program
EP1131756B1 (en) Protocol for synchronizing parallel processors in a mobile communications system
KR101424568B1 (en) Client and database server for resumable transaction and method thereof
CN112579704B (en) Data reverse synchronization method, device, system, mirror server and storage medium
CN109947592B (en) Data synchronization method, device and related equipment
CN112052127B (en) Data synchronization method and device for dual-computer hot standby environment
CN111984474A (en) Method, system and equipment for recovering double-control cluster fault
CN111045867B (en) Data recovery method, device, server and storage medium
CN111324632B (en) Transparent database session restoration with client-side caching
CN112732370B (en) Business process adjustment method and device
US20210240351A1 (en) Remote copy system and remote copy management 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