System recovery method, device, computer equipment, storage medium and computer program product

By automatically obtaining and filtering backup set data, the operating system of the source host is quickly restored, solving the problem of inefficient recovery of traditional systems and achieving an efficient and automated recovery process.

CN119149303BActive Publication Date: 2025-05-27GUANGZHOU DINGJIA COMPUTER TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411330571.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2025-05-27
Estimated Expiration
2044-09-24

AI Technical Summary

Technical Problem

Traditional system recovery methods rely on manual operation, resulting in inefficient recovery and a lot of time and manpower.

Method used

By obtaining the current network information, if an abnormality is true, the first backup set data is obtained from the storage device according to the storage path information of the backup set data, and in response to the backup set data recovery instruction, the second backup set data is filtered out from the first backup set data, and finally the system recovery process is performed based on the second backup set data.

Benefits of technology

The operating system that quickly recovers the source host is implemented, improves the system recovery efficiency, and avoids waste of time and manpower caused by manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119149303B_ABST
    Figure CN119149303B_ABST
Patent Text Reader

Abstract

This application relates to a system recovery method, apparatus, computer device, storage medium, and computer program product. The method includes: obtaining current network information; in the case where the current network information is abnormal, obtaining the first backup set data from a storage device according to the storage path information of the first backup set data; the first backup set data is used to represent data obtained by backing up the operating system of a source host, and the source host is used to represent a host that needs to perform disaster recovery; in response to a backup set data recovery instruction for the operating system of the source host, screening out second backup set data corresponding to the backup set data recovery instruction from the first backup set data; and performing a recovery process on the operating system of the source host according to the second backup set data. By using this method, the system recovery efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular, to a system recovery method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Art

[0002] Currently, recovering a system that has suffered a disaster is crucial for protecting the security of data in the system.

[0003] In traditional technologies, during the process of recovering a system, a manual recovery method is generally adopted; however, this method is prone to consuming a large amount of time and manpower, resulting in a low recovery efficiency of the system. Summary of the Invention

[0004] Based on this, it is necessary to provide a system recovery method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the recovery efficiency of the system for the above technical problems.

[0005] In a first aspect, this application provides a system recovery method, which is applied to a target host and includes:

[0006] Obtain current network information;

[0007] In the case where the current network information is abnormal, obtain the first backup set data from a storage device according to the storage path information of the first backup set data; the first backup set data is used to represent the data obtained by backing up the operating system of a source host, and the source host is used to represent the host that needs to perform disaster recovery;

[0008] In response to a backup set data recovery instruction for the operating system of the source host, filter out the second backup set data corresponding to the backup set data recovery instruction from the first backup set data;

[0009] Restore the operating system of the source host according to the second backup set data.

[0010] In one embodiment, before obtaining the first backup set data from the storage device according to the storage path information of the first backup set data, it further includes:

[0011] Obtain the first identification information of the source host, the second identification information of the storage pool associated with the source host, the third identification information of the first backup set data, and the backup type of the first backup set data;

[0012] Determine the storage path information according to the first identification information, the second identification information, the third identification information, and the backup type.

[0013] In one embodiment, the restoring the operating system of the source host according to the second backup set data includes:

[0014] Obtaining configuration information of the operating system of the source host;

[0015] Restoring the operating system of the source host according to the second backup set data and the configuration information.

[0016] In one embodiment, before filtering out the second backup set data corresponding to the backup set data restoration instruction from the first backup set data in response to the backup set data restoration instruction for the operating system of the source host, it further includes:

[0017] Regarding both the first backup set data and the current backup set data stored in the target host as candidate backup set data; the current backup set data is used to represent the data obtained after backing up the operating systems of other hosts; the other hosts refer to hosts other than the source host;

[0018] The filtering out the second backup set data corresponding to the backup set data restoration instruction from the first backup set data in response to the backup set data restoration instruction for the operating system of the source host includes:

[0019] In response to the backup set data restoration instruction for the operating system of the source host, filtering out the second backup set data corresponding to the backup set data restoration instruction from the candidate backup set data.

[0020] In one embodiment, after obtaining the current network information, it further includes:

[0021] When the current network information is normal, obtaining the first backup set data from the storage server associated with the source host according to the storage path information of the first backup set data.

