A relevance file group identification method, device, equipment and program product

By analyzing file read/write operation time points and neural network models, related file groups are identified and aggregated, solving the problem of unrecoverable related file groups in existing technologies and achieving efficient data recovery.

CN123179053APending Publication Date: 2026-11-27HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing data recovery methods fail to effectively consider the correlation of related file groups, resulting in the inability to perform group recovery when data is unavailable, thus affecting the recovery effect of applications.

Method used

By identifying the time intervals of file read and write operations, analyzing file node characteristics using a neural network model, and aggregating related file groups, data recovery can be performed.

Benefits of technology

It improves the accuracy of identifying and recovering associated file groups, ensuring that applications that depend on associated file groups can be recovered normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179053A_ABST
    Figure CN123179053A_ABST
Patent Text Reader

Abstract

A method, device, equipment and program product for identifying a group of associated files are disclosed, and relate to the field of data recovery. Since the multiple associated files in the group of associated files are dependent on an application and need to be read and written in a similar time, by identifying that the time interval of the time points at which the read operation and / or the write operation of the at least two files occur is within a preset time length threshold, it can be determined that the at least two files are associated files having an association relationship, so that the multiple associated files having the association relationship can be identified and aggregated into the group of associated files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data recovery, and in particular to a method, apparatus, device, and program product for identifying associated file groups. Background Technology

[0002] By regularly taking snapshots of the data, data recovery can be achieved based on the backed-up snapshot data in the event of a cyberattack. Existing data fusion recovery involves fusing completely clean snapshot data of the same data with partially clean data from partially infected snapshot data taken at different subsequent points in time. Partially infected snapshot data refers to snapshots taken when the data was in an unavailable state.

[0003] However, the aforementioned data fusion recovery method only considers the cleanliness and freshness of files, neglecting their interrelationships. This leads to a situation where, when related files are in a data unavailable state, the entire related file group becomes unavailable in the application, making application recovery impossible. Application recovery requires group recovery of related file groups. Related files refer to multiple files that the application depends on, which need to be read, written, and updated within a similar timeframe, and are in the same version state.

[0004] Therefore, identifying related file groups has become a pressing technical problem that needs to be solved. Summary of the Invention

[0005] This application provides a method, apparatus, device, and program product for identifying associated file groups, which can identify associated file groups.

[0006] Firstly, a method for identifying related file groups is provided. This method includes: acquiring read / write operation records for multiple files, the read / write operation records including read operations and / or write operations, and the time points at which the read and / or write operations occurred. If the time interval between the time points corresponding to the read and / or write operations of at least two files is within a preset duration threshold, at least two files are identified as related files, and the multiple related files in the multiple file groups are aggregated into a related file group.

[0007] Based on the above-mentioned method for identifying related file groups, since multiple related files in a related file group are dependent on by the application and need to be read and written within a similar time period, by identifying that the time interval between the read and / or write operations of at least two files is within a preset time threshold, it is possible to determine that at least two files are related files with a relationship, thereby enabling the aggregation of multiple related files with a relationship into a related file group.

[0008] One possible approach is to aggregate at least two related files that have direct or indirect relationships into a single related file group. In this way, by utilizing the direct and indirect relationships among multiple related files, a related file group consisting of at least two related files can be obtained, thus accurately identifying related file groups within multiple files.

[0009] As one possible implementation, if the time interval between read and / or write operations on any two files falls within a preset time threshold, then these two files are identified as related files. In this way, by identifying the relationship between any two files, it is possible to determine every two related files across multiple files, thereby improving the accuracy of file relationship identification.

[0010] One possible implementation involves generating file nodes for multiple files based on their read / write operation records. The node features of each file node include the read / write operation records. These node features are then input into a pre-trained neural network model to predict at least two file nodes whose similarity exceeds a preset similarity threshold. The files corresponding to these at least two file nodes are then identified as related files. Thus, by representing files as file nodes and using their read / write operation records as node features, the file association identification problem is transformed into a node similarity problem. The pre-trained neural network model then performs node similarity identification, thereby improving the speed and accuracy of identifying related files from multiple files.

[0011] As one possible implementation, the read / write operation records include read / write operation records for each time window, and each time window includes a first time window. The node features of multiple file nodes within the first time window are encoded as digital features; each time window includes a first time window. A node feature sequence composed of the digital features of the first time window for each file node is determined; the node feature sequences of the first time windows of multiple file nodes are input into a neural network model to predict at least two file nodes among the multiple file nodes whose similarity is greater than or equal to a preset similarity threshold. In this way, by processing the read / write operation records in streaming chunks and forming the node feature sequence for the corresponding time window by encoding node features as digital features, the accuracy of node similarity recognition is improved when the neural network model performs node similarity recognition based on the node feature sequence.

[0012] One possible implementation involves using a feature extractor based on a pre-trained neural network model to extract node features from multiple file nodes and embed them into the latent space, resulting in feature vectors for multiple file nodes. A classifier based on the neural network model then identifies at least two file nodes whose feature vectors have a similarity greater than a preset similarity threshold. In this way, by embedding node features into the latent space, highly complex feature data is mapped to feature vectors in a low-dimensional, continuous vector space. This makes similar node features closer together in the latent space, thereby improving the accuracy and speed of node similarity recognition based on the classifier.

[0013] One possible implementation involves determining that at least one associated file in a related filegroup is in a data-unavailable state. Data recovery of the related filegroup is then performed based on clean snapshot data of at least one associated file, resulting in a recovered related filegroup. The clean snapshot data is obtained by taking a snapshot and backing up the data when at least one associated file is in a data-available state. Thus, after at least one associated file in a related filegroup becomes unavailable, data recovery of the related filegroup allows applications that depend on it to recover.

[0014] Optionally, data recovery can be performed based on the clean snapshot data corresponding to the associated file group from the completely clean snapshot data and / or partially infected snapshot data, resulting in the recovered associated file group. The completely clean snapshot data is obtained by taking snapshots and backing up multiple files when they are in a data-available state, while the partially infected snapshot data is obtained by taking snapshots and backing up multiple files when some files are in a data-unavailable state. Thus, data recovery based on completely clean snapshot data and / or partially infected snapshot data ensures the freshness and cleanliness of the data.

[0015] In a second aspect, an apparatus for identifying associated file groups is provided, the apparatus comprising modules for performing the associated file group identification method in the first aspect or any possible implementation thereof.

[0016] The associated file group identification device described in the second aspect can be an electronic device, or a chip (system), network card or other component or assembly that can be set in an electronic device, or a device that includes an electronic device. This application does not limit it in this regard.

[0017] Furthermore, the technical effects of the associated file group identification device described in the second aspect can be referred to the technical effects of the associated file group identification method described in the first aspect, and will not be repeated here.

[0018] Thirdly, an electronic device cluster is provided, including at least one electronic device, each electronic device including a processor and a memory; the processor is coupled to the memory; the memory stores computer instructions, which are loaded and executed by the processor to enable the electronic device cluster to perform the operational steps of the method described in any possible implementation of the first aspect above.

