CN110851303B - Data backup method, system and equipment - Google Patents

Data backup method, system and equipment Download PDF

Info

Publication number
CN110851303B
CN110851303B CN201911099632.7A CN201911099632A CN110851303B CN 110851303 B CN110851303 B CN 110851303B CN 201911099632 A CN201911099632 A CN 201911099632A CN 110851303 B CN110851303 B CN 110851303B
Authority
CN
China
Prior art keywords
backup
data
task
request
media server
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
CN201911099632.7A
Other languages
Chinese (zh)
Other versions
CN110851303A (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.)
Beijing Tianhua Xinghang Technology Co ltd
Original Assignee
Beijing Tianhua Xinghang 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 Beijing Tianhua Xinghang Technology Co ltd filed Critical Beijing Tianhua Xinghang Technology Co ltd
Priority to CN201911099632.7A priority Critical patent/CN110851303B/en
Publication of CN110851303A publication Critical patent/CN110851303A/en
Application granted granted Critical
Publication of CN110851303B publication Critical patent/CN110851303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06F11/1448Management of the data involved in backup or backup restore
    • 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
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • 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
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a data backup method, a system and equipment, wherein the data backup equipment comprises the following components: the communication gateway is used for acquiring the backup request; the backup request at least can represent a backup task for performing backup processing on data to be backed up; the data backup component is used for determining the equipment characteristic information of a first target media server meeting the backup request after receiving the backup request sent by the communication gateway, and at least sending a backup task corresponding to the backup request to the first target media server; and the backup client is used for establishing a data backup channel with the first target media server after acquiring the backup response information sent by the first target media server, and sending the data to be backed up to the first target media server for backup processing by using the data backup channel. Therefore, a foundation is laid for realizing cross-platform data backup.

Description

