A method and system for repairing electronic files for data processing
Through the collaborative work of the file server and the central management server, the characteristic parameters of electronic archives are obtained and processed, disassembled and targeted repaired, and the hierarchical screening model is used to determine the repair mode, which solves the low efficiency and insufficient accuracy of electronic archive repair in the existing technology. problems, achieving efficient and accurate repair processing.
Patent Information
- Application Number
- CN202410764747.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-14
AI Technical Summary
Existing electronic archive management technology is inefficient during repair and cannot effectively solve the problem of data corruption of different file types, resulting in poor repair efficiency and insufficient accuracy.
After receiving repair requests through file server awareness, the central management server searches for damaged files and obtains their characteristic parameters, performs disassembly and targeted repair processing, and uses the hierarchical screening model to determine the repair mode to ensure that each data block receives the most suitable repair method. .
It improves the efficiency of electronic file repair processing, allocates repair resources in a targeted manner, ensures the integrity and accuracy of file content, and solves the problem of data corruption in different file types.
Smart Images

Figure CN118331794B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of archive data processing and repair, and in particular to an electronic archive repair method and system for data processing. Background Art
[0002] Electronic archives may be damaged or lost due to storage media failure, data transmission errors, or malware attacks. Repairing damaged electronic archives can recover the lost information and ensure the integrity and accessibility of electronic archives.
[0003] The prior art, such as the invention patent with announcement number: CN110795766B, is an electronic archive data preservation system and method, wherein the system includes an archive data receiving module, an archive data storage module, an archive data utilization module and an archive data exit module. The archive data receiving module performs data preprocessing, data verification and data reception process records on the archive data to be stored; the archive data storage module monitors the data status of the archive data to be stored in real time according to the preset independent detection and classification rules, and performs autonomous repair and preservation of the archive data to be stored in accordance with the full timeline status of the data; the archive data utilization module provides the required archive data to be stored in the warehouse for authorized users, and stores the corresponding data utilization records; the archive data exit module is used to automatically execute the exit procedure of the archive data when the verification license file is correct and the party requesting the archive data to be released is the authorized user, thereby effectively ensuring the security, integrity, authenticity and availability of the electronic archive data content.
[0004] Prior art, such as the invention patent with announcement number: CN113792169B, is a digital archive management method and system based on big data application, which obtains the original archive image by scanning; the original archive image is restored to improve the accuracy and completeness of the archive information in the archive image, thereby improving the effectiveness of archive management. In addition, index information is generated based on the information of the restored archive image itself, and the restored archive image is stored based on the index information. When the user needs to find the restored archive image or the archive information in the restored archive image, the restored archive image or archive information can be quickly and accurately found based on the index information, thereby improving the accuracy, security and efficiency of archive management. Storing the archive information in a large database is convenient for users to query, and at the same time, it is convenient for sharing archive information, realizing the intelligent management of archive information.
[0005] Based on the above scheme, it can be seen that at present, when managing and repairing electronic archives, the archives are usually only repaired as a whole or in a solid state. Electronic archives often contain various types of data, covering a variety of formats and contents. The overall solid-state repair method firstly takes a long time to complete, and secondly cannot effectively solve the problem of data corruption of different archive types. Therefore, the current electronic archive management has the limitations of poor repair efficiency and insufficient repair processing accuracy. Summary of the invention
[0006] In view of the deficiencies in the prior art, the present invention provides an electronic file repair method and system for data processing, which can effectively solve the problems involved in the above-mentioned background technology.
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions: In the first aspect, a method for repairing an electronic file for data processing is provided, comprising: S1, a file server senses and receives an electronic file repair trigger request condition, and transmits a damaged electronic file search signal to a central management server.
[0008] S2. The central management server responds to the damaged electronic file search signal, and goes through each existing electronic file in the archive to search for the damaged electronic file, and marks the searched damaged electronic file as a pre-repair electronic file.
[0009] S3. Obtain damaged characteristic parameters of the pre-repair electronic file and process them to obtain a preliminary execution repair disassembly and cutting ratio of the pre-repair electronic file, recorded as the pre-execution repair disassembly and cutting ratio.
[0010] S4. Based on the pre-execution repair disassembly and segmentation ratio, the pre-repair electronic file is disassembled to obtain each split data block of the pre-repair electronic file.
[0011] S5. Repair the split data blocks of the pre-repaired electronic archive, and splice the repaired split data blocks to obtain the reconstructed and repaired electronic archive and replace it in the archive library.
[0012] As a preferred technical solution, the method of obtaining damaged characteristic parameters of the pre-repaired electronic archive specifically includes: obtaining the original archived data of the pre-repaired electronic archive, and extracting the current data of the pre-repaired electronic archive, and comparing and counting the characteristic deviation parameters of the pre-repaired electronic archive, wherein the characteristic deviation parameters include the deviation hash value, the deviation byte value, and the total number of metadata deviation items.
[0013] Obtain log records of the pre-repair electronic archive in an existing cycle, and retrieve characteristic operation parameters therefrom, wherein the characteristic operation parameters include access frequency, number of abnormal accesses, and number of network interruptions.
[0014] The characteristic deviation parameters and characteristic operation parameters of the pre-repaired electronic file are jointly calibrated as the damaged characteristic parameters of the pre-repaired electronic file.
[0015] As a preferred technical solution, the damaged characteristic parameters of the pre-repaired electronic file are obtained for processing, and the specific process includes: based on the characteristic deviation parameters and characteristic operation parameters of the pre-repaired electronic file, they are successively compared with the characteristic deviation verification parameters and characteristic operation verification parameters stored in the data warehouse to obtain the characteristic deviation verification coefficient and characteristic operation verification coefficient of the pre-repaired electronic file. The characteristic deviation verification coefficient and characteristic operation verification coefficient are used to quantitatively characterize the characteristic deviation degree and storage interference degree of the pre-repaired electronic file, respectively.
[0016] Based on the characteristic deviation verification coefficient and the characteristic operation verification coefficient of the pre-repaired electronic file, a comprehensive processing is performed to obtain the damaged characteristic verification coefficient of the pre-repaired electronic file, and the damaged characteristic verification coefficient is used to numerically quantify the degree of damage of the pre-repaired electronic file.
[0017] As a preferred technical solution, the preliminary execution repair and disassembly block ratio of the pre-repaired electronic file is specifically: based on the damaged feature verification coefficient of the pre-repaired electronic file, the repair and disassembly block ratio corresponding to each damaged feature verification coefficient interval stored in the data warehouse is matched, and the matched repair and disassembly block ratio is recorded as the preliminary execution repair and disassembly block ratio of the pre-repaired electronic file.
[0018] As a preferred technical solution, the repair processing of each split data block of the pre-repaired electronic file specifically includes: counting the basic parameters corresponding to each split data block of the pre-repaired electronic file, obtaining the repair indication factor corresponding to each split data block of the pre-repaired electronic file through numerical processing, and the repair indication factor is used to numerically represent the repair difficulty of each split data block.
[0019] The repair indication factors corresponding to each split data block of the pre-repaired electronic archive are imported into the hierarchical screening model to obtain the repair execution mode corresponding to each split data block of the pre-repaired electronic archive, thereby repairing each split data block of the pre-repaired electronic archive with the corresponding repair execution mode.
[0020] As a preferred technical solution, the basic parameters corresponding to each split data block include the total number of bytes, the byte ratio of each content organization, and the distribution content segment.
[0021] As a preferred technical solution, the hierarchical screening model is specifically implemented as follows: the repair indicator factor corresponding to each split data block of the pre-repaired electronic archive is marked as , where j is the number of each split data block, , n is the total number of split data blocks.
[0022] The first screening threshold value and the second screening threshold value in the statistical hierarchical screening model are marked as , .
[0023] After the hierarchical screening model processing, if , then the repair execution mode corresponding to the split data block of the pre-repair electronic archive is defined as automatic repair.
[0024] like , then the repair execution mode corresponding to the split data block of the pre-repaired electronic archive is defined as semi-automatic repair.
[0025] like , the repair execution mode corresponding to the split data block of the pre-repair electronic archive is defined as manual repair.
[0026] Based on the hierarchical screening model processing, the repair execution mode corresponding to each split data block of the pre-repaired electronic archive is obtained.
[0027] As a preferred technical solution, the specific processing process of the repair indicator factor corresponding to each split data block of the pre-repaired electronic file is as follows:
[0028] ;
[0029] in, is the repair indicator factor corresponding to the split data block j of the pre-repaired electronic archive, is the total number of bytes corresponding to the split data block j, is the byte percentage of the g-th content organization corresponding to the split data block j, is the upper limit of the distribution content segment corresponding to the split data block j, is the lower bound of the distribution content segment corresponding to the split data block j, is the reference byte number, Reference byte percentage for content organization, The upper limit of the core distribution content section of the pre-repaired electronic archive, The lower limit of the core distribution content section of the pre-repaired electronic archive is is the first weight of split data block j, is the second weight of split data block j, is the third weight of split data block j, j is the number of each split data block, , n is the total number of split data blocks, g is the number of each content organization, , u is the total number of content organizations.
[0030] In a second aspect, an electronic file repair system for data processing is provided, comprising: a search signal trigger transmission module, which is used to sense and receive an electronic file repair trigger request condition through a file server, and transmit a damaged electronic file search signal to a central management server.
[0031] The damaged electronic file search module is used to respond to the damaged electronic file search signal through the central management server, and to go through each existing electronic file in the archive to search for the damaged electronic file, and mark the searched damaged electronic file as a pre-repair electronic file.
[0032] The damaged characteristic parameter acquisition processing module is used to acquire the damaged characteristic parameters of the pre-repair electronic file for processing to obtain the preliminary execution repair disassembly and cutting ratio of the pre-repair electronic file, which is recorded as the pre-execution repair disassembly and cutting ratio.
[0033] The electronic archive disassembly module is used to disassemble the pre-repair electronic archive based on the pre-execution repair disassembly and block ratio to obtain each split data block of the pre-repair electronic archive.
[0034] The electronic archive repair processing module is used to repair the split data blocks of the pre-repaired electronic archive, and splice the repaired split data blocks to obtain the reconstructed and repaired electronic archive and replace it in the archive library.
[0035] Compared with the prior art, the embodiments of the present invention have at least the following beneficial effects:
[0036] (1) The present invention provides an electronic archive repair method and system for data processing. By disassembling the pre-repaired electronic archive and performing targeted repair processing on the disassembled multiple data blocks, the present invention effectively makes up for the shortcomings of the current general overall or solid-state repair processing of archives. It can not only effectively improve the repair processing efficiency of electronic archives, but also effectively solve the data damage problem of different archive types.
[0037] (2) The present invention obtains the damaged characteristic parameters of the pre-repaired electronic archive and processes them to obtain the preliminary execution repair disassembly and block ratio of the pre-repaired electronic archive. The damaged characteristics of the pre-repaired electronic archive can be quantified in numerical form, and the repair disassembly and block ratio of the archive can be screened according to the performance of the damaged characteristics, so that the number and size of the split data blocks obtained by the subsequent disassembly can be adapted to match the damaged characteristics of the pre-repaired electronic archive, thereby improving the efficiency of the archive repair processing, and can allocate repair resources in a targeted manner to avoid unnecessary waste of archive repair resources.
[0038] (3) The present invention repairs each split data block of the pre-repaired electronic archive and can analyze and obtain the repair execution mode corresponding to each split data block, thereby ensuring that each split data block of the pre-repaired electronic archive can obtain the most suitable repair processing method, which is beneficial to improving the overall repair effect of the electronic archive, avoiding the loss or damage of archive information due to improper repair, and can fully guarantee the integrity and accuracy of the electronic archive content, further improving the repair efficiency and repair processing accuracy of the electronic archive.
[0039] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a schematic diagram of the method flow of the present invention.
[0041] Figure 2 It is a schematic diagram of the system module of the present invention.
[0042] Figure 3 It is a scatter plot of the repair indication factors involved in the embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] In the description of the present invention, it should be understood that the terms "opening", "upper", "lower", "thickness", "top", "middle", "length", "inside", "all around" and the like indicating orientation or positional relationship are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the components or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0045] See also Figure 1As shown, the first aspect of the embodiment of the present invention provides an electronic archive repair method for data processing, including: S1, the file server senses and receives the electronic archive repair trigger request condition, and transmits the damaged electronic archive search signal to the central management server, wherein the central management server plays a core management and coordination role in the electronic archive management and repair, and can receive various signals from the file server, and schedule corresponding repair tasks, including automatic repair or notifying the administrator to perform manual repair, etc. Therefore, the central management server can respond to and process the signals sent by the file server in a timely manner, and perform corresponding archive management to ensure the integrity and availability of the electronic archive.
[0046] The file server is a computer system specially used for managing electronic archives. It can receive electronic archives from various sources and store them in an archive library. At the same time, it can transmit damaged electronic archive search signals to the central management server for search and management of damaged files.
[0047] It should be understood that the electronic archive repair trigger request condition is that the file server automatically issues a repair request when it detects certain specific events or states. These conditions include the user's autonomous request to trigger the repair operation, and also include the automatic triggering of regular scanning and repair of the archive library on the date or specific time node.
[0048] The damaged electronic archive search signal refers to a notification or request sent by the file server to the central management server when the file server detects and receives an electronic archive repair trigger request condition.
[0049] S2. The central management server responds to the damaged electronic file search signal, and uses the file management tool to go through each existing electronic file in the archive one by one to search for the damaged electronic file, and marks the searched damaged electronic file as a pre-repair electronic file.
[0050] The file management tools include but are not limited to RAID controllers, ZFS file systems, etc., wherein the RAID controller has built-in data integrity checking and repairing functions, which can automatically detect and trigger the repair process when data is damaged, and the ZFS file system has a built-in data integrity checking function, which can automatically detect and repair file damage.
[0051] In this embodiment, the archive is a virtual storage space for storing and managing a large number of electronic archives.
[0052] S3. Obtain damaged characteristic parameters of the pre-repair electronic file and process them to obtain a preliminary execution repair disassembly and cutting ratio of the pre-repair electronic file, recorded as the pre-execution repair disassembly and cutting ratio.
[0053] In an embodiment, the present invention obtains damaged characteristic parameters of a pre-repaired electronic archive for processing, obtains a preliminary execution repair disassembly and block ratio of the pre-repaired electronic archive, can quantify the damaged characteristics of the pre-repaired electronic archive in numerical form, and screen the repair disassembly and block ratio of the archive according to the performance of the damaged characteristics, so that the number and size of the split data blocks obtained by subsequent disassembly can be adapted to match the damaged characteristics of the pre-repaired electronic archive, thereby improving the efficiency of the archive repair processing, and can allocate repair resources in a targeted manner to avoid unnecessary waste of archive repair resources.
[0054] Specifically, the method of obtaining the damaged characteristic parameters of the pre-repaired electronic archive includes: obtaining the original archive data of the pre-repaired electronic archive, wherein the original archive data includes the original archive hash value, the original archive byte value, and the original archive metadata, and extracting the current data of the pre-repaired electronic archive, wherein the current data includes the current hash value, the current byte value, and the current metadata, and statistically calculating the characteristic deviation parameters of the pre-repaired electronic archive through comparison, wherein the characteristic deviation parameters include the deviation hash value, the deviation byte value, and the total number of metadata deviation items.
[0055] It should be understood that the hash value is an algorithm that maps data into a fixed-length string, which can uniquely identify the content of the electronic file and can be obtained through automatic processing of a hash function such as SHA-256 (Secure Hash Algorithm 256-bit).
[0056] The byte value refers to the unit of storage space occupied by a computer file.
[0057] It should also be noted that the metadata includes multiple pieces of information such as title, abstract, keywords, author, subject, date, etc. Therefore, the total number of metadata deviation items, in this embodiment, refers to the total number of information items that differ between the original archived metadata of the pre-repaired electronic archive and the current metadata.
[0058] Obtain log records of the pre-repair electronic archives in an existing cycle from the central management server, and retrieve characteristic operation parameters therefrom, wherein the characteristic operation parameters include access frequency, abnormal access times, and network interruption times, wherein the abnormal access times include unauthorized access requests and access requests during non-working hours, etc.
[0059] The characteristic deviation parameters and characteristic operation parameters of the pre-repaired electronic file are jointly calibrated as the damaged characteristic parameters of the pre-repaired electronic file.
[0060] Furthermore, the damaged characteristic parameters of the pre-repaired electronic archive are obtained for processing, and the specific process includes: based on the characteristic deviation parameters and characteristic operation parameters of the pre-repaired electronic archive, they are successively compared with the characteristic deviation verification parameters and characteristic operation verification parameters stored in the data warehouse to obtain the characteristic deviation verification coefficient and characteristic operation verification coefficient of the pre-repaired electronic archive, wherein the characteristic deviation verification parameters include the deviation verification hash value, the deviation verification byte value, and the total number of metadata deviation verification items, and the characteristic operation verification parameters include the access verification frequency, the number of abnormal access verifications, and the number of network interruption verifications.
[0061] The characteristic deviation verification coefficient and the characteristic operation verification coefficient are used to quantify the characteristic deviation degree and the storage interference degree of the pre-repaired electronic archive, respectively.
[0062] Based on the characteristic deviation verification coefficient and the characteristic operation verification coefficient of the pre-repaired electronic file, a comprehensive processing is performed to obtain the damaged characteristic verification coefficient of the pre-repaired electronic file, and the damaged characteristic verification coefficient is used to numerically quantify the degree of damage of the pre-repaired electronic file.
[0063] In this embodiment, the damaged feature verification coefficient of the pre-repaired electronic file has specific processing conditions including:
[0064] ;
[0065] ;
[0066] ;
[0067] in, represents the damaged feature verification coefficient of the pre-repaired electronic archive, represents the characteristic deviation verification coefficient of the pre-repaired electronic archive, represents the characteristic operation verification coefficient of the pre-repair electronic archive, represents the weight of the feature deviation verification coefficient, represents the weight of the feature operation verification coefficient, To pre-repair the deviation hash value of the electronic archive, The deviation byte value for pre-repairing the electronic archive, is the total number of metadata deviation items for pre-repair electronic archives, Verify the hash value for the deviation, Verify the byte value for the deviation, is the total number of metadata deviation verification items, P is the access frequency of the pre-repaired electronic archive in the existing cycle, Y is the number of abnormal accesses to the pre-repaired electronic archive in the existing cycle, and Z is the number of network interruptions to the pre-repaired electronic archive in the existing cycle. To access the verification frequency, is the number of abnormal access verifications, The number of network interruption verifications.
[0068] It should be noted that the weight of the feature deviation verification coefficient and the weight of the feature operation verification coefficient are both random numbers between 0 and 1. The following takes the five groups of pre-repaired electronic archives involved in this embodiment as an example, where the weight of the feature deviation verification coefficient and the weight of the feature operation verification coefficient are defined as 0.6 and 0.4 respectively. The damaged feature verification coefficients finally output are as follows:
[0069] Table 1 Examples of damaged feature verification coefficients
[0070]
[0071] Combined with the above table, it can be seen that the damaged feature verification coefficient of pre-repaired electronic archive 2 is the highest, indicating that there are large differences and problems in feature deviation verification and feature operation verification of pre-repaired electronic archive 2. The feature deviation verification coefficient reflects the verification of the feature deviation of the pre-repaired electronic archive, which is composed of the ratio of the deviation hash value, the deviation byte value and the total number of metadata deviation items. These indicators evaluate the degree of content difference before and after the damage of the pre-repaired electronic archive. The feature operation verification coefficient represents the verification of the feature operation of the pre-repaired electronic archive, which is composed of the ratio of the access frequency, the number of abnormal accesses and the number of network interruptions. These indicators reflect the usage of the pre-repaired electronic archive during storage. Changes and abnormal situations. Large deviations in the content of electronic archives may affect the actual use of electronic archives, and abnormal use of electronic archives may also cause potential damage risks to the content of electronic archives. For example, high-frequency abnormal access or network interruption will affect the storage stability of electronic archives. Therefore, the comprehensive feature deviation verification coefficient and feature operation verification coefficient can be used to comprehensively evaluate the damaged feature verification of pre-repaired electronic archives. That is to say, the degree of damaged features of pre-repaired electronic archive 2 in Table 1 is the highest, and more rigorous repair processing is required. When disassembling and repairing, more split data blocks are usually required to ensure that the damaged content of the electronic archive can be fully repaired.
[0072] Furthermore, the preliminary execution repair disassembly and slicing ratio of the pre-repair electronic file is specifically: based on the damaged feature verification coefficient of the pre-repair electronic file, the repair disassembly and slicing ratio corresponding to each damaged feature verification coefficient interval stored in the data warehouse is matched, and the matched repair disassembly and slicing ratio is recorded as the preliminary execution repair disassembly and slicing ratio of the pre-repair electronic file.
[0073] S4. Based on the pre-execution repair disassembly and segmentation ratio, the pre-repair electronic file is disassembled to obtain each split data block of the pre-repair electronic file.
[0074] S5. Repair the split data blocks of the pre-repaired electronic archive, and splice the repaired split data blocks to obtain the reconstructed and repaired electronic archive and replace it in the archive library.
[0075] Specifically, the repairing process of each split data block of the pre-repaired electronic file specifically includes: counting the basic parameters corresponding to each split data block of the pre-repaired electronic file, obtaining the repair indication factor corresponding to each split data block of the pre-repaired electronic file through numerical processing, and the repair indication factor is used to numerically represent the repair difficulty of each split data block.
[0076] Furthermore, the basic parameters corresponding to each split data block include the total number of bytes, the byte ratio of each content organization and the distribution content segment, wherein each content organization includes text, image, audio, etc.
[0077] It should be understood that the distribution content segment refers to the proportion of each split database in the pre-repair electronic archive, which can be understood as an interval, such as 20% to 30%.
[0078] In this embodiment, the repair indication factor corresponding to each split data block of the pre-repaired electronic file is specifically processed as follows: based on the total number of bytes corresponding to each split data block and counting the original archived byte value of the pre-repaired electronic file, the ratio between the total number of bytes corresponding to each split data block and the original archived byte value of the pre-repaired electronic file is used as the first weight of each split data block.
[0079] Based on the byte ratio of each content organization corresponding to each split data block, and counting the original byte ratio of each content organization of the pre-repaired electronic archive, the ratio values between the byte ratio of each content organization corresponding to each split data block and the original byte ratio of the corresponding content organization are averaged to obtain the average byte ratio of the content organization corresponding to each split data block, which is used as the second weight of each split data block.
[0080] Based on the distribution content segments corresponding to each split data block, the distribution content segment ratio value corresponding to each split data block is extracted and used as the third weight of each split data block.
[0081] In this embodiment, by comprehensively considering the total number of bytes, content organization and distributed content segments, the repair difficulty of each data block can be comprehensively evaluated, avoiding data analysis deviations that may be caused by a single factor. The total number of bytes ratio value can reflect the data component of the data block in the entire archive, while the average byte ratio of the content organization and the distributed content segment ratio value can reflect the importance of the internal structure of the data block. The multi-level weight allocation helps to accurately locate the data blocks that need to be repaired, and also makes the analysis of the repair difficulty more scientific and objective. By quantitatively comparing the repair difficulty of different data blocks, the most suitable repair execution mode can be assigned to each data block.
[0082] Based on the first weight of each split data block, the second weight of each split data block, and the third weight of each split data block, comprehensive processing is performed to obtain the restoration indication factor corresponding to each split data block of the pre-restored electronic archive. The specific execution conditions are as follows:
[0083] ;
[0084] in, is the repair indicator factor corresponding to the split data block j of the pre-repaired electronic archive, is the total number of bytes corresponding to the split data block j, is the byte percentage of the g-th content organization corresponding to the split data block j, is the upper limit of the distribution content segment corresponding to the split data block j, is the lower bound of the distribution content segment corresponding to the split data block j, is the reference byte number, Reference byte percentage for content organization, The upper limit of the core distribution content section of the pre-repaired electronic archive, The lower limit of the core distribution content section of the pre-repaired electronic archive is is the first weight of split data block j, is the second weight of split data block j, is the third weight of split data block j, j is the number of each split data block, , n is the total number of split data blocks, g is the number of each content organization, , u is the total number of content organizations.
[0085] It should be noted that the above-mentioned reference byte numbers, reference byte proportions of content organization, and core distribution content segments are all extracted from the data warehouse. The core distribution content segment refers to the distribution proportion of the important core content of the electronic archive, for example 20% to 60%. The upper limit value of the core distribution content segment is 20%, and the lower limit value of the core distribution content segment is 60%.
[0086] The repair indication factors corresponding to each split data block of the pre-repaired electronic archive are imported into the hierarchical screening model in the data warehouse to obtain the repair execution mode corresponding to each split data block of the pre-repaired electronic archive, thereby repairing each split data block of the pre-repaired electronic archive with the corresponding repair execution mode.
[0087] More specifically, the hierarchical screening model is specifically implemented as follows: the repair indicator factors corresponding to each split data block of the pre-repaired electronic archive are marked as , where j is the number of each split data block, , n is the total number of split data blocks.
[0088] The first screening threshold value and the second screening threshold value in the hierarchical screening model are counted from the data warehouse and marked as , , wherein the first screening threshold value is less than the second screening threshold value.
[0089] After the hierarchical screening model processing, if , the repair execution mode corresponding to the split data block of the pre-repaired electronic archive is defined as automatic repair. The automatic repair is to call the automated online file repair tool through the central management server to perform autonomous repair processing. This type of repair usually does not require user intervention. The central management server will try to call the automated online file repair tool to automatically perform the repair operation according to the preset repair strategy.
[0090] like , the repair execution mode corresponding to the split data block of the pre-repaired electronic archive is defined as semi-automatic repair, which is between automatic repair and manual repair. In this mode, the central management server will automatically detect problems in the electronic archive or propose possible repair solutions, but the final repair operation requires user confirmation or selection. The user needs to view the repair suggestions, confirm the repair actions or select the appropriate repair strategy.
[0091] like , the repair execution mode corresponding to the split data block of the pre-repaired electronic archive is defined as manual repair, and the manual repair requires the user to directly participate in the repair process, which means that the user must identify the problem in the electronic archive, find the repair method and manually perform the repair operation.
[0092] Based on the hierarchical screening model processing, the repair execution mode corresponding to each split data block of the pre-repaired electronic archive is obtained.
[0093] like Figure 3As shown, it is a scatter plot of the repair indication factor involved in the embodiment of the present invention, wherein the horizontal axis is the serial number of multiple split data blocks, and the vertical axis is the value of the repair indication factor. The multiple scatter points in the figure are the repair indication factors corresponding to the multiple split data blocks involved in this embodiment. It can be seen from the figure that there are obvious differences between the repair indication factors of multiple split data blocks based on a pre-repaired electronic archive, which indirectly reflects the difference in the requirements of different split data blocks for the repair execution mode. Therefore, by segmenting to obtain multiple split data blocks, the repair scope of different repair execution modes can be limited, the risk caused by errors or failures in the repair process can be reduced, and the cost of repair can be minimized, so as to maximize the protection of data integrity in the electronic archive.
[0094] In an embodiment, the present invention repairs each split data block of the pre-repaired electronic archive, and can analyze and obtain the repair execution mode corresponding to each split data block, thereby ensuring that each split data block of the pre-repaired electronic archive can obtain the most suitable repair processing method, which is beneficial to improving the overall repair effect of the electronic archive, avoiding the loss or damage of archive information due to improper repair, and can fully guarantee the integrity and accuracy of the electronic archive content, and further improve the repair efficiency and repair processing accuracy of the electronic archive.
[0095] See also Figure 2 As shown, the second aspect of the embodiment of the present invention provides an electronic file repair system for data processing, including: a search signal trigger transmission module, which is used to sense and receive an electronic file repair trigger request condition through a file server, and transmit a damaged electronic file search signal to a central management server.
[0096] The damaged electronic file search module is used to respond to the damaged electronic file search signal through the central management server, and to go through each existing electronic file in the archive to search for the damaged electronic file, and mark the searched damaged electronic file as a pre-repair electronic file.
[0097] The damaged characteristic parameter acquisition processing module is used to acquire the damaged characteristic parameters of the pre-repair electronic file for processing to obtain the preliminary execution repair disassembly and cutting ratio of the pre-repair electronic file, which is recorded as the pre-execution repair disassembly and cutting ratio.
[0098] The electronic archive disassembly module is used to disassemble the pre-repair electronic archive based on the pre-execution repair disassembly and block ratio to obtain each split data block of the pre-repair electronic archive.
[0099] The electronic archive repair processing module is used to repair the split data blocks of the pre-repaired electronic archive, and splice the repaired split data blocks to obtain the reconstructed and repaired electronic archive and replace it in the archive library.
[0100] In this embodiment, the electronic archive repair system for data processing also includes a data warehouse, which is used to store a comparison indicator set. The comparison indicator set includes feature deviation verification parameters, feature operation verification parameters, and repair and disassembly block ratios corresponding to each damaged feature verification coefficient interval, and also includes a hierarchical screening model, the number of reference bytes, the reference byte ratio of content organization, and the core distribution content segments of each existing electronic archive.
[0101] It is worth understanding that the comparison indicator set is finally obtained after collection and verification in the early application testing phase, and uploaded and stored in the data warehouse. As the storage volume of electronic archives increases, the comparison indicator set can be adaptively adjusted through continuous collection and verification.
[0102] In an embodiment, the present invention provides an electronic file repair method and system for data processing, which effectively makes up for the current shortcomings of simply performing overall or solid-state repair processing on the files by disassembling the pre-repaired electronic files and performing targeted repair processing on the disassembled multiple data blocks. It can not only effectively improve the repair processing efficiency of electronic files, but also effectively solve the data corruption problems of different file types.
[0103] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0104] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that technicians in the relevant technical field can understand and use the present invention well. As long as they do not deviate from the structure of the present invention or exceed the scope defined by the present invention, they should all belong to the protection scope of the present invention.
Claims
1. A method for repairing an electronic file for data processing, characterized in that: include: S1, the file server senses and receives the trigger request condition for electronic file repair, and transmits a damaged electronic file search signal to the central management server; S2, the central management server responds to the damaged electronic file search signal, and goes through each existing electronic file in the archive to search for the damaged electronic file, and marks the searched damaged electronic file as a pre-repair electronic file; S3, obtaining damaged characteristic parameters of the pre-repair electronic file and processing them to obtain a preliminary execution repair disassembly and slicing ratio of the pre-repair electronic file, recorded as the pre-execution repair disassembly and slicing ratio; S4, based on the pre-execution repair disassembly and block-cutting ratio, disassemble the pre-repair electronic file to obtain each split data block of the pre-repair electronic file; S5, repairing each split data block of the pre-repaired electronic file, and splicing each split data block after the repair process, thereby obtaining a reconstructed and repaired electronic file and replacing it in the archive; The obtaining of the damaged characteristic parameters of the pre-repaired electronic archive specifically includes: The original archived data of the pre-repaired electronic archive is obtained, and the current data of the pre-repaired electronic archive is extracted, and characteristic deviation parameters of the pre-repaired electronic archive are statistically compared, where the characteristic deviation parameters include deviation hash value, deviation byte value, and total number of metadata deviation items; Obtain log records of the pre-repaired electronic archive in an existing cycle, and retrieve characteristic operation parameters therefrom, wherein the characteristic operation parameters include access frequency, number of abnormal accesses, and number of network interruptions; The characteristic deviation parameter and the characteristic operation parameter of the pre-repaired electronic file are jointly calibrated as the damaged characteristic parameter of the pre-repaired electronic file; The damaged characteristic parameters of the pre-repaired electronic file are obtained and processed, and the specific process includes: Based on the characteristic deviation parameters and characteristic operation parameters of the pre-repaired electronic file, the characteristic deviation verification parameters and characteristic operation verification parameters stored in the data warehouse are compared one by one to obtain the characteristic deviation verification coefficient and characteristic operation verification coefficient of the pre-repaired electronic file, which are used to quantitatively characterize the characteristic deviation degree and storage interference degree of the pre-repaired electronic file respectively; Based on the characteristic deviation verification coefficient and characteristic operation verification coefficient of the pre-repaired electronic file, a damaged characteristic verification coefficient of the pre-repaired electronic file is obtained by comprehensive processing, and the damaged characteristic verification coefficient is used to numerically quantify the degree of damage of the pre-repaired electronic file; The repairing process of each split data block of the pre-repaired electronic archive specifically includes: Counting the basic parameters corresponding to each split data block of the pre-repaired electronic file, and obtaining the repair indication factor corresponding to each split data block of the pre-repaired electronic file through numerical processing, wherein the repair indication factor is used to numerically represent the repair difficulty of each split data block; The repair indication factors corresponding to each split data block of the pre-repaired electronic archive are imported into the hierarchical screening model to obtain the repair execution mode corresponding to each split data block of the pre-repaired electronic archive, thereby repairing each split data block of the pre-repaired electronic archive with the corresponding repair execution mode.
2. The electronic file repair method for data processing according to claim 1, characterized in that: The initial execution repair disassembly and cutting ratio of the pre-repair electronic archive is specifically: Based on the damaged feature verification coefficient of the pre-repaired electronic file, the repair disassembly and segmentation ratio corresponding to each damaged feature verification coefficient interval stored in the data warehouse is matched, and the matched repair disassembly and segmentation ratio is recorded as the preliminary execution repair disassembly and segmentation ratio of the pre-repaired electronic file.
3. The electronic file repair method for data processing according to claim 1, characterized in that: The basic parameters corresponding to each split data block include the total number of bytes, the byte ratio of each content organization, and the distribution content segment.
4. The electronic file repair method for data processing according to claim 1, characterized in that: The hierarchical screening model is specifically implemented as follows: The repair indicator factors corresponding to each split data block of the pre-repaired electronic archive are marked as , where j is the number of each split data block, , n is the total number of split data blocks; The first screening threshold value and the second screening threshold value in the statistical hierarchical screening model are marked as , ; After the hierarchical screening model processing, if , then the repair execution mode corresponding to the split data block of the pre-repaired electronic archive is defined as automatic repair; like , then the repair execution mode corresponding to the split data block of the pre-repaired electronic archive is defined as semi-automatic repair; like , then the repair execution mode corresponding to the split data block of the pre-repaired electronic archive is defined as manual repair; Based on the hierarchical screening model processing, the repair execution mode corresponding to each split data block of the pre-repaired electronic archive is obtained.
5. The electronic file repair method for data processing according to claim 3, characterized in that: The specific processing process of the repair indicator factor corresponding to each split data block of the pre-repaired electronic archive is as follows: ; in, is the repair indicator factor corresponding to the split data block j of the pre-repaired electronic archive, is the total number of bytes corresponding to the split data block j, is the byte percentage of the g-th content organization corresponding to the split data block j, is the upper limit of the distribution content segment corresponding to the split data block j, is the lower bound of the distribution content segment corresponding to the split data block j, is the reference byte number, The reference byte ratio for content organization, The upper limit of the core distribution content section of the pre-repaired electronic archive, The lower limit of the core distribution content section of the pre-repaired electronic archive is is the first weight of split data block j, is the second weight of split data block j, is the third weight of split data block j, j is the number of each split data block, , n is the total number of split data blocks, g is the number of each content organization, , u is the total number of content organizations.
6. A system using the electronic archive repair method for data processing as claimed in any one of claims 1 to 5, characterized in that: include: A search signal trigger transmission module, used for sensing and receiving an electronic file repair trigger request condition through a file server, and transmitting a damaged electronic file search signal to a central management server; A damaged electronic archive search module is used to respond to a damaged electronic archive search signal through a central management server, and to search for damaged electronic archives one by one through each existing electronic archive in the archive library, and mark the searched damaged electronic archives as pre-repair electronic archives; A damaged characteristic parameter acquisition processing module is used to acquire damaged characteristic parameters of the pre-repair electronic file for processing, and obtain a preliminary execution repair disassembly and slicing ratio of the pre-repair electronic file, which is recorded as the pre-execution repair disassembly and slicing ratio; An electronic archive disassembly module, configured to disassemble the pre-repair electronic archive based on the pre-execution repair disassembly and block-cutting ratio to obtain each split data block of the pre-repair electronic archive; The electronic archive repair processing module is used to repair the split data blocks of the pre-repaired electronic archive, and splice the repaired split data blocks to obtain the reconstructed and repaired electronic archive and replace it in the archive library.
Citation Information
Patent Citations
Electronic Records Data Preservation System and Method
CN110795766B
Digital Archives Management Methods and Systems Based on Big Data Applications
CN113792169B
Electronic file storage system, storage method and repair method
CN107766178A
Method and system for repairing abnormal data of power distribution network
CN114583689A
Electronic video file repairing method and system based on optical disc jukebox
CN114860996A