[0022] In one embodiment, after obtaining the current network information, it further includes:

[0023] Extracting the information features of the current network information;

[0024] Extracting the key information features from the information features;

[0025] Determining the feature vector of the key information features;

[0026] Inputting the feature vector into the trained network information detection model to obtain the abnormal probability of the current network information;

[0027] When the abnormal probability is greater than the preset probability, determine that the current network information is abnormal.

[0028] In a second aspect, the present application further provides a system recovery device, which is applied to a target host and includes:

[0029] An information acquisition module, configured to acquire current network information;

[0030] A backup acquisition module, configured to, when the current network information is abnormal, acquire the first backup set data from a storage device according to the storage path information of the first backup set data; the first backup set data is used to represent data obtained by backing up the operating system of a source host, and the source host is used to represent a host that needs to perform disaster recovery;

[0031] A backup screening module, configured to, in response to a backup set data recovery instruction for the operating system of the source host, screen out second backup set data corresponding to the backup set data recovery instruction from the first backup set data;

[0032] A system recovery module, configured to perform a recovery process on the operating system of the source host according to the second backup set data.

[0033] In a third aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0034] Acquire current network information;

[0035] When the current network information is abnormal, acquire the first backup set data from a storage device according to the storage path information of the first backup set data; the first backup set data is used to represent data obtained by backing up the operating system of a source host, and the source host is used to represent a host that needs to perform disaster recovery;

[0036] In response to a backup set data recovery instruction for the operating system of the source host, screen out second backup set data corresponding to the backup set data recovery instruction from the first backup set data;

[0037] Perform a recovery process on the operating system of the source host according to the second backup set data.

[0038] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0039] Acquire current network information;

[0040] When the current network information is abnormal, obtain the first backup set data from the storage device according to the storage path information of the first backup set data; the first backup set data is used to represent the data obtained by backing up the operating system of the source host, and the source host is used to represent the host that needs to perform disaster recovery;

[0041] In response to a backup set data recovery instruction for the operating system of the source host, filter out the second backup set data corresponding to the backup set data recovery instruction from the first backup set data;

[0042] According to the second backup set data, perform a recovery process on the operating system of the source host.

[0043] In a fifth aspect, the present application further provides a computer program product, including a computer program, which when executed by a processor, implements the following steps:

[0044] Obtain the current network information;

[0045] When the current network information is abnormal, obtain the first backup set data from the storage device according to the storage path information of the first backup set data; the first backup set data is used to represent the data obtained by backing up the operating system of the source host, and the source host is used to represent the host that needs to perform disaster recovery;

[0046] In response to a backup set data recovery instruction for the operating system of the source host, filter out the second backup set data corresponding to the backup set data recovery instruction from the first backup set data;

[0047] According to the second backup set data, perform a recovery process on the operating system of the source host.

[0048] The above system recovery method, device, computer equipment, storage medium and computer program product first obtain the current network information. When the current network information is abnormal, the first backup set data is obtained from the storage device according to the storage path information of the first backup set data, and in response to the backup set data recovery instruction for the operating system of the source host, the second backup set data corresponding to the backup set data recovery instruction is filtered out from the first backup set data. Finally, the operating system of the source host is restored according to the second backup set data. In this way, during the process of system recovery, after determining that the current network information is abnormal, through the backup set data recovery instruction, the second backup set data for restoring the operating system of the source host is immediately determined from the first backup set data obtained according to the storage path information, so that the operating system of the source host can be quickly restored to normal operation, thereby improving the system recovery efficiency. Moreover, the entire process does not require manual intervention, avoiding the defect that the manual recovery method is prone to consume a large amount of time and manpower, resulting in low system recovery efficiency, and further improving the system recovery efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for the description in the embodiments of the present application or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.

[0050] Figure 1 It is an application environment diagram of the system recovery method in an embodiment;

[0051] Figure 2 It is a flowchart of the system recovery method in an embodiment;

[0052] Figure 3 It is a schematic structural diagram of the storage path information of the backup set data in an embodiment;

[0053] Figure 4 It is a flowchart of the system recovery method in another embodiment;

[0054] Figure 5 It is a flowchart of the Linux operating system disaster recovery method in an embodiment;

[0055] Figure 6 It is a structural block diagram of the system recovery device in an embodiment;

