Method, device and computer program product for managing backup data

By analyzing the historical operation information in the backup storage device and adjusting the expiration time of the data, the problem of repeated writing of data after expiration in the backup system is solved, and the efficiency and resource utilization of the backup system are improved.

CN112685222BActive Publication Date: 2024-09-13EMC IP HLDG CO LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910990225.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-17
Publication Date
2024-09-13
Estimated Expiration
2039-10-17

AI Technical Summary

Technical Problem

As the size of data that users need to back up increases, the efficiency of the backup system is affected, especially due to the problem that some backup data is repeatedly written after expiration, causing repeated deletion and writing operations to affect efficiency.

Method used

By obtaining the historical operation information of the target data in the backup storage device, determine whether the data will be rewritten in the subsequent time period, and adjust the expiration time of the data to set a longer expiration time for data that may be repeatedly written to avoid Repeat the write operation.

Benefits of technology

It improves the efficiency of the backup system, reduces the overhead of repeated writing and deletion operations, and optimizes the resource utilization of the backup system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112685222B
    Figure CN112685222B
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to a method, device, and computer program product for managing backup data. The method includes: obtaining historical information of multiple historical operations on target data in a backup storage device within a first time period, the historical information at least indicating the types and occurrence times of the multiple historical operations; determining whether the target data will be rewritten to the backup storage device within a second time period after the first time period based on the historical information; and in response to determining that the target data will be written to the backup storage device within the second time period, adjusting the expiration time of the target data in the backup storage device. Thus, the efficiency of the backup system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computers, and more particularly, to a method, device, and computer program product for managing backup data. Background Art

[0002] In recent years, with the development of computer technology, people are paying more and more attention to the security of data storage. Data backup has gradually become a common technology to ensure data security. As the scale of data that users need to back up becomes larger and larger, more and more data needs to be written to the backup storage device of the limited backup system. Therefore, how to improve the efficiency of the backup system has become a focus of current attention. Summary of the invention

[0003] An embodiment of the present disclosure provides a solution for managing backup data.

[0004] According to a first aspect of the present disclosure, a method for managing backup data is provided. The method includes: obtaining historical information of multiple historical operations on target data in a backup storage device within a first time period, the historical information at least indicating the types and occurrence times of the multiple historical operations; determining whether the target data will be rewritten to the backup storage device within a second time period after the first time period based on the historical information; and in response to determining that the target data will be written to the backup storage device within the second time period, adjusting the expiration time of the target data in the backup storage device.

[0005] According to a second aspect of the present disclosure, a device for managing backup data is proposed. The device includes: at least one processing unit; 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, make the device perform an action, the action including: obtaining historical information of multiple historical operations on target data in a backup storage device within a first time period, the historical information at least indicating the types and occurrence times of the multiple historical operations; determining whether the target data will be rewritten to the backup storage device within a second time period after the first time period based on the historical information; and in response to determining that the target data will be written to the backup storage device within the second time period, adjusting the expiration time of the target data in the backup storage device.

[0006] In a third aspect of the present disclosure, a computer program product is provided. The computer program product is stored in a non-transitory computer storage medium and includes machine executable instructions, which, when executed in a device, cause the device to perform 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 illustrating an example environment in which various embodiments of the present disclosure can be implemented;

[0010] Figure 2 A flowchart illustrating a process of managing backup data according to an embodiment of the present disclosure is illustrated;

[0011] Figure 3 A schematic diagram illustrating an example history information list according to an embodiment of the present disclosure is illustrated;

[0012] Figure 4 A schematic diagram of a historical write list according to an embodiment of the present disclosure is illustrated;

[0013] Figure 5 A flowchart illustrating a process of adjusting the expiration time according to an embodiment of the present disclosure; and

[0014] Figure 6 A schematic block diagram of an example device that may be used to implement embodiments of the present disclosure is illustrated. DETAILED DESCRIPTION

[0015] 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.

[0016] 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.

[0017] Figure 1 1 is a schematic diagram of an environment 100 in which embodiments of the present disclosure may be implemented. Figure 1 As shown, the environment 100 includes a computing device 120 and a backup storage device 130. The computing device 120 can receive data 110 to be backed up, and write the data 110 into the backup storage device 130 after pre-processing the data 110. Specifically, the computing device 120 can divide the data 110 into blocks according to a predetermined size, and such a size can be configured accordingly according to the requirements of different backup systems, for example.