[0019] Fourthly, a computer-readable storage medium is provided, comprising: computer software instructions; when the computer software instructions are executed in a cluster of electronic devices, causing the computer to perform operational steps of the method as described in any possible implementation of the first aspect.

[0020] Fifthly, embodiments of this application provide a chip system. The chip system includes a memory and at least one processor. The memory stores a set of computer instructions, which, when executed by the processor, perform the operational steps of the method described in any possible implementation of the first aspect.

[0021] Sixthly, a computer program product is provided that, when run on a computer, causes the computer to perform the operational steps of the method as described in any possible implementation of the first aspect.

[0022] Based on the implementation methods provided in the above aspects, this application can be further combined to provide more implementation methods. Attached Figure Description

[0023] Figure 1 This is a schematic diagram of data fusion and recovery.

[0024] Figure 2 A schematic diagram of the architecture of an associated file group identification system provided in this application embodiment;

[0025] Figure 3 A flowchart illustrating a method for identifying associated file groups provided in an embodiment of this application;

[0026] Figure 4 A schematic diagram illustrating the principle of associated file group identification provided in this application embodiment;

[0027] Figure 5 A schematic diagram illustrating audit log fragmentation in an electronic device 210 provided in this application embodiment;

[0028] Figure 6 A schematic diagram of a file node provided in an embodiment of this application;

[0029] Figure 7 A schematic diagram illustrating the file nodes and link relationships of related files predicted by the neural network model provided in this application embodiment;

[0030] Figure 8 A schematic diagram illustrating the process of restoring a group of associated files, provided in an embodiment of this application;

[0031] Figure 9 This application provides a schematic diagram illustrating a scenario for restoring a group of associated files.

[0032] Figure 10 A schematic diagram of the associated file group identification device provided in the embodiments of this application;

[0033] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0034] Figure 12 This is a schematic diagram of the structure of an electronic device cluster provided in an embodiment of this application;

[0035] Figure 13 This is a schematic diagram of a network connection between electronic devices provided in an embodiment of this application. Detailed Implementation

[0036] The embodiments of this application can be applied not only to current data recovery scenarios, cloud-based data fusion recovery, and electronic devices for storing data, but also to future data recovery scenarios, cloud-based data fusion recovery, and electronic devices for storing data. This application does not impose any limitations on these applications. For example, the electronic device for storing data could be a backup appliance, etc.

[0037] It should be noted that all data involved in this application (including but not limited to data used for analysis, stored data, and displayed data) has been authorized by the subject or by all parties, and the collection, use, and processing of such data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the read / write operation records and audit logs involved in this application were obtained with full authorization.

[0038] To make the above technical issues easier to understand, the existing data recovery methods will be explained below.

[0039] Ransomware attacks, exemplified by ransomware, are among the most serious threats to cybersecurity. With a significant increase in the types and numbers of viruses, their attack targets and methods have diversified, causing enormous economic losses. Ransomware compromises data availability by encrypting user data.

[0040] Regularly taking snapshots of data allows for data recovery based on these snapshots in the event of an attack. However, data recovery can only recover data from completely clean snapshots, losing the more recent, clean data from subsequent infected snapshots. This method ensures data health but sacrifices data freshness.

[0041] To simultaneously ensure data health and freshness, existing technologies fuse completely clean snapshot data with updated clean data from partially infected snapshot data at different subsequent time points to obtain fused snapshot data. Data recovery is then performed using the fused snapshot data.

[0042] Figure 1 This is a schematic diagram of data fusion and recovery.

[0043] like Figure 1 As shown, snapshot backups of file data are performed periodically. Snapshots S121 to S127 include snapshot data for files 1 and 2, while snapshot S127 includes snapshot data for file 3. Snapshot S124 is the latest, completely clean snapshot data. File 2 in snapshots S125 to S127 is infected, meaning file 2 is in a data unavailable state.

[0044] Snapshot S121 includes snapshot data of file 1 and file 2 in version v1. Snapshot S122 includes snapshot data of file 1 in version v2 and file 2 in version v1. Snapshot S123 includes snapshot data of file 1 and file 2 in version v2. Snapshot S124 includes snapshot data of file 1 and file 2 in version v3. Snapshot S125 includes snapshot data of file 1 in version v3 and the infected file 2. Snapshot S126 includes snapshot data of file 1 in version v4 and the infected file 2. Snapshot S127 includes snapshot data of file 1 in version v5, the infected file 2, and file 3 in version v1.

[0045] Based on the latest completely clean snapshot S124 and the partially infected snapshot S127, the merged snapshot data is obtained. Data recovery is performed based on the merged snapshot data to obtain file 1 of version 5, file 2 of version 3 and file 3 of version 1.

[0046] To ensure successful data fusion and recovery, regular snapshot backups are necessary. Table 1 shows the snapshot data update table.

[0047] Table 1

[0048]

[0049] As shown in Table 1, after adding files on August 1, 2021, files 1, 2, and 3 were created, and a backup was performed to obtain snapshot 1 of version 16. If the files remained unchanged on August 1, 2021, a backup was performed to obtain snapshot 2 of version 17. After adding files 4, 5, and 6 on August 2, 2021, files 1, 2, 3, 4, 5, and 6 were created, and a backup was performed to obtain snapshot 3 of version 18. After deleting file 2 on August 2, 2021, files 1, 3, 4, 5, and 6 were created, and a backup was performed to obtain snapshot 4 of version 19.

[0050] However, the data fusion recovery method described above only considers the cleanliness and freshness of files, neglecting the file relationships. This leads to the inaccessibility of the associated file group when the associated file is infected, making application recovery impossible. Application recovery requires group recovery of the associated file group.

[0051] Therefore, identifying related file groups has become a pressing technical problem that needs to be solved.

[0052] To address the aforementioned technical problems, this application provides a method for identifying associated file groups, particularly a method for identifying associated file groups based on the time points of read and / or write operations on files. Since multiple associated files in an associated file group are dependent on by applications and need to be read and written within similar timeframes, by identifying that the time interval between the read and / or write operations of at least two files is within a preset duration threshold, it is possible to determine that at least two files are associated files, thereby enabling the identification of associated file groups comprised of multiple related files.

[0053] The following is in conjunction with the appendix Figure 2 To be continued Figure 8 The implementation methods of the embodiments of this application will be described in detail.

[0054] Figure 2 This is a schematic diagram of the architecture of an associated file group identification system provided in an embodiment of this application.

[0055] like Figure 2 As shown, the associated file group identification system 200 includes an electronic device 210, a training device 220, a database 230, a terminal device 240, a data storage system 250, and a data acquisition device 260.

[0056] Electronic device 210 is a device that stores data. Electronic device 210 can be a terminal, such as a mobile phone terminal, tablet computer, laptop computer, or vehicle terminal, or it can be an edge device (e.g., a box carrying a chip with processing capabilities).

[0057] The training device 220 can be a terminal or other electronic devices, such as servers or cloud devices.

