Data center disaster recovery switching method and system

By generating disaster recovery plans and dynamically obtaining disaster recovery scenarios, the limitations of disaster recovery switching scenarios in the existing technology are solved, and the rapid automatic switching and business continuity of the data center are achieved.

CN120498968APending Publication Date: 2025-08-15CHINA SOUTHERN POWER GRID DIGITAL GRID GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510658654.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-21
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

The existing data disaster recovery switching technology lacks dynamic script acquisition, resulting in limitations in disaster recovery switching scenarios and inability to optimize in real time, affecting business continuity.

Method used

Based on the preset data center disaster recovery requirements, a disaster recovery plan is generated, and through real-time monitoring and correction, disaster recovery scenarios and scripts are dynamically obtained, and the data center is automatically switched.

Benefits of technology

It realizes rapid response to disaster recovery tasks when disasters occur, reduces manual intervention, and ensures business continuity and automatic switching of data centers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120498968A_ABST
    Figure CN120498968A_ABST
Patent Text Reader

Abstract

The invention provides a data center disaster recovery backup switching method and system, and belongs to the field of data disaster recovery backup processing, and the data center disaster recovery backup switching method comprises the steps: generating a disaster recovery backup plan based on a preset data center disaster recovery backup demand; obtaining a disaster recovery scene based on the disaster recovery plan; based on the disaster recovery scene and the disaster recovery plan, obtaining a disaster recovery script; and when a disaster occurs, automatically switching a data center based on the disaster recovery script. According to the invention, the problem of poor service continuity before and after disaster recovery switching caused by difficulty in real-time optimization of disaster recovery scripts and limitation of disaster recovery switching scenes in the existing disaster recovery switching technology is solved. According to the method, the disaster recovery script is dynamically acquired, the disaster recovery task is quickly responded and the data center is automatically switched when a disaster occurs, manual intervention is reduced, and service continuity is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data disaster recovery processing, and in particular to a data center disaster recovery switching method and system. Background Art

[0002] Enterprise operations are increasingly dependent on data. When emergencies such as natural disasters, human errors, hardware failures, and cyber attacks lead to data loss or business interruptions, it is crucial to ensure business continuity through data disaster recovery.

[0003] At present, the existing technology uses disaster recovery switching instructions to match three types of modes in data disaster recovery, such as simulation drills, planned drills and unplanned switching, and then executes the corresponding static scripts to complete the database switching. However, the existing technology lacks dynamic acquisition of scripts, and static scripts have the defect of being unable to be optimized in real time. In addition, the existing technology focuses on switching under database failure scenarios. When a disaster occurs, it is often accompanied by failures at multiple levels such as the database. Therefore, the disaster recovery scripts of the existing disaster recovery switching technology are difficult to optimize in real time, and the disaster recovery switching scenarios have limitations, resulting in poor business continuity before and after the disaster recovery switching. Summary of the Invention

[0004] In order to solve the above problems, the present invention proposes a data center disaster recovery switching method and system, which can dynamically obtain disaster recovery scripts, quickly respond to disaster recovery tasks and automatically switch data centers when a disaster occurs, thereby ensuring business continuity.

[0005] To achieve the above-mentioned purpose, an embodiment of the present invention provides a data center disaster recovery switching method, which is applied to a data center, including: generating a disaster recovery plan based on preset data center disaster recovery requirements; obtaining a disaster recovery scenario based on the disaster recovery plan; obtaining a disaster recovery script based on the disaster recovery scenario and the disaster recovery plan; and automatically switching the data center based on the disaster recovery script when a disaster occurs.

[0006] An embodiment of the present invention proposes a data center disaster recovery switching method, which generates a disaster recovery plan according to the preset data center disaster recovery requirements, provides plan guidance for responding to the occurrence of a disaster, and then obtains a disaster recovery scenario according to the disaster recovery plan, deeply analyzes the occurrence of the disaster, and then combines the disaster recovery scenario and the disaster recovery plan. By writing the disaster recovery scenario and the disaster recovery plan into a script, the disaster recovery script is dynamically obtained. When a disaster occurs, the corresponding plan decision can be executed according to the script writing process, and the data center can be automatically switched according to the disaster recovery script. Therefore, a disaster recovery plan is generated in advance according to the preset data center disaster recovery requirements and the disaster recovery scenario is deeply analyzed. Then, the disaster recovery plan and the disaster recovery scenario are written into a disaster recovery script. When a disaster occurs, the disaster recovery task can be responded to in an orderly and rapid manner and the disaster recovery script can be scheduled to automatically switch the data center, thereby reducing manual intervention and ensuring business continuity.

[0007] Furthermore, based on the preset data center disaster recovery requirements, a disaster recovery plan is generated, including: constructing a preliminary disaster recovery plan based on the preset data center disaster recovery requirements; monitoring the data center in real time to obtain data center environmental data and data center status data; based on the data center environmental data and data center status data, correcting the preliminary disaster recovery plan through a preset correction function to generate a disaster recovery plan.

[0008] In the above scheme, a preliminary disaster recovery plan is constructed based on the preset data center disaster recovery requirements, and then the data center environmental data and data center status data are monitored in real time, and the preliminary disaster recovery plan is revised to generate a disaster recovery plan. It not only combines the preset data center disaster recovery requirements, but also monitors the data center in real time, and uses the real-time monitoring data to revise the preliminary disaster recovery plan to better cope with various possible disaster types, ensuring the reliability of disaster recovery plan generation, and providing accurate data guarantee for the dynamic acquisition of disaster recovery scripts. When a disaster occurs, it can respond to disaster recovery tasks in an orderly and rapid manner and schedule disaster recovery scripts to automatically switch data centers, reducing manual intervention and ensuring business continuity.

[0009] Furthermore, based on the disaster recovery plan, a disaster recovery scenario is obtained, including: obtaining the disaster type based on the disaster recovery plan; constructing the corresponding initial disaster recovery scenario for the disaster type based on the preset data modeling tool; adjusting the disaster response time of the initial disaster recovery scenario based on the initial disaster recovery scenario and the preset disaster response time optimization algorithm to obtain the disaster recovery scenario.

