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

By automatically obtaining and filtering backup set data, the system is quickly restored, solving the problem of low efficiency of traditional manual recovery and improving disaster recovery efficiency.

CN119149303AActive Publication Date: 2024-12-17GUANGZHOU DINGJIA COMPUTER TECHNOLOGY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional system recovery methods rely on manual operation, resulting in low recovery efficiency and long-term consumption, and cannot quickly respond to disaster recovery needs.

Method used

By obtaining the current network information, determining the storage path information of the backup set data in abnormal situations, obtaining the first backup set data from the storage device, and filtering out the second backup set data based on the data, and automatically performing the recovery processing of the source host operating system. , improve recovery efficiency and reduce manual intervention.

Benefits of technology

Fast and automatic system recovery is achieved, disaster recovery efficiency is improved, time and labor waste caused by manual recovery is avoided, and efficient system recovery is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119149303A_ABST
    Figure CN119149303A_ABST
Patent Text Reader

Abstract

The invention relates to a system recovery method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: acquiring current network information; when the current network information is abnormal, acquiring first backup set data from a storage device according to storage path information of the first backup set data; the first backup set data is used for representing data obtained by backing up an operating system of a source host, and the source host is used for representing a host needing disaster recovery; in response to a backup set data recovery instruction for an 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 recovery processing on the operating system of the source host according to the second backup set data. By adopting the method, the recovery efficiency of the system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

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

[0003] In traditional technology, manual recovery is generally used in the process of restoring the system; however, this method easily consumes a lot of time and manpower, resulting in low system recovery efficiency. 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 system recovery efficiency in response to the above technical problems.

[0005] In a first aspect, the present application provides a system recovery method, applied to a target host, comprising:

[0006] Get current network information;

[0007] 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 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;

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

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

[0010] In one of the embodiments, before obtaining 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:

[0011] 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;

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

[0013] In one embodiment, the recovering 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] The operating system of the source host is restored according to the second backup set data and the configuration information.

[0016] In one of the embodiments, before filtering out 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 of the operating system of the source host, the method further includes:

[0017] 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 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;

[0018] The step of responding to the backup set data recovery instruction of 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, comprises:

[0019] 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.

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

[0021] 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.

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

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

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

[0025] Determine a feature vector of the key information feature;

[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 a preset probability, the current network information is determined to be 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] Information acquisition module, used to obtain current network information;

[0030] 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 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;

[0031] A backup screening module, for responding to a backup set data recovery instruction of 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;

[0032] The system recovery module is used to recover 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, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0034] Get current network information;

[0035] 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 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;

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

[0037] The operating system of the source host is restored according to the second backup set data.

[0038] 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:

[0039] Get current network information;

[0040] 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 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, filtering out second backup set data corresponding to the backup set data recovery instruction from the first backup set data;

[0042] The operating system of the source host is restored according to the second backup set data.

[0043] 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:

[0044] Get current network information;

[0045] 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 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, filtering out second backup set data corresponding to the backup set data recovery instruction from the first backup set data;

[0047] The operating system of the source host is restored according to the second backup set data.

[0048] The above-mentioned system recovery method, device, computer equipment, storage medium and computer program product first obtain the current network information, and 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 respond 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, and finally, perform recovery processing on the operating system of the source host according to the second backup set data. In this way, in the process of recovering the system, after determining that the current network information is abnormal, the backup set data recovery instruction immediately determines 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 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 whole process does not require manual intervention, avoiding the defect that the manual recovery method easily consumes a lot of time and manpower, resulting in low recovery efficiency of the system, and further improving the recovery efficiency of the system. 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 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.

[0050] Figure 1 An application environment diagram of a system recovery method in an embodiment;

[0051] Figure 2 A schematic diagram of a system recovery method in one embodiment;

[0052] Figure 3 A schematic diagram of the structure of storage path information of backup set data in one embodiment;

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

[0054] Figure 5 A schematic diagram of a process flow of a Linux operating system disaster recovery method in one embodiment;

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

[0056] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0057] 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.

[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 used 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 must comply with relevant regulations.

[0059] The system recovery method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown in FIG. 1 , 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. 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 recovers 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 mobile storage device, such as a mobile hard disk, a USB flash drive, etc.; the storage server 106 refers to a server storing the first backup set data; the source host 108 is used to represent the host that needs to be recovered from a disaster, which can be a terminal or a server; the backup server 110 refers to a server that backs up the operating system of the source host. The terminal can be, but is not limited to, various personal computers, laptops, smart phones, and tablet computers. The server can be implemented as an independent server or a server cluster consisting of multiple servers.

[0060] In an exemplary embodiment, Figure 2 As shown, a system recovery method is provided, which is applied to Figure 1 The target host in is taken as an example to illustrate the following steps:

[0061] Step S201, obtaining current network information.

[0062] The current network information is used to represent the network status of the target host at the current time.

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

[0064] Step S202, 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.

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

[0066] The operating system of the source host is Linux (an operating system).

[0067] The storage path information is used to indicate the storage address of the first backup set data.

[0068] Exemplarily, when the current network information 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 the 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 of 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.

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

[0071] 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: restore the operating system of the source host according to the second backup set data.

[0074] The recovery process refers to the process of rebuilding the operating system of the source host.

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

[0076] In the above system recovery method, the current network information is first obtained. 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 screened out from the first backup set data. Finally, the operating system of the source host is recovered according to the second backup set data. In this way, in the process of recovering the system, after determining that the current network information is abnormal, the backup set data recovery instruction is used to 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 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 whole process does not require manual intervention, avoiding the defect that the manual recovery method is easy to consume a lot of time and manpower, resulting in low system recovery efficiency, and further improving the recovery efficiency of the system.

[0077] In an exemplary embodiment, the above-mentioned step S202, before obtaining the first backup set data from the storage device according to the storage path information of the first backup set data, specifically includes the following contents: obtaining 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; determining the storage path information according to the first identification information, the second identification information, the third identification information and the backup type.

[0078] 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] 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] The second identification information refers to the ID of the storage pool, such as the name of the storage pool.

