A method and apparatus for backup
By defining backup strategies and load sets, prioritizing the backup of objects with lower loads solves the problem of unstable backup speed in traditional backups and improves backup efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- EISOO SOFTWARE
- Filing Date
- 2023-02-07
- Publication Date
- 2026-04-14
AI Technical Summary
Traditional backup methods have unstable backup speeds, resulting in poor backup efficiency.
By determining the load type of the information to be backed up and the load objects, a backup strategy is determined based on the load type and the current load, and the load set is used for backup, prioritizing the backup of objects with smaller loads.
It achieves improved stability in backup speed, enhances backup efficiency, and keeps it within a range close to the optimal speed.
Smart Images

Figure CN116257387B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a backup method and apparatus. Background Technology
[0002] With the continuous development of information technology, data security has become increasingly important, and backup is an effective means to ensure the data security of users' business systems.
[0003] The objects to be backed up can be of various types, such as virtual machines. When backing up virtual machines in a regular way, you first need to select a group of virtual machines to create a backup task, and then configure the backup parameters (such as backup type, storage media and backup time policy). After the task is created, you can execute the backup task to complete the backup of the virtual machines.
[0004] However, traditional backup methods are often not stable enough, with backup speeds fluctuating from time to time, resulting in poor backup efficiency. Summary of the Invention
[0005] This invention provides a backup method and apparatus to solve the problem of poor backup efficiency caused by unstable backup speed.
[0006] In a first aspect, the present invention provides a backup method, comprising:
[0007] Determine the load type of the information to be backed up and the load objects, and determine the backup strategy based on the load type, wherein the information to be backed up includes multiple objects to be backed up and multiple load objects corresponding to each object to be backed up;
[0008] Based on the backup strategy and the current load of the load object, multiple load sets are determined, wherein each load set contains at least one load object and a backup object corresponding to the at least one load object, and the current load represents the number of backup objects currently being backed up corresponding to the load object;
[0009] The backup strategy and the multiple load sets are used to back up the object to be backed up.
[0010] Secondly, the present invention provides a backup device, comprising:
[0011] A backup strategy determination module is used to determine the load type of the information to be backed up and the load objects, and to determine the backup strategy according to the load type, wherein the information to be backed up includes multiple objects to be backed up and multiple load objects corresponding to each object to be backed up;
[0012] The load set determination module is used to determine multiple load sets based on the backup strategy and the current load of the load object. The load set includes at least one load object and a backup object corresponding to the at least one load object. The current load represents the number of backup objects currently being backed up corresponding to the load object.
[0013] The backup module is used to back up the object to be backed up using the backup strategy and the multiple load sets.
[0014] The backup scheme provided by this invention determines the information to be backed up and the load type of the load objects, and determines a backup strategy based on the load type. The information to be backed up includes multiple objects to be backed up and multiple load objects corresponding to each object. Based on the backup strategy and the current load of the load objects, multiple load sets are determined. Each load set contains at least one load object and a corresponding object to be backed up. The current load represents the number of backup objects currently being backed up for each load object. The backup strategy and the multiple load sets are then used to back up the objects to be backed up. By adopting this technical solution, when multiple objects to be backed up exist, the impact of the current load of the load objects on the backup speed is considered. By using the load sets determined by the backup strategy and the current load, priority can be given to backing up objects with smaller current loads. Compared with traditional backup methods, this method has stronger backup speed stability and can maintain a speed close to the optimal range, thus improving backup efficiency.
[0015] It should be understood that the description in this section is not intended to identify key or essential features of the invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a flowchart of a backup method provided according to Embodiment 1 of the present invention;
[0018] Figure 2 This is a flowchart of a backup method provided according to Embodiment 2 of the present invention;
[0019] Figure 3This is a flowchart of another backup method provided according to Embodiment 3 of the present invention;
[0020] Figure 4 This is a schematic diagram of a backup device provided according to Embodiment 4 of the present invention. Detailed Implementation
[0021] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0022] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. In the description of this invention, unless otherwise stated, "a plurality of" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0023] Example 1
[0024] Figure 1 The flowchart of a backup method provided in Embodiment 1 of the present invention is applicable to the case of data backup. The method can be executed by a backup device, which can be implemented in hardware and / or software. The backup device can be configured in an electronic device, which can be composed of two or more physical entities or a single physical entity.
[0025] like Figure 1 As shown, the backup method provided in Embodiment 1 of the present invention specifically includes the following steps:
[0026] S101. Determine the load type of the information to be backed up and the load objects, and determine the backup strategy according to the load type, wherein the information to be backed up includes multiple objects to be backed up and multiple load objects corresponding to each object to be backed up.
[0027] In this embodiment, the object to be backed up can be understood as data that needs to be backed up, such as virtual machines. The load type can include host machine, production storage, backup agent, and backup media. The host machine can be understood as the compute node where the object to be backed up resides; production storage can be understood as the storage medium where the data of the object to be backed up resides; the backup agent can be understood as an agent used to read the data of the object to be backed up and send it to the backup media; and the backup media can be understood as the medium used to store the backup data of the object to be backed up. The load object can be understood as a specific object corresponding to each load type. For example, if the load object is a storage device that stores the data of the object to be backed up, then the load type of the load object is production storage; if the load object is a compute node, then the load type of the load object is host machine; if the load object is an agent that reads and forwards data, then the load type of the load object is backup agent; and if the load object is a storage device that stores backup data, then the load type of the load object is backup media. The backup strategy can be determined based on the load type. For example, the backup strategy can be set to first determine the backup order based on the backup media, and then determine the backup order based on the backup agent.
[0028] S102. Based on the backup strategy and the current load of the load object, determine multiple load sets, wherein the load set contains at least one load object and a backup object corresponding to the at least one load object, and the current load represents the number of backup objects currently being backed up corresponding to the load object.
[0029] In this embodiment, when multiple objects need to be backed up, a decrease in backup speed may occur if any of the following situations exist: multiple objects originate from the same production storage or the same host machine; the same backup agent is used during the backup process; or the backup media corresponding to the objects are all the same. Therefore, in addition to determining the load set based on the backup strategy, it is also necessary to determine the load set based on the current load of the load objects. For example, if the backup strategy indicates that the priority of the backup media is higher than the priority of the backup agent, the smaller current load of the load objects corresponding to the backup media can be filtered out first to obtain multiple first sets. The load type of the load objects in the first set is backup media, and the current load of the load objects is small. Then, the smaller current load of the load objects corresponding to the backup agent is filtered out from the first set to obtain multiple second sets (i.e., load sets). The load type of the load objects in the second set is backup agent, and the current load of the load objects is small.
[0030] S103. Using the backup strategy and the multiple load sets, back up the object to be backed up.
[0031] In this embodiment, a target load set can first be selected from multiple load sets based on the current load of the load objects. For example, the load set corresponding to the smallest current load can be determined as the target load set. Then, at least one object to be backed up is selected from the target load set, and the backup strategy is used to determine the next object to be backed up from the remaining unbacked-up objects. This can be done by repeating steps 101 to 103 to complete the backup of all objects. Before each backup, it must be ensured that the number of backup tasks is less than the task limit that the backup system (i.e., the system executing the backup tasks) can handle.
[0032] The backup method provided in this embodiment of the invention determines the information to be backed up and the load type of the load object, and determines a backup strategy based on the load type. The information to be backed up includes multiple objects to be backed up and multiple load objects corresponding to each object. Based on the backup strategy and the current load of the load object, multiple load sets are determined. Each load set contains at least one load object and a corresponding object to be backed up. The current load represents the number of backup objects currently being backed up for each load object. The backup method and the multiple load sets are then used to back up the objects to be backed up. This invention addresses the impact of the current load of the load object on backup speed when multiple objects are to be backed up. By utilizing the load sets determined by the backup strategy and the current load, priority can be given to backing up objects with lower current loads. Compared to traditional backup methods, this method offers stronger backup speed stability and maintains a near-optimal speed, thus improving backup efficiency.
[0033] Example 2
[0034] Figure 2 This is a flowchart of a backup method provided in Embodiment 2 of the present invention. The technical solution of the present invention is further optimized based on the above optional technical solutions, and a specific method for backing up data is given.
[0035] Optionally, determining the backup strategy based on the load type includes: identifying multiple target load types from the load types, determining the priority of each target load type, and determining the backup strategy based on the priority, wherein the backup strategy includes the target load types. The advantage of this setup is that priorities and backup strategies can be reasonably preset based on factors affecting backup speed, thereby improving backup efficiency.
[0036] Optionally, determining multiple load sets based on the backup strategy and the current load of the load objects includes: determining the number of target load types in the backup strategy as a target number, and determining the filtering order in the backup strategy according to the priority of the target load types; according to the filtering order, performing preset processing on the objects to be backed up for a target number of rounds based on the current load of multiple load objects corresponding to the target load types, and obtaining a corresponding load set to be determined after each round of preset processing, wherein the preset processing includes classification processing and filtering processing, and the load set to be determined contains one load object and the object to be backed up corresponding to the load object; and determining the load set to be determined obtained after the last round of preset processing as a load set, wherein the number of load sets to be determined obtained in each round of preset processing is multiple. The advantage of this setting is that by using the load sets determined according to the preset processing, filtering order, and current load size, the load objects that affect the backup speed involved in the backup process can be used in a balanced manner, avoiding backup performance bottlenecks and fluctuations in backup speed caused by excessive current load of load objects.
[0037] like Figure 2 As shown, the backup method provided in Embodiment 2 of the present invention specifically includes the following steps:
[0038] S201. Determine the load type of the information to be backed up and the load object, and determine multiple target load types from the load types, and determine the priority of each target load type, and determine the backup strategy according to the priority.
[0039] The backup strategy includes the target load type.
[0040] For example, if the object to be backed up is a virtual machine, and the load type includes host machine, production storage, backup agent, and backup media, then the target load type can be determined as host machine, production storage, and backup agent. If the priority of these target load types is that production storage has a higher priority than host machine, and host machine has a higher priority than backup agent, then the backup strategy can be to first determine the backup order based on production storage, then determine the backup order based on host machine, and finally determine the backup order based on backup agent.
[0041] S202. Determine the number of target load types in the backup strategy as the target number, and determine the filtering order in the backup strategy according to the priority of the target load types.
[0042] For example, as described above, the target quantity can be determined to be 3, and the filtering order is to first filter the load objects corresponding to the production storage, then filter the load objects corresponding to the host machine, and finally filter the load objects corresponding to the backup agent.
[0043] S203. According to the filtering order, based on the current load of multiple load objects corresponding to the target load type, the objects to be backed up are processed in a target number of rounds of preset processing, and after each round of preset processing, the corresponding load set to be determined is obtained.
[0044] The preset processing includes classification processing and filtering processing, and the load set to be determined includes a load object and a backup object corresponding to the load object.
[0045] Specifically, the selection process can be based on the filtering order and the current load of each load object to perform pre-processing to obtain the load set to be determined. For example, if the filtering order is as shown in the previous example, multiple objects to be backed up can be classified first. That is, according to the load object corresponding to the production storage, the objects to be backed up can be divided into multiple sets. Each set contains a load object corresponding to the production storage and the object to be backed up corresponding to that load object. The load objects in each set are different. Then, the set corresponding to the smallest current load is retained. This set is the load set to be determined. Correspondingly, the retained set is classified a second time according to the load object corresponding to the host machine, and a second filtering process is performed (retaining the set corresponding to the smallest current load). The retained set is classified a third time according to the load object corresponding to the backup agent, and a third filtering process is performed (retaining the set corresponding to the smallest current load). This yields the load set to be determined corresponding to the third pre-processing.
[0046] Optionally, the step of performing a target number of preset processing rounds on the objects to be backed up according to the filtering order and the current load of multiple load objects corresponding to the target load type, and obtaining a corresponding set of loads to be determined after each round of preset processing, includes: for each round of the target number of rounds of preprocessing, determining the current load of multiple load objects corresponding to the current target load type according to the filtering order, and performing preset processing on the target objects to be backed up to obtain the set of loads to be determined corresponding to the current round; wherein, for the first round of preprocessing, the target objects to be backed up include the objects to be backed up; for the second round to the target number of rounds of preprocessing, the target objects to be backed up include the objects to be backed up corresponding to the smallest current load in the set of loads to be determined obtained from the preset processing of the previous round; the load objects included in the set of loads to be determined obtained from the preset processing of each round are different. The advantage of this setting is that by performing the second round of preset processing and the preset processing after the second round based on the result of the preset processing of the previous round, it is possible to retain the objects to be backed up that do not affect the backup speed.
[0047] For example, if the filtering order is as described above, the load objects corresponding to the production storage include DataStore1 and DataStore2, the load objects corresponding to the host machine include Esxi1 and Esxi2, the load objects corresponding to the backup agent include Agent1 and Agent2, and the objects to be backed up include virtual machine 1 (VM1), virtual machine 2 (VM2), ..., virtual machine 8 (VM8). The relevant parameters of the virtual machines are shown in Table 1 below, which is the virtual machine information table.
[0048] Table 1 Virtual Machine Information Table
[0049] virtual machine Host machine / production storage Backup agent / backup media VM1 Esxi1 / DataStore1 Agent1 / Media1 VM2 Esxi1 / DataStore2 Agent1 / Media1 VM3 Esxi2 / DataStore1 Agent1 / Media1 VM4 Esxi2 / DataStore2 Agent1 / Media1 VM5 Esxi1 / DataStore1 Agent2 / Media1 VM6 Esxi1 / DataStore2 Agent2 / Media1 VM7 Esxi2 / DataStore1 Agent2 / Media1 VM8 Esxi2 / DataStore2 Agent2 / Media1
[0050] Three rounds of preset processing are required. The preset processing process can be as follows:
[0051] 1) In the first round, virtual machines can be classified according to production storage to obtain set 1 {DataStore1: (VM1, VM3, VM5, VM7)} and set 2 {DataStore2: (VM2, VM4, VM6, VM8)}. Then, a filtering process is performed, that is, the tasks that are being backed up are checked. If it is determined that the current load of DataStore1 is less than the current load of DataStore2, then set 1 is retained. Set 1 is the load set to be determined after the preset processing in the first round.
[0052] 2) In the second round, based on set 1, virtual machines can be classified according to the host machine to obtain set 3 {Esxi1: (VM1, VM5)} and set 4 {Esxi2: (VM3, VM7)}. Then, a filtering process is performed. If it is determined that the current load of Esxi1 is less than the current load of Esxi2, set 3 is retained. Set 3 is the load set to be determined after the preset processing in the second round.
[0053] 3) In the third round, based on set 3, virtual machines can be classified according to backup agents to obtain set 5 {Agent1: (VM1)} and set 6 {Agent2: (VM5)}. Then, a filtering process is performed. If it is determined that the current load of Agent1 is less than the current load of Agent2, set 5 is retained. Set 5 is the load set to be determined after the preset processing in the third round.
[0054] S204. The set of undetermined loads obtained after the last round of preset processing is determined as the load set.
[0055] In each round of preset processing, the number of load sets to be determined is multiple.
[0056] For example, as described in the example above, set 5 is the load set.
[0057] S205. Using the backup strategy and the multiple load sets, back up the object to be backed up.
[0058] Optionally, the objects to be backed up include at least: virtual machines, files, and databases. This configuration allows the method to be adapted to backing up various forms of data, expanding its application scenarios.
[0059] The backup method provided in this invention can reasonably preset priorities and determine backup strategies based on factors affecting backup speed, thereby improving backup efficiency. By utilizing a load set determined according to preset processing and filtering order and current load size, the load objects affecting backup speed involved in the backup process are used in a balanced manner, avoiding backup performance bottlenecks caused by excessive current load of load objects, which would lead to fluctuations in backup speed. Compared with traditional backup methods, this method has stronger backup speed stability and can maintain a speed close to the optimal range, thus improving backup efficiency.
[0060] Example 3
[0061] Figure 3This is a flowchart of another backup method provided in Embodiment 3 of the present invention. The technical solution of the present invention is further optimized based on the above optional technical solutions, and provides a further specific way to back up data.
[0062] like Figure 3 As shown, another backup method provided in Embodiment 2 of the present invention specifically includes the following steps:
[0063] S301. Determine the load type of the information to be backed up and the load object, and determine multiple target load types from the load types, and determine the priority of each target load type, and determine the backup strategy according to the priority.
[0064] S302. Determine the number of target load types in the backup strategy as the target number, and determine the filtering order in the backup strategy according to the priority of the target load types.
[0065] S303. According to the filtering order, based on the current load of multiple load objects corresponding to the target load type, the objects to be backed up are processed in a target number of rounds of preset processing, and after each round of preset processing, the corresponding set of loads to be determined is obtained.
[0066] S304. The set of loads to be determined after the last round of preset processing is determined as the load set.
[0067] S305. Determine whether the current load amount of each load object in the plurality of load sets is the same. If yes, proceed to step 306; otherwise, proceed to step 307.
[0068] S306. Using a preset filtering method, determine the first target backup object from the multiple load sets, and execute 309.
[0069] For example, if the preset filtering method is random determination, the load set is set 7{Agent1:
[0070] If we have set 7 {Agent2: (VM4)} and set 8 {Agent2: (VM4)}, and Agent1's current load is the same as Agent2's current load, then we can randomly determine VM6 in set 7 as the first target backup object.
[0071] S307. Determine the set of loads corresponding to the smallest current load as the target load set.
[0072] For example, if the load set is set 9 {Agent1: (VM3 and VM2)} and set 10 {Agent2: (VM7 and VM4)}, and the current load of Agent1 is greater than the current load of Agent2, then set 10 can be determined as the target load set.
[0073] S308. If there are multiple objects to be backed up corresponding to the load objects in the target load set, then the second target backup object is determined from the target load set using the preset filtering method.
[0074] The target backup object further includes the second target backup object.
[0075] For example, as described above, if the preset filtering method is random selection, since set 10 contains two objects to be backed up, VM4 (virtual machine 4) can be randomly selected as the second target backup object.
[0076] S309. Back up the target backup object and determine whether the unbacked-up object to be backed up is the last unbacked-up object to be backed up. If not, proceed to step 301; if yes, proceed to step 310.
[0077] The target backup object includes the first target backup object.
[0078] For example, as described above, if virtual machine 6 is being backed up, and several other virtual machines remain unbacked up, it means that virtual machine 6 is not the last unbacked-up object. Therefore, the process can be repeated from step 301 until the number of unbacked-up objects is 1, meaning the current unbacked-up object is the last unbacked-up object. The number of virtual machines being backed up simultaneously must not exceed the set backup task limit. Once one virtual machine is backed up, the next virtual machine's backup is performed according to the above steps.
[0079] S310. Directly back up the last unbacked-up object to be backed up.
[0080] For example, as described above, when the number of unbacked-up objects to be backed up is 1, the unbacked-up object can be backed up directly.
[0081] The backup method provided in this embodiment of the invention achieves dynamic and reasonable adjustment of the backup order of the objects to be backed up by repeatedly executing the relevant steps of determining the information to be backed up and the load type of the load objects. It also further ensures the logical integrity of the backup method. Compared with traditional backup methods, the backup speed of this method is more stable and can be kept within a range close to the optimal speed, thereby improving the backup efficiency.
[0082] Example 4
[0083] Figure 4 This is a schematic diagram of a backup device provided in Embodiment 4 of the present invention. Figure 4 As shown, the device includes: a backup strategy determination module 401, a load set determination module 402, and a backup module 403, wherein:
[0084] A backup strategy determination module is used to determine the load type of the information to be backed up and the load objects, and to determine the backup strategy according to the load type, wherein the information to be backed up includes multiple objects to be backed up and multiple load objects corresponding to each object to be backed up;
[0085] The load set determination module is used to determine multiple load sets based on the backup strategy and the current load of the load object. The load set includes at least one load object and a backup object corresponding to the at least one load object. The current load represents the number of backup objects currently being backed up corresponding to the load object.
[0086] The backup module is used to back up the object to be backed up using the backup strategy and the multiple load sets.
[0087] The backup device provided in this embodiment of the invention takes into account the impact of the current load of the load objects on the backup speed when there are multiple objects to be backed up. By utilizing the backup strategy and the load set determined by the current load, it can prioritize backing up the objects to be backed up corresponding to the smaller current load. Compared with traditional backup methods, the backup speed of this method is more stable and can be kept within a range close to the optimal speed, thereby improving the backup efficiency.
[0088] Optionally, the backup strategy determination module includes:
[0089] A backup strategy determination unit is configured to determine multiple target load types from the load types, determine the priority of each target load type, and determine a backup strategy based on the priority, wherein the backup strategy includes the target load types.
[0090] Optionally, the load set determination module includes:
[0091] The filtering order determination unit is used to determine the number of target load types in the backup strategy as the target number, and to determine the filtering order in the backup strategy according to the priority of the target load types.
[0092] The first set determination unit is used to perform preset processing on the objects to be backed up in a target number of rounds according to the filtering order and the current load of multiple load objects corresponding to the target load type, and to obtain the corresponding load set to be determined after each round of preset processing. The preset processing includes classification processing and filtering processing. The load set to be determined contains one load object and the object to be backed up corresponding to the load object.
[0093] The second set determination unit is used to determine the load set to be determined obtained after the preset processing of the last round as the load set, wherein the number of load sets to be determined obtained from the preset processing of each round is multiple.
[0094] Optionally, the step of performing a target number of rounds of preset processing on the objects to be backed up according to the filtering order and the current load of multiple load objects corresponding to the target load type, and obtaining a corresponding set of loads to be determined after each round of preset processing, includes: for each round of the target number of rounds of preprocessing, determining the current load of multiple load objects corresponding to the current target load type according to the filtering order, and performing preset processing on the target objects to be backed up to obtain the set of loads to be determined corresponding to the current round; wherein, for the first round of preprocessing, the target objects to be backed up include the objects to be backed up; for the second round to the target number of rounds of preprocessing, the target objects to be backed up include the objects to be backed up corresponding to the smallest current load in the set of loads to be determined obtained from the preset processing of the previous round; the load objects included in the set of loads to be determined obtained from the preset processing of each round are different.
[0095] Optionally, the backup module includes:
[0096] The first object determination unit is used to determine a first target backup object from the multiple load sets if the current load amount of each load object is the same in the multiple load sets, using a preset filtering method.
[0097] The backup unit is used to back up the target backup object and determine whether the unbacked-up object to be backed up is the last unbacked-up object to be backed up. If not, the relevant steps of determining the information to be backed up and the load type of the load object are repeated. The target backup object includes the first target backup object.
[0098] Optionally, the backup module also includes:
[0099] The target set determination unit is used to determine the load set corresponding to the smallest current load as the target load set after the first target backup object is determined; if the current load amount of each load object in the plurality of load sets is not completely the same.
[0100] The second object determination unit is used to determine a second target backup object from the target load set if there are multiple backup objects corresponding to the load objects in the target load set, using the preset filtering method, wherein the target backup object also includes the second target backup object.
[0101] Optionally, the objects to be backed up include at least: virtual machines, files, and databases.
[0102] The backup apparatus provided in the embodiments of the present invention can execute the backup method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
Claims
1. A backup method, characterized in that, include: Determine the load type of the information to be backed up and the load objects, and determine the backup strategy based on the load type, wherein the information to be backed up includes multiple objects to be backed up and multiple load objects corresponding to each object to be backed up; Based on the backup strategy and the current load of the load object, multiple load sets are determined, wherein each load set contains at least one load object and a backup object corresponding to the at least one load object, and the current load represents the number of backup objects currently being backed up corresponding to the load object; The backup strategy and the multiple load sets are used to back up the object to be backed up; The step of determining the backup strategy based on the load type includes: Multiple target load types are determined from the load types, and the priority of each target load type is determined. A backup strategy is determined based on the priority. The step of determining multiple load sets based on the backup strategy and the current load of the load object includes: The number of target load types in the backup strategy is determined as the target number, and the filtering order in the backup strategy is determined according to the priority of the target load types. According to the filtering order, based on the current load of multiple load objects corresponding to the target load type, the objects to be backed up are subjected to a target number of preset processing rounds, and after each round of preset processing, a corresponding set of loads to be determined is obtained. The preset processing includes classification processing and filtering processing. The set of loads to be determined contains one load object and the object to be backed up corresponding to the load object. The set of loads to be determined after the last round of preset processing is defined as the load set. The number of load sets to be determined obtained from each round of preset processing is multiple.
2. The method according to claim 1, characterized in that, The step involves, according to the filtering order, performing a target number of rounds of preset processing on the objects to be backed up based on the current load size of multiple load objects corresponding to the target load type, and obtaining a corresponding set of loads to be determined after each round of preset processing, including: For each round in the preset processing of the target number of rounds, the current load of multiple load objects corresponding to the current target load type is determined according to the filtering order, and the target objects to be backed up are subjected to preset processing to obtain the load set to be determined corresponding to the current round. Specifically, for the first round of preset processing, the target backup object includes the backup object; for the second round to the target number of rounds of preset processing, the target backup object includes the backup object corresponding to the smallest current load in the load set to be determined obtained from the preset processing of the previous round; the load objects included in the load set to be determined obtained from the preset processing of each round are different.
3. The method according to claim 1, characterized in that, The process of backing up the object to be backed up using the backup strategy and the multiple load sets includes: If the current load amount of each load object is the same in the plurality of load sets, then a first target backup object is determined from the plurality of load sets using a preset filtering method; The target backup object is backed up, and it is determined whether the unbacked-up object to be backed up is the last unbacked-up object to be backed up. If not, the relevant steps of determining the information to be backed up and the load type of the load object are repeated. The target backup object includes the first target backup object.
4. The method according to claim 3, characterized in that, After determining the first target backup object, the process also includes: If the current load amount of each load object in the plurality of load sets is not exactly the same, then the load set corresponding to the smallest current load amount is determined as the target load set; If there are multiple objects to be backed up corresponding to the load objects in the target load set, then the second target backup object is determined from the target load set using the preset filtering method, wherein the target backup object also includes the second target backup object.
5. The method according to any one of claims 1-4, characterized in that, The objects to be backed up include at least: virtual machines, files, and databases.
6. A backup apparatus for implementing the backup method according to any one of claims 1-5, characterized in that, include: A backup strategy determination module is used to determine the load type of the information to be backed up and the load objects, and to determine the backup strategy according to the load type, wherein the information to be backed up includes multiple objects to be backed up and multiple load objects corresponding to each object to be backed up; The load set determination module is used to determine multiple load sets based on the backup strategy and the current load of the load object. The load set includes at least one load object and a backup object corresponding to the at least one load object. The current load represents the number of backup objects currently being backed up corresponding to the load object. The backup module is used to back up the object to be backed up using the backup strategy and the multiple load sets.
Citation Information
Patent Citations
Data backup method and device, computer equipment and storage medium
CN114116318A
Data backup method, system and device and storage medium
CN114546714A