[0010] In the above scheme, the disaster types existing in the disaster recovery plan are analyzed, and various disasters are modeled into initial disaster recovery scenarios. Then, the disaster recovery scenario is obtained by further optimizing the disaster response time of the initial disaster recovery scenario, so that a rapid response to the disaster recovery scenario can be guaranteed when a disaster occurs, providing accurate data guarantee for the dynamic acquisition of subsequent disaster recovery scripts, and then, when a disaster occurs, disaster recovery tasks can be responded to in an orderly and rapid manner and disaster recovery scripts can be scheduled to automatically switch data centers, reducing manual intervention and ensuring business continuity.

[0011] Furthermore, based on the disaster recovery scenario and the disaster recovery plan, a disaster recovery script is obtained, including: based on the disaster recovery scenario, an initial disaster recovery process is obtained; based on the disaster recovery plan, the initial disaster recovery process is revised to obtain a disaster recovery process; based on the disaster recovery process, a disaster recovery script is obtained.

[0012] In the above scheme, an initial disaster recovery process corresponding to the disaster recovery scenario is formulated, and then the initial disaster recovery process is revised according to the disaster recovery plan to obtain the disaster recovery process. Finally, the disaster recovery process is written into a disaster recovery script, the disaster recovery scenario and the disaster recovery plan are defined as a disaster recovery process, and then the disaster recovery process is written into a disaster recovery script to ensure that each link in the disaster recovery plan can be handled in an orderly and standardized manner when a disaster occurs. At the same time, when a disaster occurs, scheduling the disaster recovery script can realize automatic switching of the data center according to the corresponding disaster recovery process, reduce manual intervention, and ensure business continuity.

[0013] Furthermore, based on the disaster recovery plan, the initial disaster recovery process is corrected to obtain a disaster recovery process, including: based on the disaster recovery plan, each initial disaster recovery process is divided into several disaster recovery tasks; several disaster recovery tasks are sent to a preset automated execution tool to obtain several disaster recovery task execution data; based on the preset task execution correction algorithm, several disaster recovery task execution data are corrected to obtain several disaster recovery task execution results; based on the several disaster recovery task execution results, the initial disaster recovery process is optimized to obtain a disaster recovery process.

[0014] In the above scheme, the initial disaster recovery process is divided into multiple disaster recovery tasks, and the execution data of each disaster recovery task is monitored. The disaster recovery task execution data is corrected through the disaster recovery plan, the initial disaster recovery process is optimized, and the disaster recovery process is obtained. The disaster recovery tasks of the initial disaster recovery process are subdivided, and the execution status of each disaster recovery task is monitored and corrected in a timely manner. Finally, a reliable disaster recovery process is optimized to provide an accurate data basis for disaster recovery script writing, so that when a disaster occurs, the disaster recovery tasks can be responded to in an orderly and rapid manner and the disaster recovery script can be scheduled to automatically switch data centers to ensure business continuity.

[0015] Furthermore, based on the disaster recovery plan, several disaster recovery task execution data are corrected to obtain several disaster recovery task execution results, including: based on the disaster recovery plan, simulated drills are conducted on different disaster recovery scenarios to obtain drill data; based on the drill data, the disaster recovery task execution strategy is adjusted; based on the disaster recovery task execution strategy, several disaster recovery task execution data are corrected to obtain several disaster recovery task execution results.

[0016] In the above solution, the drill data of different disaster recovery scenarios optimizes and adjusts the disaster recovery task execution strategy, which can correct deficiencies in the drill process and ensure the generation of accurate disaster recovery processes and disaster recovery scripts. In turn, the data center switching mechanism is automatically triggered when a disaster occurs, so that when a disaster occurs, disaster recovery tasks can be responded to in an orderly and rapid manner and disaster recovery scripts can be scheduled to automatically switch data centers to ensure business continuity.

[0017] Furthermore, based on the disaster recovery process, a disaster recovery script is obtained, including: based on the disaster recovery process, obtaining the data center environment configuration, data center equipment configuration and data center task scheduling; based on the data center environment configuration, data center equipment configuration and data center task scheduling, obtaining the initial disaster recovery script; based on the initial disaster recovery script, adjusting the data center environment configuration impact weight, data center equipment configuration impact weight, data center task scheduling impact weight and preset historical disaster recovery script execution time impact weight, optimizing the initial disaster recovery script execution time until the preset disaster recovery execution requirements are met, and obtaining the disaster recovery script.

[0018] In the above scheme, the data center environment configuration, data center equipment configuration and data center task scheduling are obtained from the disaster recovery process to generate an initial disaster recovery script. By adjusting the impact weight of the data center environment configuration, the impact on the execution time of the disaster recovery script in different environments is reflected. By adjusting the impact weight of the data center equipment configuration and the impact weight of the data center task scheduling, the impact of the data volume of different tasks in the disaster recovery plan and the disaster recovery process on the execution time of the disaster recovery script is reflected. By adjusting the impact weight of the preset historical disaster recovery script execution time, the stability of the repeated execution of the disaster recovery script is reflected, and then the execution time of the initial disaster recovery script is optimized to obtain a disaster recovery script, ensuring that when a disaster occurs, the disaster recovery task can be responded to in an orderly and rapid manner and the disaster recovery script can be scheduled to automatically switch data centers, reducing manual intervention and ensuring business continuity.

[0019] Furthermore, when a disaster occurs, the data center is automatically switched based on the disaster recovery script, including: when a disaster occurs, responding to the current disaster scenario and scheduling the corresponding disaster recovery script; based on the corresponding disaster recovery script, executing the corresponding disaster recovery process and matching the disaster recovery plan; based on the disaster recovery plan, automatically synchronizing data to the disaster recovery data center to complete automatic switching of the data center.

[0020] In the above solution, when a disaster occurs, it quickly responds to the current disaster scenario, schedules the corresponding disaster recovery script to execute the corresponding disaster recovery process, matches the disaster recovery plan according to the disaster recovery process, and automatically synchronizes data to the disaster recovery data center in an orderly manner according to the disaster recovery plan, completes automatic switching of the data center, and ensures business continuity.