[0058] As one possible embodiment, electronic device 210 and training device 220 are different processors deployed on different physical devices (e.g., servers in a server or cluster). For example, electronic device 210 may be a graphics processing unit (GPU), a central processing unit (CPU), 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, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. Training device 220 may be a graphics processing unit (GPU), a neural network processing unit (NPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.

[0059] Data acquisition device 260 is used to collect training data and store the file data in database 230. Data acquisition device 260, electronic device 210, and training device 220 can be the same or different devices. The training data consists of associated and unassociated file data. For example, associated file data can be medical image file data, electronic design automation (EDA) design file data, computer-aided design (CAD) file data, etc.

[0060] Training device 220 is used to train a neural network model using training data until the loss function in the neural network model converges and the loss function value is less than a certain threshold, at which point the neural network model training is complete, thus enabling the neural network model to achieve a certain level of accuracy. Alternatively, all training data in database 230 can be used for training, at which point the training data training is complete. Then, training device 220 configures the trained neural network model 201 onto electronic device 210. Electronic device 210 is used to perform node link prediction based on the trained neural network model 201.

[0061] In some embodiments, the data acquisition device 260 and the training device 220 are the same electronic device, which can train the neural network model 201 based on the acquired training data until the neural network model 201 is trained.

[0062] In some embodiments, the electronic device 210 and the training device 220 are the same electronic device. The electronic device can configure the trained neural network model 201 to itself and use the trained neural network model 201 to realize the node link prediction function.

[0063] In other embodiments, the training device 220 can configure the trained neural network model 201 onto multiple electronic devices 210. Each electronic device 210 utilizes the trained neural network model 201 to perform node link prediction.

[0064] In conjunction with the associated file group identification system 200, the associated file group identification method provided in this application embodiment can be applied to the node link prediction scenario of the neural network model 201. Specifically, the associated file group identification method in this application embodiment can be applied to the node link prediction scenario of the neural network model 201, and the node link prediction scenario will be briefly introduced below.

[0065] For example, in a node link prediction scenario: a user uses a training device 220 (e.g., a mobile phone, computer, or tablet) to acquire training data. The training data can be collected by a data acquisition device 260 and stored in a database 230. The user operates the training device 220 to obtain a trained neural network model 201 based on the training data.

[0066] It should be noted that in practical applications, the training data maintained in database 230 may not all come from data acquisition device 260; it may also be received from other devices. Furthermore, training device 220 may not necessarily train neural network model 201 entirely based on the training data maintained in database 230; it may also obtain training data from the cloud or other sources to train neural network model 201. The above description should not be construed as limiting the embodiments of this application.

[0067] Furthermore, based on the functions performed by the electronic device 210, the electronic device 210 can be further subdivided into, for example... Figure 2 The architecture shown is as follows: Figure 2 As shown, the electronic device 210 is equipped with a computing module 211, an I / O interface 212, and a preprocessing module 213.

[0068] I / O interface 212 is used for data interaction with external devices. Users can input data into I / O interface 212 through terminal device 240. Input data may include audit logs, etc. Alternatively, input data may also come from database 230.

[0069] The preprocessing module 213 is used to preprocess the input data received from the I / O interface 212. In this embodiment, the preprocessing module 213 can be used to extract features from the input data received from the I / O interface 212.

[0070] During the preprocessing of input data by electronic device 210, or the calculation module 211 of electronic device 210 performing calculations and other related processes, electronic device 210 can call data, code, etc. in data storage system 250 for corresponding processing, or store the data and instructions obtained from the corresponding processing into data storage system 250.

[0071] For example, the neural network model 201 stored in the electronic device 210 can be applied to the electronic device 210. After the electronic device 210 obtains the input data, the computing module 211 inputs the input data into the neural network model 201 to obtain the processing result.

[0072] Finally, I / O interface 212 returns the processing result to terminal device 240, which then provides it to the user so that the user can view the processing result. It should be understood that terminal device 240 and electronic device 210 can also be the same physical device.

[0073] exist Figure 2 In the illustrated scenario, the user can manually provide input data, which can be done through the interface provided by I / O interface 212. Alternatively, the terminal device 240 can automatically send input data to I / O interface 212. If user authorization is required for the terminal device 240 to automatically send input data, the user can set the corresponding permissions in the terminal device 240. The user can view the processing results output by the electronic device 210 on the terminal device 240, which can be presented in various ways such as display or sound. The terminal device 240 can also act as a data acquisition terminal, collecting data such as... Figure 2The input data and processing results of the input I / O interface 212 are used as new sample data and stored in the database 230. Alternatively, the data can be collected without going through the terminal device 240, and the I / O interface 212 can directly process the data. Figure 2 The input data of the input I / O interface 212 and the processing results of the output I / O interface 212 are stored in the database 230 as new sample data.

[0074] Figure 2 This is merely a schematic diagram of a system architecture provided in an embodiment of this application. Figure 2 The positional relationships between the devices, components, modules, etc., shown do not constitute any limitation; for example, in Figure 2 In this context, the data storage system 250 is an external storage device relative to the electronic device 210. In other cases, the data storage system 250 may also be placed within the electronic device 210.

[0075] In the method for identifying related file groups, electronic device 210 acquires audit logs and performs a node link prediction task based on the trained neural network model 201 to determine related files with a relationship. Electronic device 210 aggregates multiple related files into a related file group.

[0076] The following is based on Figure 2 The following explanation uses electronic device 210 as an example to illustrate the identification of associated file groups. Figure 3 This is a flowchart illustrating a method for identifying associated file groups provided in an embodiment of this application. (About...) Figure 3 The electronic device 210 in the above can be referred to. Figure 2 The relevant descriptions are not repeated here in the embodiments of this application.

[0077] like Figure 3 As shown, the method for identifying associated file groups may include steps 301 to 305.

[0078] Step 301: Electronic device 210 acquires read and write operation records of multiple files.

[0079] The read / write operation record includes read and / or write operations, as well as the time points at which the read and / or write operations occurred.

[0080] As one possible implementation, electronic device 210 can be a record of read and write operations on multiple files sent by user terminal device 240.

[0081] As one possible implementation, electronic device 210 can also be a system log sent by a storage device that stores file data, and obtain audit logs from the system log.

[0082] The audit log records read and / or write operations on multiple files, along with the corresponding timestamps. The audit log records input / output (IO) operations on multiple files, presented as triples. Each triple includes an action, an object, and a time. The action refers to actions such as reading, writing, adding, deleting, and renaming files, while the object refers to the file path.

[0083] After detecting that a file is in a data unavailable state, the electronic device 210 first obtains the audit log and identifies the associated files in the associated file group based on the audit log before performing data recovery. The file being in a data unavailable state can be due to data corruption, data expiration, or data encryption caused by ransomware attacks, etc., and this embodiment does not impose any limitations on these possibilities.

[0084] As one possible implementation, the electronic device 210 can acquire a preset number of audit logs and segment the audit logs according to a preset period to obtain audit logs for each time window. That is, after acquiring a preset number of audit logs, the electronic device 210 performs streaming segmentation to obtain audit logs for multiple time windows, thereby improving resource utilization and the identification efficiency of related file groups.

[0085] A time window refers to a specific time frame within which events, data, or operations are restricted or analyzed. Time windows are primarily used to divide time intervals to achieve efficient data aggregation, statistics, or to trigger specific behaviors. Types of time windows include scrolling windows, sliding windows, session windows, and global windows.

[0086] The preset quantity can be manually set, and it is also the maximum number of operation records included in the audit log that the electronic device 210 can process. This application embodiment does not limit this.

[0087] As another possible implementation, the electronic device 210 can also acquire audit logs for each time window. Each time window can be divided into segments of fixed duration, and the electronic device 210 can acquire audit logs for each time window at which the logs were generated.

[0088] Step 302: If the time interval between the read and / or write operations of at least two files is within a preset duration threshold, the electronic device 210 determines that at least two files are related files with an association relationship.

[0089] Because the object elements recorded in the audit log are arbitrary, meaning that the paths of two related files may be completely different, the file path similarity cannot be used to identify related files.

[0090] For example, the information recorded in the audit log for two related files is as follows:

[0091] <event>

[0092] <type> File< / type>

[0093] <action> Read< / action>

[0094] <filepath> C: / Users / c00646039 / Desk / DataRecovery / Data\beautiful\square\black\box.Z3PRT< / filepath>

[0095] <timestamp> 2024-07-16 18:49:33.267802< / timestamp>

[0096] < / event>

[0097] <event>

[0098] <type> File< / type>

[0099] <action> Read< / action>

[0100] <filepath> C: / Users / c00646039 / Desk / DataRecovery / Data\cloud\rain\foggy\palne.Z3PRT< / filepath>

[0101] <timestamp> 2024-07-16 18:49:33.269797< / timestamp>

[0102] < / event>

[0103] As shown above, the contents of the FilePath object indicating the path in the three-tuple information of the two related files are completely different. Only the contents of the Action and the Timestamp are the same, both indicating that a read operation was performed on the two related files at 18:49:33 on July 16, 2024.

[0104] In associated files, the characteristic of simultaneous reading and simultaneous writing is common.

[0105] Figure 4 This is a schematic diagram illustrating the principle of associated file group identification provided in an embodiment of this application.

[0106] like Figure 4 As shown, when the application starts, all associated files in the associated filegroup are read "simultaneously". When the application is modified, some associated files in the associated filegroup are written "simultaneously". This characteristic of associated filegroups is ubiquitous; therefore, the goal of identifying associated filegroups is to identify filegroups that generally exhibit "simultaneous" reading and "simultaneous" writing. When file 1 and file 2 are both read and written "simultaneously", then file 1 and file 2 are in the same associated filegroup.

[0107] Based on the above Figure 4 The description states that when associated files are used in an application, it is common for all associated files in the associated file group to be read within a similar time frame when the application starts, and for at least two associated files in the associated file group to be written within a similar time frame when the application is modified.

[0108] For example, when medical imaging software opens a patient's medical image, all medical image files related to that patient are read "simultaneously." Similarly, when modifying a part's file (.Z3PRT) in an assembly file (.Z3ASM), both the assembly drawing file and the part file are written "simultaneously."

[0109] Based on the characteristics of the aforementioned related files, as a possible implementation, the electronic device 210 determines that any two files among multiple files are related files if the time interval between the read operations of the at least two files is within the corresponding first preset duration threshold; or the time interval between the write operations of the at least two files is within the corresponding second preset duration threshold; or the time interval between the read operations of the at least two files is within the first preset duration threshold and the time interval between the write operations of the at least two files is within the second preset duration threshold.

[0110] The first preset duration threshold and the second duration threshold can be preset based on human experience or can be the maximum time interval determined statistically. The first preset duration threshold can be the same or different, and this application embodiment does not limit this.

[0111] Optionally, for any three files among multiple files, if the time interval between the read operations of any two of the three files is within the corresponding first preset duration threshold, and / or the time interval between the write operations is within the corresponding second preset duration threshold, then the electronic device 210 determines that the three files are related files.

[0112] Optionally, for any two files among multiple files, if the time interval between the read operations of the two files is within the corresponding first preset duration threshold, and / or the time interval between the write operations of the two files is within the corresponding second preset duration threshold, then the two files are determined to be related files.

[0113] For example, for any two files, if one file records only one read operation and its corresponding read time in the audit log, while the other file records both read operations and their corresponding read time, or both read and write operations and their corresponding read and write time. Electronic device 210 determines whether the time interval between the read times of the read operations on these two files is within a preset duration threshold. If the time interval is within the preset duration threshold, electronic device 210 determines that the two files are related files.

[0114] For example, for any two files, if one file records a write operation and its corresponding write time in the audit log, and the other file records a write operation and its corresponding write time, or a read operation and a write operation and their corresponding read and write times, the electronic device 210 determines whether the time interval between the write times of the write operations of the two files is within a preset duration threshold. If the time interval is within the preset duration threshold, the electronic device 210 determines that the two files are related files.

[0115] For example, for any two files, if one file records read and write operations and their corresponding read and write timestamps in the audit log, and the other file records read operations and their corresponding read timestamps in the audit log, but records more write operations and their corresponding write timestamps than the other file, then electronic device 210 determines that the time interval between the read timestamps of the two files is within a first preset duration threshold, and the time interval between the write timestamps of any two write operations that are closest in time to each other is within a second preset duration threshold. When the time interval is within the preset duration threshold, electronic device 210 determines that the two files are related files.

[0116] As one possible implementation, electronic device 210 generates file nodes for multiple files based on read / write operation records of multiple files. Electronic device 210 inputs the node features of the multiple file nodes into a pre-trained neural network model to predict at least two file nodes whose similarity is greater than or equal to a preset similarity threshold. Electronic device 210 determines that the files corresponding to at least two file nodes are related files with an association relationship.

[0117] In this context, a file node is a node in a data structure that abstracts a file. This data structure can be a tree, graph, or linked list, etc. The node characteristics of a file node include read and / or write operations, as well as the corresponding time points for these operations. For example, a node characteristic could be [1, 0, 10:00:00], where [1, 0] represents a read operation and [10:00:00] represents the specific read time point; a node characteristic could also be [0, 1, 10:00:23], where [0, 1] represents a write operation and [10:00:23] represents the specific write time point.

[0118] The neural network model can be a recurrent neural network (RNN), a gated recurrent unit (GRU), a long short-term memory network (LSTM), etc. This application does not impose any limitations on this.

[0119] Optionally, the electronic device 210 inputs the node features of multiple file nodes into a pre-trained neural network model to predict each pair of file nodes whose similarity is greater than or equal to a preset similarity threshold. The electronic device 210 determines that the files corresponding to each pair of file nodes are related files with an association relationship.

[0120] Optionally, the training device 220 may be a pre-trained neural network model 201 for node similarity recognition. When training the neural network model 201, the training device 220 labels each pair of file nodes in the training set with manually set labels, which are used to indicate whether each pair of files are related files.

[0121] The training device 220 encodes the node features of the file nodes in the training set into digital features, inputs the digital features of the file nodes in the training set into the neural network model 201 to be trained, and adjusts the parameters of the neural network model 201 according to the recognition results and annotations of the neural network model 201 until a neural network model 201 that meets the requirements is obtained.

[0122] The training device 220 can convert filenames into numerical features through feature hash mapping and encode actions into numerical features. The training device uses one-hot encoding to convert actions into numerical features. For example, a read operation is encoded as [1, 0] and a write operation is encoded as [0, 1].

[0123] Optionally, the read / write operation record includes read / write operation records for each time window, and each time window includes a first time window. The electronic device 210 encodes the node features of multiple file nodes in the first time window into digital features, determining a node feature sequence composed of the digital features of each file node in the first time window. The electronic device 210 inputs the node feature sequences of the first time windows of multiple file nodes into a neural network model to predict every two file nodes whose similarity is greater than or equal to a preset similarity threshold.

[0124] Among them, the node feature sequence refers to the sequence obtained by sorting the digital features of each file node in chronological order.

[0125] For each file node, electronic device 210 acquires the read and / or write operations of the file corresponding to that file node in the first time window, as well as the time points corresponding to the read and / or write operations. Electronic device 210 uses the acquired read and / or write operations, as well as the time points corresponding to the read and / or write operations, as node features, encodes the node features into digital features, and sorts the digital features in chronological order to form a node feature sequence.

[0126] Electronic device 210 uses a feature extractor based on a pre-trained neural network model 201 to extract node features from multiple file nodes and embed them into the latent space to obtain feature vectors of multiple file nodes. Based on the classifier of the neural network model 201, it determines every two file nodes whose feature vectors have a similarity greater than a preset similarity threshold.

[0127] Among them, node features can be numerical features of file nodes or a sequence of node features composed of array features.

[0128] The classifier can be implemented using methods such as neural networks or logistic regression to achieve the classification function.

[0129] The implementation process of electronic device 210 predicting whether file nodes are similar can be found in the following text. Figure 6 The relevant descriptions of step four are not repeated here in the embodiments of this application.

[0130] Step 303: Electronic device 210 aggregates multiple related files that have a relationship into a related file group.

[0131] Electronic device 210 determines at least two directly or indirectly related files based on multiple related files that are interrelated among multiple files, and groups the at least two related files into a related file group.

[0132] Step 304: Electronic device 210 determines whether there is at least one associated file in the associated file group that is in a data unavailable state. If so, it proceeds to step 305.

[0133] For each associated file in the associated file group, the electronic device 210 determines whether the associated file is in a data unavailable state. If at least one associated file is in a data unavailable state, then step 305 is executed.

[0134] Step 305: Electronic device 210 performs data recovery on the associated file group based on clean snapshot data of at least one associated file to obtain the recovered associated file group.

[0135] Clean snapshot data is obtained by taking a snapshot and backing up the data when at least one associated file is in a data-available state.

[0136] As one possible implementation, the electronic device 210 performs data recovery based on a portion of the snapshot data corresponding to the associated file group in the clean snapshot data, and obtains multiple recovered associated files in the associated file group.

[0137] Optionally, the electronic device 210 searches for completely clean snapshot data in the backed-up snapshot data, and performs data recovery based on the portion of the completely clean snapshot data related to the associated files in the associated file group to obtain the recovered associated file group.

[0138] Among them, the completely clean snapshot data is obtained by taking a snapshot and backing up multiple files when all of them are in a data-available state.

[0139] The electronic device 210 performs data recovery on all associated files in the associated file group that are in a data available state and all associated files that are in a data unavailable state, thereby ensuring that all associated files in the associated file group are in the same version state, enabling applications that depend on the associated file group to recover.

[0140] Optionally, the electronic device 210 searches for partially infected snapshot data in the backed-up snapshot data, and performs data recovery on the associated file group based on the partially infected snapshot data related to the associated files in the associated file group to obtain the recovered associated file group.

[0141] Some infection snapshot data is obtained by taking snapshots and backing up files from multiple files when some files are in a data unavailable state. For example, some infection snapshot data can be obtained by taking snapshots and backing up unrelated files from multiple files when they are in a data unavailable state, or it can be obtained by taking snapshots and backing up related files from other related file groups from multiple files when they are in a data unavailable state.

[0142] Optionally, the electronic device 210 can also fuse completely clean snapshot data and partially clean data from subsequent partially infected snapshot data to obtain fused snapshot data. The electronic device 210 performs data recovery on the associated file group based on the fused snapshot data to obtain multiple recovered associated files in the recovered associated file group.

[0143] For example, electronic device 210 determines the target backup time point corresponding to completely clean snapshot data. Based on the completely clean snapshot data and partially infected snapshot data from backup time points after the target backup time point, it determines the latest and clean partial snapshot data corresponding to the associated file group. Electronic device 210 performs data recovery based on the partial snapshot data, obtaining multiple recovered associated files in the recovered associated file group.

[0144] Electronic device 210 periodically takes snapshots of files for backup. It then searches for the most recent completely clean snapshot data within the backup data, determines the backup time corresponding to that clean snapshot, and searches for infected snapshot data that occurred after that time. Electronic device 210 performs grouped data fusion and recovery based on the merged snapshot data of the completely clean snapshot data and the partially infected snapshot data.

[0145] The process of electronic device 210 performing grouped data fusion recovery on associated file groups can be referred to below. Figure 8 The relevant descriptions are not repeated here in the embodiments of this application.

[0146] Based on the above Figure 3 The descriptions of steps 301 to 305 are as follows: Since multiple related files in a related file group are dependent on by the application and need to be read and written within a similar time frame, the electronic device 210 can determine that at least two files are related files by recognizing that the time interval between the reading actions of at least two files is within a preset duration threshold. Therefore, the electronic device 210 can identify related file groups comprised of multiple related files that have a relationship among multiple files.

[0147] In addition, the electronic device 210 also performs data recovery on the associated file group, which includes associated files that are in a data unavailable state, thereby ensuring the recovery of applications that depend on the associated file group.

[0148] The above describes the complete process of electronic device 210 identifying associated file groups. The following section will combine... Figures 5 to 7 The process of identifying and restoring associated file groups is illustrated through a specific example.

[0149] The process of electronic device 210 identifying and restoring associated file groups includes steps one through six.

[0150] Step 1: Electronic device 210 acquires a preset number of audit logs, and segments the audit logs into segments with a 10-second period to obtain audit logs for multiple time windows.

[0151] Figure 5 This is a schematic diagram of an electronic device 210 performing audit log fragmentation, as provided in an embodiment of this application.

[0152] like Figure 5 As shown, the first 10-second time window includes 500 audit logs, the second 10-second time window includes 10,000 audit logs, the third 10-second time window includes 10 audit logs, the fourth 10-second time window includes 6 audit logs, and the fifth 10-second time window includes 1,000 audit logs.

[0153] like Figure 5 As shown, the triplet information (action, file, timestamp) in the audit log of a time window after sharding can include (read, file1.txt, 10:00:00), (read, file2.jpg, 10:00:01), (read, file3.pdf, 10:00:03), (read, file4.txt, 10:00:04), (read, file5.jpg, 10:00:18), (write, file4.txt, 10:00:23), (write, file2.jpg, 10:00:24), (write, file1.txt, 10:00:25), (write, file2.jpg, 10:00:26), (write, file4.txt, 10:00:27), (write, file5.jpg, 10:00:33), etc.

[0154] Step 2: Electronic device 210 generates file nodes for each file from the audit log of the time window, and converts the file read and write operation records into digital features as the node features of the file nodes.

[0155] Table 2 is a node feature table of a file node corresponding to a file provided in an embodiment of this application.

[0156] Table 2

[0157]

[0158] As shown in Table 2, the node features of the file node corresponding to file 1.txt include [1, 0, 10:00:00] and [0, 1, 10:00:25]; the node features of the file node corresponding to file 2.jpg include [1, 0, 10:00:01], [0, 1, 10:00:24], and [0, 1, 10:00:26]; the node features of the file node corresponding to file 3.pdf include [1, 0, 10:00:03]; the node features of the file node corresponding to file 4.txt include [1, 0, 10:00:04], [0, 1, 10:00:23], and [0, 1, 10:00:27]; and the node features of the file node corresponding to file 5.jpg include [1, 0, 10:00:18] and [0, 1, 10:00:36].

[0159] Step 3: Electronic device 210 links the file nodes corresponding to the related files that have a relationship.

[0160] Figure 6 This is a schematic diagram of a file node provided in an embodiment of this application.

[0161] like Figure 6As shown, the file nodes of file 1 are linked to the file nodes of file 2 and file 3 respectively, the file nodes of file 2 are linked to the file nodes of file 3 and file 4 respectively, and the file nodes of file 4 are linked to the file nodes of file 2 and file 5 respectively.

[0162] Step 4: Electronic device 210 assembles the node features of each file's file nodes into a node feature sequence, inputs the node feature sequence of each file into a pre-trained neural network model, and obtains the file nodes corresponding to the related files predicted by the neural network model, as well as the link relationships between the file nodes corresponding to the related files.

[0163] Figure 7 This is a schematic diagram of the file nodes and link relationships of related files predicted by the neural network model provided in the embodiments of this application.

[0164] like Figure 7 As shown, the file nodes of associated file 1 are linked to the file nodes of associated files 2 and 3, respectively, and the file nodes of associated file 2 are linked to the file nodes of associated file 3. The file node of associated file 4 is linked to the file node of associated file 5.

[0165] Step 5: Electronic device 210 aggregates related files with direct or indirect relationships into a group of related files.

[0166] Table 3 is a table showing the relationship between related files provided in an embodiment of this application.

[0167] Table 3

[0168] file1.txt File2.jpg File 3.pdf file4.txt File5.jpg file1.txt 1 1 File2.jpg 1 1 File 3.pdf 1 1 file4.txt 1 File5.jpg 1

[0169] As shown in Table 3, the "1" in the table corresponding to the two files in Table 2 indicates a related relationship. That is, file 1.txt is related to file 2.jpg and file 3.pdf, and file 2.jpg and file 3.pdf are related. File 4.txt and file 5.jpg are also related.

[0170] Electronic device 210 aggregates file 1.txt, file 2.jpg, and file 3.pdf into associated file group 1, and aggregates file 4.txt and file 5.jpg into associated file group 2.

[0171] Step 6: Electronic device 210 performs group recovery of associated file groups.

[0172] Electronic device 210 determines whether there are any associated files in associated file group 1 and associated file group 2 that are in a data unavailable state. If it is determined that at least one associated file in associated file group 1 is in a data unavailable state, then data recovery is performed on associated file group 1; if it is determined that at least one associated file in associated file group 2 is in a data unavailable state, then data recovery is performed on associated file group 2.

[0173] Based on the process described in steps one through six above, the electronic device 210 can accurately identify associated files and restore the group of associated files.

[0174] The above describes an overall schematic diagram of the identification of related files and the recovery of related file groups. The following section will combine... Figure 8 The specific process for restoring a group of associated files is explained.

[0175] Figure 8 This is a schematic diagram illustrating the process of restoring a group of associated files, as provided in an embodiment of this application.

[0176] Electronic device 210 obtains audit logs.

[0177] Electronic device 210 segments the audit log to obtain audit log 1 after a legal operation, and audit log 2 after a legal operation and an illegal operation.

[0178] like Figure 8 As shown, the electronic device 210 identifies the audit log 1 generated after a legitimate operation using a file association identifier, and obtains the file association analysis result 1.

[0179] The file association identifier can be a functional module in the electronic device 210, and the file association identifier may include a trained neural network model.

[0180] Among them, electronic device 210 performed a snapshot data backup after legitimate operation. For example... Figure 8 As shown, the snapshot data s1 backed up at time t1 is completely clean snapshot data, and the files in snapshot data s1 are version v1. Snapshot data s1 includes snapshot data corresponding to associated file group 1, snapshot data corresponding to non-associated files, and snapshot data corresponding to associated file group 2.

[0181] The snapshot data corresponding to associated file group 1 may include the following:

[0182] D:\NDAR\deeprecovery\data\cloud\rain\foggy\palne.prt

[0183] D:\NDAR\deeprecovery\data\river\sea\boat\swim.prt

[0184] D:\NDAR\deeprecovery\data\road\street\bus\car.prt

[0185] D:\NDAR\deeprecovery\data\people.asm

[0186] Snapshot data for non-associative files may include the following:

[0187] D:\NDAR\deeprecovery\data\assembly.pkl

[0188] D:\NDAR\deeprecovery\data\random.xml

[0189] D:\NDAR\deeprecovery\data\two_dbs_cluster.txt

[0190] The snapshot data corresponding to associated file group 2 may include the following:

[0191] D:\NDAR\deeprecovery\data\beautiful\square\black\box.prt

[0192] D:\NDAR\deeprecovery\data\earth\rocket\move\hot\love.prt

[0193] D:\NDAR\deeprecovery\data\good\strong\hand.prt

[0194] D:\NDAR\deeprecovery\data\head\bike.prt

[0195] D:\NDAR\deeprecovery\data\fly.asm

[0196] The document association analysis result 1 includes associated file group 1 (v1), associated file group 2 (v1), and non-associated file (v1).

[0197] Electronic device 210 identifies the audit logs 2 generated after legal and illegal operations using a file association identifier, and obtains the file association analysis result 2.

[0198] Among them, electronic device 210 performs snapshot data backups after both legal and illegal operations. For example... Figure 8 As shown, the snapshot data s2 backed up at time t2 is a partially infected snapshot data, and the files in snapshot data s2 are version v2.

[0199] The file association analysis result 2 includes associated file group 1 (v2), associated file group 2 (v2) (including infected files), associated file group 3 (new), and non-associated files (v2) (including infected files).

[0200] Electronic device 210 merges the file association analysis results 1 and 2 to obtain the merged file association analysis results.

[0201] The results of the merged file association analysis include associated file group 1 (v2), associated file group 2 (v1), associated file group 3 (new), and non-associated files (v1+v2).

[0202] Electronic device 210 performs group recovery of associated file group 2 based on the data of associated file group 2 of clean v1 version in completely clean snapshot data s1.

[0203] Based on the data recovery process of the aforementioned associated file group, the electronic device 210 realizes data recovery of the associated file group containing associated files that are in a data unavailable state. Figure 9 This application provides a schematic diagram illustrating a scenario for restoring a group of associated files, as shown in the embodiments of this application. Figure 9 As shown, when one associated file in an infected associated file group is in a data unavailable state, the associated file group becomes unavailable due to the principle that if one file is damaged, the entire associated file group is also damaged. Therefore, the above method is used to restore the associated file group as a group, resulting in a completely clean associated file group.

[0204] The foregoing has described in detail the method for identifying associated file groups according to this embodiment. The following will combine... Figure 10 This describes the associated file group identification device provided in the embodiments of this application.

[0205] Figure 10 This is a schematic diagram of the associated file group identification device provided in the embodiments of this application, as shown below. Figure 10 As shown, the associated file group identification device 1000 includes an acquisition module 1001, an identification module 1002, and an aggregation module 1003.

[0206] The acquisition module 1001 is used to acquire read and write operation records for multiple files. These records include read and / or write operations, as well as the timestamps of the read and / or write operations. For example, the acquisition module 1001 is used to execute... Figure 3 Step 301 in the process.

[0207] The identification module 1002 is used to determine that at least two files are related files if the time interval between the read and / or write operations of at least two files is within a preset duration threshold. For example, the identification module 1002 is used to perform... Figure 3 Step 302 in the process.

[0208] Aggregation module 1003 is used to aggregate multiple related files into a group of related files. For example, aggregation module 1003 is used to execute... Figure 3 Step 303 in the process.

[0209] As one possible implementation, the identification module 1002 is specifically used to generate file nodes of multiple files based on read and write operation records of multiple files; the node features of the file nodes include read and write operation records; the node features of the multiple file nodes are input into a pre-trained neural network model to predict at least two file nodes among the multiple file nodes whose similarity is greater than or equal to a preset similarity threshold; and the files corresponding to the at least two file nodes are determined to be related files with an association relationship.

[0210] As one possible implementation, the read / write operation record includes read / write operation records for each time window, and each time window includes a first time window. The identification module 1002 is further configured to encode the node features of multiple file nodes in the first time window into digital features; and determine the node feature sequence composed of the digital features of the first time window for each file node. Specifically, the identification module 1002 is used to input the node feature sequence of the first time window of multiple file nodes into a neural network model to predict at least two file nodes among the multiple file nodes whose similarity is greater than or equal to a preset similarity threshold.

[0211] As one possible implementation, the identification module 1002 is specifically used to extract the node features of multiple file nodes and embed them into the latent space based on the feature extractor of the pre-trained neural network model to obtain the feature vectors of multiple file nodes; and to determine at least two file nodes whose feature vectors have a similarity greater than a preset similarity threshold based on the classifier of the neural network model.

[0212] As one possible implementation, the associated file group identification device 1000 further includes a data recovery module 1004, which is used to determine that at least one associated file in the associated file group is in a data unavailable state; to perform data recovery on the associated file group based on clean snapshot data of at least one associated file, and to obtain a recovered associated file group; the clean snapshot data is obtained by taking a snapshot and backing up when at least one associated file is in a data available state.

[0213] Optionally, the data recovery module 1004 is specifically used to perform data recovery based on the clean snapshot data corresponding to the associated file group in the completely clean snapshot data and / or partially infected snapshot data, to obtain the recovered associated file group; the completely clean snapshot data is obtained by taking snapshots and backing up multiple files when they are in a data available state, and the partially infected snapshot data is obtained by taking snapshots and backing up multiple files when some files are in a data unavailable state.

[0214] The acquisition module 1001, identification module 1002, aggregation module 1003, and data recovery module 1004 can all be implemented in software or hardware. For example, the implementation of the acquisition module 1001 will be described below. Similarly, the implementation of the identification module 1002, aggregation module 1003, and data recovery module 1004 can refer to the implementation of the acquisition module 1001.

[0215] As an example of a software functional unit, module 1001 may include code running on a computing instance. The computing instance may include at least one of a physical host (network device), a virtual machine, or a container. Further, the aforementioned computing instance may be one or more. For example, module 1001 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed within the same region or in different regions. Further, the multiple hosts / virtual machines / containers used to run the code may be distributed within the same availability zone (AZ) or in different AZs, each AZ including one or more geographically proximate data centers. Typically, a region may include multiple AZs.

[0216] Similarly, multiple hosts / virtual machines / containers used to run this code can be distributed within the same Virtual Private Cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Communication between two VPCs within the same region, as well as between VPCs in different regions, requires a communication gateway to be set up within each VPC to enable interconnection between VPCs.

[0217] As an example of a hardware functional unit, the acquisition module 1001 may include at least one electronic device, such as a server. Alternatively, the acquisition module 1001 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be implemented using a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), generic array logic (GAL), or any combination thereof.

