Migration verification method and device

By evaluating and sorting migrated files in the verification system, the problem of low efficiency in traditional random sampling methods is solved, ensuring timely verification of important files and resource optimization, and improving the efficiency of file sampling.

CN118585487APending Publication Date: 2024-09-03ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410189829.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-20
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

When the traditional document sampling verification method randomly selects documents, it may frequently verify unimportant or low-value documents and ignore important or high-value documents, resulting in inefficiency and the inability to ensure priority sampling of more important or higher-value documents.

Method used

By evaluating the migration files based on the preset evaluation dimensions in the verification system, the file scores are obtained, and the target files are extracted based on the scores for migration verification, ensuring that files with higher scores are prioritized for sampling, while ensuring that files with lower scores are also Was randomly inspected.

Benefits of technology

It improves the efficiency of random inspections of documents, ensures that important or high-value documents are verified in a timely manner, optimizes resource allocation, and improves the overall efficiency of random inspections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585487A
    Figure CN118585487A
Patent Text Reader

Abstract

The invention provides a migration verification method and device. The method is applied to a verification system for carrying out migration verification on a migration file. The method comprises the following steps: acquiring a plurality of migrated migration files; based on a preset evaluation dimension, respectively carrying out file evaluation on the plurality of migration files to obtain file scores respectively corresponding to the plurality of migration files; and extracting at least one target migration file from the plurality of migration files based on the file score, and carrying out migration verification on the at least one target migration file. Through the scheme, migration verification can be carried out on part of target files with relatively high scores, so that waste of sampling inspection time and resources is avoided, and the sampling inspection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of file verification technology, and in particular to a migration verification method, device, electronic device and machine-readable storage medium. Background Art

[0002] In current technology, the traditional file sampling verification method randomly selects a part of files for verification, and the random sampling method may frequently verify some unimportant or low-value files, while ignoring some more important or high-value files. For example, configuration files that are critical to the operation of the system. Therefore, the random sampling method cannot guarantee that more important or high-value files are prioritized for sampling, and the sampling efficiency is not high. Summary of the invention

[0003] The present application provides a migration verification method, which is applied to a verification system for performing migration verification on a migration file; the method comprises:

[0004] Get multiple migration files that have completed the migration;

[0005] Based on the preset evaluation dimensions, respectively perform file evaluation on the multiple migration files to obtain file scores corresponding to the multiple migration files;

[0006] At least one target migration file is extracted from the multiple migration files based on the file scores, and migration verification is performed on the at least one target migration file.

[0007] Optionally, the preset evaluation dimension includes an importance dimension and / or a value dimension; the file score includes an importance score corresponding to the importance dimension and / or a value score corresponding to the value dimension;

[0008] Based on the preset evaluation dimensions, file evaluation is performed on the multiple migration files respectively to obtain scores corresponding to the multiple migration files respectively, including:

[0009] Performing file importance assessment on each of the plurality of migration files to obtain importance scores corresponding to each of the plurality of migration files; and / or,

[0010] File value assessments are performed on the multiple migration files respectively to obtain value scores corresponding to the multiple migration files respectively.

[0011] Optionally, the file importance is evaluated for each of the multiple migration files according to one or more combinations of the following scoring indicators:

[0012] The relevance between the business to which the migration file belongs and the preset core business;

[0013] The credibility of the storage address of the migration file.

[0014] Optionally, file value assessment is performed on the multiple migration files respectively according to one or more combinations of the following scoring indicators:

[0015] The file size of the migration file;

[0016] The historical usage count of the migration file;

[0017] The credibility of the storage address of the migration file.

[0018] Optionally, extracting at least one target migration file from the multiple migration files based on the file score includes:

[0019] At least one target migration file whose corresponding file score is greater than a preset threshold is extracted from the multiple migration files.

[0020] Optionally, the file score includes an importance score corresponding to the importance dimension; and / or a value score corresponding to the value dimension;

[0021] Extracting at least one target migration file whose corresponding file score is greater than a preset threshold from the multiple migration files includes:

[0022] Extracting at least one target migration file whose corresponding importance score is greater than a preset threshold from the multiple migration files; and / or extracting at least one target migration file whose corresponding value score is greater than a preset threshold from the multiple migration files.

[0023] Optionally, the verification system maintains a correspondence between file scores obtained by pre-evaluating the multiple migration files based on preset evaluation dimensions and file identifiers of the multiple migration files;