[0056] Figure 7 It is an internal structure diagram of the computer equipment in an embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0057] In order to make the objectives, technical solutions and advantages of this application more clear and understandable, the following further details this application in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.

[0058] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant regulations.

[0059] The system recovery method provided by the embodiments of this application can be applied to, for example Figure 1 the application environment shown. Among them, the storage device 104 is physically connected to the target host 102 and the storage server 106 respectively, and the source host 108 communicates with the storage server 106 and the backup server 110 through the network respectively. Specifically, referring to Figure 1 , the backup server 110 backs up the operating system of the source host 108 to obtain the first backup set data, and sends the first backup set data to the storage server 106 through the source host 108. The storage server 106 stores the first backup set data. The target host 102 obtains the current network information. When the current network information is abnormal, the target host 102 obtains the first backup set data from the storage device 104 according to the storage path information of the first backup set data. The target host 102 responds to the backup set data recovery instruction for the operating system of the source host 108, filters out the second backup set data corresponding to the backup set data recovery instruction from the first backup set data, and restores the operating system of the source host 108 according to the second backup set data. Among them, the target host 102 can be a terminal or a server; the storage device 104 refers to a storage device that can be moved, such as a mobile hard disk, a USB flash drive, etc.; the storage server 106 refers to a server that stores the first backup set data; the source host 108 is used to represent the host that needs to perform disaster recovery, which can be a terminal or a server; the backup server 110 is a server that backs up the operating system of the source host. The terminal can be but is not limited to various personal computers, laptop computers, smart phones and tablet computers. The server can be implemented by an independent server or a server cluster composed of multiple servers.

[0060] In an exemplary embodiment, as Figure 2 shown, a system recovery method is provided. Taking the target host in Figure 1 as an example for description, the specific steps are as follows:

[0061] Step S201, obtain the current network information.

[0062] Among them, the current network information is used to characterize the network situation of the target host at the current time.

[0063] Exemplarily, the target host obtains information such as the network connection type, network latency, network bandwidth, and packet loss rate at the current time, and uses all this information as the current network information.

[0064] Step S202, in the case where the current network information is abnormal, obtain the first backup set data from the storage device according to the storage path information of the first backup set data; the first backup set data is used to represent the data obtained by backing up the operating system of the source host, and the source host is used to represent the host that needs to perform disaster recovery.

[0065] Among them, the first backup set data is used to represent the data obtained by backing up the operating system of the source host.

[0066] Among them, the operating system of the source host is a Linux (an operating system) system.

[0067] Among them, the storage path information is used to represent the storage address of the first backup set data.

[0068] Exemplarily, when the current network information of the target host is abnormal, the target host obtains the storage path information of the first backup set data; then, the target host obtains the first backup set data from the storage device according to the storage path information of the first backup set data. It should be noted that before this step (i.e., before a disaster occurs to the source host), the backup server backs up the operating system of the source host to obtain the first backup set data, and sends the first backup set data to the storage server through the source host. The storage server stores the first backup set data, and the storage device obtains the first backup set data from the storage server according to the storage path information of the first backup set data by connecting to the storage server.

[0069] Step S203, in response to the backup set data recovery instruction for the operating system of the source host, filter out the second backup set data corresponding to the backup set data recovery instruction from the first backup set data.

[0070] Among them, the backup set data recovery instruction refers to the instruction information for recovering the backup set data of the operating system of the source host.

[0071] Among them, the second backup set data refers to the backup set data corresponding to the backup set data recovery instruction.

[0072] Exemplarily, the target host receives a backup set data recovery instruction for the operating system of the source host sent by the user's terminal, and in response to the backup set data recovery instruction, filters out the backup set data corresponding to the backup set data recovery instruction from the first backup set data as the second backup set data.

[0073] Step S204: Recover the operating system of the source host according to the second backup set data.

[0074] Among them, the recovery process refers to the process of reconstructing the operating system of the source host.

[0075] Exemplarily, the target host performs an integrity check on the second backup set data to obtain the integrity check result of the second backup set data; when the integrity check result of the second backup set data indicates that the data is intact, the target host recovers the operating system of the source host according to the second backup set data.