[0218] The multiple electronic devices included in the acquisition module 1001 can be distributed in the same region or in different regions. Similarly, the multiple electronic devices included in the acquisition module 1001 can be distributed in the same Availability Zone (AZ) or in different AZs. Likewise, the multiple electronic devices included in the acquisition module 1001 can be distributed in the same Virtual Private Cloud (VPC) or in multiple VPCs. These multiple electronic devices can be any combination of network devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0219] It should be noted that, in other embodiments, any one of the acquisition module 1001, identification module 1002, aggregation module 1003, and data recovery module 1004 can be used to perform any step in the network measurement method. The steps implemented by the acquisition module 1001, identification module 1002, aggregation module 1003, and data recovery module 1004 can be specified as needed. By implementing different steps in the associated file group identification method through the acquisition module 1001, identification module 1002, aggregation module 1003, and data recovery module 1004, all functions of the associated file group identification device 1000 can be realized.

[0220] This application also provides an electronic device 1100. Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 11 As shown, the electronic device 1100 includes: a bus 1102, a processor 1104, a memory 1106, and a communication interface 1108. The processor 1104, the memory 1106, and the communication interface 1108 communicate with each other via the bus 1102. The electronic device 1100 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in the electronic device 1100.

[0221] Bus 1102 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 11 The bus 1102 may be represented by a single line, but this does not mean that there is only one bus or one type of bus. The bus 1102 may include a path for transmitting information between various components of the electronic device 1100 (e.g., memory 1106, processor 1104, communication interface 1108).