[0021] An embodiment of the present invention also provides a data center disaster recovery switching system, including: a disaster recovery plan construction module, a disaster recovery scenario acquisition module, a disaster recovery script acquisition module and a disaster recovery switching module; the disaster recovery plan construction module is used to generate a disaster recovery plan based on the preset data center disaster recovery requirements; the disaster recovery scenario acquisition module is used to obtain a disaster recovery scenario based on the disaster recovery plan; the disaster recovery script acquisition module is used to obtain a disaster recovery script based on the disaster recovery scenario and the disaster recovery plan; the disaster recovery switching module is used to automatically switch the data center based on the disaster recovery script when a disaster occurs.

[0022] An embodiment of the present invention proposes a data center disaster recovery switching system, wherein a disaster recovery plan construction module generates a disaster recovery plan according to a preset data center disaster recovery requirement, and provides a plan guidance for responding to a disaster; a disaster recovery scenario acquisition module obtains a disaster recovery scenario according to the disaster recovery plan, and deeply analyzes the occurrence of the disaster; a disaster recovery script acquisition module combines the disaster recovery scenario and the disaster recovery plan, and dynamically obtains the disaster recovery script by writing the disaster recovery scenario and the disaster recovery plan into a script, and can execute the corresponding plan decision according to the script writing process when a disaster occurs; the disaster recovery switching module automatically switches the data center according to the disaster recovery script, thereby generating a disaster recovery plan in advance according to the preset data center disaster recovery requirement and conducting an in-depth analysis of the disaster recovery scenario, and then writing the disaster recovery plan and the disaster recovery scenario into a disaster recovery script, which can respond to the disaster recovery task in an orderly and rapid manner and schedule the disaster recovery script to automatically switch the data center when a disaster occurs, thereby reducing manual intervention and ensuring business continuity.

[0023] Furthermore, the disaster recovery script acquisition module is used to obtain a disaster recovery script based on the disaster recovery scenario and disaster recovery plan, including: a disaster recovery process acquisition unit, a disaster recovery process correction unit and a disaster recovery script acquisition unit; the disaster recovery process acquisition unit is used to obtain the initial disaster recovery process based on the disaster recovery scenario; the disaster recovery process correction unit is used to correct the initial disaster recovery process based on the disaster recovery plan to obtain the disaster recovery process; the disaster recovery script acquisition unit is used to obtain a disaster recovery script based on the disaster recovery process.

[0024] In the above scheme, the disaster recovery process acquisition unit constructs an initial disaster recovery process corresponding to the disaster recovery scenario. The disaster recovery process correction unit then corrects the initial disaster recovery process according to the disaster recovery plan to obtain a disaster recovery process. Finally, the disaster recovery script acquisition unit writes the disaster recovery process into a disaster recovery script, defines the disaster recovery scenario and the disaster recovery plan as a disaster recovery process, and then writes the disaster recovery process into a disaster recovery script to ensure that each link in the disaster recovery plan can be handled in an orderly and standardized manner when a disaster occurs. At the same time, when a disaster occurs, scheduling the disaster recovery script can realize automatic switching of the data center according to the corresponding disaster recovery process, reduce manual intervention, and ensure business continuity. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic diagram of the steps of a data center disaster recovery switching method provided in an embodiment of the present invention Figure 1 ;

[0026] Figure 2 A schematic diagram of the steps of a data center disaster recovery switching method provided in an embodiment of the present invention Figure 2 ;

[0027] Figure 3 A schematic diagram of the module structure of a data center disaster recovery switching system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0029] Example 1

[0030] See also Figure 1 , Figure 1 A schematic diagram of the steps of a data center disaster recovery switching method provided in an embodiment of the present invention Figure 1 .like Figure 1 As shown, the embodiment of the present invention provides a data center disaster recovery switching method, including steps 101 to 104, each of which is specifically as follows:

[0031] Step 101: Generate a disaster recovery plan based on the preset data center disaster recovery requirements;

[0032] Step 102: Obtain a disaster recovery scenario based on the disaster recovery plan;

[0033] Step 103: Obtain a disaster recovery script based on the disaster recovery scenario and the disaster recovery plan;

[0034] Step 104: When a disaster occurs, the data center is automatically switched based on the disaster recovery script.

[0035] A specific implementation method is to automatically generate a disaster recovery plan based on the disaster recovery needs of the data center. The disaster recovery plan includes: disaster type, recovery strategy and personnel arrangement content, etc. The disaster recovery plan is used to provide specific operation instructions. After obtaining the disaster recovery plan, since each disaster recovery scenario usually corresponds to at least one disaster recovery plan, the disaster recovery scenarios targeted by different disaster recovery plans are analyzed and then a disaster recovery script is obtained based on the disaster recovery plan and the disaster recovery scenario. The disaster recovery script is the core tool for ensuring the smooth execution of the disaster recovery plan. When a disaster occurs, the disaster recovery script is quickly dispatched. By executing the disaster recovery script, the disaster recovery plan is executed in an orderly manner to automatically switch the data center. The definition of data center includes main data center and disaster recovery data center. When a disaster occurs in the main data center, the data of the main data center will be synchronized to the disaster recovery data center so that the data can be switched seamlessly. It is worth mentioning that after automatically switching the data center, the fault can also be located and restored. Usually, when analyzing the disaster recovery scenario, the recovery process of the data center can be defined, including switching, data synchronization and recovery time window when a disaster occurs, so that there are corresponding recovery processes in different disaster recovery scenarios, so as to make adjustments and optimizations when generating the disaster recovery plan. The specific fault location and fault recovery methods can be implemented using mature means of existing technologies, which will not be repeated here.

[0036] An embodiment of the present invention proposes a data center disaster recovery switching method, which generates a disaster recovery plan according to the preset data center disaster recovery requirements, provides plan guidance for responding to the occurrence of a disaster, and then obtains a disaster recovery scenario according to the disaster recovery plan, deeply analyzes the occurrence of the disaster, and then combines the disaster recovery scenario and the disaster recovery plan. By writing the disaster recovery scenario and the disaster recovery plan into a script, the disaster recovery script is dynamically obtained. When a disaster occurs, the corresponding plan decision can be executed according to the script writing process, and the data center can be automatically switched according to the disaster recovery script. Therefore, a disaster recovery plan is generated in advance according to the preset data center disaster recovery requirements and the disaster recovery scenario is deeply analyzed. Then, the disaster recovery plan and the disaster recovery scenario are written into a disaster recovery script. When a disaster occurs, the disaster recovery task can be responded to in an orderly and rapid manner and the disaster recovery script can be scheduled to automatically switch the data center, thereby reducing manual intervention and ensuring business continuity.

