A data recovery method and system in agile development
By taking snapshots to generate data copies and establishing a historical database in agile development, the problems of data reuse and library structure consistency are solved, rapid recovery and efficient reuse of data are achieved, and testing efficiency is improved.
Patent Information
- Application Number
- CN202011155979.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-26
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-10-26
AI Technical Summary
In agile development, data is difficult to reuse during testing and the cost of preparing data is high. Parallel development and testing of multiple branches for different projects can easily lead to inconsistent library structures and data conflicts, affecting testing efficiency.
By taking snapshots at key time points in the data copy life cycle to generate data copies, and establishing a historical database based on the generated data copies, the data can be recovered at any point in time, and the data copies can be mounted to multiple servers during parallel testing to solve the problem of database Structural inconsistencies and data conflicts.
It achieves fast recovery and efficient reuse of data, saves the time of exporting data from the production environment, improves testing efficiency, avoids manual input, and ensures data isolation and consistency.
Smart Images

Figure CN112256481B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data recovery in agile development, and in particular to a method and system for data recovery in agile development. Background Art
[0002] Agile development focuses on the evolution of user needs and adopts an iterative and step-by-step approach to software development. In agile development, software projects are divided into multiple sub-projects at the beginning of construction. The results of each sub-project are tested and have the characteristics of being visible, integrable, and operational. In other words, a large project is divided into multiple small projects that are interconnected but can also be run independently, and they are completed separately. During this process, the software is always in a usable state.
[0003] With the rapid development of the company's business and the promotion of agile development, the iteration speed of application versions has significantly accelerated, and the frequency of development and testing using different versions of data has also increased. In agile development, code management, test case execution, version release, etc. are basically automated and mature. However, when changing different versions of test data or testing multiple scenarios on the same data at the same time, manual import and export are still used, which greatly reduces the test efficiency.
[0004] According to testers, when using multiple data versions for testing, there are problems such as difficulty in reusing data and high data preparation costs, which leads to a long data recovery cycle. If the data exported from production is used as the basic data, it will not be possible to restore it to the basic data state after several tests. This has affected the test efficiency, and there is no good solution in the industry. At the same time, during the test development process, when multiple branches of different projects are developed and tested in parallel, it will lead to inconsistent library structures and data conflicts. Summary of the invention
[0005] The present invention aims to provide a method and system for recovering data in agile development by resolving the difficulty in using data in agile development and restoring data to any time point in a time-saving and efficient manner.
[0006] To achieve the above object, the present invention is implemented by adopting the following technical solutions:
[0007] In a first aspect, the present invention provides a method for data recovery in agile development, comprising the following steps: generating a data copy by taking a snapshot at a key time point in the life cycle of the data copy; establishing a historical database based on the generated data copy; receiving a data recovery request; and based on the database recovery request, retrieving the corresponding data copy from the historical database to perform data recovery on the target database.
[0008] Furthermore, the method of retrieving corresponding data copies from the historical database for data recovery includes: mounting historical data copies when data copies are rolled back, and / or mounting data copies to multiple servers when parallel testing is performed.
[0009] Furthermore, the snapshot at the key time point of the data copy life cycle includes the following steps: Step A: locate the host and the mount point according to the IP; Step B: confirm whether the host has a mounted snapshot, if so, jump to step C, otherwise end the process; Step C: confirm whether the data copy is protected, if so, jump to step D, otherwise add protection for the data copy; if the protection is added successfully, jump to step D, otherwise end the process; Step D: stop the target database, if successful, jump to step E, otherwise end the process; Step E: take a snapshot, if successful, jump to step F, otherwise end the process; Step F: start the target database, and end the process after completion.
[0010] Furthermore, mounting the historical data copy when the data copy is rolled back includes the following steps: stopping the software environment before uninstalling the data snapshot; uninstalling the current data snapshot and mounting the target data snapshot; and starting the software environment after mounting the data snapshot.
[0011] Furthermore, the uninstallation of the current data snapshot includes the following steps: Step A2: locating the host according to the IP; Step B2: confirming whether the host has a mounted snapshot, if so, jumping to step C2, otherwise ending the process; Step C2: obtaining the current snapshot, if successful, jumping to step D2, otherwise ending the process; Step D2: stopping the target database, if successful, jumping to step E2, otherwise ending the process; Step E2: uninstalling the snapshot, and ending the process after completion.
[0012] Further, the unloading of the current data snapshot includes the following steps: the mounting of the target data snapshot includes the following steps: step A3: locating the host according to the IP; step B3: confirming whether the host has a mounted snapshot, if so, jump to step C3, otherwise end the process; step C3: obtaining the mount point, if so, jump to step D3, otherwise end the process; step D3: confirming whether the data copy is labeled, if so, jump to step E3, otherwise obtain the original label; if the original label is successfully obtained, jump to step F3, otherwise end the process; step E3: labeling, if successful, jump to step F3, otherwise end the process; step F3: mounting the specified snapshot, if successful, jump to step G3, otherwise end the process; step G3: starting the target database, and end the process after completion.
[0013] Furthermore, mounting the data copies to multiple servers during parallel testing includes the following steps: mounting the data copies to the server; and starting the software environment after mounting the data copies.
[0014] Furthermore, the method also includes: preparing server resources that can store data copies according to the number of parallel test scenarios; deploying a software environment for using data copies according to the server resources that can store data copies; the server resources that can store data copies include servers that have deployed CDM (Copy Data Management) product drivers and enabled ISCSI (Internet Small Computer System Interface) services.
[0015] In a second aspect, the present invention provides a data recovery system in agile development, the system comprising: a copy generation module: used to generate a data copy by taking a snapshot at a key time point in the data copy life cycle; a database module: used to establish a target database based on the generated data copy; a request receiving module: used to receive a data recovery request; a data recovery module: used to retrieve a corresponding data copy from the target database for data recovery according to the database recovery request.
[0016] Furthermore, the request receiving module includes a graphical page, which is used to save and mount data versions, control the start and stop of the database, and display the topological relationship between multiple versions of data.
[0017] Compared with the prior art, the present invention has the following beneficial effects:
[0018] 1. The method provided by the present invention solves the problem of difficulty in reusing data during the test process. By taking a snapshot at a key time point in the life cycle of the data copy to generate a data copy and establishing a historical database based on the generated data copy, subsequent changes will not affect the basic data, and can be rolled back to any historical data version at any time, indirectly saving the time of exporting data from the production environment again.
[0019] 2. The present invention solves the problems of inconsistent library structure and data conflict caused by parallel development and testing of multiple branches of different projects during the test development process. During parallel testing, data copies can be mounted to multiple prepared servers, and the same data can be mounted as multiple copies for use by different project branches, which are isolated from each other and do not require manual input, thereby improving test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A flow chart of a method for recovering data in agile development of the present invention;
[0021] Figure 2 To take a snapshot of the process;
[0022] Figure 3 This is a data version rollback scenario;
[0023] Figure 4 To uninstall the snapshot process;
[0024] Figure 5 It is the process of mounting snapshot;
[0025] Figure 6 For parallel testing scenarios. DETAILED DESCRIPTION
[0026] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0027] The overall concept of the present invention is: through secondary development of a product with CDM characteristics (the product takes a snapshot of a piece of data, mounts the snapshot to the server, uninstalls the snapshot, etc.), the operations between the product and the database are connected, allowing users to back up the current database (take a snapshot) and restore the historical database (mount a snapshot, uninstall a snapshot) with one click. This capability is exactly what is needed for data recovery in agile development. Therefore, we apply the secondary developed system in agile development to assist in rapid data recovery, parallel testing, etc.; without departing from the technical principles of the present invention, several improvements and variations can be made, and these improvements and variations should also be regarded as the scope of protection of the present invention.
[0028] Embodiment 1:
[0029] This embodiment provides a data recovery method and system in agile development. The method is based on a product with CDM (data copy management) technical characteristics. According to the number of parallel test scenarios, server resources that can store data copies are prepared, the required environment is deployed, and snapshots are taken at key time points in the life cycle of the data copy. When the data copy is rolled back, only the historical data copy needs to be mounted. During parallel testing, the data copy needs to be mounted to multiple servers that have been prepared. The present invention uses the CDM product by calling the CDM product API. The three core technologies of generating snapshots, unmounting snapshots, and mounting snapshots are provided for the CDM product, and the data is processed through the CDM product (production snapshots, unmounting snapshots, and mounting snapshots).
[0030] Combination Figure 1 The present invention provides a method and system for recovering data in agile development, comprising the following steps:
[0031] Step 1: Prepare server resources that can store data copies according to the number of parallel test scenarios;
[0032] Step 2: Based on the resources prepared in step 1, deploy the software environment that uses the data copy;
[0033] Step 3: Take snapshots at key points in the life cycle of the data copy;
[0034] Step 4: Select different operations according to the required functions. That is, when the data copy is rolled back, you only need to mount the historical data copy. When parallel testing is performed, the data copy needs to be mounted to multiple prepared servers.
[0035] Specifically, the server resource capable of storing data copies described in step 1 refers to a server on which a CDM (Copy Data Management) product driver has been deployed and an ISCSI (Internet Small Computer System Interface) service has been enabled.
[0036] Specifically, the software environment for deploying and using the data copy described in step 2 refers to installing database software (MySQL, Oracle, etc.) or other software for managing data.
[0037] Specifically, taking a snapshot at a critical time point in the life cycle of the data copy as described in step 3 means backing up data using snapshot technology when the current data state needs to be retained. The specific process of taking a snapshot is as follows: Figure 2 .
[0038] Specifically, in step 4, different operations are selected according to the required functions. The specific operations are as follows:
[0039] If you roll back the data version, uninstall the current data snapshot and mount the target data snapshot. The software deployed in step 2 is automatically stopped before uninstallation and automatically started after uninstallation. Figure 3 , assuming that in an iteration in April, the data has changed 5 times, two of which are relatively large. After the test of version 3.0 data is completed on the 12th, you want to continue testing the data version on the 1st. Using the present invention, you only need to simply uninstall the current version 3.0 data and mount the version 1.0 data. The specific process of uninstalling the snapshot is as follows: Figure 4 The specific process of mounting snapshots is as follows Figure 5 ;
[0040] If testing in parallel, mount the data copies to the multiple servers prepared in step 1. After mounting, the software deployed in step 2 will be automatically started. Figure 6 , Assume that on the 8th, the tester receives a temporary notice that the data on the 6th needs to be tested in different scenarios, and the data is restored after the test is completed and continued for the test on the 10th. Using the present invention, the 2.0 version data can be mounted to multiple servers for parallel testing at the same time, and version 2.1 / 2.2 can be deleted after the test is completed without affecting version 2.0. The specific process of mounting snapshots is as follows Figure 5 .
[0041] The method provided in this embodiment solves the problem of data being difficult to reuse during the test process. By taking snapshots at key time points in the life cycle of the data copy to generate a data copy and establishing a historical database based on the generated data copy, subsequent changes will not affect the basic data, and can roll back to any historical data version at any time, indirectly saving the time of exporting data from the production environment again. At the same time, it solves the problems of inconsistent library structure and data conflicts caused by parallel development and testing of multiple branches of different projects during the test development process. When testing in parallel, mounting data copies to multiple prepared servers can mount the same data into multiple copies for use by different project branches, isolating them from each other, and does not require manual input, thereby improving test efficiency.
[0042] Embodiment 2:
[0043] This embodiment provides a data recovery method in agile development, including the following steps:
[0044] Generate data copies by taking snapshots at key time points in the data copy life cycle;
[0045] Establish a historical database based on the generated data copies;
[0046] A data recovery request is received; and according to the database recovery request, a corresponding data copy is retrieved from the historical database to perform data recovery on the target database.
[0047] Specifically, the method of retrieving the corresponding data copy from the historical database for data recovery includes: mounting the historical data copy when the data copy is rolled back, and / or mounting the data copy to multiple servers when performing parallel testing.
[0048] Specifically, Figure 2 As shown, taking a snapshot at a key time point in the life cycle of a data copy includes the following steps:
[0049] Step A: Locate the host and mount point based on IP;
[0050] Step B: Check whether the host has mounted snapshots. If yes, jump to step C, otherwise end the process;
[0051] Step C: confirm whether the data copy is protected. If so, jump to step D. Otherwise, add protection to the data copy.
[0052] If the protection is added successfully, jump to step D, otherwise end the process;
[0053] Step D: Stop the target database. If successful, jump to step E, otherwise end the process;
[0054] Step E: Take a snapshot. If successful, jump to step F, otherwise end the process;
[0055] Step F: Start the target database and end the process when completed.
[0056] Specifically, Figure 3 As shown, mounting the historical data copy when the data copy is rolled back includes the following steps:
[0057] Stop the software environment before uninstalling the data snapshot;
[0058] Unmount the current data snapshot and mount the target data snapshot;
[0059] Start the software environment after mounting the data snapshot.
[0060] Specifically, uninstalling the current data snapshot includes the following steps:
[0061] Step 1: Locate the host based on IP;
[0062] Step 2: Check whether the host has mounted snapshots. If yes, jump to step C, otherwise end the process;
[0063] Step 3: Get the current snapshot. If successful, jump to step D, otherwise end the process;
[0064] Step 4: Stop the target database. If successful, jump to step E, otherwise end the process;
[0065] Step 5: Uninstall the snapshot and end the process when completed.
[0066] Specifically, Figure 5 As shown, the mounting target data snapshot includes the following steps:
[0067] Step 1: Locate the host based on IP;
[0068] Step 2: Check whether the host has mounted snapshots. If yes, jump to step C, otherwise end the process;
[0069] Step 3: Get the mount point. If yes, go to step D. Otherwise, end the process.
[0070] Step 4: Confirm whether the data copy is tagged. If so, jump to step E, otherwise obtain the original tag; if the original tag is successfully obtained, jump to step F, otherwise end the process;
[0071] Step 5: Tag. If successful, jump to step F, otherwise end the process;
[0072] Step 6: Mount the specified snapshot. If successful, jump to step G, otherwise end the process;
[0073] Step 7: Start the target database and end the process after completion.
[0074] Specifically, mounting the data copies to multiple servers during parallel testing includes the following steps: mounting the data copies to the server; and starting the software environment after mounting the data copies.
[0075] Specifically, the method further includes: preparing server resources that can store data copies according to the number of parallel test scenarios; deploying a software environment for using data copies according to the server resources that can store data copies; the server resources that can store data copies include servers that have deployed CDM (Copy Data Management) product drivers and enabled ISCSI (Internet Small Computer System Interface) services. Deploying a software environment for using data copies refers to installing database software (MySQL, Oracle, etc.) or other data management software.
[0076] If you roll back the data version, the current data snapshot is uninstalled and the target data snapshot is mounted. The deployed software is automatically stopped before uninstallation and automatically started after uninstallation. Figure 3 , assuming that in an iteration in April, the data has changed 5 times, two of which are relatively large. After the test of version 3.0 data is completed on the 12th, you want to continue testing the data version on the 1st. Through this embodiment, you only need to simply uninstall the current version 3.0 data and mount the version 1.0 data. The specific process of uninstalling the snapshot is as follows Figure 4 The specific process of mounting snapshots is as follows Figure 5 ;
[0077] If testing is done in parallel, data copies are mounted to multiple prepared servers, and the deployed software is automatically started after mounting. Figure 6 , Assume that on the 8th, the tester receives a temporary notice that the data on the 6th needs to be tested in different scenarios, and the data is restored after the test is completed and continued for the test on the 10th. Using the present invention, the 2.0 version data can be mounted to multiple servers for parallel testing at the same time, and version 2.1 / 2.2 can be deleted after the test is completed without affecting version 2.0. The specific process of mounting snapshots is as follows Figure 5 .
[0078] The method provided in this embodiment solves the problem of data being difficult to reuse during the test process. By taking snapshots at key time points in the life cycle of the data copy to generate a data copy and establishing a historical database based on the generated data copy, subsequent changes will not affect the basic data, and can roll back to any historical data version at any time, indirectly saving the time of exporting data from the production environment again. At the same time, it solves the problems of inconsistent library structure and data conflicts caused by parallel development and testing of multiple branches of different projects during the test development process. When testing in parallel, mounting data copies to multiple prepared servers can mount the same data into multiple copies for use by different project branches, isolating them from each other, and does not require manual input, thereby improving test efficiency.
[0079] Embodiment three:
[0080] The present invention provides a data recovery system in agile development, the system comprising:
[0081] Replica generation module: used to generate data replicas by taking snapshots at key time points in the data replica lifecycle;
[0082] Database module: used to establish a historical database based on the generated data copies;
[0083] Request receiving module: used to receive data recovery requests;
[0084] Data recovery module: used to retrieve corresponding data copies from the target database and perform data recovery on the target database according to the database recovery request.
[0085] The request receiving module includes a graphical page, which is used to save and mount data versions, control the start and stop of the database, and display the topological relationship between multiple versions of data.
[0086] The hardware of the system provided in this embodiment includes a general server. The generated backup data is stored in a software server for installing and managing data. The software for managing data is installed on an independent server. The software is transmitted through the network, and the network communication protocol is ISCSI.
[0087] The CDM products on the market were originally designed for two purposes:
[0088] 1. Data transfer from production environment to test environment. Copy production data to R&D and test environments for development or testing, and achieve real-time data reuse;
[0089] 2. Backup of very large databases: The backup method of "initial full volume + permanent incremental volume" is adopted to greatly shorten the backup time window of very large databases.
[0090] The "snapshot + virtualization" function of the CDM product has the ability to quickly restore data copies. Therefore, in view of the problems existing in the use of data in the company's agile development, combined with the technical advantages of CDM, this embodiment uses it for the rapid recovery of data in CI / CD.
[0091] The main technical key points of the data recovery system in agile development provided by this embodiment are:
[0092] 1. Through the graphical page, data versions can be saved and mounted with one click, and the database can be automatically started and stopped, and the topological relationship between multiple versions of data can be displayed. This embodiment provides a web page for users to implement the above operations.
[0093] 2. Reconstruct the encapsulated REST API, encapsulate the complex business logic and database management operations into 5 extremely simple and friendly interfaces: login, snapshot, mount, uninstall, and view snapshot version. Developers do not need to understand the underlying technical principles, and can achieve rapid data backup and recovery in CI / CD with simple calls, which greatly reduces the threshold for use.
[0094] Embodiment 4:
[0095] The embodiment of the present invention also provides a data recovery device in agile development, including a processor and a storage medium;
[0096] The storage medium is used to store instructions;
[0097] The processor is used to operate according to the instructions to perform the steps of the following method:
[0098] Generate data copies by taking snapshots at key time points in the data copy life cycle;
[0099] Establish a historical database based on the generated data copies;
[0100] A data recovery request is received; and according to the database recovery request, a corresponding data copy is retrieved from the historical database to perform data recovery on the target database.
[0101] Embodiment five:
[0102] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the following method are implemented:
[0103] Generate data copies by taking snapshots at key time points in the data copy life cycle;
[0104] Establish a historical database based on the generated data copies;
[0105] A data recovery request is received; and according to the database recovery request, a corresponding data copy is retrieved from the historical database to perform data recovery on the target database.
[0106] It should be noted that there is no standard implementation environment for the implementation of the present invention. It can be implemented as long as the corresponding software is installed on the server, and the applicable scenarios are not limited to the following two: data version rollback scenario and parallel testing scenario. Therefore, the software environment and applicable scenarios in the embodiments cannot be used to limit the scope of protection of the present invention.
[0107] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0108] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0109] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0111] 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.
Claims
1. A data recovery method in agile development, characterized in that: The following steps are involved: Generate a data copy by taking a snapshot of the current data at a key time point in the life cycle of the data copy; Establish a historical database based on the generated data copies; receiving a data recovery request; According to the database recovery request, the corresponding data copy is retrieved from the historical database to perform data recovery on the target database; The method for retrieving the corresponding data copy from the historical database to perform data recovery includes: Mount historical data copies when data copies are rolled back, and / or mount data copies to multiple servers when testing in parallel; Taking a snapshot at a critical time point in the life cycle of a data copy includes the following steps: Step A: Locate the host and mount point based on IP; Step B: Check whether the host has mounted snapshots. If yes, jump to step C, otherwise end the process; Step C: confirm whether the data copy is protected. If so, jump to step D; otherwise, add protection to the data copy; if the protection is added successfully, jump to step D; otherwise, end the process; Step D: Stop the target database. If successful, jump to step E, otherwise end the process; Step E: Take a snapshot of the data in the target database. If successful, jump to step F, otherwise end the process; Step F: Start the target database and end the process when completed.
2. The method for recovering data in agile development according to claim 1, characterized in that: Mounting the historical data copy when the data copy is rolled back includes the following steps: Stop the software environment before uninstalling the data snapshot; Unmount the current data snapshot and mount the target data snapshot; Start the software environment after mounting the data snapshot.
3. The method for recovering data in agile development according to claim 2, characterized in that: The uninstallation of the current data snapshot comprises the following steps: Step A2: Locate the host based on IP; Step B2: Check whether the host has mounted snapshots. If yes, jump to step C2; otherwise, end the process. Step C2: Get the current snapshot. If successful, jump to step D2, otherwise end the process; Step D2: Stop the target database. If successful, jump to step E2, otherwise end the process; Step E2: Unmount the snapshot and end the process when completed.
4. The method for recovering data in agile development according to claim 2, characterized in that: The mounting target data snapshot comprises the following steps: Step A3: Locate the host based on IP; Step B3: Check whether the host has mounted snapshots. If yes, jump to step C3; otherwise, end the process. Step C3: Get the mount point. If yes, jump to step D3. Otherwise, end the process. Step D3: confirm whether the data copy is tagged, if yes, jump to step E3, otherwise, obtain the original tag; if the original tag is successfully obtained, jump to step F3, otherwise, end the process; Step E3: Tag, if successful, jump to step F3, otherwise end the process; Step F3: Mount the specified snapshot. If successful, jump to step G3, otherwise end the process; Step G3: Start the target database and end the process after completion.
5. The method for recovering data in agile development according to claim 1, characterized in that: Mounting data copies to multiple servers when testing in parallel involves the following steps: Mount a copy of the data to the server; After mounting the data copy, start the software environment.
6. The method for recovering data in agile development according to claim 1, characterized in that: The method further includes: preparing server resources capable of storing data copies according to the number of parallel test scenarios; Deploy a software environment for using the data copy based on the server resources capable of storing the data copy; The server resources capable of storing data copies include servers on which data copy management product drivers have been deployed and Internet Small Computer System Interface services have been enabled.
7. A data recovery system in agile development, characterized in that: The system comprises: Replica generation module: used to generate data replicas by taking snapshots at key time points in the data replica lifecycle; Database module: used to establish a historical database based on the generated data copies; Request receiving module: used to receive data recovery requests; Data recovery module: used to retrieve corresponding data copies from the historical database to perform data recovery on the target database according to the database recovery request; The method for retrieving the corresponding data copy from the historical database to perform data recovery includes: Mount historical data copies when data copies are rolled back, and / or mount data copies to multiple servers when testing in parallel; Taking a snapshot at a critical time point in the life cycle of a data copy includes the following steps: Step A: Locate the host and mount point based on IP; Step B: Check whether the host has mounted snapshots. If yes, jump to step C, otherwise end the process; Step C: confirm whether the data copy is protected. If so, jump to step D; otherwise, add protection to the data copy; if the protection is added successfully, jump to step D; otherwise, end the process; Step D: Stop the target database. If successful, jump to step E, otherwise end the process; Step E: Take a snapshot of the data in the target database. If successful, jump to step F, otherwise end the process; Step F: Start the target database and end the process when completed.
8. The data recovery system in agile development according to claim 7, characterized in that: The request receiving module includes a graphical page, which is used to save and mount data versions, control the start and stop of the database, and display the topological relationship between multiple versions of data.