[0222] The processor 1104 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0223] The memory 1106 may include volatile memory, such as random access memory (RAM). The processor 1104 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0224] The memory 1106 stores executable program code, and the processor 1104 executes the executable program code to implement the functions of the aforementioned acquisition module 1001, identification module 1002, aggregation module 1003, and data recovery module 1004, thereby realizing the associated file group identification method. That is, the memory 1106 stores instructions for executing the associated file group identification method.

[0225] The communication interface 1108 uses transceiver modules such as, but not limited to, network interface cards and transceivers to enable communication between the electronic device 1100 and other devices or communication networks.

[0226] This application also provides an electronic device cluster. The electronic device cluster includes at least one electronic device. The electronic device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the network device can also be a terminal device such as a desktop computer, laptop computer, or smartphone. The electronic device can also be a switching device, such as a gateway switching device, a programmable switching device, or a pipelined switching device.

[0227] Figure 12 This is a schematic diagram of the structure of an electronic device cluster provided in an embodiment of this application, such as... Figure 12 As shown, the electronic device cluster includes at least one electronic device 1100. The memory 1106 of one or more electronic devices 1100 in the electronic device cluster may store the same instructions for executing the associated file group identification method.

[0228] In some possible implementations, the memory 1106 of one or more electronic devices 1100 in the electronic device cluster may also store partial instructions for executing the associated filegroup identification method. In other words, a combination of one or more network devices 1100 can jointly execute instructions for executing the associated filegroup identification method.