[0076] In the above system recovery method, first obtain the current network information. When the current network information is abnormal, obtain the first backup set data from the storage device according to the storage path information of the first backup set data, and in response to the backup set data recovery instruction for the operating system of the source host, filter out the second backup set data corresponding to the backup set data recovery instruction from the first backup set data. Finally, recover the operating system of the source host according to the second backup set data. In this way, during the system recovery process, after determining that the current network information is abnormal, through the backup set data recovery instruction, immediately determine the second backup set data for recovering the operating system of the source host from the first backup set data obtained according to the storage path information, so as to quickly restore the normal operation of the operating system of the source host, thereby improving the system recovery efficiency; moreover, the entire process does not require manual intervention, avoiding the defect that the manual recovery method is prone to consume a large amount of time and manpower, resulting in a low system recovery efficiency, and further improving the system recovery efficiency.

[0077] In an exemplary embodiment, before obtaining the first backup set data from the storage device according to the storage path information of the first backup set data in the above step S202, the following specific content is included: obtain the first identification information of the source host, the second identification information of the storage pool associated with the source host, the third identification information of the first backup set data, and the backup type of the first backup set data; determine the storage path information according to the first identification information, the second identification information, the third identification information, and the backup type.

[0078] Among them, the first identification information refers to the ID (identification) of the source host, such as the MAC (Media Access Control) address, IP (Internet Protocol) address, etc. of the source host.

[0079] Among them, the storage pool associated with the source host refers to the storage pool where the first backup set data is located in the storage server associated with the source host.

[0080] Among them, the second identification information refers to the ID of the storage pool, such as the name of the storage pool.

[0081] Among them, the third identification information refers to the ID of the first backup set data, such as the backup time of the first backup set data.

[0082] Among them, the backup type is used to represent the backup form of the first backup set data, such as full backup, incremental backup, differential backup, etc.

[0083] Exemplarily, the target host obtains the first identification information of the source host, the second identification information of the storage pool associated with the source host, the third identification information of the first backup set data, and the backup type of the first backup set data; then, the target host uses the first identification information as the first-level directory information, the second identification information as the second-level directory information, the backup type as the third-level directory information, and the third identification information as the specific storage location information, and formats them according to a pre-set directory hierarchy structure and delimiter (such as " / ") to obtain formatted information, and uses this formatted information as the storage path information of the first backup set data.

[0084] For example, referring to Figure 3 , the target host uses the source host identifier as the first-level directory information, the storage pool identifier as the second-level directory information, the backup type as the third-level directory information, and the backup set identifier as the specific storage location information, and constructs the storage path information of the first backup set data (source host identifier / storage pool identifier / backup type / backup set identifier).

[0085] In this embodiment, by integrating the first identification information of the source host, the second identification information of the storage pool, the third identification information of the backup set data, and the backup type to determine the storage path information, it is possible to achieve precise management of the storage location of the backup set data, so as to reasonably allocate storage resources and improve the overall utilization rate of storage resources.

[0086] In an exemplary embodiment, in step S204 above, for restoring the operating system of the source host according to the second backup set data, the specific content is as follows: obtaining the configuration information of the operating system of the source host; and restoring the operating system of the source host according to the second backup set data and the configuration information.

[0087] Among them, the configuration information includes data network configuration of the operating system of the source host, selection of disk restoration, information on whether to ignore creating a BIOS (Basic Input Output System) boot partition during restoration, and the like.

[0088] Exemplarily, the target host uses a configuration file reading tool (such as a registry editor) to obtain the configuration information of the operating system of the source host; then, the target host filters out the configuration information with an importance level greater than a preset importance level from the configuration information as key configuration information; and then, the target host restores the operating system of the source host according to the backup set data and the key configuration information.

[0089] In this embodiment, by obtaining the original configuration information of the source host operating system and combining it with the second backup set data for restoration, it is possible to restore it to the greatest extent according to the initial settings of the source host operating system, thereby avoiding problems such as inconsistent system configuration and the original state caused by manual restoration or incomplete restoration, which is beneficial to improving the restoration accuracy of the source host operating system.

[0090] In an exemplary embodiment, in step S203 above, before filtering out the second backup set data corresponding to the backup set data restoration instruction from the first backup set data in response to the backup set data restoration instruction for the operating system of the source host, the specific content is as follows: regarding both the first backup set data and the current backup set data stored on the target host as candidate backup set data; the current backup set data is used to represent the data obtained after backing up the operating systems of other hosts; other hosts refer to hosts other than the source host.

