Hard disk data protection method and device, electronic equipment and readable storage medium

By dynamically adjusting the hard disk data snapshot generation interval on the Linux platform and combining it with system load information, the balance between data protection and system performance is solved, achieving efficient and reliable data recovery.

CN121597490APending Publication Date: 2026-03-03镁佳(北京)科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511600689.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-04
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

In Linux computer systems, how can we achieve real-time data protection while avoiding system performance degradation caused by frequent data snapshot creation, or the inability to provide timely data protection due to insufficient snapshot frequency?

Method used

By dynamically adjusting the hard disk data snapshot generation interval based on the current system load of the target computer system, and combining CPU utilization, memory utilization, and disk read/write interface utilization, the snapshot generation frequency is dynamically adjusted to balance real-time data protection and system performance.

Benefits of technology

Reduce the snapshot generation frequency when system resources are in high demand to minimize the impact on system performance; increase the snapshot generation frequency when system resources are idle to improve the timeliness of data protection and ensure data security and efficient system operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121597490A_ABST
    Figure CN121597490A_ABST
Patent Text Reader

Abstract

The invention provides a hard disk data protection method and device, electronic equipment and a readable storage medium, and the method comprises the steps: creating a hard disk data snapshot of a target computer system according to a target time interval; adjusting the target time interval according to the current system load of the target computer system; storing the hard disk data snapshot into a backup storage medium of the target computer system; and if it is detected that the data of the target computer system is lost or damaged, reading the hard disk data snapshot from the backup storage medium so as to perform data recovery on the target computer system. According to the technical scheme provided by one or more embodiments, efficient and reliable hard disk data protection and recovery can be realized, and the problem that real-time data protection and system performance are difficult to balance is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and specifically to a hard disk data protection method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] In Linux computer systems, effective protection and reliable recovery of hard drive data are primarily achieved by periodically creating data snapshots. This method captures the state of the hard drive data at a specific point in time and quickly restores the data to a pre-saved state in the event of data loss or corruption, ensuring data security and integrity.

[0003] However, this approach also faces a challenge: how to regulate the frequency of data snapshots to achieve a balance between real-time data protection and system performance. Frequent snapshot creation may lead to performance degradation, while too infrequent snapshots may fail to provide timely data protection. Summary of the Invention

[0004] In view of this, one or more embodiments of the present disclosure provide a hard disk data protection method, apparatus, electronic device and readable storage medium, which can achieve efficient and reliable hard disk data protection and recovery on the Linux platform.

[0005] In a first aspect, this disclosure provides a hard disk data protection method, the method comprising: creating a hard disk data snapshot of a target computer system according to a target time interval; adjusting the target time interval according to the current system load of the target computer system; storing the hard disk data snapshot in a backup storage medium of the target computer system; and if data loss or damage is detected in the target computer system, reading the hard disk data snapshot from the backup storage medium to perform data recovery on the target computer system.

[0006] In one possible implementation, adjusting the target time interval based on the current system load of the target computer system includes: obtaining the current system load of the target computer system; obtaining the current time interval of the target computer system; adjusting the current time interval based on a comparison between the current system load and a system load threshold; and determining the target time interval, wherein the system load threshold includes an upper load threshold and a lower load threshold.

[0007] In one possible implementation, obtaining the current system load of the target computer system includes: obtaining the CPU utilization, memory utilization, and disk read / write interface utilization of the target computer system; standardizing the CPU utilization, memory utilization, and disk read / write interface utilization, the standardization process including normalization; and determining the current system load based on the weighted statistical results of the CPU utilization, memory utilization, and disk read / write interface utilization.

[0008] In one possible implementation, adjusting the current time interval and determining the target time interval based on a comparison between the current system load and a system load threshold includes: if the current system load is higher than the upper load threshold, increasing the current time interval by a first time step to generate a first adjustment result; determining the smaller value between the first adjustment result and the upper interval threshold as the target time interval; if the current system load is lower than the lower load threshold, decreasing the current time interval by a second time step to generate a second adjustment result; and determining the larger value between the second adjustment result and the lower interval threshold as the target time interval.