[0024] The performing file evaluation on the plurality of migration files respectively based on the preset evaluation dimension to obtain file scores respectively corresponding to the plurality of migration files includes:

[0025] Based on the file identifiers of the multiple migration files, the corresponding relationship is queried to respectively determine the file score corresponding to the file identifier of each migration file in the multiple migration files.

[0026] Optionally, extracting at least one target migration file whose corresponding file score is greater than a preset threshold from the multiple migration files includes:

[0027] Determining a total number of target migration files to be extracted from the multiple migration files;

[0028] At least one migration file is extracted from the migration files whose corresponding file scores are greater than a preset threshold according to a first ratio of the total number, and at least one migration file is extracted from the migration files whose corresponding file scores are not greater than the preset threshold according to a second ratio of the total number to serve as a target migration file; wherein the first ratio is greater than the second ratio.

[0029] Optionally, extracting at least one target migration file whose corresponding file score is greater than a preset threshold from the multiple migration files includes:

[0030] All migration files whose corresponding file scores are greater than a preset threshold are extracted from the multiple migration files, and at least one migration file is randomly extracted from the migration files whose corresponding file scores are not greater than the preset threshold according to a preset ratio to serve as a target migration file.

[0031] Optionally, performing migration verification on the at least one target migration file includes:

[0032] An integrity check and / or a consistency check is performed on the at least one target migration file.

[0033] The present application also provides a migration verification device, which is applied to a verification system for performing migration verification on a migration file; the device comprises:

[0034] An acquisition unit, used to acquire multiple migration files after the migration is completed;

[0035] An evaluation unit, configured to perform file evaluation on the plurality of migration files respectively based on a preset evaluation dimension, and obtain file scores respectively corresponding to the plurality of migration files;

[0036] An extraction unit is used to extract at least one target migration file from the multiple migration files based on the file score, and perform migration verification on the at least one target migration file.

[0037] The technical solution provided by this application may at least include the following beneficial effects:

[0038] Through the above embodiments, the verification system can first perform file evaluation on the multiple migration files that have been obtained based on the preset evaluation dimensions, and obtain file scores corresponding to the multiple migration files; and can extract at least one target migration file from the multiple migration files based on the file scores, and perform migration verification on the at least one target migration file. By performing random inspections on migration files based on the scores, most of the time and resources for random inspections can be used on migration files with higher scores, and at the same time, it can also ensure that migration files with lower scores are randomly inspected, thereby improving the efficiency of random inspections. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a flowchart of a migration verification method shown in an exemplary embodiment.

[0040] Figure 2 It is a flow chart showing another migration verification method according to an exemplary embodiment.

[0041] Figure 3 The figure is a hardware structure diagram of an electronic device in which a migration verification device is located, showing an exemplary embodiment.

[0042] Figure 4 It is a block diagram of a migration verification device shown in an exemplary embodiment. DETAILED DESCRIPTION

[0043] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0044] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

[0045] In the process of file migration, in order to ensure the integrity and accuracy of the migrated files, it is necessary to perform sampling verification on the migrated files. In the current technology, the traditional file sampling verification method is to randomly select a part of the files for verification. This method can quickly verify whether the migrated files are correct. However, this method has certain shortcomings.

[0046] For example, random sampling may frequently verify some unimportant or low-value files, while ignoring some more important or high-value files. For example, configuration files that are critical to the operation of the system. If such files are ignored or not fully verified, it may have an adverse impact on the operation of the system.

[0047] In this case, the random sampling verification method cannot ensure that more important or higher-value documents are prioritized for inspection, resulting in low inspection efficiency.

[0048] In view of this, the present application aims to propose a migration verification method. The method extracts target migration files based on scores, thereby ensuring that more important or more valuable migration files are sampled first, thereby improving the efficiency of sampling.

[0049] When implemented, the method is applied to a verification system for performing migration verification on migration files, and the verification system can obtain multiple migration files that have completed migration;

[0050] Furthermore, the verification system may perform file evaluation on the plurality of migration files respectively based on a preset evaluation dimension to obtain file scores corresponding to the plurality of migration files respectively;

[0051] Furthermore, the verification system may extract at least one target migration file from the multiple migration files based on the file scores, and perform migration verification on the at least one target migration file.