[0091] Then, in response to the backup set data restoration instruction for the operating system of the source host, filtering out the second backup set data corresponding to the backup set data restoration instruction from the first backup set data, the specific content is as follows: in response to the backup set data restoration instruction for the operating system of the source host, filtering out the second backup set data corresponding to the backup set data restoration instruction from the candidate backup set data.

[0092] Among them, the current backup set data refers to the backup set data stored by the target host at the current time.

[0093] Among them, the candidate backup set data includes the first backup set data and the current backup set data.

[0094] Exemplarily, the target host uses the data obtained after backing up the operating systems of hosts other than the source host as the current backup set data stored by the target host; then, the target host combines the first backup set data and the current backup set data stored by the target host to obtain candidate backup set data; then, in response to a backup set data recovery instruction for the operating system of the source host, the target host filters out the second backup set data corresponding to the backup set data recovery instruction from the candidate backup set data.

[0095] It should be noted that when filtering the second backup set data, in the process of filtering the second backup set data, it is necessary to comprehensively consider the usage scenarios of the source host and other hosts to determine the most suitable second backup set data. Therefore, the current backup set data affects the filtering process of the second backup set data (for example, the current backup set data contains newer operating system patches or more optimized system configurations).

[0096] In this embodiment, by using both the first backup set data and the current backup set data stored by the target host as candidate backup set data, multiple data sources are provided for the filtering process of the second backup set data, rather than relying solely on a single backup source, which is beneficial to improving the flexibility of filtering backup set data.

[0097] In an exemplary embodiment, step S201, after obtaining the current network information, specifically includes the following: when the current network information is normal, according to the storage path information of the first backup set data, obtain the first backup set data from the storage server associated with the source host.

[0098] It should be noted that when the current network information is normal, the target host is connected to the storage server associated with the source host through the network and directly obtains the first backup set data from the storage server; when the current network information is abnormal, the target host needs to be physically connected to the storage device to indirectly obtain the first backup set data from the storage server.

[0099] Exemplarily, when the current network information of the target host is normal, a network path is established between the target host and the storage server associated with the source host; then, the target host obtains the first backup set data from the storage server associated with the source host through the network path according to the storage path information of the first backup set data.

[0100] In this embodiment, when the current network information is normal, by taking advantage of the convenience of the network and the efficiency of the storage server, the first backup set data is quickly obtained from the storage server associated with the source host, which is beneficial to reducing the data transmission time and thus improving the acquisition efficiency of the backup set data.

[0101] In an exemplary embodiment, after obtaining the current network information in step S201 above, the following specific content is included: extracting the information features of the current network information; extracting the key information features from the information features; determining the feature vector of the key information features; inputting the feature vector into the trained network information detection model to obtain the anomaly probability of the current network information; and determining that the current network information is abnormal when the anomaly probability is greater than the preset probability.

[0102] Among them, the information features of the current network information refer to the characteristic information of the current network information, such as the values corresponding to network latency and network bandwidth.

[0103] Among them, the key information features refer to the information features whose importance level is greater than the preset importance level.

[0104] Among them, the feature vector is used to represent the characterization vector of the key information features.

[0105] Among them, the network information detection model refers to a network model that can obtain the anomaly probability of the current network information, such as a convolutional neural network, etc.

[0106] Among them, the anomaly probability is used to represent the possibility that the current network information is abnormal.

[0107] Among them, the preset probability refers to the preset probability value, such as 50%.

[0108] Exemplarily, the target host extracts the information features of the current network information; then, the target host determines the importance level of the information features and filters out the information features whose importance level is greater than the preset importance level from the information features as the key information features; then, the target host inputs the key information features into the feature extraction model, and through the feature extraction model, performs feature extraction processing on the key information features to obtain the feature vector of the key information features; then, the target host inputs the feature vector into the trained network information detection model to obtain the anomaly probability corresponding to the feature vector as the anomaly probability of the current network information; finally, when the anomaly probability is greater than the preset probability, the target host determines that the current network information is abnormal; when the anomaly probability is less than or equal to the preset probability, the target host determines that the current network information is normal.

