Backup data recovery method and device, computer equipment, readable storage medium and program product
By automatically querying backup data, restoring to the target storage space and establishing business processes, the problem of low backup data recovery efficiency is solved, and fast and efficient data recovery is achieved.
Patent Information
- Application Number
- CN202411763609.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-02-28
AI Technical Summary
In cloud storage systems, the backup data recovery process requires professionals to manually write code, resulting in long recovery time and inefficient efficiency.
By responding to the data recovery instruction, the target backup data is queried from the backup database, and business parameters are obtained, the data is automatically restored to the target storage space, and a business process is established. After both the data and business process are restored, the data identification is modified to identify that the data has been restored.
It realizes automated multi-threaded recovery of backup data, saves professionals time to write code and improves the efficiency of data recovery.
Smart Images

Figure CN119537104A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to a backup data recovery method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] Cloud storage systems are favored by many application vendors due to their high performance, large scale, strong scalability, etc. In the process of being used by many application vendors, due to the application requirements, policy requirements, vendor usage habits, etc., users have put forward higher data security requirements for cloud storage, such as backup, disaster recovery, data upload encryption, etc.
[0003] Currently, when performing data recovery of backup data, professionals are required to write code for each equal target backup data, so as to set a recovery path for each equal target backup data and realize data recovery of the target backup data. However, the execution time required for this recovery process depends on the code writing ability and writing experience of the professionals. In the case of a large number of target backup data, the data recovery process is prone to take too long, resulting in low data recovery efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a backup data recovery method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve the efficiency of data recovery in response to the above technical problems.
[0005] In a first aspect, the present application provides a backup data recovery method, comprising:
[0006] In response to the data recovery instruction, query the target backup data from the backup database corresponding to the data recovery instruction, and obtain the service parameters in the data recovery instruction;
[0007] Restoring the target backup data to a target storage space, and establishing a business process corresponding to the target backup data using the business parameters, wherein the target backup data is used to participate in the business process;
[0008] When it is detected that the target backup data has been restored and the service process has been established, the data identifier of the target backup data in the target storage space is modified from a backup data identifier to a restored data identifier.
[0009] In a second aspect, the present application also provides a backup data recovery device, including:
[0010] An evaluation module, used to evaluate the current performance status of the target self-healing material deployed on the target material to obtain current performance information of the repairing material;
[0011] An acquisition module, used to acquire a repair correspondence relationship corresponding to the target self-repairing material, wherein the repair correspondence relationship includes a correspondence relationship between repair material performance information and material repair effect information of a preset self-repairing material at various usage levels;
[0012] A query module, used to query the repair correspondence according to the current repair material performance information, and obtain target material repair effect information of the target material;
[0013] A generation module is used to generate a repair material supplement strategy corresponding to the target self-repairing material according to the target material repair effect information.
[0014] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0015] In response to the data recovery instruction, query the target backup data from the backup database corresponding to the data recovery instruction, and obtain the service parameters in the data recovery instruction;
[0016] Restoring the target backup data to a target storage space, and establishing a business process corresponding to the target backup data using the business parameters, wherein the target backup data is used to participate in the business process;
[0017] When it is detected that the target backup data has been restored and the service process has been established, the data identifier of the target backup data in the target storage space is modified from a backup data identifier to a restored data identifier.
[0018] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0019] In response to the data recovery instruction, query the target backup data from the backup database corresponding to the data recovery instruction, and obtain the service parameters in the data recovery instruction;
[0020] Restoring the target backup data to a target storage space, and establishing a business process corresponding to the target backup data using the business parameters, wherein the target backup data is used to participate in the business process;
[0021] When it is detected that the target backup data has been restored and the service process has been established, the data identifier of the target backup data in the target storage space is modified from a backup data identifier to a restored data identifier.
[0022] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0023] In response to the data recovery instruction, query the target backup data from the backup database corresponding to the data recovery instruction, and obtain the service parameters in the data recovery instruction;
[0024] Restoring the target backup data to a target storage space, and establishing a business process corresponding to the target backup data using the business parameters, wherein the target backup data is used to participate in the business process;
[0025] When it is detected that the target backup data has been restored and the service process has been established, the data identifier of the target backup data in the target storage space is modified from a backup data identifier to a restored data identifier.
[0026] The above-mentioned backup data recovery method, device, computer equipment, computer-readable storage medium and computer program product, by responding to a data recovery instruction, querying the target backup data from the backup database corresponding to the data recovery instruction, and obtaining the business parameters in the data recovery instruction; restoring the target backup data to the target storage space, and using the business parameters to establish the business process corresponding to the target backup data, wherein the target backup data is used to participate in the business process; when it is detected that the target backup data has been restored and the business process has been established, the data identifier of the target backup data in the target storage space is modified from the backup data identifier to the restored data identifier, by parallel processing the automated data level recovery of the target backup data and the business function level recovery of the target backup data, and when it is detected that both the data level and the business function level have been restored, the data identifier of the target backup data is modified in time, thereby realizing automated multi-threaded recovery of the target backup data, saving the time spent by professionals in writing code for each target backup data, and improving the efficiency of data recovery. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 An application environment diagram of a backup data recovery method in an embodiment;
[0029] Figure 2 A flowchart of a backup data recovery method in one embodiment;
[0030] Figure 3 A schematic diagram of the structure of a backup data recovery system in one embodiment;
[0031] Figure 4 A schematic diagram of a process of restoring the target backup data to the target storage space in one embodiment;
[0032] Figure 5 A schematic diagram of the structure of a data recovery layer in one embodiment;
[0033] Figure 6 A structural block diagram of a backup data recovery device in an embodiment;
[0034] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0036] It should be noted that the information and data involved in this application (including but not limited to data for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the acquisition, transmission, storage, use and processing of relevant data are in compliance with the relevant provisions of national laws and regulations. Content pushed to users (for example, modified data identifiers, etc.) can be rejected by users or can be easily rejected by users. In the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be considered as exemplary. Their purpose is only to illustrate the feasibility of the implementation of the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.
[0037] The backup data recovery method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The server 104 responds to the data recovery instruction, queries the target backup data from the backup database corresponding to the data recovery instruction, and obtains the business parameters in the data recovery instruction; restores the target backup data to the target storage space, and uses the business parameters to establish the business process corresponding to the target backup data, wherein the target backup data is used to participate in the business process; when it is detected that the target backup data has been restored and the business process has been established, the data identifier of the target backup data in the target storage space is modified from the backup data identifier to the restored data identifier. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head mounted device may be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The server 104 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0038] In an exemplary embodiment, Figure 2 As shown, a backup data recovery method is provided, which is applied to Figure 1 The server 104 in the example is used as an example to illustrate the method, which includes the following steps 202 to 206. Among them:
[0039] Step 202: In response to the data recovery instruction, query the target backup data from the backup database corresponding to the data recovery instruction, and obtain the service parameters in the data recovery instruction.
[0040] Among them, the data recovery instruction in step 202 can be initiated by the user on demand. Specifically, the user operates the user interface and generates a data recovery instruction when a preset data recovery operation is detected. The data recovery instruction can also be automatically generated when the preset conditions are met. Specifically, when data call failure information is detected, a data recovery instruction is generated according to the data call failure information. The data call failure information is used to characterize the information that the data call failed due to the non-existence of the data; the data recovery instruction carries a data identifier, which is a unique identifier; the target backup data can be one or more, and there is no limitation here.
[0041] Exemplarily, querying the target backup data from the backup database corresponding to the data recovery instruction includes: querying the backup database to obtain the target backup data according to the data identifier carried in the data recovery instruction.
[0042] As an example, refer to Figure 3 The backup data recovery system is deployed on the server 104. The backup data recovery system includes a data recovery layer, a business recovery layer and a management control layer. The data recovery layer and the business recovery layer communicate with the management control layer respectively. The backup data recovery system also includes a cloud management interaction access layer. The cloud management interaction access layer communicates with the data recovery layer and the business recovery layer respectively. The cloud management interaction access layer communicates with the user interface. In response to the data recovery instruction, the target backup data is queried from the backup database corresponding to the data recovery instruction, and the business parameters in the data recovery instruction are obtained, including: responding to the data recovery instruction initiated by the user interface through the cloud management interaction access layer, querying the backup database to obtain the target backup data according to the data identifier carried by the data recovery instruction, and obtaining the business parameters carried by the data recovery instruction.
[0043] Step 204 , restore the target backup data to the target storage space, and establish a business process corresponding to the target backup data using the business parameters, wherein the target backup data is used to participate in the business process.
[0044] Exemplarily, restoring the target backup data to the target storage space includes: determining the target storage space and the corresponding target restoration queue corresponding to the target backup data, and restoring the target backup data to the target storage space through the target restoration queue.
[0045] Exemplarily, establishing a business process corresponding to target backup data using business parameters includes: obtaining correlation coefficients between business parameters and multiple existing business processes respectively, and when there are associated business processes with corresponding correlation coefficients greater than a preset correlation coefficient threshold among the multiple existing business processes, updating the associated business processes according to the business parameters to obtain the business process corresponding to the target backup data; when there are no associated business processes with corresponding correlation coefficients greater than the preset correlation coefficient threshold among the multiple existing business processes, constructing a new business process according to the business parameters to obtain the business process corresponding to the target backup data, wherein the preset correlation coefficient threshold is a correlation coefficient critical value set on demand to determine whether there is an association between the business parameters and the existing business processes.
[0046] The calculation method of the correlation coefficient includes but is not limited to the calculation method of the Pearson correlation coefficient, the calculation method of the Spearman correlation coefficient, the calculation method of the cosine distance correlation coefficient, etc.
[0047] Step 206: When it is detected that the target backup data has been restored and the business process has been established, the data identifier of the target backup data in the target storage space is modified from the backup data identifier to the restored data identifier.
[0048] Among them, the data identifier in step 206 includes at least one of a backed-up data identifier, a backup data identifier and a restored data identifier. The backed-up data identifier represents a state in which the data has been backed up and has not been deleted; the backup data identifier represents a state in which the data has been backed up and has been deleted; and the restored data identifier represents a state in which the data has been restored after being deleted.
[0049] In the above backup data recovery method, by responding to the data recovery instruction, the target backup data is queried from the backup database corresponding to the data recovery instruction, and the business parameters in the data recovery instruction are obtained; the target backup data is restored to the target storage space, and the business process corresponding to the target backup data is established using the business parameters, wherein the target backup data is used to participate in the business process; when it is detected that the target backup data has been restored and the business process has been established, the data identifier of the target backup data in the target storage space is modified from the backup data identifier to the restored data identifier, and the automatic data level recovery of the target backup data and the business function level recovery of the target backup data are processed in parallel, and when it is detected that the data level and the business function level have been restored, the data identifier of the target backup data is modified in time, so as to realize the automatic multi-threaded recovery of the target backup data, save the time spent by professionals in writing code for each target backup data, and improve the efficiency of data recovery.
[0050] In an exemplary embodiment, Figure 4 As shown, a method for accurately restoring data is provided, and restoring the target backup data to the target storage space includes steps 302 to 306. Among them:
[0051] Step 302: Select a target storage space corresponding to the target backup data from preset storage spaces, wherein the preset storage space includes at least one of a newly created storage space and an existing storage space.
[0052] The newly created storage space in step 302 may be a newly created host or a newly created cloud disk, and the existing storage space may be an existing host or an existing cloud disk, which is not limited here.
[0053] Exemplarily, step 302 includes: obtaining a user selection instruction for a preset storage space, and selecting a target storage space corresponding to the target backup data from the preset storage space according to the selection instruction; or, selecting a target storage space corresponding to the target backup data from the preset storage space according to storage space information of the preset storage space.
[0054] Further, as an embodiment, obtaining the user's selection instructions for the preset storage space includes: obtaining the user's selection instructions for the preset storage space sent by the user interface through the cloud management interactive access layer, and sending the user's selection instructions for the preset storage space to the data recovery layer, and obtaining the user's selection instructions for the preset storage space sent by the cloud management interactive access layer through the data recovery layer.
[0055] Further, as an embodiment, the storage space information of the preset storage space includes storage processing information of the existing storage space; based on the storage space information of the preset storage space, the target storage space corresponding to the target backup data is selected from the preset storage space, including: based on the storage processing information of the existing storage space, the storage status of the existing storage space is evaluated to obtain storage status evaluation information; when the storage status evaluation information meets the preset storage status condition, the existing storage space is determined as the target storage space corresponding to the target backup data; when the storage status evaluation information does not meet the preset storage status condition, the newly created storage space is determined as the target storage space corresponding to the target backup data.
[0056] As an embodiment, based on the storage processing information of the existing storage space, the storage status of the existing storage space is evaluated to obtain storage status evaluation information, including: the storage processing information includes the remaining storage memory information and the processing information, wherein the processing information is used to characterize the object task processing frequency and the object task processing quantity of the existing storage space; based on the remaining storage memory information and the processing information of the existing storage space, the storage status of the existing storage space is evaluated to obtain storage status evaluation information, wherein the storage status evaluation information can characterize the storage congestion degree of the existing storage space, the larger the remaining storage memory amount represented by the remaining storage memory information, the lower the storage congestion degree of the existing storage space represented by the storage status evaluation information; the lower the object task processing frequency of the existing storage space represented by the processing information, the lower the storage congestion degree of the existing storage space represented by the storage status evaluation information; the lower the object task processing quantity of the existing storage space represented by the processing information, the lower the storage congestion degree of the existing storage space represented by the storage status evaluation information.
[0057] In this way, if the target backup data is to be restored to the existing storage space, it will affect the object task processing process of the existing storage space. Taking into account the impact of the object task processing frequency and the number of object task processing in the existing storage space on the importance and complexity of the object task processing process, the object task processing frequency and the number of object task processing in the existing storage space are used as the basis for evaluating the storage congestion of the existing storage space. When the object task processing frequency of the existing storage space is high, that is, the importance of the object processing task process of the existing storage space is high, and / or when the number of task processing in the existing storage space is large, that is, the complexity of the object processing task process of the existing storage space is high, storage status assessment information representing that the storage congestion of the existing storage space is high is generated, so that the existing storage space is not determined as the target storage space corresponding to the target backup data, thereby ensuring the normal progress of the object task processing process of the existing storage space.
[0058] Optionally, the method also includes: if it is detected that the storage congestion level of the existing storage space represented by the storage status assessment information is less than a preset congestion level threshold, then determining that the storage status assessment information meets the preset storage status condition; if it is detected that the storage congestion level of the existing storage space represented by the storage status assessment information is not less than a preset congestion level threshold, then determining that the storage status assessment information does not meet the preset storage status condition, wherein the preset congestion level threshold is a storage congestion level critical value set on demand for determining that the storage of the existing storage space is not congested.
[0059] As one embodiment, the newly created storage space is determined as the target storage space corresponding to the target backup data, including: the storage space information of the preset storage space also includes storage cost information of multiple newly created storage spaces, and based on the storage cost information of the multiple newly created storage spaces, the target storage space corresponding to the target backup data is selected from the multiple newly created storage spaces. Specifically, the target storage space whose corresponding storage cost information meets the preset cost conditions is selected from the multiple newly created storage spaces.
[0060] Optionally, the preset cost condition may be that the cost of the representation is higher than a preset cost threshold, which is a cost critical value set on demand for determining that the cost of creating a new storage space is low; the preset cost condition may also be that the cost of the representation is the lowest value among the costs of all new storage space representations.
[0061] In this way, considering that the costs of multiple newly created storage spaces may be different, the storage cost information of the multiple newly created storage spaces is used as the basis for selecting a target storage space from the multiple newly created storage spaces, thereby ensuring low cost of data recovery.
[0062] Step 304 : selecting a target restoration queue corresponding to the target backup data from a plurality of preset processing queues according to the restoration processing logic of the target backup data.
[0063] Exemplarily, step 304 includes: obtaining preset processing logics of multiple preset processing queues; and selecting a target recovery queue whose corresponding preset processing logic matches the recovery processing logic from the multiple preset processing queues.
[0064] Furthermore, before selecting a target recovery queue whose corresponding preset processing logic matches the recovery processing logic from multiple preset processing queues, the method also includes: obtaining the similarity between the recovery processing logic and the preset processing logics corresponding to the multiple preset processing queues respectively, and determining the matching degree between the recovery processing logic and the preset processing logics corresponding to the multiple preset processing queues respectively according to the similarity between the recovery processing logic and the preset processing logics corresponding to the multiple preset processing queues respectively, wherein the higher the similarity, the higher the matching degree.
[0065] Step 306: restore the target backup data to the target storage space through the target recovery queue.
[0066] Exemplarily, the target backup data includes multiple target backup sub-data; step 306 includes: obtaining the associations between the multiple target backup sub-data and the data stored in the target storage space; determining the storage paths in which the multiple target backup sub-data are respectively stored in the target storage space based on the associations between the multiple target backup sub-data and the data stored in the target storage space; constructing a storage mapping relationship based on the storage paths in which the multiple target backup sub-data are respectively stored in the target storage space, and restoring the target backup data to the target storage space by executing the storage mapping relationship.
[0067] As one embodiment, obtaining the associations between multiple target backup sub-data and the data stored in the target storage space includes: obtaining correlation coefficients between multiple target backup sub-data and the data stored in the target storage space, and determining the correlation coefficients between multiple target backup sub-data and the data stored in the target storage space as the associations between multiple target backup sub-data and the data stored in the target storage space.
[0068] The calculation method of the correlation coefficient includes but is not limited to the calculation method of the Pearson correlation coefficient, the calculation method of the Spearman correlation coefficient, the calculation method of the cosine distance correlation coefficient, etc.
[0069] As an embodiment, based on the associations between multiple target backup sub-data and the data stored in the target storage space, the storage paths corresponding to the storage of the multiple target backup sub-data in the target storage space are determined, including: for each target backup sub-data in the multiple target backup sub-data, the corresponding target stored data whose association meets the preset association condition is selected from the stored data in the target storage space, and based on the storage path corresponding to the target stored data, the storage path corresponding to the storage of the target backup sub-data in the target storage space is determined.
[0070] Among them, the preset correlation condition can be greater than a preset correlation threshold, and the preset correlation threshold is a correlation critical value set as needed when determining that there is a strong correlation between the target backup sub-data and the stored data; the preset correlation condition can also be the maximum value among all correlations.
[0071] As an embodiment, determining the storage path corresponding to the target backup sub-data stored in the target storage space according to the storage path corresponding to the target stored data includes: determining the storage path corresponding to the target stored data as the storage path corresponding to the target backup sub-data stored in the target storage space.
[0072] In this way, it can be ensured that when the target backup sub-data is restored and stored, the storage path of the target stored data with a strong correlation therewith is the same.
[0073] As another embodiment, according to the storage path corresponding to the target stored data, the storage path corresponding to the target backup sub-data stored in the target storage space is determined, including: the storage path corresponding to the target stored data includes a first parent storage node and a first child storage node, wherein the parent storage node may include multiple nodes connected in sequence, or may include a single node, the child storage node may include multiple nodes connected in sequence, or may include a single node, and the storage path corresponding to the target backup sub-data stored in the target storage space includes a second parent storage node and a second child storage node; the first parent storage node is determined as the second parent storage node, and other child storage nodes corresponding to the first parent storage node that are different from the first child storage node are determined as second child storage nodes.
[0074] In this way, it can be ensured that when the target backup sub-data is restored and stored, the storage path of the target stored data with a strong correlation therewith is close to that of the target stored data.
[0075] As an embodiment, after restoring the target backup data to the target storage space by executing the storage mapping relationship, the method also includes: if it is detected that multiple target backup sub-data have been restored, deleting the multiple target backup sub-data pulled from the target recovery queue, and deleting the storage mapping relationship.
[0076] In this way, not only can the target recovery queue be prevented from being occupied by redundant data, and the data recovery layer from being occupied by redundant data, but also the subsequent execution of the storage mapping relationship can be avoided, resulting in repeated recovery of part of the data.
[0077] As an example, refer to Figure 5 The data recovery layer includes a data flow control component, an overall process control component and a data mapping component; the overall process control component controls the data flow control component to obtain the target backup data sent by the cloud management interactive access layer; the overall process control component controls the data mapping component to build and execute the storage mapping relationship according to the target backup data.
[0078] In this embodiment, a target storage space corresponding to the target backup data is selected from a preset storage space, wherein the preset storage space includes at least one of a newly created storage space and an existing storage space; according to the recovery processing logic of the target backup data, a target recovery queue corresponding to the target backup data is selected from multiple preset processing queues; and the target backup data is restored to the target storage space through the target recovery queue, thereby ensuring that the selected target storage space and target recovery queue are accurate, thereby achieving accurate recovery of the target backup data.
[0079] As a detailed embodiment, in response to a data recovery instruction, the target backup data is queried from the backup database corresponding to the data recovery instruction, and the business parameters in the data recovery instruction are obtained; the user's selection instruction for the preset storage space is obtained, and according to the selection instruction, the target storage space corresponding to the target backup data is selected from the preset storage space; or, according to the storage processing information of the existing storage space, the storage status of the existing storage space is evaluated to obtain storage status evaluation information; when the storage status evaluation information meets the preset storage status condition, the existing storage space is determined as the target storage space corresponding to the target backup data; when the storage status evaluation information does not meet the preset storage status condition, the newly created storage space is determined as the target storage space corresponding to the target backup data; according to the recovery processing logic of the target backup data, the target recovery queue corresponding to the target backup data is selected from multiple preset processing queues.
[0080] Furthermore, the associations between the multiple target backup sub-data and the data stored in the target storage space are obtained; based on the associations between the multiple target backup sub-data and the data stored in the target storage space, the storage paths of the multiple target backup sub-data corresponding to the storage in the target storage space are determined; based on the storage paths of the multiple target backup sub-data corresponding to the storage in the target storage space, a storage mapping relationship is constructed, and the target backup data is restored to the target storage space by executing the storage mapping relationship; if it is detected that the multiple target backup sub-data have been restored, the multiple target backup sub-data pulled from the target recovery queue are deleted, and the business process corresponding to the target backup data is established using the business parameters; when it is detected that the target backup data has been restored and the business process has been established, the data identifier of the target backup data in the target storage space is changed from the backup data identifier to the restored data identifier.
[0081] In this way, by responding to the data recovery instruction, the target backup data is queried from the backup database corresponding to the data recovery instruction, and the business parameters in the data recovery instruction are obtained; the target backup data is restored to the target storage space, and the business process corresponding to the target backup data is established using the business parameters, wherein the target backup data is used to participate in the business process; when it is detected that the target backup data has been restored and the business process has been established, the data identifier of the target backup data in the target storage space is modified from the backup data identifier to the restored data identifier, and the automatic data-level recovery of the target backup data and the business-function-level recovery of the target backup data are processed in parallel, and when it is detected that both the data-level and the business-function-level recovery are completed, the data identifier of the target backup data is modified in time, so as to realize the automatic multi-threaded recovery of the target backup data, save the time spent by professionals in writing code for each target backup data, and improve the efficiency of data recovery.
[0082] Furthermore, by selecting a target storage space corresponding to the target backup data from a preset storage space, wherein the preset storage space includes at least one of a newly created storage space and an existing storage space; according to the recovery processing logic of the target backup data, a target recovery queue corresponding to the target backup data is selected from multiple preset processing queues; and the target backup data is restored to the target storage space through the target recovery queue, thereby ensuring that the selected target storage space and target recovery queue are accurate, thereby achieving accurate recovery of the target backup data.
[0083] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0084] Based on the same inventive concept, the embodiment of the present application also provides a backup data recovery device for implementing the backup data recovery method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more backup data recovery device embodiments provided below can refer to the limitations of the backup data recovery method above, and will not be repeated here.
[0085] In an exemplary embodiment, Figure 6 As shown, a backup data recovery device 600 is provided, which is applied to a backup data recovery system. The backup data recovery system includes a data recovery layer, a business recovery layer and a management control layer. The data recovery layer and the business recovery layer communicate with the management control layer respectively, and include: an acquisition module 602, a recovery module 604 and a modification module 606, wherein:
[0086] The acquisition module 602 is used to query the target backup data from the backup database corresponding to the data recovery instruction in response to the data recovery instruction, and obtain the business parameters in the data recovery instruction;
[0087] The recovery module 604 is used to restore the target backup data to the target storage space, and to establish a business process corresponding to the target backup data using the business parameters, wherein the target backup data is used to participate in the business process;
[0088] The modification module 606 is used to modify the data identifier of the target backup data in the target storage space from the backup data identifier to the restored data identifier when it is detected that the target backup data has been restored and the business process has been established.
[0089] In one embodiment, the recovery module 604 is also used to select a target storage space corresponding to the target backup data from a preset storage space, wherein the preset storage space includes at least one of a newly created storage space and an existing storage space; according to the recovery processing logic of the target backup data, select a target recovery queue corresponding to the target backup data from multiple preset processing queues; and restore the target backup data to the target storage space through the target recovery queue.
[0090] In one embodiment, the recovery module 604 is also used to obtain a user selection instruction for a preset storage space, and select a target storage space corresponding to the target backup data from the preset storage space according to the selection instruction; or, select a target storage space corresponding to the target backup data from the preset storage space according to the storage space information of the preset storage space.
[0091] In one of the embodiments, the storage space information of the preset storage space includes storage processing information of the existing storage space; the recovery module 604 is also used to evaluate the storage status of the existing storage space according to the storage processing information of the existing storage space to obtain storage status evaluation information; when the storage status evaluation information meets the preset storage status condition, the existing storage space is determined as the target storage space corresponding to the target backup data; when the storage status evaluation information does not meet the preset storage status condition, the newly created storage space is determined as the target storage space corresponding to the target backup data.
[0092] In one of the embodiments, the target backup data includes multiple target backup sub-data; the recovery module 604 is also used to obtain the associations between the multiple target backup sub-data and the data stored in the target storage space; according to the associations between the multiple target backup sub-data and the data stored in the target storage space, determine the storage paths in which the multiple target backup sub-data are respectively stored in the target storage space; according to the storage paths in which the multiple target backup sub-data are respectively stored in the target storage space, construct a storage mapping relationship, and restore the target backup data to the target storage space by executing the storage mapping relationship.
[0093] In one of the embodiments, after the target backup data is restored to the target storage space by executing the storage mapping relationship, the device also includes: a deletion module, which is used to delete the multiple target backup sub-data pulled from the target recovery queue if it is detected that multiple target backup sub-data have been restored, and to delete the storage mapping relationship.
[0094] Each module in the above backup data recovery device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0095] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a backup data recovery method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0096] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0097] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0098] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0099] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0100] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0101] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0102] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A backup data recovery method, characterized in that: The method comprises: In response to the data recovery instruction, query the target backup data from the backup database corresponding to the data recovery instruction, and obtain the service parameters in the data recovery instruction; Restoring the target backup data to a target storage space, and establishing a business process corresponding to the target backup data using the business parameters, wherein the target backup data is used to participate in the business process; When it is detected that the target backup data has been restored and the service process has been established, the data identifier of the target backup data in the target storage space is modified from a backup data identifier to a restored data identifier.
2. The method according to claim 1, characterized in that Restoring the target backup data to the target storage space includes: Selecting a target storage space corresponding to the target backup data from a preset storage space, wherein the preset storage space includes at least one of a newly created storage space and an existing storage space; According to the recovery processing logic of the target backup data, a target recovery queue corresponding to the target backup data is selected from a plurality of preset processing queues; The target backup data is restored to the target storage space through the target restoration queue.
3. The method according to claim 2, characterized in that The selecting a target storage space corresponding to the target backup data from a preset storage space includes: Obtaining a selection instruction from a user for a preset storage space, and selecting a target storage space corresponding to the target backup data from the preset storage space according to the selection instruction; or, According to the storage space information of the preset storage space, a target storage space corresponding to the target backup data is selected from the preset storage space.
4. The method according to claim 3, characterized in that The storage space information of the preset storage space includes storage processing information of the existing storage space; The selecting, according to the storage space information of the preset storage space, the target storage space corresponding to the target backup data from the preset storage space comprises: According to the storage processing information of the existing storage space, the storage status of the existing storage space is evaluated to obtain storage status evaluation information; In a case where the storage status evaluation information satisfies a preset storage status condition, determining the existing storage space as the target storage space corresponding to the target backup data; In a case where the storage status evaluation information does not satisfy a preset storage status condition, the newly created storage space is determined as a target storage space corresponding to the target backup data.
5. The method according to claim 2, characterized in that: The target backup data includes multiple target backup sub-data; Restoring the target backup data to the target storage space includes: Obtaining associations between the plurality of target backup sub-data and the data stored in the target storage space; Determining storage paths in which the plurality of target backup sub-data are stored in the target storage space according to associations between the plurality of target backup sub-data and the data stored in the target storage space; A storage mapping relationship is constructed according to the storage paths in which the plurality of target backup sub-data are respectively stored in the target storage space, and the target backup data is restored to the target storage space by executing the storage mapping relationship.
6. The method according to claim 5, characterized in that After the target backup data is restored to the target storage space by executing the storage mapping relationship, the method further includes: If it is detected that the plurality of target backup sub-data are all restored, the plurality of target backup sub-data pulled from the target restoration queue are deleted, and the storage mapping relationship is deleted.
7. A backup data recovery device, characterized in that: The device comprises: an acquisition module, configured to, in response to a data recovery instruction, query target backup data from a backup database corresponding to the data recovery instruction, and acquire the service parameters in the data recovery instruction; A recovery module, used to restore the target backup data to a target storage space, and to establish a business process corresponding to the target backup data using the business parameters, wherein the target backup data is used to participate in the business process; The modification module is used to modify the data identifier of the target backup data in the target storage space from the backup data identifier to the restored data identifier when it is detected that the target backup data has been restored and the business process has been established.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.