[0037] As an example of an embodiment of the present invention, executing step 101 includes: constructing a preliminary disaster recovery plan based on the preset data center disaster recovery requirements; monitoring the data center in real time to obtain data center environment data and data center status data; based on the data center environment data and data center status data, correcting the preliminary disaster recovery plan through a preset correction function to generate a disaster recovery plan.

[0038] A specific implementation method is to build a preliminary disaster recovery plan based on the disaster recovery needs of the data center. The preliminary disaster recovery plan includes: disaster type, recovery strategy and basic data on resource allocation, etc., to monitor the main data center in real time, and obtain data center environmental data and data center status data, where the data center environmental data includes: current temperature and humidity, equipment status and network status external environmental factors, etc. The data center status data includes the load of the main data center and the fault information of the main data center, etc. Then, by setting a dynamic adjustment coefficient, the preliminary disaster recovery plan is adaptively optimized and corrected according to the data center environmental data, data center status data and a preset correction function, and then a disaster recovery plan is generated. The calculation formula of the preset correction function can be expressed as:

[0039] K adjusted =f(P input ,E env ,T status );

[0040] f(P input ,E env ,T status )=δ1·P input +δ2·E env +δ3·T status ;

[0041] Where K adjusted is the disaster recovery plan (indicates the revised disaster recovery plan), Pinput For the initial disaster recovery plan, E env Data center environmental data can be obtained through existing environmental monitoring equipment. status is the data center status data, which represents the health status of the main data center; δ1, δ2 and δ3 are dynamic adjustment coefficients, δ1 mainly reflects the adjustment of the preliminary plan, δ2 and δ3 reflect the influence of environmental factors and system status respectively; Generally speaking, the adaptive optimization and correction of the preliminary disaster recovery plan can be achieved by executing the preliminary disaster recovery plan, generating an execution report, and evaluating and optimizing it according to the execution results in the execution report. The optimized disaster recovery plan can better cope with different disaster scenarios.

[0042] In the above scheme, a preliminary disaster recovery plan is constructed according to the preset data center disaster recovery requirements, and then the data center environmental data and data center status data are monitored in real time to revise the preliminary disaster recovery plan and generate a disaster recovery plan. It not only combines the preset data center disaster recovery requirements, but also monitors the data center in real time, and uses the real-time monitoring data to revise the preliminary disaster recovery plan to better cope with various possible disaster types, ensuring the reliability of disaster recovery plan generation, and providing accurate data guarantee for the dynamic acquisition of disaster recovery scripts. When a disaster occurs, it can respond to disaster recovery tasks in an orderly and rapid manner and schedule disaster recovery scripts to automatically switch data centers, reducing manual intervention and ensuring business continuity.

[0043] As an example of an embodiment of the present invention, executing step 102 includes: obtaining a disaster type based on a disaster recovery plan; constructing a corresponding initial disaster recovery scenario for the disaster type based on a preset data modeling tool; adjusting the disaster response time of the initial disaster recovery scenario based on the initial disaster recovery scenario and a preset disaster response time optimization algorithm to obtain a disaster recovery scenario.

[0044] A specific implementation method is to first obtain a variety of disaster types based on the disaster recovery plan, and then establish corresponding initial disaster recovery scenarios for various disaster types using a preset data modeling tool. In order to achieve a rapid response to the disaster recovery scenario, a preset disaster response time optimization algorithm is used to optimize the disaster response time of the initial disaster recovery scenario, thereby obtaining a disaster recovery scenario. The preset disaster response time optimization algorithm can be expressed as:

[0045]

[0046] Where, T response The shorter the disaster response time, the faster the data center switch and recovery. min The minimum response time is the shortest response time required by the data center under ideal environmental conditions, which is usually determined by the data center performance indicators and resource capabilities; iThe weight factor for each disaster recovery scenario indicates the contribution of different disaster recovery scenarios to the response time. Different disaster recovery scenarios may involve different recovery difficulties, so the weight factor is adjusted according to the complexity of the disaster recovery scenario. i The environmental impact coefficient for each disaster recovery scenario represents the impact of different environmental factors (network conditions, device load, and temperature and humidity) on the disaster recovery response time. Here, i = 1, 2, 3, etc. β is an adjustment coefficient that is adjusted based on task complexity, environmental factors, and data center requirements to dynamically change the optimization strategy for disaster recovery response time.

[0047] In the above scheme, the disaster types existing in the disaster recovery plan are analyzed, and various disasters are modeled into initial disaster recovery scenarios. Then, the disaster recovery scenario is obtained by further optimizing the disaster response time of the initial disaster recovery scenario, so that a rapid response to the disaster recovery scenario can be guaranteed when a disaster occurs, providing accurate data guarantee for the dynamic acquisition of subsequent disaster recovery scripts, and then, when a disaster occurs, disaster recovery tasks can be responded to in an orderly and rapid manner and disaster recovery scripts can be scheduled to automatically switch data centers, reducing manual intervention and ensuring business continuity.

[0048] As an example of an embodiment of the present invention, see Figure 2 , Figure 2 A schematic diagram of the steps of a data center disaster recovery switching method provided in an embodiment of the present invention Figure 2 ,like Figure 2 As shown, executing step 103 includes:

[0049] Step 201: Based on the disaster recovery scenario, an initial disaster recovery process is obtained;

[0050] Step 202: Based on the disaster recovery plan, the initial disaster recovery process is modified to obtain a disaster recovery process;

[0051] Step 203: Obtain a disaster recovery script based on the disaster recovery process.