[0052] Through the above embodiments, the verification system can first perform file evaluation on the multiple migration files that have been obtained based on the preset evaluation dimensions, and obtain file scores corresponding to the multiple migration files; and can extract at least one target migration file from the multiple migration files based on the file scores, and perform migration verification on the at least one target migration file. By performing random inspections on migration files based on the scores, most of the time and resources for random inspections can be used on migration files with higher scores, and at the same time, it can also ensure that migration files with lower scores are randomly inspected, thereby improving the efficiency of random inspections.

[0053] The present application is described below through specific embodiments and in combination with specific application scenarios.

[0054] See also Figure 1 , Figure 1 It is a flowchart of a migration verification method shown in an exemplary embodiment.

[0055] like Figure 1 As shown, the verification system for performing migration verification on the migration file can perform the following steps:

[0056] Step 102: Acquire multiple migration files that have been migrated.

[0057] The verification system may be connected to at least one file server. After the migration of the migration files is completed, the verification system may obtain a plurality of migration files from the at least one file server.

[0058] The multiple migration files may be obtained by the verification system from one file server, or may be obtained by the verification system from multiple file servers, which is not limited in this specification.

[0059] For example, the verification system may be connected to three file servers, and may obtain 100 migration files from each of the three file servers, and obtain 300 migration files in total.

[0060] Step 104 : Based on a preset evaluation dimension, file evaluation is performed on each of the plurality of migration files to obtain file scores corresponding to each of the plurality of migration files.

[0061] For example, the verification system may obtain four migration files, including migration file_1, migration file_2, migration file_3, and migration file_4. The verification system may perform file evaluation on the four migration files respectively based on preset evaluation dimensions, and obtain file scores corresponding to the four migration files respectively, wherein the file score of the migration file_1 may be 60, the file score of the migration file_2 may be 65, the file score of the migration file_3 may be 90, and the file score of the migration file_4 may be 80.

[0062] The preset evaluation dimension can be set according to actual needs and is not limited in this specification.

[0063] In one embodiment shown, the above-mentioned preset evaluation dimensions may include importance dimensions and / or value dimensions; on this basis, the above-mentioned verification system may perform file importance evaluation on the multiple migration files respectively, and obtain importance scores corresponding to the multiple migration files respectively; and / or, perform file value evaluation on the multiple migration files respectively, and obtain value scores corresponding to the multiple migration files respectively.

[0064] The importance dimension may refer to the importance of the migration file at the business level; and the value dimension may refer to the value of the migration file at the application level.

[0065] For example, the verification system may obtain four migration files, including migration file_1, migration file_2, migration file_3, and migration file_4; the verification system may perform file importance assessment on the four migration files respectively, and obtain importance scores corresponding to the four migration files respectively, wherein the importance score of the migration file_1 may be 65, the importance score of the migration file_2 may be 65, the importance score of the migration file_3 may be 85, and the importance score of the migration file_4 may be 85; and / or, the verification system may perform file value assessment on the four migration files respectively, and obtain value scores corresponding to the four migration files respectively, wherein the value score of the migration file_1 may be 75, the value score of the migration file_2 may be 80, the value score of the migration file_3 may be 95, and the value score of the migration file_4 may be 100.

[0066] The above different evaluation dimensions correspond to different evaluation indicators. Among them, the evaluation indicators for evaluating the importance of the above migration files can be set according to actual needs, and this specification does not limit this.

[0067] In an embodiment shown, the importance of the files may be evaluated for the multiple migration files according to one or more combinations of the following scoring indicators:

[0068] The relevance between the business to which the migration file belongs and the preset core business; the credibility of the storage address of the migration file.

[0069] For example, the sampling system may perform file importance assessment on each of the multiple migration files based on the correlation between the business to which the migration file belongs and the preset core business, and the credibility of the storage address of the migration file, to obtain importance scores corresponding to each of the multiple migration files.

[0070] The evaluation index for the file value evaluation of the above-mentioned migration files can be set according to actual needs, and this specification does not limit this.

[0071] In an embodiment shown, the file value evaluation may be performed on the multiple migration files respectively according to one or more combinations of the following scoring indicators:

[0072] The file size of the migration file; the number of times the migration file has been used in history; and the credibility of the storage address of the migration file.

[0073] For example, the sampling system may evaluate the file value of each of the plurality of migration files based on the file size of the migration file, the number of historical uses of the migration file, and the credibility of the storage address of the migration file to obtain value scores corresponding to each of the plurality of migration files.

[0074] In this way, the migration files are evaluated in different dimensions according to actual needs, so as to determine the migration files with higher verification priorities from different dimensions.