[0018] Subsequently, the computing device 120 may also determine, for example, based on the hash value of the data in each data block, whether the data in the data block has been stored in the backup storage device 130. If the data in the data block has been stored in the backup storage device 130, the computing device 120 may avoid repeatedly writing the data block. Instead, the computing device 120 may write the data block and record the hash value of the data block for the next backup de-redundancy operation.

[0019] In some embodiments, considering the limited size of the backup storage device 130, the backup system may set an expiration time (e.g., one month) for the data blocks 140 stored in the backup storage device 130. It should be understood that the expiration time may be set accordingly according to the size of the backup storage device 130 and the user's backup requirements. When the expiration time of the data block 140 expires, that is, when the time when the data block 140 was last backed up has reached the expiration time, the backup system may, for example, delete the expired data block 140 from the backup storage device 130.

[0020] As discussed above, as the scale of data that users need to back up becomes larger and larger, more and more data needs to be written to the limited backup storage device 130 of the backup system. Some of the data previously backed up in the backup system needs to be replaced with new backup data, but some backup data may be repeatedly written to the backup storage device 130 in a short period of time after being deleted due to expiration. Therefore, such repeated deletion and writing will affect the efficiency of the backup system.

[0021] According to an embodiment of the present disclosure, a scheme for managing backup data is provided. In the scheme, historical information of multiple historical operations on target data in a backup storage device within a first time period is obtained, and the historical information at least indicates the types and occurrence times of the multiple historical operations; based on the historical information, it is determined whether the target data will be rewritten to the backup storage device within a second time period after the first time period; and in response to determining that the target data will be written to the backup storage device within the second time period, the expiration time of the target data in the backup storage device is adjusted. The embodiment of the present disclosure can set different expiration times for different target data, and set a longer expiration time for data that has a greater possibility of being repeatedly written. Based on this approach, when the data is backed up again later, because the data has a longer expiration time and is in an unexpired state, the embodiment of the present disclosure can save the overhead of writing the data to the backup storage device again, thereby improving the efficiency of the backup system.

[0022] The following will refer to Figures 2 to 5 The process of managing backup data according to an embodiment of the present disclosure is described below. Figure 2 FIG. 2 is a flowchart of a process 200 for managing backup data according to some embodiments of the present disclosure. The process 200 may be performed by, for example, Figure 1 The computing device 120 shown in FIG. 1 is implemented as shown in FIG.

[0023] In block 202 , the computing device 120 obtains history information of a plurality of history operations on target data in the backup storage device 130 within a first time period, wherein the history information at least indicates types and occurrence times of the plurality of history operations.

[0024] In some embodiments, the computing device 120 may monitor various operations on the target data within a predetermined first time period. Specifically, in response to historical operations on the target data within the first time period, the computing device 120 determines a hash value of the target data. The historical operations may include: a write operation based on a request to back up the target data, and a delete operation based on garbage collection of the target data due to expiration.

[0025] In some embodiments, computing device 120 may determine a hash value of the target data and store the type and occurrence time of the historical operation in association with the hash value. In some embodiments, computing device 120 may maintain information about historical operations of the target data based on a historical information list, for example.

[0026] Figure 3 FIG. 3 is a schematic diagram showing an example history information list 300 according to an embodiment of the present disclosure. Figure 3As shown, the history information list 300 may include a hash value 310 of the target data, and the types 320-1, 320-2, and 330-N (individually or collectively referred to as the operation type 320) and the time 330-1, 330-2, and 330-N (individually or collectively referred to as the occurrence time 330) of each subsequent operation on the target data. When each new operation occurs, the computing device 120 may, for example, add a new entry to the end of the history information list 300 to record the type and occurrence time corresponding to the operation. In some embodiments, the computing device 120 may store a history information list corresponding to each data block 140 in the backup storage device 130 in a storage device coupled thereto.

[0027] Continue to refer Figure 2 In block 204, the computing device 120 determines whether the target data will be rewritten to the backup storage device 130 in a second time period after the first time period based on the historical information. In some embodiments, the computing device 120 may determine whether the target data will be written again to the backup storage device in the subsequent second time period based on the deletion and writing rules reflected in the historical information. In some embodiments, the length of the second time period may be set accordingly according to the needs of the backup system to achieve a balance between avoiding duplicate writing and the available backup space of the backup system.

[0028] In some embodiments, computing device 120 may determine metrics for target data based on historical information. Examples of metrics may include:

[0029] The number of times the target data is written in the first time period. The computing device 120 may count the history information list 300 to determine the total number of times the target data is written in the first time period. The higher the total number, the more often the target data is rewritten. This metric may indicate the overall situation of the target data being rewritten in the first time period.

