Method, apparatus and computer program product for data backup
By obtaining the client attributes and expected time window, and using the prediction model to determine the backup time, it solves the problems of complex configuration of traditional data backup strategies and system load imbalance, achieves automatic scheduling and flexibility, and reduces manual workload.
Patent Information
- Application Number
- CN201911284829.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-13
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-12-13
AI Technical Summary
Traditional data backup strategies are complex to configure and costly, making it difficult to complete backups within the expected time window. As the environment changes, the system load becomes unbalanced, making it difficult for users to maintain.
By obtaining the current value of the client's properties and the expected time window, using a predictive model to determine the backup duration, and automatically scheduling the backup within the specified time window, adapting to client changes does not require a lot of manual work.
It realizes automatic scheduling of backups within a specified time window, reduces manual workload, improves the flexibility and maintenance convenience of backup strategies, and avoids system load imbalance.
Smart Images

Figure CN112988455B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to computer technology, and more particularly to methods, devices, and computer program products for data backup. Background Art
[0002] With the development of information technology, the importance of data is increasing. Data backup can prevent data loss due to operational errors or system failures. At the same time, as the data increases, the number of clients that need backup also increases. Therefore, data backup strategy (especially the scheduling of backup for clients) is an important part of the backup system. Therefore, a proper data backup strategy configuration mechanism is needed. Summary of the invention
[0003] Embodiments of the present disclosure provide a method, an apparatus, and a computer program product for data backup.
[0004] In a first aspect of the present disclosure, a method for data backup is provided. The method includes: obtaining a corresponding current value of an attribute associated with a corresponding backup of at least one client in a backup system and an expected time window for performing the corresponding backup; determining a corresponding duration of the corresponding backup based on the corresponding current value; and determining a corresponding backup time for performing the corresponding backup on the at least one client based on the corresponding duration and the expected time window.
[0005] In a second aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit and at least one memory. The at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. The instructions, when executed by the at least one processing unit, cause the device to perform an action, the action comprising: obtaining a corresponding current value of an attribute associated with a corresponding backup of at least one client in a backup system and an expected time window for performing the corresponding backup; determining a corresponding duration of the corresponding backup based on the corresponding current value; and determining a corresponding backup time for performing the corresponding backup on the at least one client based on the corresponding duration and the expected time window.
[0006] In a third aspect of the present disclosure, a computer program product is provided, which is tangibly stored on a non-transitory computer-readable medium and includes machine-executable instructions, which, when executed, cause a machine to implement any step of the method described in the first aspect of the present disclosure.
[0007] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the present disclosure, nor is it intended to limit the scope of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present disclosure.
[0009] Figure 1 A schematic diagram showing an example of a backup environment according to some embodiments of the present disclosure;
[0010] Figure 2 A flowchart of a method for data backup according to some embodiments of the present disclosure is shown;
[0011] Figure 3 A schematic diagram showing examples of properties according to some embodiments of the present disclosure;
[0012] Figure 4 A flowchart showing a method of using a prediction model according to some embodiments of the present disclosure is shown;
[0013] Figure 5 A schematic diagram showing an example of a backup time determined in a first backup mode according to some embodiments of the present disclosure;
[0014] Figure 6 A schematic diagram showing an example of a backup time determined in a second backup mode according to some embodiments of the present disclosure; and
[0015] Figure 7 A schematic block diagram of an example device that may be used to implement embodiments of the present disclosure is shown.
[0016] In the various drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION
[0017] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0018] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0019] Traditionally, the configuration of data backup policies has resulted in a lot of complex and costly manual work, as client protection management and backup planning need to consider business impact and system load, and require frequent adjustments as clients and environments change.
[0020] Although traditional backup systems can guide users on how to manually configure data backup strategies for their clients smoothly, the reality is not so ideal. Many users still complain that they cannot complete all backups for their clients within their expected time window. Due to the ever-changing clients and businesses of users, some users even report system crashes after the system has been running for a period of time. In addition, as the environment changes, the configuration of the original data backup strategy becomes worse, and the backup system load is seriously unbalanced. At the same time, users also complain that the data backup strategy is difficult to maintain.
[0021] According to an exemplary embodiment of the present disclosure, an improved solution for data backup is proposed. In the solution, a corresponding current value of an attribute associated with a corresponding backup of at least one client in a backup system and an expected time window for performing the corresponding backup can be obtained, and a corresponding duration of the corresponding backup can be determined based on the corresponding current value. Thus, a corresponding backup time for performing the corresponding backup on at least one client can be determined based on the corresponding duration and the expected time window.
[0022] In this way, the duration of a backup to be performed can be easily predicted based on the attributes associated with the client's backup, and on this basis the backup can be automatically scheduled within a specified desired time window. This allows data backup policies to be updated without requiring extensive manual work when clients change, such as when clients are added or removed.
[0023] In the following, we will combine Figure 1-Figure 7 A specific example of the present scheme is described in more detail. Figure 1A schematic diagram of an example of a backup environment 100 according to some embodiments of the present disclosure is shown. The backup environment 100 includes a backup system 110 and a plurality of clients 130-1 to 130-M (where M is an integer greater than 0, hereinafter collectively referred to as "clients 130"). According to an embodiment of the present disclosure, the backup system 110 is configured to back up data of each client 130.
[0024] The backup system 110 includes a management device 120. The management device 120 may include, but is not limited to, any device with computing and storage capabilities, such as a cloud computing device, a mainframe computer, a personal computer, a desktop computer, a laptop computer, a tablet computer, and a personal digital assistant. Although not shown, the backup system 110 may also include one or more storage devices for storing the backed up data. The storage device may include, but is not limited to, any device with storage capabilities, such as a cloud storage device, a distributed storage device, a disk, an optical disk, etc.
[0025] The management device 120 is configured to manage the backup system 110. According to an embodiment of the present disclosure, the management device 120 can manage a data backup policy. Specifically, the management device 120 can predict the duration of the next round of backup of the client based on the attribute value of the client 130. In addition, the management device 120 can also appropriately arrange the backup time of a group of clients 130 in the expected time window.
[0026] In the following, we will combine Figure 2-Figure 6 The operations performed by the management device 120 are described in more detail. Figure 2 1 is a flow chart of a method 200 for data backup according to some embodiments of the present disclosure. The method 200 may be performed by, for example, Figure 1 For ease of discussion, the following will refer to the management device 120. Figure 1 The method 200 is described. It should be understood that the method 200 may further include additional steps not shown and / or may omit the steps shown, and the scope of the present disclosure is not limited in this respect.
[0027] At 210, the management device 120 obtains corresponding current values of properties associated with corresponding backups of at least one client 130 in the backup system 110 and an expected time window for performing the corresponding backup. In some embodiments, the management device 120 may determine the clients 130 to be backed up within the time interval at a configurable time interval, and obtain the property values and expected time windows associated with the backups of these clients 130. For example, the management device 120 may determine the clients 130 to be backed up on that day every day, and obtain the property values and expected time windows associated with the backups of these clients 130. In this case, the determination of the client 130 may be based on the backup date of the client 130. The backup date may be directly specified by the client 130, or may be calculated based on an initial backup date specified by the client 130 and a frequency (e.g., daily, weekly, monthly, etc.) of performing the backup.
[0028] The backup system 110 records the statistical information of the backup status and characteristic data of each client 130, and these statistical information can reflect the implicit impact of system load, client behavior (e.g., change rate) and network. The management device 120 can select the attributes that are critical to the backup of the client 130 from these statistical information and obtain the current values of these attributes.
[0029] These attributes may include, but are not limited to: client type (e.g., virtual machine, file system, SQL, Oracle, etc.), client settings (e.g., custom settings of client 130, such as excluding certain data on client 130 from backup), total protected bytes (the number of bytes of all data to be backed up by client 130), total protected files (the number of all files to be backed up by client 130), data encryption level (the encryption level of data of client 130), and backup target (e.g., the target server to which data of client 130 is to be backed up). The values of the above attributes of different clients 130 backed up by backup system 110 may be different, and the value of a certain attribute of the same client 130 may also change at different times (e.g., client settings, total protected bytes, total protected files, etc.).
[0030] For example, Figure 3 Schematic diagram 300 showing examples of properties according to some embodiments of the present disclosure. Figure 3 , some attributes and attribute values acquired by the management device 120 are shown. It should be understood that Figure 3 The attributes and attribute values given in are only examples. The scope of the embodiments of the present disclosure is not limited in this respect.
[0031] In addition to obtaining the current value of the associated attribute, management device 120 may also obtain from client 130 the desired time window for performing backup on client 130. For example, client 130 may specify a time period available for performing backup (e.g., midnight or any time that does not affect business, etc.).
[0032] In addition, in some embodiments, one or more clients 130 having the same expected time window can form a client group. On the one hand, the client group can be specified by the user. For example, the administrator of a bank can specify that all clients of the bank belong to the same client group and specify the same expected time window for all clients.
[0033] On the other hand, the client groups may be automatically divided by the backup system 110. For example, the backup system 110 may group one or more clients 130 having the same expected time window into the same client group. The determination of the backup time described below is performed on the clients in the same client group in the same expected time window.
[0034] At 220, the management device 120 determines the corresponding duration of the corresponding backup of the at least one client 130 based on the obtained corresponding current value. The management device 120 can use a variety of ways to determine the duration. In some embodiments, to determine the duration, the management device 120 can use a prediction model that can characterize the correlation between the value of the attribute and the duration of the backup, such as various types of linear regression models.
[0035] The following will refer to Figure 4 Flowchart 400 describing a method of using a prediction model according to some embodiments of the present disclosure. At 410, the management device 120 can obtain a trained prediction model. The prediction model can be configured as needed, and the prediction model is trained using training data to determine the values of the parameters of the prediction model. In order to better understand the prediction model, the prediction model and the training of the prediction model will be briefly introduced below.
[0036] Since it is necessary to predict the exact value of the duration of the backup to be performed, a supervised learning method using, for example, a generalized linear regression model is suitable as a prediction model. Given the training data input and output, the supervised learning method can learn a function that can best approximate the relationship between the input and output. In this article, the generalized linear regression model is as follows:
[0037]
[0038] Where f(w) represents the objective function that depends on the weight w, x i represents the training data, y iRepresents the corresponding label of the training data (which is expected to be predicted), L(W;) represents the loss function that measures the error of the model with respect to the training data, λR(w) represents the regularization term used to control the complexity of the model, λ represents a fixed regularization parameter (which is greater than 0), λ defines the trade-off between minimizing the loss (i.e., training error) and minimizing the complexity of the model (i.e., avoiding overfitting), and n represents the number of samples of the training data.
[0039] Such a prediction model can be trained by any device with computing capabilities, such as a computing device, a server, an edge computing node, etc., external to the management device 120. In some cases, the prediction model may also be trained by the management device 120. In the following, for the convenience of discussion only, the training of the prediction model is described as being performed by the management device 120. Specifically, the management device 120 can obtain multiple previous values of the attributes of multiple clients 130 in the backup system 110 and multiple previous durations of the corresponding backups of the multiple clients 130 as training data. The management device 120 can use these training data to train the prediction model so that the prediction model can best approximate the relationship between the attribute value and the duration. In some embodiments, the previous value may not be a numerical value, for which the management device 120 can hash the previous value and apply the hash result to the prediction model to determine the duration.
[0040] After the training is completed, the prediction model can be deployed to the management device 120 and used by the management device 120 for duration prediction. Figure 4 In 420, the management device 120 applies the corresponding current value of at least one client 130 to the prediction model to generate a corresponding duration. In some embodiments, the management device 120 may hash the current value and apply the hash result to the prediction model to determine the duration. Since the prediction model can accurately reflect the relationship between the attribute value and the duration, the duration predicted based on the current attribute value has a relatively high accuracy.
[0041] Continue to refer back Figure 2 At 230, the management device 120 determines a corresponding backup time to perform a corresponding backup for the at least one client 130 based on the corresponding duration of the at least one client 130 and the determined expected time window. In some embodiments, the management device 120 may determine the backup time of the client 130 to have the predicted duration and fall within the expected time window.
[0042] In some embodiments, the backup system 110 can provide two backup modes: a balanced first backup mode and a fast second backup mode. In the first backup mode, the backup time is evenly distributed in the expected time window. In the second backup mode, the backup system 110 performs backup under maximum workload. The backup mode can be automatically selected by the management device 120 (for example, based on the system load condition) or specified by the client 130. In addition, as described above, in some embodiments, one or more clients 130 with the same expected time window can form a client group, and the clients 130 in the same client group can have the same backup mode. Furthermore, the backup mode can be applicable to all client groups in the backup system 110, or it can be configured separately for a single client group.
[0043] The management device 120 may determine a backup mode associated with at least one client 130, and determine a backup time based on the backup mode. In the case where there is only a single client in the client group, since the backup of the single client will be performed at the first time (i.e., the beginning of the expected time window) in any mode, it will not be discussed in detail here.
[0044] In the case where there are multiple clients in the client group, the management device 120 may determine a backup mode associated with the multiple clients 130, the backup mode indicating how multiple backup times of the multiple clients 130 in the same client group are distributed within an expected time window. In the case where the backup mode is the first backup mode, the management device 120 may determine multiple backup times of the multiple clients 130 based on the corresponding durations and the expected time window, so that the multiple backup times are evenly distributed within the expected time window.
[0045] For example, Figure 5 Schematic diagram 500 shows an example of a backup time determined in a first backup mode according to some embodiments of the present disclosure. Figure 5 As shown in , the expected time window is from 0:00 to 6:00, and the configurable time granularity for triggering the backup is 30 minutes. Backups 1 to 8 corresponding to clients 1 to 8 are evenly distributed in the expected time window. Although the number of concurrent threads that can be used to perform backups in the backup system 110 is limited to 4, not all threads are used to perform backups. It can be seen that in the first backup mode, the entire expected time window is fully utilized to smoothly and evenly arrange the backups to ensure a small system load and network balance.
[0046] In addition, when the backup mode is the second backup mode, the management device 120 can determine multiple backup times based on the duration and the expected time window, so that the workload of the backup system 110 performing backups simultaneously reaches the load upper limit of the backup system 110.
[0047] For example, Figure 6 Schematic diagram 600 shows an example of a backup time determined in a second backup mode according to some embodiments of the present disclosure. Figure 5 , Figure 6 The expected time window in is from 0:00 to 6:00, the configurable time granularity for triggering the backup is 30 minutes, and the number of concurrent threads that can be used to perform the backup in the backup system 110 is limited to 4. Figure 5 Different in Figure 6 In the process, all threads are fully utilized to perform the backup, so as to complete the backup as quickly as possible. It should be understood that Figure 5 and 6 The data backup strategy given in the example is only an example. The scope of the embodiments of the present disclosure is not limited in this respect.
[0048] In addition, in some embodiments, in the initial stage, since there is no training data, it is impossible to train the prediction model to determine the accurate duration, thereby determining the backup time. In this case, the management device 120 can use the fast second backup mode to perform a backup on the client 130, and perform a backup at a predetermined time interval (e.g., every hour) to collect training data as quickly as possible, and actively back up to provide a good user experience.
[0049] In this way, the solution can accurately predict the duration of each client's backup by using the trained prediction model. In addition, the solution can also automatically manage and adjust the backup time, avoid frequent manual work, and provide a good user experience.
[0050] Figure 7 Schematic block diagram of an example device 700 that can be used to implement embodiments of the present disclosure is shown. Figure 1 The management device 120 shown can be implemented by a device 700. As shown, the device 700 includes a central processing unit (CPU) 710, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 720 or loaded from a storage unit 780 into a random access memory (RAM) 730. In the RAM 730, various programs and data required for the operation of the device 700 can also be stored. The CPU 710, the ROM 720, and the RAM 730 are connected to each other via a bus 740. An input / output (I / O) interface 750 is also connected to the bus 740.
[0051] A number of components in the device 700 are connected to the I / O interface 750, including: an input unit 760, such as a keyboard, a mouse, etc.; an output unit 770, such as various types of displays, speakers, etc.; a storage unit 780, such as a disk, an optical disk, etc.; and a communication unit 790, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 790 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0052] The various processes and processing described above, such as method 200, may be performed by processing unit 710. For example, in some embodiments, method 200 may be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as storage unit 780. In some embodiments, part or all of the computer program may be loaded and / or installed on device 700 via ROM 720 and / or communication unit 790. When the computer program is loaded into RAM 730 and executed by CPU 710, one or more actions of method 200 described above may be performed.
[0053] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.
[0054] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0055] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0056] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0057] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0058] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0059] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0060] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0061] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for data backup, comprising: periodically determining, by a processor of the computing device, at least one client in the backup system for a corresponding backup within a predetermined time interval based on a backup date of the at least one client; obtaining, by the processor of the computing device, a respective current value of a property associated with the respective backup of the at least one client in the backup system and a desired time window for performing the respective backup specified by the respective client based on the performance of the respective client; Determining, by the processor of the computing device, a respective duration of the respective backup based on the respective current value, wherein determining the respective duration comprises: In response to determining that there is insufficient initial training data for creating the initial prediction model, generating sufficient initial training data as quickly as possible by performing a series of backups in the second backup mode so that the workload of the backup system performing backups simultaneously reaches a load limit of the backup system, In response to determining that sufficient initial training data exists for creating the initial prediction model, applying, by the processor of the computing device, the initial prediction model and performing backups at the predetermined time intervals to collect training data, updating, by the processor of the computing device, the initial prediction model using the training data, including determining values of parameters of the updated prediction model, the values including a relationship between a value of an attribute and a duration of a backup, wherein when the previous value is not a numerical value, performing, by the processor of the computing device, a hash operation on the previous value to generate a hash result, applying, by the processor of the computing device, the updated prediction model characterizing the correlation between the value of the attribute and the duration of the backup based on the hash result, wherein the updated prediction model comprises a linear regression model, the linear regression model comprising the training data, corresponding labels of the training data, a loss function for measuring an error in the linear regression model with respect to the training data, a fixed regularization parameter, and a trade-off between minimizing the loss and minimizing model complexity, wherein the fixed regularization parameter is greater than zero, and applying, by the processor of the computing device, the corresponding current value to the updated prediction model to generate the corresponding duration; determining, by the processor of the computing device, a corresponding backup time period for performing the corresponding backup for the at least one client based on the corresponding duration and the expected time window; and The processor of the computing device automatically schedules and executes the corresponding backup in the backup system for the at least one client within the expected time window based on the corresponding backup time period, wherein the backup system includes one or more storage devices, and the one or more storage devices include disks.
2. The method of claim 1, wherein the attributes include at least one of the following: client type, client settings, total number of protected bytes, total number of protected files, encryption level of data, and backup destination. 3 . The method of claim 1 , wherein the updated predictive model is updated based on: a plurality of previous values of an attribute of a plurality of clients in the backup system and a plurality of previous durations of corresponding backups of the plurality of clients.
4. The method of claim 1, wherein the updated prediction model comprises a linear regression model, the linear regression model comprising a regularization term for controlling the complexity of the linear regression model.
5. The method according to claim 1, wherein determining the corresponding backup time period comprises: A backup time for each of the at least one client is determined to have the corresponding duration and to fall within the corresponding expected time window.
6. The method of claim 1, wherein the at least one client comprises a plurality of clients, and determining the corresponding backup time period comprises: determining a backup mode associated with the plurality of clients, the backup mode indicating how a plurality of backup times of the plurality of clients are distributed within the expected time window; According to determining that the backup mode is the first backup mode, determining multiple backup times of the multiple clients based on the corresponding durations and the expected time window, so that the multiple backup times are evenly distributed in the expected time window; as well as According to determining that the backup mode is the second backup mode, the plurality of backup times are determined based on the duration and the expected time window.
7. The method of claim 4, wherein the linear regression model comprises: Where f(w) represents the objective function that depends on the weight w, x i represents the training data, y represents the corresponding label of the training data, and L(w;) represents the loss function for measuring the error in the model with respect to the training data, λR(w) represents the regularization term for controlling the complexity of the model, λ represents the fixed regularization parameter and defines the trade-off between minimizing the loss and minimizing the model complexity, and n represents the number of samples in the training data.
8. An electronic device, comprising: processor; a memory coupled to the processor to store instructions that, when executed by the processor, cause the processor to perform operations comprising: periodically determining, by the processor of the electronic device, at least one client in the backup system for a corresponding backup within a predetermined time interval based on a backup date of the at least one client; obtaining a respective current value of a property associated with the respective backup of the at least one client in the backup system and a desired time window for performing the respective backup specified by the respective client based on the performance of the respective client; Based on the corresponding current value, determining a corresponding duration of the corresponding backup, wherein determining the corresponding duration comprises: In response to determining that there is insufficient initial training data for creating the initial prediction model, generating sufficient initial training data as quickly as possible by performing a series of backups in the second backup mode so that the workload of the backup system performing backups simultaneously reaches a load limit of the backup system, In response to determining that sufficient initial training data exists for creating the initial prediction model, applying the initial prediction model and performing backups at the predetermined time intervals to collect training data, Updating the initial prediction model using the training data includes determining values of parameters of the updated prediction model, the values including a relationship between a value of an attribute and a duration of a backup, wherein when the previous value is not a numerical value, performing, by the processor of the electronic device, a hash operation on the previous value to generate a hash result, applying the updated prediction model characterizing the correlation between the value of the attribute and the duration of the backup based on the hash result, wherein the updated prediction model comprises a linear regression model, the linear regression model comprising the training data, corresponding labels of the training data, a loss function for measuring an error in the linear regression model with respect to the training data, a fixed regularization parameter, a trade-off between minimizing the loss and minimizing model complexity, wherein the fixed regularization parameter is greater than zero, and applying the corresponding current value to the updated prediction model to generate the corresponding duration; Determining, based on the corresponding duration and the expected time window, a corresponding backup time period for performing the corresponding backup on the at least one client; and The corresponding backup in the backup system is automatically scheduled and executed for the at least one client within the expected time window based on the corresponding backup time period, wherein the backup system includes one or more storage devices including disks.
9. The device of claim 8, wherein the attributes include at least one of: client type, client settings, total number of protected bytes, total number of protected files, encryption level of data, and backup destination.
10. The apparatus of claim 8, wherein the updated prediction model is updated based on: a plurality of previous values of an attribute of a plurality of clients in the backup system and a plurality of previous durations of corresponding backups of the plurality of clients.
11. The apparatus of claim 8, wherein the updated prediction model comprises a linear regression model comprising a regularization term for controlling the complexity of the linear regression model.
12. The apparatus of claim 8, wherein determining the corresponding backup time period comprises: A backup time for each of the at least one client is determined to have the corresponding duration and to fall within the corresponding expected time window.
13. The apparatus of claim 8, wherein the at least one client comprises a plurality of clients, and determining the corresponding backup time period comprises: determining a backup mode associated with the plurality of clients, the backup mode indicating how a plurality of backup times of the plurality of clients are distributed within the expected time window; According to determining that the backup mode is the first backup mode, determining multiple backup times of the multiple clients based on the corresponding durations and the expected time window, so that the multiple backup times are evenly distributed in the expected time window; as well as According to determining that the backup mode is the second backup mode, the plurality of backup times are determined based on the duration and the expected time window.
14. A non-transitory machine-readable storage medium having instructions stored therein, the instructions, when executed by a processor of a computing device, causing the processor to perform operations comprising: periodically determining at least one client in the backup system for a corresponding backup within a predetermined time interval based on a backup date of the at least one client; obtaining a respective current value of a property associated with the respective backup of the at least one client in the backup system and a desired time window for performing the respective backup specified by the respective client based on the performance of the respective client; Based on the corresponding current value, determining a corresponding duration of the corresponding backup, wherein determining the corresponding duration comprises: In response to determining that there is insufficient initial training data for creating the initial prediction model, generating sufficient initial training data as quickly as possible by performing a series of backups in the second backup mode so that the workload of the backup system performing backups simultaneously reaches a load limit of the backup system, In response to determining that sufficient initial training data exists for creating the initial prediction model, applying the initial prediction model and performing backups at the predetermined time intervals to collect training data, Updating the initial prediction model using the training data includes determining values of parameters of the updated prediction model, the values including a relationship between a value of an attribute and a duration of a backup, wherein when the previous value is not a numerical value, performing, by the processor of the computing device, a hash operation on the previous value to generate a hash result, applying the updated prediction model characterizing the correlation between the value of the attribute and the duration of the backup based on the hash result, wherein the updated prediction model comprises a linear regression model, the linear regression model comprising the training data, corresponding labels of the training data, a loss function for measuring an error in the linear regression model with respect to the training data, a fixed regularization parameter, a trade-off between minimizing the loss and minimizing model complexity, wherein the fixed regularization parameter is greater than zero, and applying the corresponding current value to the updated prediction model to generate the corresponding duration; Determining, based on the corresponding duration and the expected time window, a corresponding backup time period for performing the corresponding backup on the at least one client; and The corresponding backup in the backup system is automatically scheduled and executed for the at least one client within the expected time window based on the corresponding backup time period, wherein the backup system includes one or more storage devices including disks.
15. The non-transitory machine-readable storage medium of claim 14, wherein the attributes include at least one of: client type, client settings, total number of protected bytes, total number of protected files, encryption level of data, and backup destination.
16. The non-transitory machine-readable storage medium of claim 14, wherein the updated predictive model is updated based on: a plurality of previous values of an attribute for a plurality of clients in the backup system and a plurality of previous durations of corresponding backups for the plurality of clients.
17. The non-transitory machine-readable storage medium of claim 14, wherein the updated prediction model comprises a linear regression model comprising a regularization term for controlling the complexity of the linear regression model.
18. The non-transitory machine-readable storage medium of claim 14, wherein determining the corresponding backup time period comprises: A backup time for each of the at least one client is determined to have the corresponding duration and to fall within the corresponding expected time window.
19. The non-transitory machine-readable storage medium of claim 14, wherein the at least one client comprises a plurality of clients, and determining the corresponding backup time period comprises: determining a backup mode associated with the plurality of clients, the backup mode indicating how a plurality of backup times of the plurality of clients are distributed within the expected time window; According to determining that the backup mode is the first backup mode, determining multiple backup times of the multiple clients based on the corresponding durations and the expected time window, so that the multiple backup times are evenly distributed in the expected time window; as well as According to determining that the backup mode is the second backup mode, the plurality of backup times are determined based on the duration and the expected time window.
Citation Information
Patent Citations
Method and system for controlling data backup
CN108733508A
Method and apparatus for managing data backup, and computer program product
CN110058958A
Method and apparatus for data backup, and computer program product
CN110058966A
Recovery point objective (RPO) driven backup scheduling in a data storage management system
US20190278661A1
Predicting backup failures due to exceeding the backup window
US9798629B1