[0075] In an illustrated embodiment, the verification system may maintain a correspondence between file scores obtained by pre-evaluating the multiple migration files based on preset evaluation dimensions and file identifiers of the multiple migration files; the verification system may query the correspondence based on the file identifiers of the multiple migration files to respectively determine the file scores corresponding to the file identifiers of the respective migration files in the multiple migration files.

[0076] For example, please refer to Table 1, which is a correspondence table between a file identifier and a file score shown in an exemplary embodiment.

[0077] Migrate files File Identification Importance Rating Value Rating Migration file_1 Logo_1 65 75 Migration file_2 Logo_2 65 80 Migration file_3 Logo_3 85 95 Migration file_4 Logo_4 85 100

[0078] Table 1

[0079] As shown in Table 1, the sampling system can obtain 4 migration files, including migration file_1, migration file_2, migration file_3 and migration file_4; the file identifier of the migration file_1 can be identifier_1, the file identifier of the migration file_2 can be identifier_2, the file identifier of the migration file_3 can be identifier_3, and the file identifier of the migration file_4 can be identifier_4, wherein the importance score of the migration file_1 can be 65, and the value score can be 75; the importance score of the migration file_2 can be 65, and the value score can be 80; the importance score of the migration file_3 can be 85, and the value score can be 95; the importance score of the migration file_4 can be 85, and the value score can be 100.

[0080] Specifically, the verification system can query the corresponding relationship based on the identification _1 of migration file_1 to determine that the importance score of the migration file_1 is 65 and the value score is 75; the verification system can query the corresponding relationship based on the identification _2 of migration file_2 to determine that the importance score of the migration file_2 is 65 and the value score is 80; the verification system can query the corresponding relationship based on the identification _3 of migration file_3 to determine that the importance score of the migration file_3 is 85 and the value score is 95; the verification system can query the corresponding relationship based on the identification _4 of migration file_4 to determine that the importance score of the migration file_4 is 85 and the value score is 100.

[0081] In another embodiment shown, the verification system may also maintain a migration file and at least one label corresponding to the migration file, and maintain a correspondence between the label and the indicator score of each evaluation indicator; the verification system may obtain the indicator score corresponding to each label in the at least one label from the correspondence based on at least one label corresponding to each migration file in the above-mentioned multiple migration files, and add the indicator scores to obtain the file scores corresponding to each migration file.

[0082]

[0083]

[0084] Table 2

[0085] As shown in Table 2, the importance dimension indicator may include the correlation between the business to which the migration file belongs and the preset core business and the credibility of the storage address of the migration file. The value dimension indicator may include the file size of the migration file, the number of historical uses of the migration file and the credibility of the storage address of the migration file. The above-mentioned file tags may include tag_1, tag_2, tag_3 and tag_4. The above-mentioned tag_1 may correspond to the index score of the correlation between the business to which the migration file belongs and the preset core business in the importance dimension indicator of 30, the index score corresponding to the credibility of the storage address of the migration file in the importance dimension indicator of 35, and the index score corresponding to the credibility of the storage address of the migration file in the value dimension indicator of 36. The index score of the credibility of the storage address of the migration file in the degree indicator can be 40; the index score of the file size of the migration file corresponding to the above-mentioned label_2 in the value dimension indicator can be 35; the index score of the historical usage times of the migration file corresponding to the above-mentioned label_3 in the value dimension indicator can be 40; the index score of the correlation between the business to which the migration file belongs and the preset core business corresponding to the above-mentioned label_4 in the importance dimension indicator can be 40, the index score of the credibility of the storage address of the migration file corresponding to the importance dimension indicator can be 45, and the index score of the credibility of the storage address of the migration file corresponding to the value dimension indicator can be 60.

[0086] Specifically, the above-mentioned verification system can obtain migration file_1, migration file_2, migration file_3 and migration file_4. The label of the migration file_1 can include label_1 and label_2, the label of the migration file_2 can include label_1 and label_3, the label of the migration file_3 can include label_2 and label_4, and the label of the migration file_4 can include label_3 and label_4; the verification system can calculate that the importance score of the migration file_1 is 65 and the value score is 75; the importance score of the migration file_2 is 65 and the value score is 80; the importance score of the migration file_3 is 85 and the value score is 95; the importance score of the migration file_4 is 85 and the value score is 100.