[0229] It should be noted that the memory 1106 in different electronic devices 1100 within the electronic device cluster can store different instructions, which are used to execute some functions of the associated file group identification device 1000. That is, the instructions stored in the memory 1106 of different electronic devices 1100 can implement the functions of one or more modules among the acquisition module 1001, identification module 1002, aggregation module 1003, and data recovery module 1004.

[0230] In some possible implementations, one or more electronic devices in an electronic device cluster can be connected via a network. Figure 13 One possible implementation method is shown. Figure 13This application provides a schematic diagram of a network connection structure between electronic devices, as shown in the embodiments of the present application. Figure 13 As shown, two network devices 1100A and 1100B are connected via a network. Specifically, they are connected to the network through the communication interfaces in each electronic device. In this possible implementation, the memory 1106 in electronic device 1100A stores instructions for executing the functions of the acquisition module 1001. Simultaneously, the memory 1106 in electronic device 1100B stores instructions for executing the functions of the identification module 1002, the aggregation module 1003, and the data recovery module 1004.

[0231] Figure 13 The connection method between the electronic device clusters shown can be that, considering that the network measurement method provided in this application requires data calculation, the functions implemented by the identification module 1002, aggregation module 1003 and data recovery module 1004 are delegated to the electronic device 1100B for execution.