Data backup method, system and equipment
Technical Field
The present invention relates to the field of data processing, and in particular, to a data backup method, system and device.
Background
Data backup is the basis of disaster recovery, and refers to a process of copying all or part of a data set from a hard disk or an array of an application host to another storage medium in order to prevent data loss caused by misoperation of a system or system failure. With the continuous development of the technology, the amount of data is increased, and a large number of enterprises begin to adopt network backup. Network backups are typically implemented by specialized data storage management software in conjunction with corresponding hardware and storage devices.
However, how to implement cross-platform network backup becomes an urgent problem to be solved in the data backup field.
Disclosure of Invention
In view of the above problems, the present invention provides a data backup method, system and device, which lay a foundation for implementing cross-platform data backup.
The technical scheme of the embodiment of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a data backup device, including:
the communication gateway is used for acquiring the backup request; the backup request at least can represent a backup task for performing backup processing on data to be backed up;
the data backup component is used for determining the equipment characteristic information of a first target media server meeting the backup request after receiving the backup request sent by the communication gateway, and at least sending a backup task corresponding to the backup request to the first target media server; the first target media server generates backup response information based on the received backup task;
and the backup client is used for establishing a data backup channel with the first target media server after acquiring the backup response information sent by the first target media server, and sending the data to be backed up to the first target media server for backup processing by using the data backup channel.
In a specific example, the data backup device runs on a first operating system; the first target media server runs on a second operating system; the first operating system and the second operating system are the same or different.
In a specific example, the data backup component includes:
the main control service module is used for starting a strategy scheduling process after receiving the backup request sent by the communication gateway, and the strategy scheduling process determines whether to run the backup task based on backup characteristic information representing the backup task carried by the backup request; after the operation is determined, the communication gateway is utilized to send the backup request to a task management module;
the task management module is used for starting a backup task thread based on the acquired backup request;
and the media management service module is used for applying for the media server meeting the backup request through the backup task thread to obtain the equipment characteristic information of the first target media server and sending the backup task to the first target media server.
In a specific example, the main control service module is further configured to, after a policy scheduling process is started, determine, by the policy scheduling process, that the backup request is initiated by the policy scheduling component based on backup feature information representing a backup task carried by the backup request, and determine whether to run the backup task based on a preset rule.
In a specific example, the data backup device further includes:
the browsing component is used for initiating a backup request aiming at the data to be backed up stored by the backup client;
and the main control service module is further configured to, after a policy scheduling process is started, operate the backup task if the policy scheduling process determines that the backup request is initiated by the browsing component based on backup characteristic information representing the backup task carried by the backup request.
In a specific example, the data backup device further includes: a control component; wherein,
the communication gateway is further configured to obtain a recovery request, where the recovery request at least can represent feature information of data to be recovered;
the task management module is further configured to create a recovery task for the recovery request after the recovery request is obtained;
the control component is used for starting an external disaster recovery medium provided with a backup client and operating the backup client; the backup client installed in the external disaster recovery medium is used for establishing a data recovery channel with a second target medium server after acquiring recovery response information sent by the second target medium server; receiving the data to be recovered sent by the second target media server by using the data recovery channel; wherein the recovery response information is generated by the second target media server based on the received recovery task.
In a specific example, the task management module is further configured to start a recovery task thread;
the media management service module is further configured to determine, based on a recovery task thread and by using the feature information of the data to be recovered, device feature information of a second target media server corresponding to the data to be recovered, and send a recovery task to the second target media server.
In a second aspect, an embodiment of the present invention provides an apparatus backup method, where the method is applied to the data backup apparatus, and the data backup apparatus includes: the system comprises a communication gateway, a data backup component and a backup client; the method comprises the following steps:
acquiring a backup request by using the communication gateway; the backup request at least can represent a backup task for performing backup processing on data to be backed up;
after receiving the backup request sent by the communication gateway based on a data backup component, determining equipment characteristic information of a first target media server meeting the backup request, and at least sending a backup task corresponding to the backup request to the first target media server; the first target media server generates backup response information based on the received backup task;
after the backup response information sent by the first target media server is acquired based on the backup client, a data backup channel with the first target media server is established, and the data to be backed up is sent to the first target media server by the data backup channel for backup processing.
In a third aspect, an embodiment of the present invention further provides a data backup system, including: the system comprises a data backup device and a first target media server; the backup data device includes: the system comprises a communication gateway, a data backup component and a backup client; wherein,
the communication gateway is used for acquiring the backup request; the backup request at least can represent a backup task for performing backup processing on data to be backed up;
the data backup component is used for determining the equipment characteristic information of a first target media server meeting the backup request after receiving the backup request sent by the communication gateway, and at least sending a backup task corresponding to the backup request to the first target media server;
the first target media server is used for generating backup response information based on the received backup task;
and the backup client is used for establishing a data backup channel with the first target media server after acquiring the backup response information sent by the first target media server, and sending the data to be backed up to the first target media server for backup processing by using the data backup channel.
In a specific example, the data backup device further includes: a control component; the system also includes a second target media server; wherein,
the communication gateway is further configured to obtain a recovery request, where the recovery request at least can represent feature information of data to be recovered;
the data backup component is further configured to create a recovery task for the recovery request after the recovery request is acquired;
the control component is used for starting an external disaster recovery medium provided with a backup client and operating the backup client; the backup client installed in the external disaster recovery medium is used for establishing a data recovery channel with a second target medium server after acquiring recovery response information sent by the second target medium server; receiving the data to be recovered sent by the second target media server by using the data recovery channel;
wherein the recovery response information is generated by the second target media server based on the received recovery task.
In a fourth aspect, an embodiment of the present invention further provides a data backup apparatus, including
One or more processors;
a memory communicatively coupled to the one or more processors;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a fifth aspect, the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method described above.
Therefore, by the data backup device in the embodiment of the application, a foundation can be laid for realizing cross-platform network backup and safety guarantee is provided for data by using the data backup component and the backup client.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 illustrates a structural intent of a data backup appliance, according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a data backup method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a data backup system according to an embodiment of the present invention
Fig. 4 is a schematic structural diagram of components of a data backup device in an application according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
In some of the flows described in the present specification and claims and in the above figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, with the order of the operations being indicated as 101, 102, etc. merely to distinguish between the various operations, and the order of the operations by themselves does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 shows a structural view of a data backup apparatus according to an embodiment of the present invention, as shown in fig. 1, the apparatus including:
the communication gateway 101 is used for acquiring a backup request; the backup request at least can represent a backup task for performing backup processing on data to be backed up;
the data backup component 102 is configured to determine device characteristic information of a first target media server that meets the backup request after receiving the backup request sent by the communication gateway, and send at least a backup task corresponding to the backup request to the first target media server; the first target media server generates backup response information based on the received backup task;
the backup client 103 is configured to establish a data backup channel with the first target media server after acquiring the backup response information sent by the first target media server, and send the data to be backed up to the first target media server for backup processing by using the data backup channel.
In a specific example, the data backup device runs on a first operating system; the first target media server runs on a second operating system; the first operating system and the second operating system are the same or different, and when the first operating system and the second operating system are operated in different operating systems, cross-platform network spare parts can be realized; in practical application, the embodiment of the application does not limit the operating systems of the data backup device and the target media server, that is, the embodiment of the application can be compatible with various operating environments, even heterogeneous environments, so that the application scope of the scheme of the application is increased, and large-scale engineering application is facilitated.
In a specific example, the data backup component includes:
the main control service module is used for starting a strategy scheduling process after receiving the backup request sent by the communication gateway, and the strategy scheduling process determines whether to run the backup task based on backup characteristic information representing the backup task carried by the backup request; after the operation is determined, the communication gateway is utilized to send the backup request to a task management module;
the task management module is used for starting a backup task thread based on the acquired backup request;
and the media management service module is used for applying for the media server meeting the backup request through the backup task thread to obtain the equipment characteristic information of the first target media server and sending the backup task to the first target media server.
In practical application, the main control service module is further configured to, after the policy scheduling process is started, determine, by the policy scheduling process, that the backup request is initiated by the policy scheduling component based on backup characteristic information representing a backup task carried by the backup request, and determine whether to run the backup task based on a preset rule. Or, the main control service module is further configured to, after a policy scheduling process is started, determine, by the policy scheduling process, that the backup request is initiated by a browsing component based on backup feature information representing a backup task carried by the backup request, and then run the backup task; at this time, the data backup apparatus further includes: and the browsing component is used for initiating a backup request aiming at the data to be backed up stored by the backup client. In a specific example, the browsing component is further provided with a web background service module, so that the browser communicates with the backup client through the web background service module and the communication gateway; moreover, the user can browse the resources needing to be backed up on the backup client by using the browser.
That is to say, different initiators of the backup request in the scheme of the application set different operation strategies, that is, when the equipment request is initiated by a user, the backup task is directly operated, and when the backup request is initiated by the system, an operation threshold can be set, so that a foundation is laid for improving the spare part efficiency and maximizing the resource utilization rate.
In a specific example, the data backup device in the embodiment of the present application may further complete a data recovery process, and specifically, the data backup device further includes: a control component; wherein,
the communication gateway is further configured to obtain a recovery request, where the recovery request at least can represent feature information of data to be recovered;
the task management module is further configured to create a recovery task for the recovery request after the recovery request is obtained;
the control component is used for starting an external disaster recovery medium provided with a backup client and operating the backup client; the backup client installed in the external disaster recovery medium is used for establishing a data recovery channel with a second target medium server after acquiring recovery response information sent by the second target medium server; receiving the data to be recovered sent by the second target media server by using the data recovery channel; wherein the recovery response information is generated by the second target media server based on the received recovery task.
Here, in practical applications, the external disaster recovery medium may be a storage medium such as a usb disk or an optical disk, which is capable of storing a relevant program corresponding to the backup client, so that the external disaster recovery medium storing the backup client program is used to implement data recovery.
In practical application, the task management module is further configured to start a task recovery thread; the media management service module is further configured to determine, based on a recovery task thread and by using the feature information (for example, recovery time, etc.) of the data to be recovered, device feature information (for example, location, etc.) of a second target media server corresponding to the data to be recovered, and send a recovery task to the second target media server, so as to complete a data recovery process.
Therefore, by the data backup device in the embodiment of the application, a foundation can be laid for realizing cross-platform network backup and safety guarantee is provided for data by using the data backup component and the backup client.
Based on the above-mentioned device, an embodiment of the present application further provides a data backup method, where the method is applied to the above-mentioned data backup device, and as shown in fig. 2, the method includes:
step 201: acquiring a backup request by using the communication gateway; the backup request at least can represent a backup task for performing backup processing on data to be backed up;
step 202: after receiving the backup request sent by the communication gateway based on a data backup component, determining equipment characteristic information of a first target media server meeting the backup request, and at least sending a backup task corresponding to the backup request to the first target media server; the first target media server generates backup response information based on the received backup task;
step 203: after the backup response information sent by the first target media server is acquired based on the backup client, a data backup channel with the first target media server is established, and the data to be backed up is sent to the first target media server by the data backup channel for backup processing.
Here, it should be noted that the description of the method embodiment is similar to the description of the device, and has the same beneficial effects as the device embodiment, and therefore, the description is not repeated. For technical details that are not disclosed in the method embodiment of the present invention, those skilled in the art should refer to the description of the apparatus embodiment of the present invention to understand that, for the sake of brevity, detailed description is omitted here.
Based on the above-mentioned device, a data backup system according to an embodiment of the present application is further provided, as shown in fig. 3, where the data backup system includes: a data backup device 301 and a first target media server 302; the backup data device 301 includes: the system comprises a communication gateway, a data backup component and a backup client; wherein,
the communication gateway is used for acquiring the backup request; the backup request at least can represent a backup task for performing backup processing on data to be backed up;
the data backup component is used for determining the equipment characteristic information of a first target media server meeting the backup request after receiving the backup request sent by the communication gateway, and at least sending a backup task corresponding to the backup request to the first target media server;
the first target media server is used for generating backup response information based on the received backup task;
and the backup client is used for establishing a data backup channel with the first target media server after acquiring the backup response information sent by the first target media server, and sending the data to be backed up to the first target media server for backup processing by using the data backup channel.
In a specific example, the data backup device further includes: a control component; the system also includes a second target media server; wherein,
the communication gateway is further configured to obtain a recovery request, where the recovery request at least can represent feature information of data to be recovered;
the data backup component is further configured to create a recovery task for the recovery request after the recovery request is acquired;
the control component is used for starting an external disaster recovery medium provided with a backup client and operating the backup client; the backup client installed in the external disaster recovery medium is used for establishing a data recovery channel with a second target medium server after acquiring recovery response information sent by the second target medium server; receiving the data to be recovered sent by the second target media server by using the data recovery channel;
wherein the recovery response information is generated by the second target media server based on the received recovery task.
Here, it should be noted that the descriptions of the above system embodiments are similar to the descriptions of the above devices, and have the same beneficial effects as the device embodiments, and therefore, the descriptions are not repeated. For technical details that are not disclosed in the method embodiment of the present invention, those skilled in the art should refer to the description of the apparatus embodiment of the present invention to understand that, for the sake of brevity, detailed description is omitted here.
Based on the structure of the data backup device in the embodiment of the present application, a data backup method in the embodiment of the present application is further described in detail in combination with a specific application scenario shown in fig. 4; specifically, the method comprises the following steps:
step 1: a user manually initiates a backup request for data to be backed up in a backup client through a browsing component, such as a browser in the browsing component.
Here, in practical application, the browsing component is further provided with a web background service module, so that the browser communicates with the backup client through the web background service module and the communication gateway; moreover, the user can browse the resources needing to be backed up on the backup client by using the browser.
In practical application, the backup request can at least represent a backup task for performing backup processing on data to be backed up; further, the backup characteristic information of the backup task can be characterized, for example, the task identifier, the storage resource occupied by the data to be backed up, and other characteristic information.
Step 2: after the web background service module obtains the backup request initiated by the browser, the backup request is sent to the main control service module through the communication gateway.
And step 3: the main control service module starts a strategy scheduling process, the strategy scheduling process determines whether to run a backup task corresponding to the backup request based on backup characteristic information carried in the backup request, and if the backup task is determined to run, the strategy scheduling process sends the backup request to a task management module through a communication gateway; the backup request is sent to the task management module, for example, using a Remote Procedure Call (RPC).
In a specific scene, if the strategy scheduling process determines that the backup request is manually triggered by a user, directly operating a backup task corresponding to the spare part request; if the strategy scheduling process determines that the backup request is initiated by a strategy scheduling component (such as a strategy scheduler), whether the time for initiating the spare part request by the strategy scheduler meets the requirement is judged based on a preset rule, and if so, a backup task corresponding to the spare part request is directly operated; otherwise, the spare part request is ignored.
Here, in practical applications, the source of the backup request may be distinguished by the backup identifier in the backup feature information, that is, the identifier features of the backup identifiers in different initiating manners are different, so that the source of the backup request may be determined based on the backup identifier.
In a specific scenario, the data backup component is further provided with a detection module for detecting whether data stored in the backup client changes, and if the data stored in the backup client changes, the data to be backed up is determined based on the change characteristics of the data, and a backup request is generated and sent to the policy scheduler. For example, if it is detected that the data in the backup client is newly added, a backup request based on the newly added data is generated; or if the fact that the historical backed-up data is modified or increased in the backup client is detected, determining incremental data and/or differential data and further generating a backup request, so that incremental backup and differential backup are achieved, and backup requirements of different users are met.
And 4, step 4: the task management module starts a backup task thread based on the acquired backup request, and applies for the equipment required by the backup request to the media management service module through the backup task thread, for example, a first target media server meeting the backup request and equipment characteristic information of the first target media server are determined. After the device is applied, the media service component of the first target media server is notified, for example, the media service component of the first target media server is notified by the backup client by using the RPC, so as to run the backup task corresponding to the backup request.
Here, in practical applications, the first target media server may run on a Linux system, and at this time, the media service component is installed on the Linux system. The backup client can run on a Window system (namely, the data backup equipment runs on the Window system), so that cross-platform network spare parts can be realized; certainly, in practical applications, the first target media server and the backup client (or the data backup device) may also run on the same system, for example, both run on a Linux system, or a Window system, and the like, which is not limited in this embodiment of the present application.
And 5: and the media service component checks the equipment required by backup, then informs the backup client to run a backup task corresponding to the backup request through RPC, and waits for the backup client to create a data backup channel.
In practical application, the media service component specifically notifies the backup client to run the backup task by using the RPC and the server corresponding to the backup client, and waits for the backup client to create a data backup channel.
Here, the first target media server is used for managing the storage media collectively, and is also responsible for managing backup tasks/recovery tasks, data reading and writing of the storage media, and the like.
Step 6: and after receiving the notification of the media service component, the backup client starts a file backup subprocess and starts file backup, namely, the file backup subprocess establishes a data backup channel to the media service component by using a server corresponding to the client through TCP connection, namely, establishes a link between the backup client and the first target media server required by the backup determined in the step 4, then reads the data to be backed up for which the backup request is directed, and transmits the data to be backed up to the first target media server through the data backup channel.
In a specific application, the backup client is further provided with a task template, the backup client is further used for managing the task template, different backup requests can correspond to the same task template or different task templates, and the task template can be applied to any single backup client or applied to a backup client group in parallel.
Specifically, the task template may specifically include: characteristic information of the media server, equipment identification, backup strategy type, scheduling type, backup configuration option and the like; further, the backup client may also start different backup processes based on the policy type in the task template to complete the backup process, for example, if the policy type is a file resource, the backup client starts a file backup process to complete the backup process. In an application scenario, before a user initiates a backup request through a browser, a backup module corresponding to the backup request is selected from a backup client through the browser, and then a backup process of data to be backed up corresponding to the backup request is completed based on the backup module. That is, when a user initiates a backup request for data to be backed up in a backup client through a browser, the browser can be used to select a task template matched with the backup request (or select a task template matched with the data to be backed up), so that a templated backup process is completed by using the task template; or, the task template is not actively selected by the user, but the backup client confirms the task template based on the data characteristics (such as data type) of the data to be backed up, and carries the information (such as identification) of the task template in the backup request, so that the templated backup process is completed based on the characteristics of the task template, and the backup efficiency is improved.
In a preferred embodiment of the present invention, when a user selects a task template through a browser, the method specifically includes the following steps, so that the selection of the task template is more concise, efficient and user-friendly:
step 6-1, analyzing the backup request and the data to be backed up, and acquiring the template identifier of the backup request and the data characteristics of the data to be backed up;
step 6-2, if the template is identified as Null, one or more task templates corresponding to the data characteristics are displayed in a browser in a prominent mode; the highlighted mode display may be displayed in a different color from other task templates, or in the top of the ranking, for example.
6-3, if the template identification is not Null, judging whether the task template corresponding to the template identification exists in one or more task templates corresponding to the data characteristics, if so, directly taking the task template corresponding to the template identification as a selected task template, and not presenting a user in a browser for selection; and if not, displaying the task template corresponding to the template identification and one or more task templates corresponding to the data characteristics in a highlighted manner in the browser. Specifically, the task templates corresponding to the template identifications, the task templates corresponding to the data characteristics and other task templates are uniformly distributed in the same display mode.
And 7: and after receiving the data to be backed up through the data backup channel, the media service component writes the data to be backed up into the corresponding storage medium according to the user-defined format, thus completing the data backup process.
In practical applications, the storage medium may be embodied as a storage unit on the first target media server, or may also be an external storage medium controlled by the first target media server. Correspondingly, the device characteristic information of the first target media server in the step 4 at least comprises a server identifier and/or address information of a storage medium for storing data to be backed up, and the like, so that a foundation is laid for realizing data backup.
Here, in practical applications, the data backup component may further be provided with an index service module, configured to manage an index file for the backup task, so that the identifier of the backed-up data is conveniently and quickly retrieved, and the storage location of the backed-up data is further determined.
Based on the structure of the data backup device in the embodiment of the present application, the data backup method in the embodiment of the present application is further described in detail in combination with a specific application scenario; specifically, the method further includes a disaster recovery process, which specifically includes:
step 1: an external disaster-tolerant medium, such as an optical disc or a U disc, is manufactured, and the embodiment of the present application takes the optical disc as an example, which is hereinafter referred to as a startup optical disc; here, the startup disc is installed with the backup client.
In an actual scene, the optical disc is started, and a main program of the backup client can be installed, or a disaster recovery agent program is also installed. The main program of the backup client can realize the backup function of the backup client, or realize the functions of a data backup component and the backup client in the data backup device.
Step 2: after the starting of the optical disc is started by the Control component of the target device, the optical disc is accessed to the server corresponding to the backup client through a Transmission Control Protocol (TCP), so that the target device running the starting optical disc can realize the function of the data backup component by using the server.
Here, in a specific example, the target device may be specifically a data backup device; that is, when the data of the backup client in the data backup device is lost, the data recovery process can be completed by using the startup optical disc.
Here, in practical applications, the server corresponding to the backup client can have at least all functions of the data backup component.
And step 3: and determining a time point to be recovered on the main control interface of the target equipment by using the control component, generating a recovery request, notifying the recovery request to the web background service module, notifying the task management module to create a recovery task by the web background service module through the communication gateway, and acquiring recovery index information from the index service module and filling the recovery index information into the recovery task.
And 4, step 4: the task management module starts a task recovery thread, and determines the device corresponding to the recovery request to the media management service module through the task recovery thread, for example, determines a second target media server corresponding to the recovery request, and device characteristic information (such as an address) of the second target media server; and then sending the recovery task to a media service component of a second target media server, wherein the media service component performs equipment check after receiving the recovery task, and after the equipment check is passed, notifies the backup client to wait for the backup client to create a data recovery channel.
For example, the media service component of the second target media server performs device check after receiving the recovery task, and notifies the backup client through the control component after the device check is passed, and waits for the control component to create a data recovery channel by using the backup client.
Here, the second target media server is configured to manage the storage media collectively, and is also responsible for managing a backup task/a recovery task, data reading and writing of the storage media, and the like. In practical applications, the first target media server and the second target media server may be the same server or different servers.
And 5: the control component creates a disaster recovery sub-process to start recovery after receiving a recovery task by using a backup client (i.e. a target device that starts operation of an optical disc), for example, the control component creates a disaster recovery sub-process and starts a disaster recovery flow by using the backup client.
Step 6: after the disaster recovery process is started, the control component uses the backup client to create a data recovery channel between the control component and a second target media server, and uses the data recovery channel to receive and store data to be recovered sent by the second target media server, so as to complete a data recovery process.
Here, the received data includes partition table and sector data, and the data is written into the disk sector of the target device in sequence, so that the data recovery process can be completed.
An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the following steps:
acquiring a backup request by using a communication gateway; the backup request at least can represent a backup task for performing backup processing on data to be backed up;
after receiving a backup request sent by a communication gateway, a data-based backup component determines equipment characteristic information of a first target media server meeting the backup request, and at least sends a backup task corresponding to the backup request to the first target media server; the first target media server generates backup response information based on the received backup task;
after the backup response information sent by the first target media server is acquired based on the backup client, a data backup channel with the first target media server is established, and the data to be backed up is sent to the first target media server for backup processing by using the data backup channel.
Here, it should be noted that: the above description of the storage medium embodiment is similar to the above description of the method, and has the same beneficial effects as the method embodiment, and therefore, the description thereof is omitted. For technical details not disclosed in the embodiment of the storage medium of the present invention, those skilled in the art should refer to the description of the embodiment of the method of the present invention to understand, and for brevity, will not be described again here.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, or the like.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware that is instructed to implement by a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
While the data backup method, system and device provided by the present invention have been described in detail, for those skilled in the art, according to the idea of the embodiment of the present invention, the specific implementation manner and the application scope may be changed, and in summary, the content of the present description should not be construed as limiting the present invention.