[0087] In this way, evaluation indicators can be added according to actual needs, and scores of different dimensions can be calculated based on the evaluation indicators to obtain.

[0088] Step 106: extract at least one target migration file from the multiple migration files based on the file score, and perform migration verification on the at least one target migration file.

[0089] For example, based on the above file scores, the verification system may extract at least one target migration file whose corresponding file score is greater than a preset threshold from the multiple migration files, or may extract at least one target migration file whose corresponding file score is not greater than the preset threshold from the multiple migration files.

[0090] In an illustrated embodiment, the verification system may extract at least one target migration file whose corresponding file score is greater than a preset threshold from the plurality of migration files.

[0091] If the file score of the migration file is greater than a preset threshold, it may indicate that the verification priority of the migration file is high, and the migration file with the high verification priority may be extracted.

[0092] For example, the preset threshold may be 80, and the verification system may obtain migration file_1, migration file_2, migration file_3, and migration file_4; wherein the file score of migration file_1 may be 65, the file score of migration file_2 may be 65, the file score of migration file_3 may be 85, and the file score of migration file_4 may be 80; then the verification system may extract a target migration file whose file score is greater than 80 from the four migration files, that is, migration file_3.

[0093] In one embodiment shown, the file score may include an importance score corresponding to the importance dimension; and / or a value score corresponding to the value dimension; the above-mentioned verification system may extract at least one target migration file whose corresponding importance score is greater than a preset threshold from the multiple migration files; and / or extract at least one target migration file whose corresponding value score is greater than a preset threshold from the multiple migration files.

[0094] For example, the verification system can obtain migration file_1, migration file_2, migration file_3, and migration file_4. According to the evaluation method, the importance score of migration file_1 is 65 and the value score is 75; the importance score of migration file_2 is 65 and the value score is 80; the importance score of migration file_3 is 85 and the value score is 95; the importance score of migration file_4 is 85 and the value score is 100. The preset threshold can be 80, and it can be determined that the importance scores of migration file_3 and migration file_4 are greater than the preset threshold, and migration file_3 and migration file_4 can be extracted; it can be determined that the value scores of migration file_2, migration file_3, and migration file_4 are greater than the preset threshold, and migration file_2, migration file_3, and migration file_4 can be extracted.

[0095] It should be noted that the above-mentioned preset thresholds may include at least one preset threshold corresponding to at least one dimension, or may include one preset threshold corresponding to at least one dimension. It can be set according to actual needs and this specification does not limit this.

[0096] In an illustrated embodiment, the verification system may determine the total number of target migration files to be extracted from the multiple migration files; extract at least one migration file from the migration files whose corresponding file scores are greater than a preset threshold value according to a first ratio of the total number; and extract at least one migration file from the migration files whose corresponding file scores are not greater than a preset threshold value according to a second ratio of the total number as the target migration file; wherein the first ratio is greater than the second ratio.

[0097] The total number of the target migration files to be extracted can be set according to actual needs, and this specification does not limit this.

[0098] The first ratio and the second ratio can also be set according to actual needs, and this specification does not limit this.

[0099] For example, the total number of target migration files to be extracted may be 100, the first ratio may be 90%, and the second ratio may be 10%. The verification system may extract 90 migration files from the migration files whose corresponding file scores are greater than a preset threshold according to 90% of the total number, and extract 10 migration files from the migration files whose corresponding file scores are not greater than the preset threshold according to 10% of the total number as target migration files.

[0100] In this way, the time and resources for random inspection can be allocated proportionally to the migration files with different file scores, thereby improving the flexibility of random inspection.

[0101] In another illustrated embodiment, the verification system may extract all migration files whose corresponding file scores are greater than a preset threshold from the multiple migration files, and randomly extract at least one migration file from the multiple migration files whose corresponding file scores are not greater than the preset threshold according to a preset ratio, as a target migration file.

[0102] For example, the number of migration files whose corresponding file scores are not greater than the preset threshold may be 200, and the preset ratio may be 10%. The verification system may select all migration files whose corresponding file scores are greater than the preset threshold from among the multiple migration files, and extract 20 migration files whose corresponding file scores are not greater than the preset threshold from among the multiple migration files according to the 10% as target migration files.

[0103] In this way, all migration files with higher file scores can be verified, and at the same time, some migration files with lower file scores can be verified, thereby improving the completeness of random inspection.

[0104] In one embodiment shown, the verification system may perform integrity verification and / or consistency verification on the at least one target migration file.