[0030] The time interval for writing the target data in the first time period. In some embodiments, the computing device 120 may determine the variance of the time intervals between the occurrence times of adjacent write operations in the history information list 300. The smaller the variance, the more likely the target data is rewritten at a relatively fixed frequency. This metric may indicate the degree of uniformity with which the target data is rewritten in the first time period.

[0031] The frequency at which the target data is written in a specific time period in the first time period. In some embodiments, the computing device 120 may select the frequency at which the target data is written in a recent shorter time period. The metric may indicate a trend in which the target data is rewritten, such as becoming more frequent or less frequent.

[0032] The time interval for deleting the target data within the first time period. In some embodiments, the computing device 120 may determine the average time interval between the occurrence times of adjacent deletion operations in the history information list 300. This metric may indicate how long the target data is retained, and how often it is removed from the backup storage device 130 due to expiration of the expiration time or manual deletion by the user.

[0033] The computing device 120 may use one or more of the above example metrics to predict whether the target data will be rewritten to the backup storage device 130 within the second time period. It should be understood that any other appropriate metrics may also be used to predict. In some embodiments, the computing device 120 may determine whether the target data will be rewritten to the backup storage device 130 within the second time period based on the determined metrics. In some embodiments, the computing device 120 may, for example, determine whether the target data will be rewritten within the second time period based on a rule-based method. In some embodiments, the computing device 120 may also use a machine learning method to predict whether the target data will be rewritten within the second time period.

[0034] Specifically, in some embodiments, the computing device 120 may utilize a machine learning model to process metrics to determine whether the target data will be written to the backup storage device within the second time period. The machine learning model is trained based on at least one of the following: a reference metric determined based on multiple historical operations on the reference data within a third time period, and an indication of whether the reference data is written to the backup storage device within a fourth time period after the third time period. Examples of machine learning models include, but are not limited to, various deep neural networks (DNNs), convolutional neural networks (CNNs), support vector machines (SVMs), decision trees, random forest models, and the like.

[0035] In some embodiments, the computing device 120 may divide the historical operation information of the target data in the backup storage device 130 into a specific part for input and a part as a training truth value. For example, the computing device 120 may use the metrics determined from the historical operation data of the target data between 18 months ago and 6 months ago in the partial storage device 130 as input features to the machine learning model. The computing device 120 may also determine whether the target data has been rewritten in the past 6 months based on the historical operation data in the past 6 months, and use the determination as the training target of the model. That is, through such training, the machine learning model can learn from the parameters of 1 year to predict whether data rewriting will occur in the next 6 months.

[0036] In some embodiments, the computing device 120 may also monitor in real time whether each data block 140 in the backup storage system 130 is rewritten in a subsequent fourth time period. For example, the computing device 120 may use the metrics determined from the historical information of the past year as input features of the machine learning model, and use the monitoring results of whether the data is rewritten in the next year as the training target. Based on this approach, the computing device 120 may also train the machine learning model so that it has the ability to predict whether data rewriting will occur in the subsequent fourth time period.

[0037] In some embodiments, after obtaining a trained machine learning model, the computing device 120 may input a metric for the target data as a feature into the machine learning model to obtain an indication of whether the target data will be rewritten within a second time period.

[0038] Continue to refer Figure 2 In response to determining in block 204 that the target data will be written to the backup storage device 130 within the second time period, the method proceeds to block 206, where the computing device 120 adjusts the expiration time of the target data in the backup storage device 130. In some embodiments, the computing device 120 may, for example, set an expiration time longer than a default expiration time for the target data, so that the target data is not expired before the next rewrite occurs.

[0039] In some embodiments, the computing device 120 may also determine an expiration time for the target data based on the historical information. Specifically, the computing device 120 may determine a set of time intervals between multiple write operations of the target data within a first time period based on the historical information.

[0040] Figure 4 FIG. 4 is a schematic diagram of a historical write list 400 according to an embodiment of the present disclosure. Figure 4 As shown, the computing device 120 may extract a historical write list 400 corresponding to the write operation based on the historical information list 300. The historical write list 400 may include the hash value 300 and multiple subsequent write operations 410-1, 410-2, 410-3, 410-(M-1), and 410-M (individually or collectively referred to as write operations 410) and corresponding occurrence times 420-1, 420-2, 420-3, 420-(M-1), and 420-M.

[0041] like Figure 4 As shown, the interval between the write 1 occurrence time 420-1 and the write 2 occurrence time 420-2 can be represented as D 1 , the interval between the write 2 occurrence time 420-2 and the write 3 occurrence time 420-3 can be represented as D 2The interval between the write M-1 occurrence time 420-(M-1) and the write M occurrence time 420-M can be represented as D M-1 .