[0052] A specific implementation method is to formulate corresponding disaster recovery strategies and recovery plans according to the disaster recovery scenario by analyzing different disaster types, configure the corresponding disaster recovery process, and obtain the initial disaster recovery process. In this embodiment, the adaptability of the disaster recovery process can also be verified by simulating the switching of multiple disaster recovery scenarios; then, the execution and definition of the disaster recovery process are guided according to the disaster recovery plan, the initial disaster recovery process is corrected, and the execution time of the initial disaster recovery process is optimized to obtain the disaster recovery process, wherein the definition of the disaster recovery process includes: disaster recovery data backup, recovery and switching, etc., and then according to the disaster recovery process, create, edit or schedule the corresponding disaster recovery script. The disaster recovery script includes system environment configuration, equipment configuration and task scheduling, etc. By configuring the disaster recovery script, the automatic execution of the disaster recovery process is supported.

[0053] In the above scheme, an initial disaster recovery process is formulated for the disaster recovery scenario, and then the initial disaster recovery process is revised according to the disaster recovery plan to obtain the disaster recovery process. Finally, the disaster recovery process is written into a disaster recovery script, the disaster recovery scenario and the disaster recovery plan are defined as a disaster recovery process, and then the disaster recovery process is written into a disaster recovery script to ensure that each link in the disaster recovery plan can be handled in an orderly and standardized manner when a disaster occurs. At the same time, when a disaster occurs, scheduling the disaster recovery script can realize automatic switching of the data center according to the corresponding disaster recovery process, reducing manual intervention and ensuring business continuity.

[0054] As an example of an embodiment of the present invention, executing step 202 includes: based on the disaster recovery plan, dividing each initial disaster recovery process into several disaster recovery tasks; sending the several disaster recovery tasks to a preset automated execution tool to obtain several disaster recovery task execution data; based on the preset task execution correction algorithm, correcting the several disaster recovery task execution data to obtain several disaster recovery task execution results; based on the several disaster recovery task execution results, optimizing the initial disaster recovery process to obtain a disaster recovery process.

[0055] A specific implementation method is to divide the initial disaster recovery process into multiple disaster recovery tasks according to the disaster recovery plan, and each task can be managed or scheduled separately; the disaster recovery tasks are transmitted to the automation tool Puppet (equivalent to the preset automation execution tool), and the automation tool Puppet executes each disaster recovery task and provides real-time feedback on the disaster recovery task execution status. When the disaster recovery task is completed, a task report is generated, and the task report records the disaster recovery task execution data. Based on the disaster recovery task execution data, anomalies that occur during the execution process are retrospectively analyzed, and the disaster recovery task execution data is corrected using the preset task execution correction algorithm to obtain the disaster recovery task execution result. The calculation process of the preset task execution correction algorithm can be expressed as:

[0056] P final =α·P pre +(1-α)·f(P adjusted ,λ);

[0057] f(P adjusted ,λ)=β1·P adjusted +β2·λ;

[0058] Where, P final The result of the disaster recovery task execution is the revised execution result, which can ensure that the disaster recovery task is accurately executed after environmental changes and system adjustments. pre The initial disaster recovery task execution data records the preliminary results of the disaster recovery task execution, including the marks of task success and failure and the intermediate data of the execution; f(P adjusted ,λ) is the task execution correction function, P adjustedis the revised disaster recovery task execution data, which is obtained by adjusting the initial disaster recovery task execution data in combination with real-time feedback data (system performance monitoring data and task execution error information); α is the correction coefficient, and λ is the external environmental impact coefficient, which reflects the impact of external factors (temperature and humidity, equipment load, network bandwidth) on the task execution results. λ is usually obtained in real time through sensor data and represents the direct impact of environmental changes on disaster recovery task execution; β1 and β2 are used to weigh the impact of task data and environmental factors on the final task execution results, respectively. β1 is used to adjust the importance of the revised task data in the results, and β2 is used to adjust the impact of environmental factors on the final results. It is worth mentioning that the coefficients λ, β1 and β2 can be adjusted based on historical data, task priority and the complexity of the actual disaster recovery task.

[0059] In the above scheme, by dividing the initial disaster recovery process into multiple disaster recovery tasks and monitoring the execution data of each disaster recovery task, the disaster recovery task execution data is corrected through the disaster recovery plan, the initial disaster recovery process is optimized, the disaster recovery process is obtained, the disaster recovery tasks of the initial disaster recovery process are subdivided, and the execution status of each disaster recovery task is monitored and corrected in a timely manner, and finally a reliable disaster recovery process is optimized to provide an accurate data basis for disaster recovery script writing, so that when a disaster occurs, the disaster recovery tasks can be responded to in an orderly and rapid manner and the disaster recovery script can be scheduled to automatically switch data centers to ensure business continuity.

[0060] As an example of an embodiment of the present invention, based on the disaster recovery plan, several disaster recovery task execution data are corrected to obtain several disaster recovery task execution results, including: based on the disaster recovery plan, different disaster recovery scenarios are simulated and drills are performed to obtain drill data; based on the drill data, the disaster recovery task execution strategy is adjusted; based on the disaster recovery task execution strategy, several disaster recovery task execution data are corrected to obtain several disaster recovery task execution results.

[0061] A specific implementation method is to conduct simulation drills on different disaster scenarios according to the disaster recovery plan. Disaster scenarios may include hardware failure, network failure, power outage and data corruption. The purpose of the simulation drill is to verify the disaster recovery plan execution capability of the data center and to determine whether the disaster recovery plan can be executed quickly and effectively when an actual disaster occurs. At the end of the simulation drill, drill data is obtained. Based on the drill data, the execution effect of the disaster recovery plan is analyzed and evaluated, focusing on the time consumption in the disaster recovery process, the effectiveness of resource scheduling and the integrity of data recovery. Based on the analysis results, the disaster recovery task execution strategy is adjusted and optimized to ensure that the disaster recovery plan can be executed more efficiently and accurately in the next drill or when an actual disaster occurs. For example, during the disaster simulation, the disaster recovery task execution strategy is executed. If it is found that the recovery time is too long or a data center cannot work normally, the drill result feedback will provide this information. The disaster recovery task execution strategy is continuously optimized and adjusted through this feedback information, and then the disaster recovery task execution data is corrected according to the adjusted and optimized disaster recovery task execution strategy to obtain the disaster recovery task execution result.