[0009] In one possible implementation, adjusting the current time interval and generating the target time interval based on the comparison between the current system load and the target threshold includes: if the current system load is higher than the upper load threshold and the current time interval is less than the lower interval threshold, then setting the current time interval to a stop flag value, wherein the stop flag value indicates that the creation of the hard disk data snapshot is stopped.

[0010] In one possible implementation, the method further includes: monitoring the change frequency of the first type of data after each snapshot is generated; and adjusting the target time interval according to the change frequency of the first type of data.

[0011] In one possible implementation, the method further includes: after each snapshot is generated, monitoring operation information for the second type of data; and determining, based on the operation information for the second type of data, whether a new snapshot needs to be generated immediately.

[0012] Secondly, this disclosure provides a hard disk data protection device, the device comprising: a snapshot execution unit, configured to create a hard disk data snapshot of a target computer system according to a target time interval; an interval adjustment unit, configured to adjust the target time interval according to the current system load of the target computer system; a snapshot storage unit, configured to store the hard disk data snapshot into a backup storage medium of the target computer system; and a snapshot reading unit, configured to read the hard disk data snapshot from the backup storage medium to perform data recovery on the target computer system if data loss or damage is detected in the target computer system.

[0013] Thirdly, this disclosure provides an electronic device, which includes a memory and a processor. The memory is used to store a computer program, and when the computer program is executed by the processor, it implements the above-described hard disk data protection method.

[0014] Fourthly, this disclosure provides a computer-readable storage medium for storing a computer program that, when executed by a processor, implements the aforementioned hard disk data protection method.

[0015] This disclosure provides a technical solution through one or more embodiments that can generate snapshots of hard disk data at preset time intervals. Based on system load, the snapshot time interval can be dynamically adjusted, resolving the difficult balance between real-time data protection and system performance. Storing the generated snapshots on backup media allows for timely restoration of the latest snapshot from the backup media should data corruption or loss be detected. The coordinated operation of these steps ensures efficient and reliable data protection and recovery on the Linux platform.

[0016] The technical solutions provided by one or more embodiments of this disclosure can appropriately reduce the frequency of snapshot generation when system resource usage is high, thereby reducing the impact on system performance; and appropriately increase the frequency of snapshot generation when system resources are idle, thereby improving the timeliness of data protection. By comprehensively considering information such as CPU utilization, memory utilization, and disk read / write interface utilization, and allocating appropriate weighting coefficients, the current system load of the target computer system can be accurately reflected, making it easier to accurately determine the timing and amount of adjustment for the target time interval. Attached Figure Description

[0017] The features and advantages of the embodiments of this disclosure will be more clearly understood by referring to the accompanying drawings, which are illustrative and should not be construed as limiting the scope of this disclosure in any way. In the drawings: Figure 1 A schematic diagram illustrating the steps of a hard disk data protection method according to one embodiment of this disclosure is shown. Figure 2A schematic diagram of the functional units of a hard disk data protection device according to one embodiment of the present disclosure is shown; Figure 3 A schematic diagram of the structure of an electronic device according to one embodiment of the present disclosure is shown. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0019] Please see Figure 1 The hard disk data protection method provided in one embodiment of this disclosure may include the following steps.

[0020] S1: Create a snapshot of the hard disk data of the target computer system based on the target time interval.

[0021] In this implementation, based on a target time interval, complete or incremental backups of important data in the system can be performed periodically. This step ensures data continuity and consistency by periodically creating static copies of the data. The snapshot generation interval can be set according to the user's specific needs and the importance of the system. For example, for an important financial trading system, a snapshot can be generated every 5 minutes; while for a regular file server, a snapshot can be generated every hour. This flexible setting ensures that in the event of data corruption or loss, the system can be restored to its latest state as quickly as possible.

[0022] S2: Adjust the target time interval according to the current system load of the target computer system.