Claims (5)

1. A data backup device, characterized in that the data backup device comprises:
the communication gateway is used for acquiring the backup request; the backup request at least can represent a backup task for performing backup processing on data to be backed up;
the browsing component is used for initiating a backup request aiming at the data to be backed up stored by the backup client;
the data backup component is used for determining the equipment characteristic information of a first target media server meeting the backup request after receiving the backup request sent by the communication gateway, and at least sending a backup task corresponding to the backup request to the first target media server; the first target media server generates backup response information based on the received backup task;
the data backup assembly comprises a main control service module and a task management module; the main control service module is used for starting a strategy scheduling process after receiving the backup request sent by the communication gateway, and the strategy scheduling process determines whether to run the backup task based on backup characteristic information representing the backup task carried by the backup request; after the operation is determined, the communication gateway is utilized to send the backup request to a task management module; the task management module is used for starting a backup task thread based on the acquired backup request; the backup characteristic information comprises a backup identifier for distinguishing backup request sources; when the backup request source is manually triggered by a user in the browsing component, the backup task is operated; when the backup request source is a strategy scheduling component, judging whether the time for the strategy scheduling component to initiate the backup request meets the requirement or not based on a preset rule, if so, operating the backup task, and if not, ignoring the backup request;
the backup client is used for establishing a data backup channel with the first target media server after acquiring the backup response information sent by the first target media server, and sending the data to be backed up to the first target media server for backup processing by using the data backup channel;
when a user manually triggers a backup request through a browsing component, selecting a task template, and completing modular backup by using the task template, wherein the task template comprises equipment characteristic information of a media server, equipment identification, a backup strategy type, a scheduling type and a backup configuration option; the method specifically comprises the following steps:
step 6-1, analyzing the backup request and the data to be backed up, and acquiring the template identifier of the backup request and the data characteristics of the data to be backed up;
step 6-2, if the template is identified as Null, displaying one or more task templates corresponding to the data characteristics in a highlighted manner in the browsing component;
6-3, if the template identification is not Null, judging whether the task template corresponding to the template identification exists in one or more task templates corresponding to the data characteristics, and if so, directly taking the task template corresponding to the template identification as the selected task template; and if not, displaying one or more task templates corresponding to the data features in a highlighted manner in the browsing component.
2. The device of claim 1, wherein the data backup device runs on a first operating system; the first target media server runs on a second operating system; the first operating system and the second operating system are the same or different.
3. The device of claim 1, wherein the data backup component further comprises:
and the media management service module is used for applying for the media server meeting the backup request through the backup task thread to obtain the equipment characteristic information of the first target media server and sending the backup task to the first target media server.
4. The apparatus of claim 3, wherein the data backup apparatus further comprises: a control component; wherein,
the communication gateway is further configured to obtain a recovery request, where the recovery request at least can represent feature information of data to be recovered;
the task management module is further configured to create a recovery task for the recovery request after the recovery request is obtained;
the control component is used for starting an external disaster recovery medium provided with a backup client and operating the backup client; the backup client installed in the external disaster recovery medium is used for establishing a data recovery channel with a second target medium server after acquiring recovery response information sent by the second target medium server; receiving the data to be recovered sent by the second target media server by using the data recovery channel; wherein the recovery response information is generated by the second target media server based on the received recovery task.
5. The apparatus of claim 4,
the task management module is also used for starting a task recovery thread;
the media management service module is further configured to determine, based on a recovery task thread and by using the feature information of the data to be recovered, device feature information of a second target media server corresponding to the data to be recovered, and send a recovery task to the second target media server.
CN201911099632.7A 2019-11-12 2019-11-12 Data backup method, system and equipment Active CN110851303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911099632.7A CN110851303B (en) 2019-11-12 2019-11-12 Data backup method, system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911099632.7A CN110851303B (en) 2019-11-12 2019-11-12 Data backup method, system and equipment