[0109] In this embodiment, through the trained network information detection model, the current network information is predicted, so that the abnormal situation of the current network information can be quickly obtained, which is beneficial to improving the determination efficiency of the abnormal situation of the current network information; moreover, the entire process does not require manual intervention, avoiding the defect that the method of manual judgment is prone to consume a lot of time and result in a low determination efficiency of the abnormal situation of the current network information.

[0110] In an exemplary embodiment, asFigure 4 As shown, another system recovery method is provided. Taking the target host in Figure 1 as an example, the method includes the following steps:

[0111] Step S401: Obtain the current network information;

[0112] Step S402: Obtain the first identification information of the source host, the second identification information of the storage pool associated with the source host, the third identification information of the first backup set data, and the backup type of the first backup set data.

[0113] Step S403: Determine the storage path information according to the first identification information, the second identification information, the third identification information, and the backup type.

[0114] Step S404: When the current network information is normal, obtain the first backup set data from the storage server associated with the source host according to the storage path information of the first backup set data.

[0115] Step S405: When the current network information is abnormal, obtain the first backup set data from the storage device according to the storage path information of the first backup set data; the first backup set data is used to represent the data obtained by backing up the operating system of the source host, and the source host is used to represent the host that needs to perform disaster recovery.

[0116] Step S406: In response to the backup set data recovery instruction for the operating system of the source host, screen out the second backup set data corresponding to the backup set data recovery instruction from the first backup set data.

[0117] Step S407: Obtain the configuration information of the operating system of the source host; according to the second backup set data and the configuration information, perform a recovery process on the operating system of the source host.

[0118] In the above system recovery method, during the process of recovering the system, after determining that the current network information is abnormal, through the backup set data recovery instruction, immediately determine the second backup set data for recovering the operating system of the source host from the first backup set data obtained according to the storage path information, so as to quickly make the operating system of the source host return to normal operation, thereby improving the system recovery efficiency; moreover, the entire process does not require manual intervention, avoiding the defect that the manual recovery method is prone to consume a large amount of time and manpower, resulting in low system recovery efficiency, and further improving the system recovery efficiency.

[0119] In an exemplary embodiment, in order to more clearly illustrate the system recovery method provided by the embodiments of the present application, the following uses a specific embodiment to specifically describe the system recovery method. In one embodiment, asFigure 5 As shown in the figure, the present application also provides a disaster recovery method for the Linux operating system. During the process of system recovery, first obtain the current network information. When the current network information is abnormal, obtain the first backup set data from the storage device according to the storage path information of the first backup set data, and in response to the backup set data recovery instruction for the operating system of the source host, screen out the second backup set data corresponding to the backup set data recovery instruction from the first backup set data. Finally, perform recovery processing on the operating system of the source host according to the second backup set data. The specific contents are as follows:

[0120] This system consists of three parts: a source host, a backup server, and a storage server. Users back up the source host by logging in to the backup server and store it in the storage server. During recovery, the operating system is recovered through network / offline and other methods. The system architecture diagram is as Figure 1 shown.

[0121] After the backup is completed, the backup set data is saved in the storage server according to a specific structure, which is convenient for searching during recovery. The storage structure is as Figure 3 shown.

[0122] After the backup is completed, the operating system can be recovered in two ways according to specific needs: network / local.

[0123] I. Network recovery: By starting the boot program on the target machine, logging in to the backup server and listing all backup sets. Select the backup set to be recovered, configure network, disk and other information, and then perform operating system recovery through network transmission.

[0124] II. Local recovery: When the network fails or the operating system needs to be recovered in an offline environment, the target machine can scan these backup set files through the boot program by physically connecting the storage device or copying and burning the backup set files with a specified storage structure to the storage medium. However, since the boot program scans the backup sets according to certain rules, the backup set files need to be stored according to the specified storage structure when copying.

[0125] The process of this system is as follows:

[0126] 1. Log in to the backup server, back up the operating system of the source host, and obtain the corresponding backup set data.

[0127] 2. Start the recovery boot program in the target host.

[0128] 3. If the network of the target host is normal, it can be directly recovered by connecting to the backup server.

[0129] 4. If the target host cannot access the network or there is a network failure, local offline recovery can be performed.

[0130] 5. Copy the backup set data of the source host operating system to the specified folder of the target host or make a physical connection with the storage device.