[0105] Among them, integrity check can be a technology used to verify data integrity. By calculating the checksum or hash value of the data and comparing it with the pre-calculated checksum, it is possible to determine whether the data has been tampered with or damaged during transmission or storage. Common integrity check algorithms include cyclic redundancy check and message digest algorithm. These algorithms generate a check value of fixed length by performing mathematical operations on the data. If the received data does not match the expected check value, it can be determined that the data has been changed during transmission. Integrity check is widely used in data communication, storage and security fields. It can ensure that the data has not been tampered with or damaged during transmission, and improve the reliability and credibility of the data. For example, during file migration, integrity check can be used to verify whether the migration file is complete and correct.

[0106] Consistency checking is to verify whether a file remains unchanged during transmission or storage by comparing the hash value or checksum of the file. A hash algorithm is usually used to calculate the hash value of a file and compare it with the expected hash value to determine whether the file has been tampered with or damaged. The purpose of consistency checking is to ensure the integrity and consistency of the file, which plays an important role in the process of data transmission, backup or distribution. By performing consistency checking, abnormal situations that may occur during the transmission or storage of files can be discovered in a timely manner to ensure the integrity and security of the data.

[0107] In this way, it is possible to check whether the migration file is damaged or tampered with during the migration process, thereby ensuring the integrity and consistency of the migration file.

[0108] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of this specification, the following Figure 2 The flowchart of the migration verification method shown is used to illustrate the embodiments in this specification.

[0109] See also Figure 2 , Figure 2 It is a flow chart showing another migration verification method according to an exemplary embodiment.

[0110] Step 202: The verification system obtains multiple migration files that have been migrated from the file server.

[0111] For example, the verification system may be connected to three file servers, and may obtain 100 migration files from each of the three file servers, and obtain 300 migration files in total, wherein the 300 migration files may include migration file_1, migration file_2, migration file_3, and migration file_4.

[0112] Step 204: the verification system performs a file importance assessment on each of the multiple migration files to obtain importance scores corresponding to each of the multiple migration files; and / or performs a file value assessment on each of the multiple migration files to obtain value scores corresponding to each of the multiple migration files.

[0113] For example, the verification system may perform file importance assessment on the four migration files respectively to obtain importance scores corresponding to the four migration files, wherein the importance score of the migration file_1 may be 65, the importance score of the migration file_2 may be 65, the importance score of the migration file_3 may be 85, and the importance score of the migration file_4 may be 85; and / or, the verification system may perform file value assessment on the four migration files respectively to obtain value scores corresponding to the four migration files, wherein the value score of the migration file_1 may be 75, the value score of the migration file_2 may be 80, the value score of the migration file_3 may be 95, and the value score of the migration file_4 may be 100.

[0114] Step 206: The verification system extracts at least one target migration file whose corresponding importance score is greater than a preset threshold from the multiple migration files; and / or extracts at least one target migration file whose corresponding value score is greater than a preset threshold from the multiple migration files.

[0115] For example, the above-mentioned preset threshold can be 80, then it can be determined that the importance scores of migration file_3 and migration file_4 are greater than the preset threshold, and migration file_3 and migration file_4 can be extracted; it can be determined that the value scores of migration file_2, migration file_3 and migration file_4 are greater than the preset threshold, then migration file_2, migration file_3 and migration file_4 can be extracted.

[0116] Based on the evaluation method, the verification system may determine 100 migration files having scores greater than a preset threshold from the 300 migration files, and the 100 migration files may include migration file_2, migration file_3, and migration file_4.

[0117] Step 208: The verification system determines the total number of target migration files to be extracted from the multiple migration files; extracts at least one migration file from the migration files whose corresponding file scores are greater than a preset threshold value according to a first ratio of the total number, and extracts at least one migration file from the migration files whose corresponding file scores are not greater than the preset threshold value according to a second ratio of the total number as the target migration file.

[0118] For example, the total number of target migration files to be extracted may be 100, the first ratio may be 90%, and the second ratio may be 10%. The verification system may extract 90 migration files from the migration files whose corresponding file scores are greater than a preset threshold according to 90% of the total number, and extract 10 migration files from the migration files whose corresponding file scores are not greater than the preset threshold according to 10% of the total number as target migration files.

[0119] Step 210: The verification system extracts all migration files whose corresponding file scores are greater than a preset threshold from the above multiple migration files, and randomly extracts at least one migration file from the migration files whose corresponding file scores are not greater than the preset threshold according to a preset ratio as a target migration file.

