Method and device for protecting continuous data of cloud host
Through the collaborative work of the CDP process and the monitoring sub-process, the snapshot time interval and customized data lookback points are dynamically adjusted, which solves the problems of resource waste and insufficient flexibility in cloud host data protection, and achieves efficient and flexible data protection and recovery.
Patent Information
- Application Number
- CN202410463040.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-17
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing cloud host data protection methods, regular snapshots lead to unnecessary IO capture, resource waste, and lack of support for custom data traceback points, making it impossible to flexibly respond to different data change scenarios.
Through the collaborative work of the CDP process and the monitoring sub-process, the time interval of snapshots is dynamically adjusted according to the amount of data changes, and it supports the customization of data traceback points to achieve flexible data protection and resource optimization.
It reduces resource overhead, avoids resource waste caused by regular snapshots, improves the flexibility and efficiency of data protection, and supports data recovery at any point in time.
Smart Images

Figure CN118535382A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer security technology, and in particular relates to a method and device for protecting continuous data of a cloud host. Background Art
[0002] Cloud hosts carry important data and services of users. For some special scenarios, data protection is very important. For example, in the financial field, when a major accident occurs, the business must be restored in a very short time. Therefore, some methods can be used to back up the data of the cloud host. When a major failure occurs in the cloud host, the data can be quickly used for rollback to ensure business continuity.
[0003] In the related art, the protection of cloud hosts usually adopts the CDP method, which monitors the data by installing CDP-related functions on the cloud host, and then makes snapshots and sends the changed data to the backup library. However, this method will have some unnecessary IO capture, which will lead to resource waste. Therefore, how to better realize the continuous data protection of cloud hosts has become an urgent problem to be solved. Summary of the invention
[0004] In view of the above deficiencies in the prior art, the purpose of the invention is to provide a method and device for protecting continuous data of a cloud host, which reduces resource overhead and avoids the waste of resources caused by taking scheduled snapshots.
[0005] According to a first aspect of the present invention, a method for protecting continuous data of a cloud host is proposed, comprising: S1, upon receiving a creation request sent by a backup cloud host, determining the current operating environment, wherein the current operating environment includes installing a CDP process and a monitoring subprocess; S2, sending the backup data to the backup cloud host according to the CDP process; S3, according to the CDP process, upon determining that the current time has reached a data backtracking point, triggering a snapshot instruction, executing the snapshot, obtaining a snapshot data pool, and sending the data backtracking point to the backup cloud host; S4, determining the amount of data change in the snapshot data pool and the time interval for making snapshots according to the monitoring subprocess, and based on the communication between the CDP process and the monitoring subprocess, the monitoring subprocess notifies the CDP process of the time interval for making snapshots, and sends the amount of data change in the snapshot data pool to the backup cloud host.
[0006] Furthermore, the data backtracking point generation method includes a default rule method and a custom method.
[0007] Furthermore, determining the amount of data change in the snapshot data pool according to the monitoring subprocess includes: determining the first target data in the snapshot data pool and the target position corresponding to the first target data; obtaining the second target data at the target position; and determining the amount of data change in the snapshot data pool according to the first target data and the second target data.
[0008] Further, determining the time interval for making snapshots includes: when it is determined that the amount of data change in the snapshot data pool is less than a target threshold, increasing the time interval for making snapshots; when it is determined that the amount of data change in the snapshot data pool is not less than the target threshold, reducing the time interval for making snapshots.
[0009] Further, determining the amount of data change in the snapshot data pool according to the monitoring subprocess includes: determining the first target data in multiple snapshot data pools and the target position corresponding to the first target data; obtaining the second target data at the target position; determining the amount of data change in each of the snapshot data pools according to the first target data and the second target data; wherein determining the time interval for making snapshots includes: when it is determined that the amount of data change in each of the snapshot data pools is less than the target threshold, increasing the time interval for making snapshots; when it is determined that the amount of data change in each of the snapshot data pools is not less than the target threshold, reducing the time interval for making snapshots.
[0010] According to a second aspect of the present invention, another method for protecting continuous data of a cloud host is proposed. The method is applied to a backup cloud host and includes: S1, receiving a creation request from a user and sending the creation request to the cloud host; S2, upon receiving the backup data sent by the cloud host, saving the backup data; S3, receiving a data backtracking point sent by the cloud host and making a backup based on the data backtracking point; S4, upon the creation of the data backtracking point and receiving a data recovery request, restoring the data corresponding to the data backtracking point to the cloud host, and receiving and saving the data change sent by the cloud host.
[0011] Furthermore, when the backup data sent by the cloud host is received, the backup data is saved, including: saving the backup data sent by the cloud host to the primary backup repository; when the primary backup repository is saved, synchronizing the backup data to the secondary backup repository.
[0012] Furthermore, the received data changes sent by the cloud host are saved in the primary backup library.
[0013] According to a third aspect of the present invention, a device for protecting continuous data of a cloud host is proposed. The device is applied to a cloud host and includes: a first determination module, which is used to determine the current operating environment when a creation request is received from a backup cloud host, and the current operating environment includes installing a CDP process and a monitoring sub-process; a first sending module, which is used to send the backup data to the backup cloud host according to the CDP process; an obtaining module, which is used to trigger a snapshot instruction and execute the snapshot according to the CDP process when it is determined that the current time has reached a data backtracking point, obtain a snapshot data pool, and send the data backtracking point to the backup cloud host; a second determination module, which is used to determine the data change amount in the snapshot data pool and the time interval for making snapshots according to the monitoring sub-process, and based on the communication between the CDP process and the monitoring sub-process, the monitoring sub-process notifies the CDP process of the time interval for making snapshots, and sends the data change amount in the snapshot data pool to the backup cloud host.
[0014] According to a fourth aspect of the present invention, a device for protecting continuous data of a cloud host is proposed. The device is applied to backing up a cloud host and includes: a second sending module, used to receive a creation request from a user and send the creation request to the cloud host; a backup module, used to save the backup data when the backup data sent by the cloud host is received; a production module, used to receive a data backtracking point sent by the cloud host and produce based on the data backtracking point; a recovery module, used to restore the data corresponding to the data backtracking point to the cloud host when the data backtracking point is produced and a data recovery request is received, and receive and save the data change sent by the cloud host.
[0015] In a fifth aspect of the present invention, an electronic device is proposed, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method described in the first aspect of the present invention or execute any method described in the second aspect of the present invention.
[0016] The sixth aspect of the present invention provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute any method in the first aspect of the present invention or execute any method in the second aspect of the present invention.
[0017] The beneficial effects of the present invention are as follows:
[0018] The cloud host continuous data protection method and device of the present invention, when receiving a creation request sent by a backup cloud host, determines the current operating environment, and the current operating environment includes installing a CDP process and a monitoring subprocess; sends the backup data to the backup cloud host according to the CDP process; according to the CDP process, when determining that the current time reaches the data backtracking point, triggers the snapshot making instruction, executes the snapshot making, obtains the snapshot data pool, and sends the data backtracking point to the backup cloud host; determines the data change amount in the snapshot data pool and the time interval for making snapshots according to the monitoring subprocess, and based on the communication between the CDP process and the monitoring subprocess, the monitoring subprocess notifies the CDP process of the time interval for making snapshots, and sends the data change amount in the snapshot data pool to the backup cloud host. The method reduces resource overhead by changing the time interval for making snapshots through the data change amount, and avoids the situation where resources are wasted due to taking a timed snapshot. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.
[0020] Figure 1 is a flow chart of a method for protecting continuous data of a cloud host according to an embodiment of the present invention;
[0021] Figure 2 is a flow chart of determining a time interval for making snapshots according to a specific embodiment of the present invention;
[0022] Figure 3 is a schematic diagram of a structure of a fitting curve generated according to an embodiment of the present invention;
[0023] Figure 4 is a flow chart of a method for protecting continuous data of a cloud host according to another embodiment of the present invention;
[0024] Figure 5 is a schematic diagram of a cloud host continuous data protection system according to an embodiment of the present invention;
[0025] Figure 6 is a structural block diagram of a device for protecting continuous data of a cloud host according to an embodiment of the present invention;
[0026] Figure 7 is a structural block diagram of a device for protecting continuous data of a cloud host according to another embodiment of the present invention;
[0027] Figure 8It is a structural block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.
[0029] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.
[0030] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0031] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.
[0032] In the related technology, the CDP method is usually used to protect the cloud host. By installing CDP-related functions on the cloud host, monitoring the data, and then making snapshots, the changed data is sent to the backup library. However, this method will have some unnecessary IO capture, which will lead to waste of resources. This method can better protect the cloud host, but there are some shortcomings. First, the frequency of cloud host snapshots is fixed, but the data of the cloud host may only change in certain time periods. If the method of taking snapshots at regular intervals is adopted, there will be some unnecessary IO capture. Secondly, many scenarios currently do not support the customization of data backtracking points, and can only be restored after a fixed period of time (such as 2 hours). Therefore, how to better realize the protection of continuous data of cloud hosts has become an urgent problem to be solved.
[0033] To this end, the present invention proposes a method, device and related equipment for protecting continuous data of a cloud host, which reduces resource overhead and avoids the situation where resources are wasted due to taking a timed snapshot. Specifically, the method, device and related equipment for protecting continuous data of a cloud host according to an embodiment of the present invention are described below with reference to the accompanying drawings.
[0034] Figure 1 This is a flow chart of a method for protecting continuous data of a cloud host according to an embodiment of the present invention. It should be noted that the method for protecting continuous data of a cloud host according to an embodiment of the present invention can be applied to a device for protecting continuous data of a cloud host according to an embodiment of the present invention. The device for protecting continuous data of a cloud host can be configured on an electronic device or a cloud host, or can be configured in a server. This embodiment of the present application does not limit this.
[0035] like Figure 1 As shown, the cloud host continuous data protection method may include:
[0036] S110, upon receiving a creation request sent by the backup cloud host, determining the current operating environment, the current operating environment including installing a CDP process and a monitoring sub-process.
[0037] In an embodiment of the present invention, when a creation request is received from a backup cloud host, the current operating environment of the cloud host can be determined, wherein it is determined whether the cloud host currently has a CDP process and a monitoring subprocess installed. When it is detected that the CDP process and the monitoring subprocess are not installed, the CDP process and the monitoring subprocess are installed.
[0038] S120: Send the backup data to the backup cloud host according to the CDP process.
[0039] In an embodiment of the present invention, the cloud host has two backup modes, including full mode and incremental mode. The full mode is used to perform a complete backup of the data specified by the user, and the incremental mode is used to perform a real-time backup of the change records of the data specified by the user.
[0040] In an embodiment of the present invention, when it is determined that the cloud host has installed the CDP process and the monitoring sub-process, the full mode is started, the CDP process scans the backup data that needs to be backed up, and sends the backup data that needs to be backed up to the backup cloud host based on the CDP process.
[0041] S130, according to the CDP process, when it is determined that the current time reaches the data backtracking point, trigger the snapshot creation instruction, execute the snapshot creation, obtain the snapshot data pool, and send the data backtracking point to the backup cloud host.
[0042] In one embodiment of the present invention, a save completion instruction sent by a backup cloud host is received. When the save completion instruction sent by the backup cloud host is received, the incremental mode is started, the CDP process monitors the data in real time, and when it is determined that the current time of the cloud host reaches the data backtracking point, the snapshot creation instruction is triggered, and the snapshot creation is executed to obtain a snapshot data pool. At the same time, the data backtracking point is sent to the backup cloud host.
[0043] The generation methods of data backtracking points include default rule method and custom method. The custom method can be understood as the user presetting the time of the data backtracking point. The snapshot can be understood as taking an image of the current data and recording the location of the current data.
[0044] It should be noted that after the snapshot is created, during the period until the next snapshot is created, the CDP process saves the metadata of the changed data, and the saved data is the incremental data.
[0045] A snapshot can be understood as an image of a system or data at a certain moment, reflecting the current state of the system or data. A snapshot saves the metadata of the data (the actual location on the disk). A data rollback point can be understood as data at a certain moment. The data at that moment is complete. When data is lost, it can be rolled back based on a selected data rollback point.
[0046] S140, determining the amount of data change in the snapshot data pool and the time interval for making snapshots according to the monitoring sub-process, and based on the communication between the CDP process and the monitoring sub-process, the monitoring sub-process notifies the CDP process of the time interval for making snapshots, and sends the amount of data change in the snapshot data pool to the backup cloud host.
[0047] In the embodiment of the present invention, the data change amount in the snapshot data pool can be determined according to the target data in the snapshot data pool and the target position corresponding to the target data, and then the time interval for making snapshots can be determined based on the data change amount in the snapshot data pool. The specific implementation method can refer to the subsequent embodiments.
[0048] In one embodiment of the present invention, based on the communication between the CDP process and the monitoring subprocess, the monitoring subprocess notifies the CDP process of the time interval for making snapshots, thereby enabling the CDP process to determine the time interval for making the next snapshot.
[0049] In one embodiment of the present invention, the monitoring subprocess is further used to receive a user-defined data backtracking point command, and based on the communication between the CDP process and the monitoring subprocess, the monitoring subprocess can transmit the time parameter to the CDP process.
[0050] In order to make it easier for those skilled in the art to understand the present invention, Figure 2 The flowchart of determining the time interval for making snapshots according to an embodiment of the present invention, wherein, in the embodiment of the present invention, determining the amount of data change in the snapshot data pool and determining the time interval for making snapshots according to the monitoring subprocess includes:
[0051] S210: Determine the amount of data change in the snapshot data pool according to the monitoring subprocess.
[0052] In one embodiment of the present invention, first target data in a snapshot data pool and a target position corresponding to the first target data are determined; second target data at the target position is acquired; and the data change amount in the snapshot data pool is determined based on the first target data and the second target data.
[0053] That is to say, after the snapshot is made, a snapshot data pool can be obtained, wherein the current data and the location of the current data are recorded when the snapshot is made, that is, the first target data in the snapshot data pool and the target location corresponding to the first target data, and then the second target data can be determined based on the target location, and the data change in the snapshot data pool can be determined based on the first target data and the second target data.
[0054] For example, the second target data may be data before the first target data at the target location.
[0055] In another embodiment of the present invention, first target data and target positions corresponding to the first target data in multiple snapshot data pools are determined; second target data at the target position is acquired; and the data change amount in each snapshot data pool is determined based on the first target data and the second target data.
[0056] For example, based on continuous data backtracking points, continuous snapshot data pools can be obtained, that is, multiple snapshot data pools can be obtained, and then the first target data in the multiple snapshot data pools and the target position corresponding to the first target data can be determined; the second target data at the target position in each snapshot data pool in the multiple snapshot data pools can be obtained; and then the data change amount in each snapshot data pool can be determined based on the first target data and the second target data.
[0057] S220: Determine a time interval for making snapshots.
[0058] In one embodiment of the present invention, when it is determined that the data change amount in the snapshot data pool is less than the target threshold, the time interval for making snapshots is increased; when it is determined that the data change amount in the snapshot data pool is not less than the target threshold, the time interval for making snapshots is reduced.
[0059] In another embodiment of the present invention, when it is determined that the data change amount in each snapshot data pool is less than the target threshold, the time interval for making snapshots is increased; when it is determined that the data change amount in each snapshot data pool is not less than the target threshold, the time interval for making snapshots is reduced.
[0060] That is, when the amount of data change in each snapshot data pool is determined, the time interval for making snapshots can be determined by judging the amount of data change in each snapshot pool.
[0061] In one embodiment of the present invention, the time interval for making snapshots can also be determined based on the monitoring model. For example, each time the cloud host is backed up, the monitoring model will collect the following information: time period, data change amount. When the collected information reaches the target amount (for example, 1000 pieces), the monitoring model will be trained based on this information, for example, by fitting this information with a mathematical model to generate a fitting curve, wherein the generated fitting curve can be as follows: Figure 3 As shown in the figure, the data change amount corresponding to the curve is close to the actual training data change amount. The data change amount in a certain time period in the future is predicted based on the trained monitoring model. As the monitoring time increases and more data is accumulated, the prediction accuracy of the model will gradually improve. Then, the snapshot time interval is set based on the data change amount. For example, based on the predicted data change amount, the monitoring subprocess can notify the continuous data protection (CDP) process to adjust the frequency of making snapshots. If the data change amount is predicted to be large, the snapshot interval may need to be shortened to protect more data; conversely, if the data change amount is small, the snapshot interval can be appropriately extended to save resources. As the system runs and more data is accumulated, the monitoring model will continuously optimize itself to achieve more accurate predictions and more effective snapshot strategies. Therefore, the cloud host can dynamically adjust the snapshot time interval to adapt to the actual situation of data changes, ensure the continuity and integrity of data, and optimize the efficiency of resource use.
[0062] According to the method for protecting continuous data of a cloud host of an embodiment of the present invention, upon receiving a creation request sent by a backup cloud host, the current operating environment is determined, and the current operating environment includes installing a CDP process and a monitoring subprocess; the backup data is sent to the backup cloud host according to the CDP process; according to the CDP process, upon determining that the current time reaches a data backtracking point, a snapshot instruction is triggered, and the snapshot is executed to obtain a snapshot data pool, and the data backtracking point is sent to the backup cloud host at the same time; according to the monitoring subprocess, the data change amount in the snapshot data pool and the time interval for making snapshots are determined, and based on the communication between the CDP process and the monitoring subprocess, the monitoring subprocess notifies the CDP process of the time interval for making snapshots, and sends the data change amount in the snapshot data pool to the backup cloud host. This method reduces resource overhead by changing the time interval for making snapshots according to the data change amount, and avoids the situation where resources are wasted due to taking a scheduled snapshot.
[0063] Figure 4 It is a flow chart of a method for protecting continuous data of a cloud host according to another embodiment of the present invention. It should be noted that the method for protecting continuous data of a cloud host according to the embodiment of the present invention can be applied to a device for protecting continuous data of a cloud host according to the embodiment of the present invention. The device for protecting continuous data of a cloud host can be configured on an electronic device or a backup cloud host, or can be configured in a server. This embodiment of the present application does not limit this.
[0064] like Figure 4 As shown, the cloud host continuous data protection method may include:
[0065] S410, receiving a creation request from a user, and sending the creation request to a cloud host.
[0066] In an embodiment of the present invention, the creation request is used to request the creation of a backup cloud host and a backup repository in the backup cloud host, wherein the backup repository includes a primary backup repository and a secondary backup repository.
[0067] When receiving a creation request from a user, a backup cloud host and a backup library in the backup cloud host are created, and the creation request is sent to the cloud host.
[0068] S420: When the backup data sent by the cloud host is received, the backup data is saved.
[0069] In an embodiment of the present invention, when backup data sent by a cloud host is received, the backup data received from the cloud host is saved to a primary backup repository; when the primary backup repository is fully saved, the backup data is synchronized to a secondary backup repository.
[0070] For example, when backup data is received, the size of the backup data may be determined, and then based on the size of the backup data, it may be determined whether the primary backup repository has been completely saved.
[0071] In one embodiment of the present invention, after the backup cloud host completes saving the backup data, it may send a saving completion instruction to the cloud host so that the cloud host receives the saving completion instruction.
[0072] In one embodiment of the present invention, the primary backup repository periodically synchronizes data to the secondary backup repository.
[0073] S430, receiving the data backtracking point sent by the cloud host, and making it based on the data backtracking point.
[0074] That is, the cloud host may send the data backtracking points to the backup cloud host, so that the backup cloud host receives the data backtracking points sent by the cloud host and makes production based on the data backtracking points.
[0075] For example, when the data backtracking point is generated in a customized manner, for example, when the cloud host receives the user's preset data backtracking point time, the preset data backtracking point time can be sent to the backup cloud host, that is, the cloud host needs to notify the backup cloud host to immediately create a data backtracking point, rather than creating a data backtracking point according to a fixed period. Therefore, the backup cloud host receives the command sent by the cloud host to immediately create a data backtracking point.
[0076] S440, when the data backtracking point is created and a data recovery request is received, the data corresponding to the data backtracking point is restored to the cloud host, and the data change amount sent by the cloud host is received and saved.
[0077] In one embodiment of the present invention, the received data changes sent by the cloud host are saved in the primary backup repository.
[0078] In one embodiment of the present invention, after the data backtracking point is created, the metadata of the data backtracking point can be returned to the cloud management system to facilitate the user to restore data according to the data backtracking point.
[0079] Wherein, the recovery request carries a data backtracking point. Correspondingly, in one embodiment of the present invention, when the data backtracking point is created and a recovery request initiated by a user is received, the backup cloud host finds the data of the data backtracking point based on the data backtracking point in the recovery request, and restores the data of the data backtracking point to the cloud host.
[0080] According to the method for protecting continuous data of a cloud host according to an embodiment of the present invention, a creation request from a user is received, and the creation request is sent to the cloud host; upon receiving backup data sent by the cloud host, the backup data is saved; a data backtracking point sent by the cloud host is received, and production is performed based on the data backtracking point; upon completion of production of the data backtracking point and receipt of a data recovery request, the data corresponding to the data backtracking point is restored to the cloud host, and the data change amount sent by the cloud host is received and saved. This method enables the data corresponding to the data backtracking point to be restored to the cloud host based on the data backtracking point, supports data recovery at any time point, improves flexibility, and avoids the problem of lack of flexibility caused by the selection of only a fixed time point for rolling back data.
[0081] In one embodiment of the present invention, a cloud host continuous data protection system is also proposed. Figure 5 is a schematic diagram of a cloud host continuous data protection system according to an embodiment of the present invention. Figure 5 As shown, the cloud host continuous data protection system includes a cloud host 510 and a backup cloud host 520 .
[0082] It should be noted that both the cloud host 510 and the backup cloud host 520 include infrastructure such as CPU, memory, network and disk.
[0083] In one embodiment of the present invention, the cloud host 510 includes a CDP process and a monitoring subprocess.
[0084] The CDP process is responsible for continuously scanning data changes, recording them, and sending the changed data to the backup cloud host 520. The monitoring subprocess assists the CDP process, and is responsible for monitoring the amount of data changes in a certain period of time and saving them to a file.
[0085] The cloud host 510 also includes a system disk and a data disk for storing important user data.
[0086] The cloud host 510 has two backup modes, including a full mode and an incremental mode. The full mode is used to back up all data specified by the user, and the incremental mode is used to back up the change records of the data specified by the user in real time.
[0087] In one embodiment of the present invention, the backup cloud host 520 includes a system disk and multiple backup libraries. The backup library adopts a master-slave architecture, including a primary backup library and a secondary backup library. The primary backup library is used to store the data of the cloud host, and the secondary backup library is used to ensure that the data of the primary backup library is not lost.
[0088] It should be noted that the backup cloud host 520 is used to back up the data of the cloud host 510, so that in the event that the data of the cloud host 510 is lost, the data of the backup cloud host 520 can be restored to the cloud host, thereby ensuring the consistency of the data.
[0089] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0090] According to one aspect of an embodiment of the present invention, a device for protecting continuous data of a cloud host is also provided. The device is applied to a cloud host. Figure 6 is a structural block diagram of a device for protecting continuous data of a cloud host according to an embodiment of the present invention; Figure 6 As shown, including:
[0091] A first determination module 610 is used to determine the current operating environment when receiving a creation request sent by the backup cloud host, wherein the current operating environment includes installing a CDP process and a monitoring subprocess;
[0092] A first sending module 620, configured to send the backup data to the backup cloud host according to the CDP process;
[0093] Obtaining module 630, for triggering a snapshot instruction according to the CDP process, and executing the snapshot, obtaining a snapshot data pool, and sending the data backtracking point to the backup cloud host when determining that the current time reaches the data backtracking point;
[0094] The second determination module 640 is used to determine the amount of data change in the snapshot data pool and the time interval for making snapshots according to the monitoring sub-process, and based on the communication between the CDP process and the monitoring sub-process, the monitoring sub-process notifies the CDP process of the time interval for making snapshots, and sends the amount of data change in the snapshot data pool to the backup cloud host.
[0095] According to the cloud host continuous data protection device of the embodiment of the present invention, upon receiving the creation request sent by the backup cloud host, the current operating environment is determined, and the current operating environment includes installing the CDP process and the monitoring subprocess; the backup data is sent to the backup cloud host according to the CDP process; according to the CDP process, upon determining that the current time reaches the data backtracking point, the snapshot creation instruction is triggered, and the snapshot creation is executed to obtain the snapshot data pool, and the data backtracking point is sent to the backup cloud host at the same time; according to the monitoring subprocess, the data change amount in the snapshot data pool and the time interval for making snapshots are determined, and based on the communication between the CDP process and the monitoring subprocess, the monitoring subprocess notifies the CDP process of the time interval for making snapshots, and sends the data change amount in the snapshot data pool to the backup cloud host. In this way, the time interval for making snapshots is changed by the data change amount, which reduces resource overhead and avoids the situation where resources are wasted due to taking snapshots at regular intervals.
[0096] Optionally, the data backtracking point generation method includes a default rule method and a custom method.
[0097] Optionally, the second determination module 640 is specifically used to determine the first target data in the snapshot data pool and the target position corresponding to the first target data; obtain the second target data at the target position; and determine the data change amount in the snapshot data pool based on the first target data and the second target data.
[0098] Optionally, the second determination module 640 is specifically used to increase the time interval for making snapshots when it is determined that the data change amount in the snapshot data pool is less than the target threshold; and to reduce the time interval for making snapshots when it is determined that the data change amount in the snapshot data pool is not less than the target threshold.
[0099] Optionally, the second determination module 640 is specifically used to determine the first target data in multiple snapshot data pools and the target position corresponding to the first target data; obtain the second target data at the target position; determine the data change amount in each snapshot data pool based on the first target data and the second target data; when it is determined that the data change amount in each snapshot data pool is less than the target threshold, increase the time interval for making snapshots; when it is determined that the data change amount in each snapshot data pool is not less than the target threshold, reduce the time interval for making snapshots.
[0100] According to one aspect of an embodiment of the present invention, another device for protecting continuous data of a cloud host is also provided, wherein the device is applied to a backup cloud host. Figure 7 is a structural block diagram of a device for protecting continuous data of a cloud host according to an embodiment of the present invention; Figure 7 As shown, including:
[0101] The second sending module 710 is used to receive a creation request from a user and send the creation request to the cloud host;
[0102] The backup module 720 is used to save the backup data when receiving the backup data sent by the cloud host;
[0103] A production module 730, configured to receive the data backtracking point sent by the cloud host and perform production based on the data backtracking point;
[0104] The recovery module 740 is used to restore the data corresponding to the data backtracking point to the cloud host when the data backtracking point is created and a data recovery request is received, and to receive and save the data change sent by the cloud host.
[0105] According to the cloud host continuous data protection device of the embodiment of the present invention, the user's creation request is received, and the creation request is sent to the cloud host; when the backup data sent by the cloud host is received, the backup data is saved; the data backtracking point sent by the cloud host is received, and it is made based on the data backtracking point; when the data backtracking point is made and the data recovery request is received, the data corresponding to the data backtracking point is restored to the cloud host, and the data change amount sent by the cloud host is received and saved. In this way, the data corresponding to the data backtracking point can be restored to the cloud host based on the data backtracking point, and data recovery at any time point is supported, which improves flexibility and avoids the problem of lack of flexibility caused by only being able to select a fixed time point for rolling back data.
[0106] Optionally, the backup module 720 is specifically configured to save the backup data received from the cloud host to a primary backup repository; and when the backup data is saved in the primary backup repository, synchronize the backup data to the secondary backup repository.
[0107] Optionally, the recovery module 740 is specifically configured to save the received data changes sent by the cloud host to the primary backup repository.
[0108] According to one aspect of an embodiment of the present invention, an electronic device is provided.
[0109] Figure 8 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Figure 8 As shown, the electronic device may include one or more ( Figure 8Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a microprocessor (Microprocessor Unit, referred to as MPU) or a programmable logic device (Programmable logic device, referred to as PLD)) and a memory 104 for storing data. In an exemplary embodiment, the electronic device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 8 The structure shown is for illustration only and does not limit the structure of the above terminal device. Figure 8 More or fewer components as shown, or with Figure 8 Equivalent functions or comparisons shown Figure 8 A different configuration with more features is shown.
[0110] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the level determination method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal device via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0111] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the switching device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0112] The present invention proposes a computer-readable storage medium having a computer program stored thereon, which can be loaded and executed by a processor according to the method for protecting continuous data of a cloud host described in the first aspect or the method for protecting continuous data of a cloud host described in the second aspect.
[0113] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.
[0114] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0115] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
[0116] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for protecting continuous data of a cloud host, It is characterized in that The method is applied to a cloud host and includes: S1, when receiving a creation request sent by a backup cloud host, determining a current operating environment, wherein the current operating environment includes installing a CDP process and a monitoring subprocess; S2, sending the backup data to the backup cloud host according to the CDP process; S3, according to the CDP process, when it is determined that the current time reaches the data backtracking point, triggering a snapshot instruction, executing the snapshot, obtaining a snapshot data pool, and sending the data backtracking point to the backup cloud host; S4, determining the amount of data change in the snapshot data pool and the time interval for making snapshots according to the monitoring sub-process, and based on the communication between the CDP process and the monitoring sub-process, the monitoring sub-process notifies the CDP process of the time interval for making snapshots, and sends the amount of data change in the snapshot data pool to the backup cloud host.
2. The method for protecting continuous data of a cloud host according to claim 1, It is characterized in that The data backtracking point generation method includes a default rule method and a custom method.
3. The method for protecting continuous data of a cloud host according to claim 1, It is characterized in that Determining the amount of data change in the snapshot data pool according to the monitoring subprocess includes: Determine first target data in the snapshot data pool and a target location corresponding to the first target data; Acquire second target data of the target position; The data change amount in the snapshot data pool is determined according to the first target data and the second target data.
4. The method for protecting continuous data of a cloud host according to claim 3, It is characterized in that Determine the intervals for taking snapshots, including: When it is determined that the amount of data change in the snapshot data pool is less than a target threshold, increasing the time interval for making snapshots; When it is determined that the data change amount in the snapshot data pool is not less than the target threshold, the time interval for making the snapshot is reduced.
5. The method for protecting continuous data of a cloud host according to claim 1, It is characterized in that Determining the amount of data change in the snapshot data pool according to the monitoring subprocess includes: Determine first target data in a plurality of snapshot data pools and a target position corresponding to the first target data; Acquire second target data of the target position; Determining a data change amount in each of the snapshot data pools according to the first target data and the second target data; The time interval for making snapshots is determined as follows: When it is determined that the data change amount in each of the snapshot data pools is less than the target threshold, increasing the time interval for making snapshots; When it is determined that the amount of data change in each of the snapshot data pools is not less than the target threshold, the time interval for making snapshots is reduced.
6. A method for protecting continuous data of a cloud host, It is characterized in that The method is applied to back up a cloud host, and includes: S1, receiving a creation request from a user, and sending the creation request to a cloud host; S2, upon receiving the backup data sent by the cloud host, saving the backup data; S3, receiving the data backtracking point sent by the cloud host, and making it based on the data backtracking point; S4, when the data backtracking point is created and a data recovery request is received, the data corresponding to the data backtracking point is restored to the cloud host, and the data change sent by the cloud host is received and saved.
7. The method for protecting continuous data of a cloud host according to claim 6, It is characterized in that When receiving the backup data sent by the cloud host, saving the backup data includes: The backup data received from the cloud host is saved in the primary backup repository; When the primary backup repository is completely saved, the backup data is synchronized to the secondary backup repository.
8. The method for protecting continuous data of a cloud host according to claim 7, It is characterized in that The received data changes sent by the cloud host are saved in the primary backup repository.
9. A cloud host continuous data protection device, It is characterized in that The device is applied to a cloud host and includes: A first determination module is used to determine the current operating environment when receiving a creation request sent by the backup cloud host, wherein the current operating environment includes installing a CDP process and a monitoring subprocess; A first sending module, configured to send the backup data to the backup cloud host according to the CDP process; The obtaining module is used to trigger the snapshot instruction according to the CDP process, and execute the snapshot to obtain the snapshot data pool, and send the data backtracking point to the backup cloud host when it is determined that the current time reaches the data backtracking point; The second determination module is used to determine the data change amount in the snapshot data pool and the time interval for making snapshots according to the monitoring sub-process, and based on the communication between the CDP process and the monitoring sub-process, the monitoring sub-process notifies the CDP process of the time interval for making snapshots, and sends the data change amount in the snapshot data pool to the backup cloud host.
10. A cloud host continuous data protection device, It is characterized in that The device is applied to back up a cloud host, and includes: A second sending module is used to receive a creation request from a user and send the creation request to a cloud host; A backup module, configured to save the backup data upon receiving the backup data sent by the cloud host; A production module, used for receiving the data backtracking points sent by the cloud host and performing production based on the data backtracking points; The recovery module is used to restore the data corresponding to the data backtracking point to the cloud host when the data backtracking point is created and a data recovery request is received, and to receive and save the data change sent by the cloud host.