[0131] 6. Scan and list the backup set data on the target host disk through the recovery boot program.

[0132] 7. The user selects the specified backup set, configures relevant information, and starts the recovery.

[0133] 8. The recovery is completed.

[0134] In the above embodiments, during the process of recovering the system, after determining that the current network information is abnormal, through the backup set data recovery instruction, the second backup set data for recovering the operating system of the source host is immediately determined from the first backup set data obtained according to the storage path information, so that the operating system of the source host can be quickly restored to normal operation, thereby improving the recovery efficiency of the system; moreover, the entire process does not require manual intervention, avoiding the defect that the manual recovery method is prone to consume a large amount of time and manpower, resulting in a low recovery efficiency of the system, and further improving the recovery efficiency of the system. At the same time, compared with the existing operating system recovery solutions, this solution can recover the operating system without relying on a network connection, providing a solution for the recovery of the target host operating system for specific network requirements (such as offline, network failure, etc.).

[0135] It should be understood that although the steps in the flowcharts involved in the above embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, 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. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or steps or stages in other steps.

[0136] Based on the same inventive concept, the embodiments of the present application also provide a system recovery device for implementing the above-mentioned system recovery method. The solution provided by this device for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more of the following system recovery device embodiments can refer to the limitations on the system recovery method in the above text, and will not be repeated here.

[0137] In an exemplary embodiment, as Figure 6 shown, a system recovery device is provided, including: an information acquisition module 601, a backup acquisition module 602, a backup screening module 603, and a system recovery module 604, where:

[0138] The information acquisition module 601 is configured to acquire current network information.

[0139] The backup acquisition module 602 is configured to, when the current network information is abnormal, acquire first backup set data from a storage device according to the storage path information of the first backup set data; the first backup set data is used to represent data obtained by backing up the operating system of a source host, and the source host is used to represent a host that needs to perform disaster recovery.

[0140] The backup screening module 603 is configured to, in response to a backup set data recovery instruction for the operating system of the source host, screen out second backup set data corresponding to the backup set data recovery instruction from the first backup set data.

[0141] The system recovery module 604 is configured to perform a recovery process on the operating system of the source host according to the second backup set data.

[0142] In an exemplary embodiment, the system recovery device further includes a path determination module, configured to acquire first identification information of the source host, second identification information of a storage pool associated with the source host, third identification information of the first backup set data, and a backup type of the first backup set data; and determine the storage path information according to the first identification information, the second identification information, the third identification information, and the backup type.

[0143] In an exemplary embodiment, the system recovery module 604 is further configured to acquire configuration information of the operating system of the source host; and perform a recovery process on the operating system of the source host according to the second backup set data and the configuration information.

[0144] In an exemplary embodiment, the system recovery device further includes a backup processing module, configured to use both the first backup set data and current backup set data stored in a target host as candidate backup set data; the current backup set data is used to represent data obtained by backing up the operating system of another host; and the other host represents a host other than the source host.

[0145] In an exemplary embodiment, the backup screening module 603 is further configured to, in response to a backup set data recovery instruction for the operating system of the source host, screen out second backup set data corresponding to the backup set data recovery instruction from the candidate backup set data.

[0146] In an exemplary embodiment, the system recovery device further includes a data acquisition module, configured to obtain the first backup set of data from the storage server associated with the source host according to the storage path information of the first backup set of data when the current network information is normal.

[0147] In an exemplary embodiment, the system recovery device further includes a network determination module, configured to extract the information features of the current network information; extract the key information features from the information features; determine the feature vector of the key information features; input the feature vector into the trained network information detection model to obtain the abnormality probability of the current network information; and determine that the current network information is abnormal when the abnormality probability is greater than the preset probability.

[0148] Each module in the above system recovery device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above respective modules.

[0149] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as Figure 7 shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, 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, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the first backup set of data, the second backup set of data, etc. The input / output interface of the computer device is used for exchanging information between the processor and external devices. The communication interface of the computer device is used for communicating with external terminals through a network connection. When the computer program is executed by the processor, a system recovery method is implemented.

[0150] Those skilled in the art can understand that Figure 7 the structure shown in

[0151] In one embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.

[0152] 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 method embodiments are implemented.