[0120] For example, the number of migration files whose corresponding file scores are not greater than the preset threshold may be 200, and the preset ratio may be 10%. The verification system may select all migration files (the number is 100) whose corresponding file scores are greater than the preset threshold from among the multiple migration files, and extract 20 migration files whose corresponding file scores are not greater than the preset threshold from among the multiple migration files according to the 10% as target migration files.

[0121] Step 212: The verification system may perform integrity verification and / or consistency verification on the target migration file.

[0122] For example, the verification system may perform integrity verification and / or consistency verification on the 100 or 120 target migration files.

[0123] Corresponding to the embodiment of the migration verification method, this specification also provides an embodiment of a migration verification device.

[0124] See also Figure 3 , Figure 3 It is a hardware structure diagram of an electronic device in which a migration verification device is located, which is shown as an exemplary embodiment. At the hardware level, the device includes a processor 302, an internal bus 304, a network interface 306, a memory 308, and a non-volatile memory 310, and of course may also include hardware required for other services. One or more embodiments of this specification can be implemented based on software, such as the processor 302 reading the corresponding computer program from the non-volatile memory 310 into the memory 308 and then running it. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0125] See also Figure 4 , Figure 4 is a block diagram of a migration verification device shown in an exemplary embodiment. The migration verification device can be applied to Figure 3 In the electronic device shown in the figure, the technical solution of this specification is implemented. The above device can be applied to a verification system; the above device may include:

[0126] An acquisition unit 402 is used to acquire multiple migration files that have been migrated;

[0127] An evaluation unit 404 is configured to perform file evaluation on the plurality of migration files respectively based on a preset evaluation dimension to obtain file scores corresponding to the plurality of migration files respectively;

[0128] The extraction unit 406 is configured to extract at least one target migration file from the multiple migration files based on the file scores, and perform migration verification on the at least one target migration file.

[0129] In this embodiment, the preset evaluation dimension may include an importance dimension and / or a value dimension; the file score includes an importance score corresponding to the importance dimension and / or a value score corresponding to the value dimension;

[0130] The evaluation unit 404 may be specifically used for:

[0131] Performing file importance assessment on each of the plurality of migration files to obtain importance scores corresponding to each of the plurality of migration files; and / or,

[0132] File value assessments are performed on the multiple migration files respectively to obtain value scores corresponding to the multiple migration files respectively.

[0133] In this embodiment, the file importance evaluation may be performed on the multiple migration files respectively according to one or more combinations of the following scoring indicators:

[0134] The relevance between the business to which the migration file belongs and the preset core business;

[0135] The credibility of the storage address of the migration file.

[0136] In this embodiment, the file value evaluation may be performed on the multiple migration files respectively according to one or more combinations of the following scoring indicators:

[0137] The file size of the migration file;

[0138] The historical usage count of the migration file;

[0139] The credibility of the storage address of the migration file.

[0140] In this embodiment, the file score may include an importance score corresponding to the importance dimension; and / or a value score corresponding to the value dimension;

[0141] The extraction unit 406 may be specifically used for:

[0142] Extracting at least one target migration file whose corresponding importance score is greater than a preset threshold from the multiple migration files; and / or extracting at least one target migration file whose corresponding value score is greater than a preset threshold from the multiple migration files.

[0143] In this embodiment, the extraction unit 406 may be specifically used for:

[0144] Determining a total number of target migration files to be extracted from the multiple migration files;

[0145] At least one migration file is extracted from the migration files whose corresponding file scores are greater than a preset threshold according to a first ratio of the total number, and at least one migration file is extracted from the migration files whose corresponding file scores are not greater than the preset threshold according to a second ratio of the total number to serve as a target migration file; wherein the first ratio is greater than the second ratio.

[0146] In this embodiment, the extraction unit 406 may be specifically used for:

[0147] All migration files whose corresponding file scores are greater than a preset threshold are extracted from the multiple migration files, and at least one migration file is randomly extracted from the migration files whose corresponding file scores are not greater than the preset threshold according to a preset ratio to serve as a target migration file.

[0148] The implementation process of the functions and effects of each unit in the device is specifically described in the implementation process of the corresponding steps in the method, which will not be repeated here.

[0149] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Ordinary technicians in this field can understand and implement it without paying creative work.