[0023] In this implementation, by monitoring system load, the snapshot generation frequency can be dynamically adjusted based on the load situation. When system resource usage is high, the snapshot generation frequency can be reduced, thereby minimizing the impact on system performance; when system resources are idle, the snapshot generation frequency can be increased, improving the timeliness of data protection. In practical applications, key indicators such as system CPU utilization, memory usage, and disk I / O can be monitored, and the snapshot generation frequency can be reduced or increased when these indicators exceed preset thresholds. This dynamic adjustment mechanism ensures that data protection is guaranteed without causing excessive interference to the normal operation of the system.

[0024] In some implementations, adjusting the target time interval based on the current system load of the target computer system includes: obtaining the current system load of the target computer system; obtaining the current time interval of the target computer system; adjusting the current time interval based on a comparison between the current system load and a system load threshold; and determining the target time interval, wherein the system load threshold includes an upper load threshold and a lower load threshold.

[0025] Specifically, if the current system load is considered too high and the remaining system availability is low, the snapshot operation interval can be increased, and the snapshot generation frequency can be reduced. If the current system load is considered extremely low and the remaining system availability is ample, the snapshot operation interval can be reduced, and the snapshot generation frequency can be increased.

[0026] In some implementations, obtaining the current system load of the target computer system includes: obtaining the CPU utilization, memory utilization, and disk read / write interface utilization of the target computer system; standardizing the CPU utilization, memory utilization, and disk read / write interface utilization, wherein the standardization process includes normalization; and determining the current system load based on the weighted statistical results of the CPU utilization, memory utilization, and disk read / write interface utilization.

[0027] Specifically, after obtaining the current CPU usage (CPU_usage), memory usage (Memory_usage), and disk I / O usage (Disk_IO_usage), the obtained data can be standardized. Then, pre-allocated or user-input weighting coefficients can be obtained. Furthermore, if any of the following conditions are met: CPU_usage > CPU_high, Memory_usage > Memory_high, or Disk_IO_usage > Disk_IO_high, the weighting coefficients for CPU usage, memory usage, and disk I / O usage are set to 1 accordingly. Here, CPU_high, Memory_high, and Disk_IO_high represent the high utilization thresholds for each resource.

[0028] In a practical application example, standardizing the acquired data further includes: determining the maximum and minimum values ​​of each resource utilization rate; normalizing each resource utilization rate; and calculating a weighted statistical result based on the normalized utilization rate. For example, if a certain utilization rate is X and its corresponding maximum value is X_max and minimum value is X_min, then the standardized utilization rate is (XX_min) / (X_maxX_min), which is used in subsequent calculations.

[0029] In some embodiments, adjusting the current time interval and determining the target time interval according to the comparison result between the current system load and the system load threshold includes: if the current system load is higher than the load upper limit threshold, increasing the current time interval by a first time step to generate a first adjustment result; determining the smaller value between the first adjustment result and the interval upper limit threshold as the target time interval; if the current system load is lower than the load lower limit threshold, decreasing the current time interval by a second time step to generate a second adjustment result; determining the larger value between the second adjustment result and the interval lower limit threshold as the target time interval.

[0030] Specifically, if the current system load is L and the current time interval is T. When L > L_high, the time interval is adjusted to T = min(T + ΔT, T_max), which means taking the smaller value of the two numerical quantities; when L < L_low, the time interval is adjusted to T = max(T - ΔT, T_min), which means taking the larger value of the two numerical quantities. Here, L_high represents the load upper limit threshold, L_low represents the load lower limit threshold, T_min represents the interval lower limit threshold, T_max represents the interval upper limit threshold, and ΔT represents the adjustment amount of the time interval (i.e., the first time step or the second time step). It should be noted that according to different actual application scenarios, the first time step and the second time step can not only be set to the same adjustment amount, but also be set to different adjustment amounts. Optionally, the setting of the first time step or the second time step can also be dynamically adjusted in a positive correlation or stepwise manner according to the ratio information between the current system load and the load upper limit threshold.

[0031] In some embodiments, adjusting the current time interval and generating the target time interval according to the comparison result between the current system load and the target threshold includes: if the current system load is higher than the load upper limit threshold and the current time interval is less than the interval lower limit threshold, setting the current time interval to a stop marker value, where the stop marker value indicates stopping creating the hard disk data snapshot.