Publications (2)

Publication Number Publication Date
CN110851303A CN110851303A (en) 2020-02-28
CN110851303B true CN110851303B (en) 2020-10-20

Family

ID=69600556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911099632.7A Active CN110851303B (en) 2019-11-12 2019-11-12 Data backup method, system and equipment

Country Status (1)

Country Link
CN (1) CN110851303B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475333B (en) * 2020-03-02 2023-08-18 新浪技术(中国)有限公司 Database backup method and device based on openstack
CN111831483A (en) * 2020-07-20 2020-10-27 北京百度网讯科技有限公司 Backup management method, system, electronic device, and medium
CN113067825B (en) * 2021-03-24 2022-08-26 网经科技(苏州)有限公司 Method for multi-endpoint data backup based on SRV6 network protocol
CN114356654A (en) * 2021-12-20 2022-04-15 上海浦东发展银行股份有限公司 Backup system, backup method, backup device, computer device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291205A (en) * 2008-06-16 2008-10-22 杭州华三通信技术有限公司 Backup data transmitting method, system, mirror-image server and customer terminal
CN101316274A (en) * 2008-05-12 2008-12-03 华中科技大学 Data disaster tolerance system suitable for WAN
CN102117231A (en) * 2009-12-30 2011-07-06 上海文广互动电视有限公司 Distributed data backup and disaster tolerance system and method
CN102142998A (en) * 2011-03-22 2011-08-03 辽宁国兴科技有限公司 Backup interactive method based on remote on-line data disaster tolerance and system for executing method
CN109815057A (en) * 2019-01-25 2019-05-28 维沃移动通信有限公司 A kind of data back up method and mobile terminal
CN110324429A (en) * 2019-07-10 2019-10-11 中国工商银行股份有限公司 Backup method and back-up device based on Distributed Storage

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200479A1 (en) * 2002-04-18 2003-10-23 Steffan Bansemer Advanced method for data backup
US10268551B1 (en) * 2014-09-30 2019-04-23 EMC IP Holding Company LLC Cloud service backup system
CN106547642B (en) * 2015-09-18 2020-01-17 中国移动通信集团公司 Data storage backup method and device
CN105550073B (en) * 2016-03-10 2018-12-14 世纪龙信息网络有限责任公司 Database backup method and its system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316274A (en) * 2008-05-12 2008-12-03 华中科技大学 Data disaster tolerance system suitable for WAN
CN101291205A (en) * 2008-06-16 2008-10-22 杭州华三通信技术有限公司 Backup data transmitting method, system, mirror-image server and customer terminal
CN102117231A (en) * 2009-12-30 2011-07-06 上海文广互动电视有限公司 Distributed data backup and disaster tolerance system and method
CN102142998A (en) * 2011-03-22 2011-08-03 辽宁国兴科技有限公司 Backup interactive method based on remote on-line data disaster tolerance and system for executing method
CN109815057A (en) * 2019-01-25 2019-05-28 维沃移动通信有限公司 A kind of data back up method and mobile terminal
CN110324429A (en) * 2019-07-10 2019-10-11 中国工商银行股份有限公司 Backup method and back-up device based on Distributed Storage