[0062] In the above scheme, simulation drills are conducted on different disaster recovery scenarios in the disaster recovery plan, and the disaster recovery task execution strategy is adjusted according to the drill data to correct the disaster recovery task execution data and obtain the disaster recovery task execution results. By conducting simulation drills on different disaster recovery scenarios, the deficiencies in the drill process are corrected, and the task execution strategy is adjusted to ensure the generation of accurate disaster recovery processes and disaster recovery scripts, so that when a disaster occurs, the disaster recovery tasks can be responded to in an orderly and rapid manner and the disaster recovery scripts can be scheduled to automatically switch data centers to ensure business continuity.

[0063] As an example of an embodiment of the present invention, executing step 203 includes: based on the disaster recovery process, obtaining the data center environment configuration, data center equipment configuration and data center task scheduling; based on the data center environment configuration, data center equipment configuration and data center task scheduling, obtaining the initial disaster recovery script; based on the initial disaster recovery script, adjusting the data center environment configuration impact weight, data center equipment configuration impact weight, data center task scheduling impact weight and preset historical disaster recovery script execution time impact weight, optimizing the initial disaster recovery script execution time until the preset disaster recovery execution requirements are met, and obtaining the disaster recovery script.

[0064] A specific implementation method is that in the data center disaster recovery process, the disaster recovery script is the core tool to ensure the smooth execution of the disaster recovery plan. The data center environment configuration, data center equipment configuration and data center task scheduling are obtained from the disaster recovery process, and the disaster recovery script is created, written or scheduled using an automation tool. The automation tool can use Ansible. The content of the disaster recovery script includes: system environment configuration, equipment configuration and task scheduling. In order to make the execution time, execution frequency and execution accuracy of the disaster recovery script better, the execution frequency of the disaster recovery script is optimized based on the disaster recovery plan and disaster recovery simulation drills. The script can also be customized and optimized according to different disaster recovery scenarios. The disaster recovery script can also be optimized by adjusting the influence weights of the data center environment configuration, data center equipment configuration, data center task scheduling and preset historical disaster recovery script execution time. The specific script execution time calculation formula and optimization formula are as follows:

[0065] T exec =f(T' exec , D pre , E system );

[0066] f(T' exec , D pre , E system )=α1·T' exec +α2·D pre +α3·E system ;

[0067] Where, T exec The historical disaster recovery script execution time indicates the execution time of the historical disaster recovery script. It is used as a benchmark value to estimate the execution time of the disaster recovery script in the current stage. This value is usually provided by historical data. pre The input data of the disaster recovery plan includes all necessary data of the disaster recovery process (task sequence and required resources, etc.). These data determine the complexity of task execution and therefore directly affect the execution time. systemα1, α2, and α3 are weight factors, representing the contribution of factors influencing the execution time of the disaster recovery script to the final result. These factors are dynamically adjusted based on the task type and environmental status. α1 is the weight of the impact of historical disaster recovery script execution time on the current task. This coefficient is adjusted based on historical execution data, reflecting the repeatability and stability of task execution. α2 is the weight of the impact of the disaster recovery plan input data on task execution time. This coefficient is adjusted based on the complexity of the disaster recovery process and the required resources in the plan. The source of this coefficient can be determined by analyzing the data volume and resource consumption factors of different task types. α3 is the weight of the impact of the environmental system state on task execution time. This coefficient is derived from monitoring and analysis of the external environment (such as temperature and humidity, data center load, and network status), reflecting the impact of environmental conditions on the execution speed of the disaster recovery task. It is worth noting that the sources of α1, α2, and α3 can usually be set based on historical data or empirical rules, ensuring that the script execution time calculation and optimization algorithm can flexibly adapt to different disaster recovery scenarios.

[0068] In the above scheme, the data center environment configuration, data center equipment configuration and data center task scheduling are obtained from the disaster recovery process to generate an initial disaster recovery script. By adjusting the impact weight of the data center environment configuration, the impact on the execution time of the disaster recovery script in different environments is reflected. By adjusting the impact weight of the data center equipment configuration and the impact weight of the data center task scheduling, the impact of the data volume of different tasks in the disaster recovery plan and the disaster recovery process on the execution time of the disaster recovery script is reflected. By adjusting the impact weight of the preset historical disaster recovery script execution time, the stability of the repeated execution of the disaster recovery script is reflected, and then the execution time of the initial disaster recovery script is optimized to obtain a disaster recovery script, ensuring that when a disaster occurs, the disaster recovery task can be responded to in an orderly and rapid manner and the disaster recovery script can be scheduled to automatically switch data centers, reducing manual intervention and ensuring business continuity.

[0069] As an example of an embodiment of the present invention, executing step 104 includes: when a disaster occurs, responding to the current disaster scenario and scheduling the corresponding disaster recovery script; based on the corresponding disaster recovery script, executing the corresponding disaster recovery process and matching the disaster recovery plan; based on the disaster recovery plan, automatically synchronizing data to the disaster recovery data center to complete automatic switching of the data center.

[0070] A specific implementation method is to first define the triggering conditions for the occurrence of a disaster, such as a failure in the main data center, the inability to recover the system, and the recovery time window (i.e., the maximum time required from the occurrence of the disaster to the restoration of normal service in the data center), etc. When a disaster occurs, the disaster recovery script will be quickly dispatched to deal with the current disaster scenario, and the disaster recovery process and disaster recovery plan stored in the script will be executed to synchronize the data of the main data center to the disaster recovery data center in an orderly and rapid manner. When the disaster recovery script is generated and the disaster recovery scenario is analyzed, the script execution time and the disaster recovery scenario response time are optimized, so that the disaster recovery script can respond to the disaster scenario in the shortest time and complete the data center switching to maximize the integrity and consistency of the data and avoid data loss and errors to the greatest extent. In this embodiment, after the disaster recovery switching is completed, the data center can also be monitored in real time to monitor the execution effect of the disaster recovery switching and the performance of the disaster recovery data center, and to warn and repair possible failures or potential problems.

[0071] In the above solution, when a disaster occurs, it quickly responds to the current disaster scenario, schedules the corresponding disaster recovery script to execute the corresponding disaster recovery process, matches the disaster recovery plan according to the disaster recovery process, and automatically synchronizes data to the disaster recovery data center in an orderly manner according to the disaster recovery plan, completes automatic switching of the data center, and ensures business continuity.

[0072] In order to verify the effectiveness of a data center disaster recovery switching method proposed in an embodiment of the present invention, a large-scale cloud computing platform was selected as the test object. This platform involves multiple important applications, covering the key links of business data storage, processing, backup and recovery. The data volume is large and the business is complex, and the disaster recovery requirements are particularly strict. A comparative test was conducted using the traditional disaster recovery method and the method proposed in the embodiment of the present invention. During the test, the same disaster scenario was controlled and the data center was switched and recovered using the traditional disaster recovery method and the method proposed in the embodiment of the present invention. The specific experimental results are shown in Table 1:

[0073] Table 1 Experimental comparison results

[0074]

[0075]

[0076] Experimental results show that the data center disaster recovery switching method proposed in the embodiment of the present invention automatically generates disaster recovery scripts, quickly responds to disaster recovery scenarios, and executes corresponding disaster recovery processes and disaster recovery plans. The overall disaster recovery switching and disaster recovery recovery efficiency are superior to traditional disaster recovery methods. The method proposed in the embodiment of the present invention shortens the disaster recovery recovery time to 25 minutes, achieves 99.9% data consistency during disaster recovery switching, and improves data center availability to 95%. When the disaster recovery process is automatically executed, each task is ensured to be completed on time, with a task completion rate of 100%, reducing the number of manual operations. Ultimately, only one manual intervention is required, reducing the number of manual interventions by 90%. By optimizing the execution time of the disaster recovery script, the execution efficiency of the disaster recovery script is increased to 15 minutes, an improvement of 75%. By optimizing the response time of the disaster recovery scenario, a response can be made within 10 minutes, an improvement of 66.7%. The disaster recovery switching ensures 100% system recovery accuracy and improves the fault tolerance of the data center by 40%. Therefore, the data center disaster recovery switching method proposed in the embodiment of the present invention has the advantages of high efficiency and reliability compared to traditional disaster recovery methods.

[0077] Example 2

[0078] See also Figure 3 , Figure 3 A schematic diagram of the module structure of a data center disaster recovery switching system provided by an embodiment of the present invention. Figure 3 As shown, an embodiment of the present invention also provides a data center disaster recovery switching system, including: a disaster recovery plan construction module 301, a disaster recovery scenario acquisition module 302, a disaster recovery script acquisition module 303 and a disaster recovery switching module 304; the disaster recovery plan construction module 301 is used to generate a disaster recovery plan based on the preset data center disaster recovery requirements; the disaster recovery scenario acquisition module 302 is used to obtain a disaster recovery scenario based on the disaster recovery plan; the disaster recovery script acquisition module 303 is used to obtain a disaster recovery script based on the disaster recovery scenario and the disaster recovery plan; the disaster recovery switching module 304 is used to automatically switch the data center based on the disaster recovery script when a disaster occurs.

[0079] A specific implementation method is to automatically generate a disaster recovery plan based on the disaster recovery needs of the data center. The disaster recovery plan includes: disaster type, recovery strategy and personnel arrangement content, etc. The disaster recovery plan is used to provide specific operation instructions. After obtaining the disaster recovery plan, since each disaster recovery scenario usually corresponds to at least one disaster recovery plan, the disaster recovery scenarios targeted by different disaster recovery plans are analyzed and then a disaster recovery script is obtained based on the disaster recovery plan and the disaster recovery scenario. The disaster recovery script is the core tool for ensuring the smooth execution of the disaster recovery plan. When a disaster occurs, the disaster recovery script is quickly dispatched. By executing the disaster recovery script, the disaster recovery plan is executed in an orderly manner to automatically switch the data center. The definition of data center includes main data center and disaster recovery data center. When a disaster occurs in the main data center, the data of the main data center will be synchronized to the disaster recovery data center so that the data can be switched seamlessly. It is worth mentioning that after automatically switching the data center, the fault can also be located and restored. Usually, when analyzing the disaster recovery scenario, the recovery process of the data center can be defined, including switching, data synchronization and recovery time window when a disaster occurs, so that there are corresponding recovery processes in different disaster recovery scenarios, so as to make adjustments and optimizations when generating the disaster recovery plan. The specific fault location and fault recovery methods can be implemented using mature means of existing technologies, which will not be repeated here.

[0080] An embodiment of the present invention proposes a data center disaster recovery switching system. The disaster recovery plan construction module 301 generates a disaster recovery plan according to the preset data center disaster recovery requirements and provides plan guidance for responding to the occurrence of a disaster. The disaster recovery scenario acquisition module 302 then obtains the disaster recovery scenario according to the disaster recovery plan and deeply analyzes the occurrence of the disaster. The disaster recovery script acquisition module 303 combines the disaster recovery scenario and the disaster recovery plan, and dynamically obtains the disaster recovery script by writing the disaster recovery scenario and the disaster recovery plan into a script. When a disaster occurs, the corresponding plan decision can be executed according to the script writing process. The disaster recovery switching module 304 automatically switches the data center according to the disaster recovery script. Therefore, the disaster recovery plan is generated in advance according to the preset data center disaster recovery requirements and the disaster recovery scenario is deeply analyzed. The disaster recovery plan and the disaster recovery scenario are then written into a disaster recovery script. When a disaster occurs, the disaster recovery task can be responded to in an orderly and rapid manner and the disaster recovery script can be scheduled to automatically switch the data center, thereby reducing manual intervention and ensuring business continuity.

[0081] As an example of an embodiment of the present invention, the disaster recovery script acquisition module 303 is used to obtain a disaster recovery script based on a disaster recovery scenario and a disaster recovery plan, including: a disaster recovery process acquisition unit 401, a disaster recovery process correction unit 402 and a disaster recovery script acquisition unit 403; the disaster recovery process acquisition unit 401 is used to obtain an initial disaster recovery process based on a disaster recovery scenario; the disaster recovery process correction unit 402 is used to correct the initial disaster recovery process based on the disaster recovery plan to obtain a disaster recovery process; the disaster recovery script acquisition unit 403 is used to obtain a disaster recovery script based on the disaster recovery process.

[0082] In the above scheme, the disaster recovery process acquisition unit 401 formulates an initial disaster recovery process for the disaster recovery scenario, and the disaster recovery process correction unit 402 then corrects the initial disaster recovery process according to the disaster recovery plan to obtain the disaster recovery process. Finally, the disaster recovery script acquisition unit 403 compiles the disaster recovery process into a disaster recovery script, defines the disaster recovery scenario and the disaster recovery plan as a disaster recovery process, and then compiles the disaster recovery process into a disaster recovery script to ensure that each link in the disaster recovery plan can be handled in an orderly and standardized manner when a disaster occurs. At the same time, when a disaster occurs, scheduling the disaster recovery script can realize automatic switching of the data center according to the corresponding disaster recovery process, reduce manual intervention, and ensure business continuity.

[0083] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

[0084] In the description of this specification, the reference terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" mean that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials, or characteristics described may be combined in any appropriate manner in any one or more embodiments or examples. In addition, those skilled in the art may combine and integrate different embodiments or examples described in this specification, as well as features of different embodiments or examples, unless they are mutually inconsistent.

[0085] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Thus, features specified as "first" or "second" may explicitly or implicitly include at least one of such features. In the description of this application, "plurality" means two or more, unless otherwise specifically defined.

Claims

1. A data center disaster recovery switching method, characterized in that: Applications in data centers include: Generate disaster recovery plans based on the preset data center disaster recovery requirements; Based on the disaster recovery plan, a disaster recovery scenario is obtained; Obtaining a disaster recovery script based on the disaster recovery scenario and the disaster recovery plan; When a disaster occurs, the data center is automatically switched based on the disaster recovery script.

2. A data center disaster recovery switching method according to claim 1, characterized in that: The generation of a disaster recovery plan based on the preset data center disaster recovery requirements includes: Build a preliminary disaster recovery plan based on the preset data center disaster recovery requirements; Real-time monitoring of the data center to obtain data center environmental data and data center status data; Based on the data center environment data and the data center status data, the preliminary disaster recovery plan is corrected by a preset correction function to generate a disaster recovery plan.

3. A data center disaster recovery switching method according to claim 1, characterized in that: Based on the disaster recovery plan, a disaster recovery scenario is obtained, including: Based on the disaster recovery plan, obtaining a disaster type; Based on the preset data modeling tool, construct the corresponding initial disaster recovery scenario for the disaster type; Based on the initial disaster recovery scenario and a preset disaster response time optimization algorithm, the disaster response time of the initial disaster recovery scenario is adjusted to obtain a disaster recovery scenario.

4. A data center disaster recovery switching method according to claim 1, characterized in that: Based on the disaster recovery scenario and the disaster recovery plan, a disaster recovery script is obtained, including: Based on the disaster recovery scenario, an initial disaster recovery process is obtained; Based on the disaster recovery plan, the initial disaster recovery process is modified to obtain a disaster recovery process; Based on the disaster recovery process, a disaster recovery script is obtained.

5. A data center disaster recovery switching method according to claim 4, characterized in that: Based on the disaster recovery plan, the initial disaster recovery process is modified to obtain a disaster recovery process, including: Based on the disaster recovery plan, each of the initial disaster recovery processes is divided into a number of disaster recovery tasks; Sending the disaster recovery tasks to a preset automated execution tool to obtain disaster recovery task execution data; Based on a preset task execution correction algorithm, correcting the plurality of disaster recovery task execution data to obtain a plurality of disaster recovery task execution results; Based on the execution results of several disaster recovery tasks, the initial disaster recovery process is optimized to obtain a disaster recovery process.

6. A data center disaster recovery switching method according to claim 5, characterized in that: Based on the disaster recovery plan, several disaster recovery task execution data are modified to obtain several disaster recovery task execution results, including: Based on the disaster recovery plan, simulate different disaster recovery scenarios to obtain drill data; Adjusting the disaster recovery task execution strategy based on the drill data; Based on the disaster recovery task execution strategy, several disaster recovery task execution data are modified to obtain several disaster recovery task execution results.

7. A data center disaster recovery switching method according to claim 6, characterized in that: Based on the disaster recovery process, a disaster recovery script is obtained, including: Based on the disaster recovery process, data center environment configuration, data center equipment configuration and data center task scheduling are obtained; Obtaining an initial disaster recovery script based on the data center environment configuration, the data center equipment configuration, and the data center task scheduling; Based on the initial disaster recovery script, the data center environment configuration impact weight, the data center equipment configuration impact weight, the data center task scheduling impact weight and the preset historical disaster recovery script execution time impact weight are adjusted to optimize the initial disaster recovery script execution time until the preset disaster recovery execution requirements are met to obtain a disaster recovery script.

8. A data center disaster recovery switching method according to claim 1, characterized in that: When a disaster occurs, automatically switching data centers based on the disaster recovery script includes: When a disaster occurs, respond to the current disaster scenario and schedule the corresponding disaster recovery script; Based on the corresponding disaster recovery script, execute the corresponding disaster recovery process and match the disaster recovery plan; Based on the disaster recovery plan, the data is automatically synchronized to the disaster recovery data center to complete the automatic switching of the data center.

9. A data center disaster recovery switching system, characterized in that: include: Disaster recovery plan construction module, disaster recovery scenario acquisition module, disaster recovery script acquisition module and disaster recovery switching module; The disaster recovery plan building module is used to generate a disaster recovery plan based on the preset data center disaster recovery requirements; The disaster recovery scenario acquisition module is used to obtain a disaster recovery scenario based on the disaster recovery plan; The disaster recovery script acquisition module is used to obtain a disaster recovery script based on the disaster recovery scenario and the disaster recovery plan; The disaster recovery switching module is used to automatically switch data centers based on the disaster recovery script when a disaster occurs.

10. A data center disaster recovery switching system according to claim 9, characterized in that: The disaster recovery script acquisition module is used to obtain a disaster recovery script based on the disaster recovery scenario and the disaster recovery plan, including: Disaster recovery process acquisition unit, disaster recovery process correction unit and disaster recovery script acquisition unit; The disaster recovery process acquisition unit is used to obtain an initial disaster recovery process based on the disaster recovery scenario; The disaster recovery process modification unit is used to modify the initial disaster recovery process based on the disaster recovery plan to obtain a disaster recovery process; The disaster recovery script acquisition unit is used to obtain a disaster recovery script based on the disaster recovery process.