[0032] Specifically, if it is considered that the current system load is too high, it indicates that the remaining available performance of the system is low. If the current time interval is less than the interval lower limit threshold, it indicates that the snapshot generation frequency is extremely high. If these two phenomena occur simultaneously, the optimal approach at this time should be to suspend the snapshot generation action until the system load returns to normal, rather than simply reducing the snapshot generation frequency.

[0033] In some embodiments, the hard disk data protection method further includes: after each snapshot generation, monitoring the change frequency of the first type of data; adjusting the target time interval according to the change frequency of the first type of data.

[0034] Specifically, the first type of data can represent some predefined important data. If D_freq > D_threshold, then T needs to be adjusted to another suitable time interval T_new. Here, D_freq represents the frequency of important data changes, D_threshold represents the threshold for important data changes, T represents the current time interval, and T_new represents the adjusted time interval.

[0035] In some implementations, the hard disk data protection method further includes: monitoring operation information for the second type of data after each snapshot is generated; and determining, based on the operation information for the second type of data, whether a new snapshot needs to be generated immediately.

[0036] Specifically, the second type of data can represent some pre-defined key files. By monitoring the operation information of key files on the hard drive (such as operation type, operation data volume, operation time, etc.), the impact factor (IF) of key file operations can be calculated. Based on the impact factor (IF), it can be decided whether to generate a snapshot immediately. For example, if IF > IF_high, a new snapshot is generated immediately. Here, IF_high represents the impact factor threshold, and IF = a * number of operations + b * operation size + c * operation time, with operation type weighted by a, operation data volume weighted by b, and operation time weighted by c.

[0037] S3: Snapshot the hard disk data and store it in the backup storage medium of the target computer system.

[0038] In this embodiment, storing the generated snapshots on the backup medium ensures that data can be restored from the backup even if the primary hard drive fails. The backup medium can be an external hard drive, network storage device, cloud storage service, etc. Specifically, snapshot data can be transferred to the backup medium via file transfer protocols (such as SCP, FTP, etc.) or other methods. In practical applications, snapshots can be stored in the cloud, which not only improves data security but also facilitates data recovery across multiple devices. Furthermore, compression algorithms can be used to reduce the size of snapshots, saving storage space.

[0039] S4: If data loss or damage is detected in the target computer system, the hard disk data snapshot is read from the backup storage medium to recover the data of the target computer system.

[0040] In this implementation, when data corruption or loss is detected, the latest snapshot is restored from the backup media, ensuring a rapid return to normal system operation in the event of data problems. The specific recovery operation is typically performed by the system administrator or an automated script, selecting an appropriate snapshot point in time for recovery as needed. For example, if a critical application crashes for unknown reasons, resulting in the loss of important data, the administrator can quickly find and restore the most recent snapshot using backup management tools, thereby minimizing business interruption time. This instant recovery capability significantly improves the system's fault tolerance and reliability.

[0041] Another embodiment of the present disclosure provides a hard disk data protection method, which may mainly include steps one to four.

[0042] Step 1: Generate Snapshots: This step generates snapshots of the hard drive data at preset time intervals. By periodically capturing the current data state on the hard drive, a series of consecutive data snapshots are created, providing support for subsequent data recovery.

[0043] Step Two: Dynamically Adjust the Time Interval: The snapshot generation interval is dynamically adjusted based on system load to balance real-time data protection and system performance. Specifically, the system continuously monitors its operating status, such as CPU utilization, memory usage, and disk read / write speed. These metrics are used as important parameters to determine system load. When the system load is low, the snapshot generation interval can be shortened to improve the real-time performance of data protection; conversely, when the system load is high, the snapshot generation interval can be extended to reduce the resource consumption of snapshot operations, thereby ensuring that the overall system performance is not significantly affected.

[0044] Step 3: Store snapshots: Store the generated snapshots on backup media to ensure data security and persistence. Backup media can be local secondary storage devices or remote storage servers on a network, depending on the specific application environment and requirements.