[0153] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0154] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. 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 above method embodiments. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. 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), magnetoresistive 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. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., and are not limited thereto. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., and are not limited thereto.

[0155] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, 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, it should be considered as the scope recorded in this specification.

[0156] The above-described embodiments merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the patent of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, 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 appended claims.

Claims

1. A system recovery method, characterized in that: Applied to a target host, the method comprises: Obtaining current network information of the target host; In the case where the current network information is abnormal, the first backup set data is obtained from the storage device according to the storage path information of the first backup set data; the first backup set data is used to represent the data obtained by the backup server from backing up the operating system of the source host, and the source host is used to represent the host that needs to be disaster recovered; the backup server is used to send the first backup set data to the storage server through the source host; the storage device is physically connected to the target host and the storage server respectively; the storage server is used to store the first backup set data; the storage device is used to obtain the first backup set data from the storage server according to the storage path information; In response to a backup set data recovery instruction for the operating system of the source host, second backup set data corresponding to the backup set data recovery instruction is screened out from the first backup set data and the current backup set data stored in the target host; the current backup set data is used to represent data obtained after backing up the operating system of other hosts; the other hosts represent hosts other than the source host; The operating system of the source host is restored according to the second backup set data.

2. The method according to claim 1, characterized in that Before acquiring the first backup set data from the storage device according to the storage path information of the first backup set data, the method further includes: Acquire first identification information of the source host, second identification information of a storage pool associated with the source host, third identification information of the first backup set data, and a backup type of the first backup set data; The storage path information is determined according to the first identification information, the second identification information, the third identification information, and the backup type.

3. The method according to claim 1, characterized in that The restoring the operating system of the source host according to the second backup set data includes: Obtaining configuration information of the operating system of the source host; The operating system of the source host is restored according to the second backup set data and the configuration information.

4. The method according to claim 1, characterized in that: In response to a backup set data recovery instruction for the operating system of the source host, before filtering out second backup set data corresponding to the backup set data recovery instruction from the first backup set data and the current backup set data stored by the target host, the method further includes: The first backup set data and the current backup set data stored in the target host are both used as candidate backup set data; The method of responding to the backup set data recovery instruction for the operating system of the source host, filtering out the second backup set data corresponding to the backup set data recovery instruction from the first backup set data and the current backup set data stored by the target host, comprises: In response to a backup set data recovery instruction for the operating system of the source host, second backup set data corresponding to the backup set data recovery instruction is screened out from the candidate backup set data.

5. The method according to claim 1, characterized in that After obtaining the current network information of the target host, the method further includes: When the current network information is normal, the first backup set data is obtained from a storage server associated with the source host according to the storage path information of the first backup set data.

6. The method according to any one of claims 1 to 5, characterized in that After obtaining the current network information of the target host, the method further includes: Extracting information features of the current network information; Extracting key information features from the information features; Determine a feature vector of the key information feature; Inputting the feature vector into the trained network information detection model to obtain the abnormal probability of the current network information; When the abnormal probability is greater than a preset probability, the current network information is determined to be abnormal.

7. A system recovery device, characterized in that: Applied to a target host, the device comprises: An information acquisition module, used to acquire the current network information of the target host; A backup acquisition module, used for acquiring the first backup set data from a storage device according to the storage path information of the first backup set data when the current network information is abnormal; the first backup set data is used to represent the data obtained by the backup server from backing up the operating system of the source host, and the source host is used to represent the host that needs to be disaster recovered; the backup server is used to send the first backup set data to the storage server through the source host; the storage device is physically connected to the target host and the storage server respectively; the storage server is used to store the first backup set data; the storage device is used to acquire the first backup set data from the storage server according to the storage path information; A backup screening module, for responding to a backup set data recovery instruction for the operating system of the source host, and screening out second backup set data corresponding to the backup set data recovery instruction from the first backup set data and the current backup set data stored by the target host; the current backup set data is used to represent data obtained after backing up the operating system of other hosts; the other hosts represent hosts other than the source host; The system recovery module is used to recover the operating system of the source host according to the second backup set data.

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.

Citation Information

Patent Citations

  • Off-site storage based Linux operation system backup recovery method

    CN104407942A

  • Data backup and recovery method, electronic equipment and computer readable storage medium

    CN111045857A