[0232] It should be understood that Figure 13 The functions of the electronic device 1100A shown can also be performed by multiple electronic devices 1100. Similarly, the functions of the electronic device 1100B can also be performed by multiple electronic devices 1100.

[0233] This application also provides another type of electronic device cluster. The connection relationships between the electronic devices in this electronic device cluster can be similarly referred to... Figure 12 and Figure 13 The connection method of the electronic device cluster. The difference is that the memory 1106 of one or more electronic devices 1100 in the electronic device cluster can store the same instructions for executing the associated file group identification method.

[0234] In some possible implementations, the memory 1106 of one or more electronic devices 1100 in the electronic device cluster may also store partial instructions for executing the associated filegroup identification method. In other words, a combination of one or more network devices 1100 can jointly execute instructions for executing the associated filegroup identification method.

[0235] It should be noted that the memory 1106 in different electronic devices 1100 within the electronic device cluster can store different instructions for executing some functions of the associated file group identification system. That is, the instructions stored in the memory 1106 of different electronic devices 1100 can implement the functions of one or more nodes in the associated file group identification system.

[0236] This application also provides a computer program product containing instructions. The computer program product may be a software or program product containing instructions capable of running on a cluster of electronic devices or stored on any available medium. When the computer program product is run on at least one electronic device, it causes the at least one electronic device to perform an associated file group identification method.