[0150] The systems, devices, modules or units described in the embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0151] In a typical configuration, a computer includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0152] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0153] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0154] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0155] The foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0156] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "one", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0157] It should be understood that although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0158] The above description is merely a preferred embodiment of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be included in the scope of protection of one or more embodiments of the present specification.

[0159] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

Claims

1. A migration verification method, the method being applied to a verification system for performing migration verification on a migration file, characterized in that: The method comprises: Get multiple migration files that have completed the migration; Based on the preset evaluation dimensions, respectively perform file evaluation on the multiple migration files to obtain file scores corresponding to the multiple migration files; At least one target migration file is extracted from the multiple migration files based on the file scores, and migration verification is performed on the at least one target migration file.

2. The method according to claim 1, characterized in that The preset evaluation dimension includes an importance dimension and / or a value dimension; the file score includes an importance score corresponding to the importance dimension and / or a value score corresponding to the value dimension; Based on the preset evaluation dimensions, file evaluation is performed on the multiple migration files respectively to obtain scores corresponding to the multiple migration files respectively, including: Performing file importance evaluation on the multiple migration files respectively to obtain importance scores corresponding to the multiple migration files respectively; and / or, File value assessments are performed on the multiple migration files respectively to obtain value scores corresponding to the multiple migration files respectively.

3. The method according to claim 2, characterized in that According to one or more combinations of the following scoring indicators, the importance of the multiple migration files is evaluated respectively: The relevance between the business to which the migration file belongs and the preset core business; The credibility of the storage address of the migration file.

4. The method according to claim 2, characterized in that: According to one or more combinations of the following scoring indicators, file value assessment is performed on the multiple migration files respectively: The file size of the migration file; The historical usage count of the migration file; The credibility of the storage address of the migration file.

5. The method according to claim 1, characterized in that Extracting at least one target migration file from the plurality of migration files based on the file scores includes: At least one target migration file whose corresponding file score is greater than a preset threshold is extracted from the multiple migration files.

6. The method according to claim 5, characterized in that The file score includes an importance score corresponding to the importance dimension; and / or a value score corresponding to the value dimension; Extracting at least one target migration file whose corresponding file score is greater than a preset threshold from the multiple migration files includes: Extracting at least one target migration file whose corresponding importance score is greater than a preset threshold from the multiple migration files; And / or, extracting at least one target migration file whose corresponding value score is greater than a preset threshold from the multiple migration files.

7. The method according to claim 1, characterized in that The verification system maintains a correspondence between file scores obtained by performing file evaluation on the multiple migration files based on a preset evaluation dimension and the file identifiers of the multiple migration files; The performing file evaluation on the plurality of migration files respectively based on the preset evaluation dimension to obtain file scores respectively corresponding to the plurality of migration files includes: Based on the file identifiers of the multiple migration files, the corresponding relationship is queried to respectively determine the file score corresponding to the file identifier of each migration file in the multiple migration files.

8. The method according to claim 5, characterized in that Extracting at least one target migration file whose corresponding file score is greater than a preset threshold from the multiple migration files includes: Determining a total number of target migration files to be extracted from the multiple migration files; At least one migration file is extracted from the migration files whose corresponding file scores are greater than a preset threshold according to a first ratio of the total number, and at least one migration file is extracted from the migration files whose corresponding file scores are not greater than a preset threshold according to a second ratio of the total number to serve as a target migration file; wherein the first ratio is greater than the second ratio.

9. The method according to claim 5, characterized in that Extracting at least one target migration file whose corresponding file score is greater than a preset threshold from the multiple migration files includes: All migration files whose corresponding file scores are greater than a preset threshold are extracted from the multiple migration files, and at least one migration file is randomly extracted from the migration files whose corresponding file scores are not greater than the preset threshold according to a preset ratio to serve as a target migration file.

10. The method according to claim 1, characterized in that The performing migration verification on the at least one target migration file includes: An integrity check and / or a consistency check is performed on the at least one target migration file.

11. A migration verification device, the device being applied to a verification system for performing migration verification on a migration file, characterized in that: The device comprises: An acquisition unit, used to acquire multiple migration files after the migration is completed; An evaluation unit, configured to perform file evaluation on each of the plurality of migration files based on a preset evaluation dimension to obtain file scores corresponding to each of the plurality of migration files; An extraction unit is configured to extract at least one target migration file from the multiple migration files based on the file scores, and perform migration verification on the at least one target migration file.