[0081] 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] The backup type is used to indicate 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 it according to a pre-set directory hierarchy structure and separator (such as " / ") to obtain formatted information, and uses the formatted information as the storage path information of the first backup set data.

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

[0085] In this embodiment, the storage path information is determined 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, so that accurate management of the storage location of the backup set data can be achieved, thereby reasonably allocating storage resources and improving the overall utilization of storage resources.

[0086] In an exemplary embodiment, the above step S204, based on the second backup set data, restores the operating system of the source host, specifically includes the following contents: obtaining the configuration information of the operating system of the source host; and restoring the operating system of the source host based on the second backup set data and the configuration information.

[0087] The configuration information includes the data network configuration of the operating system of the source host, the choice of disk recovery, whether to ignore the creation of the BIOS (Basic Input Output System) boot partition during recovery, and other information.

[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 configuration information whose importance is greater than a preset importance from the configuration information as key configuration information; then, the target host restores the operating system of the source host based on 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 restoring it in combination with the second backup set data, it is possible to restore it to the greatest extent possible in accordance with the original settings of the source host operating system, thereby avoiding the problem of inconsistency between the system configuration and the original state caused by manual recovery or incomplete recovery, which is beneficial to improving the recovery accuracy of the source host operating system.

[0090] In an exemplary embodiment, the above-mentioned step S203, before responding to the backup set data recovery instruction for the operating system of the source host and filtering out the second backup set data corresponding to the backup set data recovery instruction from the first backup set data, specifically includes the following contents: 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 current backup set data is used to represent the data obtained after backing up the operating systems of other hosts; other hosts represent hosts other than the source host.

[0091] Then, 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, which specifically includes the following contents: 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 candidate backup set data.

[0092] The current backup set data refers to the backup set data stored on the target host at the current time.

[0093] 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 system of a host 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, the target host responds to the backup set data recovery instruction for the operating system of the source host, and 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 screening the second backup set data, during the screening process of 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 has an impact on the screening 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 the first backup set data and the current backup set data stored in the target host as candidate backup set data, multiple data sources are provided for the screening process of the second backup set data, rather than relying solely on a single backup source, which is beneficial to improving the flexibility of screening the backup set data.

[0097] In an exemplary embodiment, after obtaining the current network information, the above step S201 specifically includes the following contents: 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.

[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 obtains the first backup set data directly from the storage server; when the current network information is abnormal, the target host needs to be physically connected to the storage device and obtain the first backup set data indirectly from the storage server.

[0099] Exemplarily, when current network information is normal, the target host establishes a network path between 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, the first backup set data is quickly obtained from the storage server associated with the source host by utilizing the convenience of the network and the efficiency of the storage server, which helps to reduce the data transmission time and thereby improve the efficiency of obtaining the backup set data.

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

[0102] The information characteristics of the current network information refer to characteristic information of the current network information, such as numerical values ​​corresponding to network delay and network bandwidth.

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

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

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

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

[0107] Among them, the preset probability refers to the pre-set probability size, such as 50%.

[0108] Exemplarily, the target host extracts information features of the current network information; then, the target host determines the importance of the information features, and selects information features whose importance is greater than a preset importance from the information features as key information features; then, the target host inputs the key information features into a feature extraction model, performs feature extraction processing on the key information features through the feature extraction model, and obtains a feature vector of the key information features; then, the target host inputs the feature vector into a trained network information detection model, and obtains an abnormality probability corresponding to the feature vector as the abnormality probability of the current network information; finally, when the abnormality probability is greater than the preset probability, the target host determines that the current network information is abnormal; when the abnormality 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, the current network information is predicted and processed through the trained network information detection model, so that the abnormal situation of the current network information can be quickly obtained, which is conducive to improving the efficiency of determining the abnormal situation of the current network information; and the entire process does not require human intervention, avoiding the defect of low efficiency in determining the abnormal situation of the current network information due to the time-consuming manual judgment method.

[0110] In an exemplary embodiment, Figure 4 As shown, another system recovery method is provided, which is applied to Figure 1 The target host in is used as an example to illustrate the process, including the following steps:

[0111] Step S401, obtaining current network information;

[0112] Step S402: Acquire first identification information of a 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.

[0113] Step S403: Determine 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, the first backup set data is obtained 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, second backup set data corresponding to the backup set data recovery instruction is filtered out from the first backup set data.

[0117] Step S407, 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.

[0118] In the above-mentioned system recovery method, during the process of restoring the system, after determining that the current network information is abnormal, the backup set data recovery instruction is used to immediately determine the second backup set data for restoring the operating system of the source host from the first backup set data obtained according to the storage path information, thereby enabling the operating system of the source host to be quickly restored to normal operation, thereby improving the recovery efficiency of the system; moreover, the entire process does not require human intervention, thus avoiding the defect that the manual recovery method is prone to consume a lot of time and manpower, resulting in low system recovery efficiency, and further improving the recovery efficiency of the system.

[0119] In an exemplary embodiment, in order to more clearly illustrate the system recovery method provided by the embodiment of the present application, the system recovery method is specifically described below with a specific embodiment. Figure 5 As shown, the present application also provides a Linux operating system disaster recovery method. In the process of restoring the system, the current network information is first obtained. 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 screened out from the first backup set data. Finally, the operating system of the source host is restored according to the second backup set data. Specifically, it includes the following contents:

[0120] This system consists of three parts: source host, backup server and storage server. Users log in to the backup server to back up the source host and store it in the storage server. When restoring, the operating system is restored through network / offline methods. The system architecture diagram is shown in the figure below. Figure 1 shown.

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

[0122] After the backup is complete, you can restore the operating system in two ways: network or local, according to specific needs:

[0123] 1. Network recovery: Start the boot program on the target machine, log in to the backup server and list all backup sets. Select the backup set to be restored, configure the network, disk and other information, and then restore the operating system through network transmission.

[0124] 2. Local recovery: When the network fails or the operating system needs to be restored in an offline environment, the target machine can be restored offline by physically connecting the storage device or copying and burning the backup set files of the specified storage structure to the storage medium, so that the target machine can scan these backup set files through the boot program. However, since the boot program has certain rules for scanning backup sets, the backup set files need to be stored according to the specified storage structure when they are copied.

[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 target host network is normal, you can directly restore by connecting to the backup server.

[0129] 4. If the target host cannot access the network or the network fails, 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 physically connect it to the storage device.

[0131] 6. Use the recovery boot program to scan and list the backup set data in the target host disk.

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

[0133] 8. Recovery is complete.

[0134] In the above embodiment, during the process of restoring the system, after determining that the current network information is abnormal, the backup set data recovery instruction is used to immediately determine the second backup set data for restoring the operating system of the source host 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 of manual recovery that is easy to consume a lot of time and manpower, resulting in low system recovery efficiency, and further improving the recovery efficiency of the system. At the same time, compared with the existing operating system recovery scheme, this scheme can restore the operating system without relying on network connection, and provides a solution for target host operating system recovery such as specific network requirements (such as: offline, network failure).

[0135] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned 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 does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can 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 to be 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.

[0136] Based on the same inventive concept, the embodiment of the present application also provides a system recovery device for implementing the system 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 system recovery device embodiments provided below can refer to the limitations on the system recovery method above, and will not be repeated here.

[0137] In an exemplary embodiment, Figure 6 As 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, wherein:

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

[0139] The backup acquisition module 602 is used to obtain the first backup set data from the 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 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.

[0140] The backup screening module 603 is used to respond to the backup set data recovery instruction of the operating system of the source host and screen out the 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 used to recover the operating system of the source host according to the second backup set data.

[0142] In an exemplary embodiment, the system recovery device also includes a path determination module, which is used to obtain first identification information of a 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 storage path information based on 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 obtain configuration information of the operating system of the source host; and to recover 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 also includes a backup processing module, which is used to use 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 system of other hosts; other hosts represent hosts other than the source host.

[0145] In an exemplary embodiment, the backup screening module 603 is further configured to respond to a backup set data recovery instruction of the operating system of the source host and 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 for acquiring the first backup set data from a storage server associated with the source host according to storage path information of the first backup set data when current network information is normal.

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

[0148] Each module in the above system 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.

[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 shown in FIG. Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. 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. 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 data, the second backup set data, etc. 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 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 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.

[0151] In one embodiment, a computer device is further 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 method embodiments when executing the computer program.

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

[0153] 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.

[0154] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods 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 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), 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. 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, etc., but are not limited to this.

[0155] 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 specification.

[0156] The above-described 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 system recovery method, characterized in that: Applied to a target host, the method comprises: Get current network information; 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 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; In response to a backup set data recovery instruction for the operating system of the source host, filtering out second backup set data corresponding to the backup set data recovery instruction from the first backup set data; 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, 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 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 step of responding to the backup set data recovery instruction of 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, 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, it also 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, it also 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: Information acquisition module, used to obtain current network information; 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 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; A backup screening module, for responding to a backup set data recovery instruction of 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; 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

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

    CN114996057A

  • Operation system recovery method and device, computer equipment and storage medium

    CN115576743A

  • Log backup processing method and device of distributed database and storage medium

    CN116225780A