[0237] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that an electronic device can store, or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive). The computer-readable storage medium includes instructions that instruct an electronic device to perform an associated file group identification method.

[0238] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for identifying associated file groups, characterized in that, The method includes: Obtain read and write operation records for multiple files; the read and write operation records include read operations and / or write operations, as well as the time points when the read operations and / or the write operations occurred; If the time interval between the read operations and / or write operations of at least two files is within a preset duration threshold, then the at least two files are determined to be related files with an association relationship. Multiple related files that have a relationship among the multiple files are aggregated into a related file group.

2. The method according to claim 1, characterized in that, If the time interval between the read operations and / or write operations of at least two files is within a preset duration threshold, determining that the at least two files are related files with an association relationship includes: Based on the read and write operation records of the multiple files, file nodes for the multiple files are generated; the node characteristics of the file nodes include the read and write operation records. The node features of multiple file nodes are input into a pre-trained neural network model to predict at least two file nodes among the multiple file nodes whose similarity is greater than or equal to a preset similarity threshold. The files corresponding to the at least two file nodes are determined to be related files with an association relationship.

3. The method according to claim 2, characterized in that, The read / write operation record includes read / write operation records for each time window, and each time window includes a first time window; before inputting the node features of multiple file nodes into a pre-trained neural network model to predict at least two file nodes among the multiple file nodes whose similarity is greater than or equal to a preset similarity threshold, the method further includes: The node features of the multiple file nodes in the first time window are encoded into digital features; Determine the node feature sequence composed of the digital features of the first time window for each file node; The step of inputting the node features of multiple file nodes into a pre-trained neural network model to predict at least two file nodes among the multiple file nodes whose similarity is greater than or equal to a preset similarity threshold includes: The node feature sequence of the first time window of the plurality of file nodes is input into the neural network model to predict at least two file nodes among the plurality of file nodes whose similarity is greater than or equal to a preset similarity threshold.

4. The method according to claim 2 or 3, characterized in that, The step of inputting node features of multiple file nodes into a pre-trained neural network model to predict at least two file nodes among the multiple file nodes whose similarity is greater than or equal to a preset similarity threshold includes: Based on the feature extractor of the pre-trained neural network model, the node features of the multiple file nodes are extracted and embedded in the latent space to obtain the feature vectors of the multiple file nodes. The classifier based on the neural network model identifies at least two file nodes whose feature vectors have a similarity greater than a preset similarity threshold.

5. The method according to any one of claims 1-4, characterized in that, The method further includes: Determine that at least one associated file in the associated file group is in a data unavailable state; Data recovery of the associated file group is performed based on clean snapshot data of at least one associated file to obtain the recovered associated file group; the clean snapshot data is obtained by taking a snapshot and backing up the at least one associated file when the data is available.

6. The method according to claim 5, characterized in that, The step of performing data recovery on the associated file group based on clean snapshot data of at least one associated file to obtain the recovered associated file group includes: Data recovery is performed based on the clean snapshot data corresponding to the associated file group from the completely clean snapshot data and / or partially infected snapshot data to obtain the recovered associated file group; the completely clean snapshot data is obtained by taking snapshots and backing up when the multiple files are in a data available state, and the partially infected snapshot data is obtained by taking snapshots and backing up when some of the multiple files are in a data unavailable state.

7. A device for identifying associated file groups, characterized in that, The device includes: The acquisition module is used to acquire read and write operation records for multiple files; the read and write operation records include read operations and / or write operations, as well as the time points when the read operations and / or the write operations occurred; The identification module is used to determine that the at least two files are related files if the time interval between the time points corresponding to the read operation and / or the write operation of at least two files is within a preset duration threshold. The aggregation module is used to aggregate multiple related files that have a relationship into a related file group.

8. An electronic equipment cluster, characterized in that, It includes at least one electronic device, each electronic device including a processor and memory; The processor of the at least one electronic device is configured to execute instructions stored in the memory of the at least one electronic device to cause the cluster of electronic devices to perform the method as described in any one of claims 1-6.

9. A computer program product containing instructions, characterized in that, When the instruction is executed by the electronic device cluster, the electronic device cluster performs the method as described in any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, It includes computer program instructions, which, when executed by a cluster of electronic devices, perform the method as described in any one of claims 1-6.