[0045] Step 4, Data Recovery: When data corruption or loss is detected, restore the latest snapshot from the backup media. This step enables rapid data recovery by recalling the most recent snapshot stored on the backup media, reducing losses caused by corruption or loss.

[0046] The hard disk data protection method provided in this embodiment addresses the challenge of balancing real-time data protection and system performance by dynamically adjusting the snapshot generation interval. Under high load, the snapshot operation frequency is reduced to avoid excessive consumption of system resources and thus not affect normal system operation; under low load, the snapshot operation frequency is increased, improving the real-time performance and reliability of data protection. This mechanism not only ensures data security but also maximizes the efficient operation of the system.

[0047] This disclosure provides a technical solution through one or more embodiments that can generate snapshots of hard disk data at preset time intervals. Based on system load, the snapshot time interval can be dynamically adjusted, resolving the difficult balance between real-time data protection and system performance. Storing the generated snapshots on backup media allows for timely restoration of the latest snapshot from the backup media should data corruption or loss be detected. The coordinated operation of these steps ensures efficient and reliable data protection and recovery on the Linux platform.

[0048] The technical solutions provided by one or more embodiments of this disclosure can appropriately reduce the frequency of snapshot generation when system resource usage is high, thereby reducing the impact on system performance; and appropriately increase the frequency of snapshot generation when system resources are idle, thereby improving the timeliness of data protection. By comprehensively considering information such as CPU utilization, memory utilization, and disk read / write interface utilization, and allocating appropriate weighting coefficients, the current system load of the target computer system can be accurately reflected, making it easier to accurately determine the timing and amount of adjustment for the target time interval.

[0049] Please see Figure 2 This disclosure also provides a hard disk data protection device, the device comprising: The snapshot execution unit 100 is used to create hard disk data snapshots of the target computer system according to the target time interval; The interval control unit 200 is used to adjust the target time interval according to the current system load of the target computer system; The snapshot storage unit 300 is used to store snapshots of the hard disk data into the backup storage medium of the target computer system; The snapshot reading unit 400 is used to read the hard disk data snapshot from the backup storage medium if data loss or damage is detected in the target computer system, so as to perform data recovery on the target computer system.

[0050] In one embodiment, the interval control unit 200 is specifically used to: obtain the current system load of the target computer system; obtain the current time interval of the target computer system; adjust the current time interval according to the comparison result of the current system load and the system load threshold, and determine the target time interval, wherein the system load threshold includes a load upper limit threshold and a load lower limit threshold.

[0051] In one embodiment, the interval control unit 200 includes a load determination subunit 201. The load determination subunit 201 is configured to: acquire the CPU utilization, memory utilization, and disk read / write interface utilization of the target computer system; standardize the CPU utilization, memory utilization, and disk read / write interface utilization, the standardization process including normalization; and determine the current system load based on a weighted statistical result of the CPU utilization, memory utilization, and disk read / write interface utilization.

[0052] In one embodiment, the interval control unit 200 includes a first interval determination subunit 202. The first interval determination subunit 202 is configured to: if the current system load is higher than the upper load threshold, increase the current time interval by a first time step to generate a first adjustment result; determine the smaller value between the first adjustment result and the upper interval threshold as the target time interval; if the current system load is lower than the lower load threshold, decrease the current time interval by a second time step to generate a second adjustment result; determine the larger value between the second adjustment result and the lower interval threshold as the target time interval.

[0053] In one embodiment, the interval control unit 200 includes a second interval determination subunit 203. The second interval determination subunit 203 is configured to: if the current system load is higher than the upper load threshold and the current time interval is less than the lower interval threshold, then set the current time interval to a stop flag value, wherein the stop flag value indicates that the creation of the hard disk data snapshot is stopped.

[0054] In one embodiment, the interval control unit 200 is further configured to: monitor the change frequency of the first type of data after each snapshot is generated; and adjust the target time interval according to the change frequency of the first type of data.

[0055] In one embodiment, the interval control unit 200 is further configured to: monitor operation information for the second type of data after each snapshot is generated; and determine whether a new snapshot needs to be generated immediately based on the operation information for the second type of data.