[0042] In some embodiments, the computing device 120 may determine the expiration time of the target data based on a set of time intervals. In one example, the computing device 120 may select the time interval with the largest time interval from the set of time intervals as the expiration time. In another example, the computing device 120 may also select the average value of the time intervals as the expiration time.

[0043] Alternatively, the computing device 120 may also filter the group of time intervals to exclude time intervals with excessive fluctuations. Specifically, in some embodiments, the computing device 120 may determine at least one time interval from the group of time intervals based on the degree of change between two adjacent time intervals in the group of time intervals.

[0044] by Figure 4 As an example, the computing device 120 may calculate the time difference between two adjacent time intervals, for example, ΔT m =|D m+1 -D m |. The computing device 120 may further determine an average value of the time difference, and filter out time interval pairs whose time difference is greater than a specific threshold (e.g., the average value of the time difference), thereby determining at least one time interval from the group of time intervals. Based on this approach, the influence of certain writes due to certain emergencies in the first time period can be avoided, so that the determined expiration time can better conform to the general rules of the target data.

[0045] In some embodiments, the computing device 120 may also determine the expiration time of the target data in the backup storage device based on at least one time interval. For example, the computing device 120 may calculate the mean of at least one time interval obtained through filtering, and use the mean as the expiration time of the target data. The expiration time set in this manner can reduce the possibility that the target data will be rewritten in a short period of time after being deleted due to expiration.

[0046] In some embodiments, the target data discussed above may include data still stored in the backup storage device 130, and may include historical backup data deleted from the backup storage device 130 due to expiration. The embodiments of the present disclosure may perform different processing on the two different target data. Figure 5 The specific process of block 206 will be described below. Figure 5 A flowchart of a process for adjusting an expiration period according to an embodiment of the present disclosure is shown.

[0047] like Figure 5 As shown, at block 502, the computing device 120 may determine whether the target data has been deleted in the backup storage device 130. In response to determining at block 502 that the target data has not been deleted, the method may proceed directly to block 506, where the computing device 120 may modify the expiration time of the target data in the backup storage device 130 based on the method for determining the expiration time described above.

[0048] On the contrary, in response to determining in block 502 that the target data has been deleted in the backup storage device 130, the method may proceed to block 504, where the computing device 120 may rewrite the target data to the backup storage device 130 based on the request for writing the target data. Subsequently, in block 506, the computing device 120 may also modify the expiration time of the target data in the backup storage device 130 when rewriting, so that the rewritten target data has an expiration time longer than the default expiration time.

[0049] When the default expiration time of the backup storage device 130 expires, the computing device 120 will not recycle the target data whose expiration time has been adjusted by the method described above, because they are set with a longer expiration time. Based on this approach, when the target data is backed up again in the future, because the target data has a longer expiration time and is still in an unexpired state, the embodiment of the present disclosure can save the overhead of writing to the backup storage device again, thereby improving the efficiency of the backup system.

[0050] Figure 6 A schematic block diagram of an example device 600 that can be used to implement an embodiment of the present disclosure is shown. For example, a computing device 120 according to an embodiment of the present disclosure can be implemented by device 600. As shown, device 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 602 or computer program instructions loaded from a storage unit 608 into a random access memory (RAM) 603. In RAM 603, various programs and data required for the operation of device 600 can also be stored. CPU 601, ROM 602, and RAM 603 are connected to each other via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.

[0051] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 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 601. For example, in some embodiments, method 200 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by CPU 601, 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 changes 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 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 managing backup data, comprising: Acquire historical information of a plurality of historical operations on target data in a backup storage device within a first time period, the historical information at least indicating types and occurrence times of the plurality of historical operations, wherein the historical information is stored in a memory as a historical information list, the historical information list including a hash value of the target data, types of the historical operations on the target data among the plurality of historical operations, and occurrence times of the historical operations; Based on the historical information, determining a first time interval between occurrence times of adjacent deletion operations within the first time period, the target data has been deleted within the first time period; determining, based on the first time interval, whether the target data will be rewritten to the backup storage device within a second time period after the first time period; In response to determining that the target data will be written to the backup storage device within the second time period, determining whether the target data has been deleted from the backup storage device due to expiration, wherein the deleted target data is stored as historical backup data; in response to determining that the target data has been deleted from the backup storage device due to expiration, rewriting the target data from the historical backup data to the backup storage device based on a request to write the target data; as well as Adjusting the expiration time of the target data in the backup storage device, wherein adjusting the expiration time further comprises: Based on the historical information, calculating a plurality of second time intervals between a plurality of write operations of the target data within the first time period; determining a third time interval from the plurality of second time intervals based on a degree of time variation between two adjacent second time intervals in the plurality of second time intervals; and The expiration time of the target data in the backup storage device is adjusted based on the third time interval.