Also Published As

Publication number Publication date
CN110851303A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
CN110851303B (en) Data backup method, system and equipment
US9135279B2 (en) Mesh-managing data across a distributed set of devices
US8255476B2 (en) Automated tape drive sharing in a heterogeneous server and application environment
CN109033328B (en) Access request processing method, device, equipment and readable storage medium
CN111143114A (en) Virtualization platform disaster tolerance method, system, server and storage medium
CN108280020B (en) Monitoring method and device of computer equipment, terminal and computer storage medium
CN112214357B (en) HDFS data backup and recovery system and backup and recovery method
CN113687888A (en) File sharing method compatible with Android application running on Linux system
CN112035062B (en) Migration method of local storage of cloud computing, computer equipment and storage medium
CN113505027A (en) Business system backup method, device, equipment and storage medium
CN111666167A (en) Input event reading processing optimization method, nonvolatile memory and terminal equipment
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment
KR20130048904A (en) System for instolling network attached storate application package and method thereof
CN109522177A (en) A kind of task daily record processing system, method and device
CN113821333A (en) Android application program migration method and device
CN101971562B (en) Method, device and system for controlling automatic running process performance
CN114817134A (en) Snapshot task monitoring method, device, equipment and medium
CN108270803B (en) Method and system for realizing transmission of network file and desktop application through webpage technology
US10728323B2 (en) Method and apparatus for operating infrastructure layer in cloud computing architecture
CN112379952B (en) Method for implementing cross-process callback
CN108984238A (en) Gesture processing method, device and the electronic equipment of application program
CN114490189A (en) Cloud platform database backup method and device, electronic equipment and storage medium
CN103970515A (en) Control method and system for client and interface resource thereof
CN112506729B (en) Fault simulation method and device

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