[0056] The various units described in the above embodiments can be implemented by a computer chip or by a product with a certain function. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.

[0057] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.

[0058] Please see Figure 3 This disclosure also provides an electronic device, which includes a memory and a processor. The memory is used to store a computer program, and when the computer program is executed by the processor, it implements the above-described hard disk data protection method.

[0059] This disclosure also provides a computer-readable storage medium for storing a computer program that, when executed by a processor, implements the above-described hard disk data protection method.

[0060] The processor can be a central processing unit (CPU). It can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations thereof.

[0061] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the methods in the embodiments of this disclosure. The processor executes various functional applications and data processing by running the non-transitory software programs, instructions, and modules stored in the memory, thereby implementing the methods in the above-described embodiments.

[0062] The memory may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the processor, etc. Furthermore, the memory may include high-speed random access memory and non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include memory remotely located relative to the processor, which can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0063] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium can also include combinations of the above types of memory.

[0064] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, embodiments of apparatus, devices, and storage media are basically similar to method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0065] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of this application should be included within the scope of the claims of this application.

[0066] Although embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A hard disk data protection method, characterized in that, The method includes: Create hard disk data snapshots of the target computer system based on the target time interval; The target time interval is adjusted based on the current system load of the target computer system; The hard disk data snapshot is stored in the backup storage medium of the target computer system; If data loss or corruption is detected in the target computer system, a hard disk data snapshot is read from the backup storage medium to recover the data from the target computer system.

2. The method according to claim 1, characterized in that, Adjusting the target time interval based on the current system load of the target computer system includes: Obtain the current system load of the target computer system; Obtain the current time interval of the target computer system; Based on the comparison between the current system load and the system load threshold, the current time interval is adjusted to determine the target time interval. The system load threshold includes an upper load threshold and a lower load threshold.

3. The method according to claim 2, characterized in that, The step of obtaining the current system load of the target computer system includes: Obtain the CPU utilization, memory utilization, and disk read / write interface utilization of the target computer system; The CPU utilization, memory utilization, and disk read / write interface utilization are standardized, and the standardization process includes normalization. The current system load is determined based on the weighted statistical results of the CPU utilization, memory utilization, and disk read / write interface utilization.

4. The method according to claim 3, characterized in that, The step of adjusting the current time interval and determining the target time interval based on the comparison result between the current system load and the system load threshold includes: If the current system load is higher than the load upper limit threshold, then the current time interval is increased by a first time step to generate a first adjustment result; The smaller value between the first adjustment result and the upper limit threshold of the interval is determined as the target time interval; If the current system load is lower than the lower load threshold, then the current time interval is reduced by a second time step to generate a second adjustment result; The larger value between the second adjustment result and the lower limit threshold is determined as the target time interval.

5. The method according to claim 3, characterized in that, The step of adjusting the current time interval and generating the target time interval based on the comparison between the current system load and the target threshold includes: If the current system load is higher than the upper limit threshold and the current time interval is less than the lower limit threshold, then the current time interval is set to a stop flag value, which indicates that the creation of the hard disk data snapshot is stopped.

6. The method according to claim 1, characterized in that, The method further includes: After each snapshot is generated, monitor the frequency of changes in the first type of data; The target time interval is adjusted based on the frequency of change of the first type of data.

7. The method according to claim 1, characterized in that, The method further includes: After each snapshot is generated, monitor the operation information for the second type of data; Based on the operation information for the second type of data, determine whether a new snapshot needs to be generated immediately.

8. A hard disk data protection device, characterized in that, The device includes: The snapshot execution unit is used to create hard disk data snapshots of the target computer system according to the target time interval; An interval control unit is used to adjust the target time interval according to the current system load of the target computer system; A snapshot storage unit is used to store snapshots of the hard disk data into the backup storage medium of the target computer system; The snapshot reading unit is used to read a hard disk data snapshot from the backup storage medium if data loss or damage is detected in the target computer system, so as to perform data recovery on the target computer system.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory being used to store a computer program that, when executed by the processor, implements the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 7.