2. The method according to claim 1, wherein obtaining the historical information comprises: determining the hash value of the target data in response to the historical operations on the target data within the first time period; as well as The type and the occurrence time of the historical operation are stored in association with the hash value.

3. The method according to claim 1, wherein determining whether the target data will be rewritten to the backup storage device within the second time period in the future comprises: determining, based on the historical information, a metric for the target data, the metric comprising the first time interval; as well as Based on the metric, it is determined whether the target data will be rewritten to the backup storage device within the second time period.

4. The method of claim 3, wherein determining whether the target data will be written to the backup storage device within the second time period based on the metric comprises: The metric is processed using a machine learning model to determine whether the target data will be written to the backup storage device within the second time period, wherein the machine learning model is trained based on at least one of the following: a reference metric determined based on multiple historical operations on the reference data within a third time period, and an indication of whether the reference data is written to the backup storage device within a fourth time period after the third time period.

5. The method according to claim 1, further comprising: determining an average time interval of the plurality of second time intervals, wherein each of the plurality of second time intervals is an amount of time between two adjacent write operations of the plurality of write operations; filtering one or more second time interval pairs having a time difference greater than the average time interval from the plurality of second time intervals to generate a plurality of filtered second time intervals; as well as The third time interval is determined based on the filtered plurality of second time intervals.

6. A device for managing backup data, comprising: at least one processing unit; at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the apparatus to perform actions comprising: Acquire historical information of a plurality of historical operations on target data in a backup storage device within a first time period, the historical information at least indicating types and occurrence times of the plurality of historical operations, wherein the historical information is stored in a memory as a historical information list, the historical information list including a hash value of the target data, types of the historical operations on the target data among the plurality of historical operations, and occurrence times of the historical operations; Based on the historical information, determining a first time interval between occurrence times of adjacent deletion operations within the first time period, the target data has been deleted within the first time period; determining, based on the first time interval, whether the target data will be rewritten to the backup storage device within a second time period after the first time period; In response to determining that the target data will be written to the backup storage device within the second time period, determining whether the target data has been deleted from the backup storage device due to expiration, wherein the deleted target data is stored as historical backup data; In response to determining that the target data has been deleted from the backup storage device due to expiration, rewriting the target data from the historical backup data to the backup storage device based on a request to write the target data; and Adjusting the expiration time of the target data in the backup storage device, wherein adjusting the expiration time further comprises: Based on the historical information, calculating a plurality of second time intervals between a plurality of write operations of the target data within the first time period; determining a third time interval from the plurality of second time intervals based on a degree of time variation between two adjacent second time intervals in the plurality of second time intervals; and The expiration time of the target data in the backup storage device is adjusted based on the third time interval.

7. The device according to claim 6, wherein obtaining the historical information comprises: determining the hash value of the target data in response to the historical operations on the target data within the first time period; as well as The type and the occurrence time of the historical operation are stored in association with the hash value.

8. The apparatus according to claim 6, wherein determining whether the target data will be rewritten to the backup storage device within the second time period in the future comprises: determining, based on the historical information, a metric for the target data, the metric comprising the first time interval; as well as Based on the metric, it is determined whether the target data will be rewritten to the backup storage device within the second time period.

9. The apparatus of claim 8, wherein determining whether the target data will be written to the backup storage device within the second time period based on the metric comprises: The metric is processed using a machine learning model to determine whether the target data will be written to the backup storage device within the second time period, wherein the machine learning model is trained based on at least one of the following: a reference metric determined based on multiple historical operations on the reference data within a third time period, and an indication of whether the reference data is written to the backup storage device within a fourth time period after the third time period.

10. The device of claim 6, wherein the instruction causes the device to perform another action, the other action comprising: determining an average time interval of the plurality of second time intervals, wherein each of the plurality of second time intervals is an amount of time between two adjacent write operations of the plurality of write operations; filtering one or more second time interval pairs having a time difference greater than the average time interval from the plurality of second time intervals to generate a plurality of filtered second time intervals; as well as The third time interval is determined based on the filtered plurality of second time intervals.

11. A non-transitory computer storage medium comprising machine executable instructions which, when executed in a device, cause the device to perform the method according to any one of claims 1 to 5.