Data synchronization method and related device
By obtaining the fingerprint sequence of the file to be synchronized to determine the synchronization result, the problem of data leakage in differential synchronization technology is solved, data security is improved, and attackers are prevented from stealing file data content.
Patent Information
- Application Number
- CN202310241227.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-09-03
AI Technical Summary
Differential synchronization technology can lead to data leakage in some scenarios. Attackers can steal file data content through brute force cracking. Because when the difference between the new file and the old file is calculated, the attacker can determine which data slices already exist on the receiving side. .
By obtaining the fingerprint sequence of the file to be synchronized and determining which data slices in the synchronization result have been stored on the server, the attacker cannot accurately tell which data slices have been stored on the server, thereby reducing the possibility of data leakage.
Significantly reduces the possibility of data leakage, improves data security, and prevents attackers from stealing file data content through synchronization results.
Smart Images

Figure CN118585579A
Abstract
Description
Technical Field
[0001] The present application relates to the field of storage technology, and in particular to a data synchronization method and related devices. Background Art
[0002] As the scale of user business grows, single, offline storage devices can no longer meet business needs. More and more users choose to synchronize data to the server, or synchronize file data on one device to one or more other devices to meet storage or sharing needs. For example, more and more companies and organizations adopt multi-cloud, remote multi-terminal cross-domain file sharing and collaboration solutions to achieve remote office and branch office collaboration. For another example, the backup center can provide users with file backup and recovery services. Users can store files in the backup center, and when files are lost or accidentally modified, they can be restored from the backup center. In scenarios such as multi-device file sharing and file backup, file synchronization technology is indispensable. That is, when a user updates the content of a file on a device, file synchronization technology can synchronize the file to other devices to ensure the integrity and validity of the data.
[0003] Full synchronization technology is a type of data synchronization technology. The data of the entire file is synchronized each time the file is synchronized. This synchronization method synchronizes a large amount of data each time. In order to reduce the amount of data synchronization, differential synchronization technology is proposed. Differential synchronization technology detects the difference data between the new and old files and only transmits the difference data during data synchronization. Based on the data of the old file and the difference data, the device can obtain the data of the new file.
[0004] However, in some scenarios, file difference synchronization technology can lead to data leakage. Specifically, since file difference synchronization calculates the difference between the new file and the old file, when there is no difference between the new file and the old file, it means that the new file already exists. Therefore, attackers can steal the user's file data content through brute force cracking, resulting in data leakage and even financial loss. Summary of the invention
[0005] The embodiment of the present application provides a data synchronization method, which can reduce the possibility of data leakage and improve data security.
[0006] In a first aspect, an embodiment of the present application provides a data synchronization method, including:
[0007] Obtaining a fingerprint sequence of a file to be synchronized, wherein the file to be synchronized is a file that needs to be synchronized to the server, the data content of the file to be synchronized includes multiple data slices, the fingerprint sequence includes multiple fingerprints, and each fingerprint in the multiple fingerprints corresponds to a data slice;
[0008] A synchronization result is determined according to the fingerprint sequence, wherein the synchronization result includes the fingerprint of the data slice that needs to be synchronized, the data slice that needs to be synchronized includes at least one data slice that has been stored on the server, and the data slice that needs to be synchronized is used to indicate the data slice among the multiple data slices that needs to be synchronized to the server.
[0009] In an embodiment of the present application, there is a one-to-one correspondence between data slices and fingerprints, so the fingerprint sequence of the file to be synchronized can be used to determine which data slices in the file to be synchronized have been stored and which data slices have not been stored. However, the synchronization results determined based on the fingerprint sequence in the present application include fingerprints of data slices that have been stored. In other words, although this part of the data slices has been stored on the server, it will still be indicated as "need to be synchronized". At this point, the attacker cannot accurately distinguish which data slices in the file to be synchronized are already stored on the server through the synchronization results, so it is difficult to steal the data content of the file. Therefore, the embodiment of the present application can significantly reduce the possibility of data leakage and improve data security.
[0010] It should be noted that the server here refers to the recipient in the data synchronization process, which can be offline or online. For example, the server can be implemented by a rack server, cloud, computing device instance, data center, or personal computer and other devices (or modules) with computing capabilities, which are collectively referred to as servers here for the convenience of description. Among them, computing device instances include but are not limited to virtual machines, containers, etc.
[0011] A data slice may also be called a data block, which indicates a portion of data obtained by dividing the data content of a file according to the granularity. The division method of the data content may be pre-set or pre-specified, and the granularity may be uniform or non-uniform, which is not limited here. For example, if the granularity of the data slice is uniform, a 10M (megabyte) file can be divided into 10 data slices, each of which is 1M.
[0012] In a possible implementation of the first aspect, determining a synchronization result according to the fingerprint sequence includes:
[0013] querying the original states of the multiple data slices according to the fingerprint sequence, where the original state of a first data slice is used to indicate whether the first data slice has been stored on the server, and the first data slice is one of the multiple data slices;
[0014] The synchronization result is determined according to original states of the multiple data slices.
[0015] In this implementation, whether the data slice has been stored on the server can be indicated by the original state of the data slice, which enriches the representation method of the state of the data slice.
[0016] Furthermore, since the original status indicates whether the data slice has been stored on the server, it is used to record the real storage status of the data slice. When processing the data slices that need to be synchronized and submitted by the client in the subsequent process, deduplication can be conveniently performed based on the original device to avoid multiple storage of the same data slice, thereby improving storage efficiency and effective utilization of storage space.
[0017] In another possible implementation of the first aspect, the synchronization result further includes a synchronization status of the data slice that needs to be synchronized;
[0018] The synchronization status of the second data slice among the data slices that need to be synchronized indicates that the second data slice is not stored on the server, and the second data slice is any one of the data slices that need to be synchronized.
[0019] In the above implementation, the synchronization state may indicate a data slice that needs to be synchronized, which is a state obtained by obfuscating an original state to achieve redundant synchronization.
[0020] For example, for the second data slice that needs to be synchronized, its synchronization state is non-existent (i.e., synchronization is required), but its original state may indicate that it is not stored on the server, or may indicate that it is stored on the server. In other words, for a data slice whose original state is existing (i.e., stored on the server), its synchronization state may be confused as non-existent, thereby achieving redundant synchronization.
[0021] In yet another possible implementation of the first aspect, determining the synchronization result according to the original states of the multiple data slices includes:
[0022] Determine a redundant synchronization amount M, where the redundant synchronization amount indicates the number of data slices that need redundant synchronization among the multiple data slices, the redundant synchronization amount is less than or equal to the number of the multiple data slices, and M is an integer greater than 0;
[0023] The synchronization result is generated, wherein the synchronization result includes fingerprints of M data slices among the multiple data slices, and the original state of each data slice among the M data slices indicates that each data slice has been stored on the server.
[0024] This implementation method illustrates how to determine the existing data slices in the synchronization result based on the original state. Based on the original state, M data slices can be selected from the stored data slices to indicate redundant synchronization, thereby improving the efficiency of redundant fingerprint selection.
[0025] Exemplarily, the redundant synchronization amount may be the number of redundant data slices. For example, if the redundant synchronization amount is 10, in the synchronization result, data slices stored on 10 servers are indicated as needing to be synchronized.
[0026] For another example, the redundant synchronization amount may be the data amount of redundant data slices. For example, when the data size of each data slice is 2M and the redundant synchronization amount is 20M, in the synchronization result, 10 data slices stored on the server are indicated as needing to be synchronized.
[0027] In another possible implementation of the first aspect, each of the multiple fingerprints corresponds to a sensitivity level, the sensitivity level corresponding to a first fingerprint indicates the confidentiality or importance of a data slice corresponding to the first fingerprint, and the first fingerprint is one of the multiple fingerprints.
[0028] In this implementation, data slices have corresponding confidentiality or importance, and the corresponding relationship between the fingerprint of the data slice and the sensitivity level is used to represent the confidentiality or importance of a data slice. This implementation is conducive to achieving accurate protection of highly sensitive data and improving the security of highly sensitive data.
[0029] For example, when the fingerprint sequence of the file to be synchronized contains the fingerprint of a highly sensitive data slice, the fingerprint can be included in the synchronization result even if the server has already stored the highly sensitive data slice. In this way, the synchronization result can indicate that the highly sensitive data slice needs to be synchronized, thereby indicating that the highly sensitive data slice is not stored on the server, preventing attackers from stealing highly sensitive data through brute force. Among them, highly sensitive data slices refer to data slices with a high degree of confidentiality and / or high importance, such as data slices with a sensitivity level higher than a first threshold (optionally including equal to), and the first threshold can be pre-set or pre-configured.
[0030] For another example, when the fingerprint sequence submitted by the client contains the fingerprint of a low-sensitivity data slice, if the server has stored the low-sensitivity data slice, the synchronization result may not include the low-sensitivity data slice to reduce the amount of redundant synchronization and improve synchronization efficiency. Among them, the low-sensitivity data slice is a data slice with low confidentiality and / or low importance, or even a data slice that does not need to be kept confidential or an unimportant data slice.
[0031] Furthermore, the redundant synchronization amount indicates the sum of data slices that require redundant synchronization at each sensitivity level in the multiple data slices.
[0032] In this implementation, the redundant synchronization amount may indicate the number of redundant slices at each sensitivity level, thereby facilitating selection of data slices at each sensitivity level to achieve redundant synchronization.
[0033] In another possible implementation of the first aspect, the sensitivity levels corresponding to the multiple fingerprints include at least a first level and a second level, and the number of data slices that need to be redundantly synchronized at the first level among the multiple data slices is greater than the number of data slices that need to be redundantly synchronized at the second level;
[0034] The sensitivity level corresponding to the first fingerprint indicates the confidentiality level of the data slice corresponding to the first fingerprint, and the confidentiality level of the first level is higher than the confidentiality level of the second level;
[0035] Alternatively, the sensitivity level corresponding to the first fingerprint indicates the importance of the data slice corresponding to the first fingerprint, and the importance of the first level is higher than that of the second level.
[0036] In the above implementation, among the data slices of the files to be synchronized and the stored data slices, the more sensitive the data slices are, the greater the number of redundant synchronizations is, making it more difficult to steal their contents through brute force cracking, which is conducive to achieving accurate protection of highly sensitive data and improving the security of highly sensitive data.
[0037] In another possible implementation of the first aspect, the method further includes:
[0038] determining a redundant synchronization amount according to a target quantity feature and a sensitivity level corresponding to a fingerprint of a data slice among the plurality of data slices that is not stored on the server;
[0039] The target quantity feature indicates the quantity or proportion of fingerprints at each sensitivity level in the synchronization result.
[0040] In this implementation, the sensitivity level corresponding to each data slice in the file to be synchronized is referenced when determining the amount of redundant synchronization, which is conducive to normalizing the distribution of redundant synchronized data slices at each sensitivity level and avoiding excessive randomness.
[0041] In another possible implementation of the first aspect, the method further includes:
[0042] Querying the sensitivity level corresponding to the fingerprint in the fingerprint sequence;
[0043] The target quantity feature is determined according to the distribution features of the fingerprints in the fingerprint sequence at multiple sensitivity levels.
[0044] In another possible implementation of the first aspect, the method further includes:
[0045] Read the data content of the file to be synchronized;
[0046] The sensitivity level of the first fingerprint corresponding to the first data slice is determined according to the original state of the first data slice and the sensitivity level of the file to be synchronized.
[0047] In this case, the sensitivity level of the data slice can be determined by the sensitivity level of the file, which is conducive to standardizing the sensitivity level of the data slice, so that the sensitivity level more accurately reflects the confidentiality or importance of the data slice, which is conducive to the management of data slices and improves the user experience.
[0048] In yet another possible implementation of the first aspect, the correspondence between the fingerprint of the data slice and the sensitivity level is stored in a sensitive fingerprint database, and the method further includes:
[0049] The first fingerprint and the sensitivity level of the first fingerprint in the sensitive fingerprint database are updated.
[0050] In another possible implementation of the first aspect, determining the sensitivity level of the first fingerprint corresponding to the first data slice according to the original state of the first data slice and the sensitivity level of the file to be synchronized includes:
[0051] If the original state of the first data slice indicates that the first data slice is not stored on the server, using the sensitivity level of the to-be-synchronized file as the sensitivity level of the first fingerprint;
[0052] If the original state of the first data slice indicates that the first data slice has been stored on the server, the sensitivity level of the first fingerprint is determined according to the sensitivity level of at least one file to which the first data slice belongs, and at least one file to which the first data slice belongs includes the file to be synchronized.
[0053] In another possible implementation of the first aspect, the method further includes:
[0054] Receiving update indication information for the file to be synchronized;
[0055] Scan the content of the to-be-synchronized file for sensitive words to obtain a scanning result;
[0056] The sensitivity level of the file to be synchronized is determined according to the scanning result.
[0057] In another possible implementation of the first aspect, the redundant synchronization amount is negatively correlated with the number of data slices in the multiple data slices that are not stored on the server.
[0058] In other words, the more data slices that are not stored in the multiple data slices, the less redundant synchronization is required. This can reduce the amount of synchronization during file synchronization and improve synchronization efficiency.
[0059] In another possible implementation of the first aspect, the redundant synchronization amount is positively correlated with a bandwidth of a network. The network here may include a network for transmitting the data slices that need to be synchronized.
[0060] When the bandwidth of the synchronization network is small, the amount of redundant synchronization can be reduced to improve synchronization efficiency. When the bandwidth of the synchronization network is large, the amount of redundant synchronization can be increased to further improve security.
[0061] In another possible implementation of the first aspect, the method is performed by the server, and further includes:
[0062] Receiving the data slice that needs to be synchronized from the first device;
[0063] The data slices that need to be synchronized and are not stored on the server are stored.
[0064] In another possible implementation of the first aspect, the method further includes:
[0065] The file to be synchronized is reorganized according to the fingerprint sequence of the file to be synchronized.
[0066] In another possible implementation of the first aspect, the data slices that need to be synchronized further include data slices that are not stored on the server.
[0067] This implementation can achieve differential synchronization with redundancy, which reduces the amount of data transmitted compared to full synchronization technology, but can prevent data leakage and improve data security.
[0068] In a second aspect, an embodiment of the present application provides a data synchronization device, which includes an acquisition module and a processing module. The data synchronization device is used to implement the method described in the first aspect or any possible implementation method of the first aspect.
[0069] In a possible implementation of the second aspect, the acquisition module is used to acquire a fingerprint sequence of a to-be-synchronized file, where the to-be-synchronized file is a file that needs to be synchronized to a server, data content of the to-be-synchronized file includes multiple data slices, the fingerprint sequence includes multiple fingerprints, and each fingerprint in the multiple fingerprints corresponds to a data slice;
[0070] The processing module determines a synchronization result based on the fingerprint sequence, wherein the synchronization result includes a fingerprint of a data slice that needs to be synchronized, wherein the data slice that needs to be synchronized includes at least one data slice that has been stored on the server, and the data slice that needs to be synchronized is used to indicate a data slice among the multiple data slices that needs to be synchronized to the server.
[0071] In an embodiment of the present application, after the data synchronization device receives the fingerprint sequence of the file to be synchronized, it can determine whether the data slice has been stored on the server based on the fingerprint in the fingerprint sequence. The synchronization result it returns includes the fingerprint of the data slice that has been stored on the server. In this way, the attacker cannot accurately distinguish which data slices in the file to be synchronized are already stored on the server through the synchronization result, so it is difficult to steal the data content of the file. Therefore, the embodiment of the present application can significantly reduce the possibility of data leakage and improve data security.
[0072] In yet another possible implementation manner of the second aspect, the processing module is further configured to:
[0073] querying the original states of the multiple data slices according to the fingerprint sequence, where the original state of a first data slice is used to indicate whether the first data slice has been stored on the server, and the first data slice is one of the multiple data slices;
[0074] The synchronization result is determined according to original states of the multiple data slices.
[0075] In yet another possible implementation of the second aspect, the synchronization result further includes a synchronization status of the data slice that needs to be synchronized;
[0076] The synchronization status of the second data slice among the data slices that need to be synchronized indicates that the second data slice is not stored on the server, and the second data slice is any one of the data slices that need to be synchronized.
[0077] In yet another possible implementation manner of the second aspect, the processing module is further configured to:
[0078] Determine a redundant synchronization amount M, where the redundant synchronization amount indicates the number of data slices that need redundant synchronization among the multiple data slices, and the redundant synchronization amount is less than or equal to the number of the multiple data slices;
[0079] The synchronization result is generated, wherein the synchronization result includes fingerprints of M data slices among the multiple data slices, and the original state of each data slice among the M data slices indicates that each data slice has been stored on the server.
[0080] In yet another possible implementation of the second aspect, each fingerprint of the multiple fingerprints corresponds to a sensitivity level, the sensitivity level corresponding to a first fingerprint indicates a confidentiality or importance of a data slice corresponding to the first fingerprint, and the first fingerprint is one of the multiple fingerprints;
[0081] The redundant synchronization amount indicates the sum of data slices that need redundant synchronization at each sensitivity level in the multiple data slices.
[0082] In yet another possible implementation of the second aspect, the sensitivity levels corresponding to the multiple fingerprints include at least a first level and a second level, and the number of data slices that need to be redundantly synchronized at the first level among the multiple data slices is greater than the number of data slices that need to be redundantly synchronized at the second level;
[0083] The sensitivity level corresponding to the first fingerprint indicates the confidentiality level of the data slice corresponding to the first fingerprint, and the confidentiality level of the first level is higher than the confidentiality level of the second level;
[0084] Alternatively, the sensitivity level corresponding to the first fingerprint indicates the importance of the data slice corresponding to the first fingerprint, and the importance of the first level is higher than that of the second level.
[0085] In yet another possible implementation manner of the second aspect, the processing module is further configured to:
[0086] determining a redundant synchronization amount according to a target quantity feature and a sensitivity level corresponding to a fingerprint of a data slice among the plurality of data slices that is not stored on the server;
[0087] The target quantity feature indicates the quantity or proportion of fingerprints at each sensitivity level in the synchronization result.
[0088] In yet another possible implementation manner of the second aspect, the processing module is further configured to:
[0089] Querying the sensitivity level corresponding to the fingerprint in the fingerprint sequence;
[0090] The target quantity feature is determined according to the distribution features of the fingerprints in the fingerprint sequence at multiple sensitivity levels.
[0091] In yet another possible implementation of the second aspect, the acquisition module is further used to read data content of the file to be synchronized;
[0092] The processing module is further used to determine the sensitivity level of the first fingerprint corresponding to the first data slice according to the original state of the first data slice and the sensitivity level of the file to be synchronized.
[0093] In yet another possible implementation of the second aspect, the correspondence between the fingerprint of the data slice and the sensitivity level is stored in a sensitive fingerprint database, and the method further includes:
[0094] The first fingerprint and the sensitivity level of the first fingerprint in the sensitive fingerprint database are updated.
[0095] In yet another possible implementation of the second aspect, determining, according to the original state of the first data slice and the sensitivity level of the file to be synchronized, the sensitivity level of the first fingerprint corresponding to the first data slice includes:
[0096] If the original state of the first data slice indicates that the first data slice is not stored on the server, using the sensitivity level of the to-be-synchronized file as the sensitivity level of the first fingerprint;
[0097] If the original state of the first data slice indicates that the first data slice has been stored on the server, the sensitivity level of the first fingerprint is determined according to the sensitivity level of at least one file to which the first data slice belongs, and at least one file to which the first data slice belongs includes the file to be synchronized.
[0098] In another possible implementation manner of the second aspect, the method further includes:
[0099] Receiving update indication information for the file to be synchronized;
[0100] Scan the content of the to-be-synchronized file for sensitive words to obtain a scanning result;
[0101] The sensitivity level of the file to be synchronized is determined according to the scanning result.
[0102] In yet another possible implementation of the second aspect, the redundant synchronization amount is negatively correlated with the number of data slices in the multiple data slices that are not stored on the server;
[0103] And / or, the redundant synchronization amount is positively correlated with the bandwidth of the network. The network here may include a network for transmitting the data slices that need to be synchronized.
[0104] In yet another possible implementation of the second aspect, the data synchronization device is included in the server or connected to the server;
[0105] The acquisition module is further used to receive the data slice that needs to be synchronized from the first device;
[0106] The processing module is further used to store data slices that are not stored on the server among the data slices that need to be synchronized.
[0107] In another possible implementation of the second aspect, the data slices that need to be synchronized further include data slices that are not stored on the server.
[0108] In a third aspect, an embodiment of the present application provides a data management system, which includes one or more of a fingerprint filtering module, a fingerprint duplication checking module, a fingerprint obfuscation module, or a fingerprint library management module. The data management system can implement the method described in the first aspect or any possible implementation of the first aspect.
[0109] Among them, the fingerprint filtering module is used to determine the sensitivity level corresponding to the fingerprint. Furthermore, the fingerprint filtering module is also used to determine the distribution characteristics of the fingerprints in the fingerprint sequence at multiple sensitivity levels. The fingerprint duplication detection module is used to determine the original state of the data slice corresponding to the fingerprint, or the original state corresponding to the fingerprint. The fingerprint obfuscation module is used to determine the synchronization result. The fingerprint library management module is used to manage the sensitivity level corresponding to the fingerprint.
[0110] Optionally, the data management system further includes a file system and a sensitive data scanning module. The file system is used to organize files and provide services for the files. The sensitive data scanning module is used to perform keyword scanning on the data content of the files.
[0111] Further optionally, the data management system also includes a sensitive data classification management module, and the sensitive data classification management module is used to manage the security level of the file, such as providing a security level query service.
[0112] In a fourth aspect, an embodiment of the present application provides a computing device, which includes a processor and a memory; the processor is used to execute instructions stored in the memory so that the computing device implements the method described in any one of the first aspects above.
[0113] Optionally, the computing device further comprises a communication interface, wherein the communication interface is used to receive and / or send data, and / or the communication interface is used to provide input and / or output for the processor.
[0114] It should be noted that the above embodiment is described by taking a processor (or general-purpose processor) that executes the method by calling a computer specification as an example. In the specific implementation process, the processor can also be a dedicated processor, in which case the computer instructions have been pre-loaded in the processor. Optionally, the processor can also include both a dedicated processor and a general-purpose processor.
[0115] Optionally, the processor and the memory may also be integrated into one device, that is, the processor and the memory may also be integrated together.
[0116] In a fifth aspect, an embodiment of the present application further provides a computing device cluster, the computing device cluster comprising at least one computing device, each computing device comprising a processor and a memory;
[0117] The processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method described in any one of the first aspects.
[0118] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on at least one processor, the method described in any one of the first aspects is implemented.
[0119] In a seventh aspect, an embodiment of the present application provides a computer program product, which includes computer instructions. When the instructions are executed on at least one processor, the method described in any one of the first aspects is implemented.
[0120] Optionally, the computer program product may be a software installation package or an image package. When the aforementioned method is required, the computer program product may be downloaded and executed on a computing device.
[0121] The beneficial effects of the technical solutions provided in the second to seventh aspects of the present application can refer to the beneficial effects of the technical solution of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0122] The following is a brief introduction to the drawings required for describing the embodiments.
[0123] Figure 1 It is a schematic diagram of a file synchronization method;
[0124] Figure 2 It is a schematic diagram of the architecture of a data management system provided in an embodiment of the present application;
[0125] Figure 3 It is a software architecture diagram of a data management system provided in an embodiment of the present application;
[0126] Figure 4 It is a schematic diagram of the operation of a data management system provided in an embodiment of the present application;
[0127] Figure 5 It is a schematic diagram of the operation of another data management system provided in an embodiment of the present application;
[0128] Figure 6 is a schematic diagram of a data synchronization method provided in an embodiment of the present application;
[0129] Figure 7 is a schematic diagram of a correspondence between a data slice and a fingerprint provided in an embodiment of the present application;
[0130] Figure 8It is a flowchart of another data synchronization method provided in an embodiment of the present application;
[0131] Fig. 9 It is a flowchart of another data synchronization method provided in an embodiment of the present application;
[0132] Fig.10 is a structural diagram of a data synchronization device provided in an embodiment of the present application;
[0133] Fig.11 It is a structural diagram of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0134] The following is an introduction to the terms that may be used in the embodiments of the present application.
[0135] File system: A file system is a method and data structure used to identify files on a storage disk (such as a magnetic disk, solid-state drive, or partition, etc.), that is, a method of organizing files on a storage disk. The main function of a file system is to allow users to read and write files conveniently. For example, a user provides the file system with an identifier of a specified file (such as the file name, the file path, etc.), and the file system can then access the data of the corresponding file.
[0136] Depending on the access protocol used by the file reading and writing services, the file system can include the following types of file systems: network file system (NFS), file system based on server message block (SMB) protocol, common internet file system (CIFS), simple storage service (S3), Hadoop distributed file system (HDFS), etc.
[0137] In addition, in some scenarios, the file system can be a global file system (GFS). GFS, also known as a federated file system, can combine multiple file systems on multiple storage systems (or storage devices) and provide a joint view of multiple file systems (or a global file view). Users can load the joint view of multiple file systems on any device and access the data of files on any storage system in the global file system based on the joint view. GFS provides a unified file system namespace and a global directory structure view for applications across data processing systems (for example, across data centers). Business applications do not need to be aware of the location of the data, and can see a unified global file view and attributes from any device connected to the global file system. When an application reads and writes non-local files, GFS will automatically load the data from the remote end to the local end. There is no distinction between local and non-local data at the application level, and the response speed depends on the network bandwidth and latency between devices.
[0138] It should be understood that the file system involved in this application refers to a system that provides storage and access services for files. It is understandable that the file system can also be replaced by an object storage system that provides storage and access services for objects.
[0139] Data slice (or data block): Data slice refers to dividing the data content into data slices. A file contains one or more data slices.
[0140] Fingerprint: A fingerprint is an identifier that corresponds to a data slice one by one. It can be a number or a string. Different data slices have different fingerprints.
[0141] In some scenarios, the fingerprint is associated with the content of the data slice and can be regarded as a summary or digital signature of the data slice.
[0142] Optionally, a hash value can be generated for the content of the data slice through a hash algorithm, and the hash value can be used as the fingerprint of the data slice. Exemplarily, the fingerprint of the data slice can be determined by running a deterministic cryptographic hash (Hash) algorithm. If the hash values of two different data slices are the same, then the contents of the two are also the same, because a slight change will also make the hash values of the data slices different.
[0143] The above explanations of the terms may be optionally applied to the following text. Of course, the meanings of the above technical terms can also refer to the explanations of the prior art, and the above is an exemplary explanation.
[0144] Differential synchronization technology detects the difference data between the new and old files and transmits only the difference data during data synchronization. Based on the data of the old file and the difference data, the device can obtain the data of the new file.
[0145] See also Figure 1 , Figure 1 This is a schematic diagram of a file synchronization method. Figure 1 In part (A), the requesting party synchronizes file file1 with the receiving party. File1 contains multiple data slices, for example, represented as B1 to B4, and the multiple data slices correspond to fingerprints P1 to P4 respectively. The requesting party first submits the fingerprints of the multiple data slices (P1 to P4) to the receiving party. The receiving party checks for duplicates and indicates to the requesting party that P4 is a newly added fingerprint. In other words, data slices B1 to B3 already exist in the requesting party. Correspondingly, based on the fingerprint of the differential data, the requesting party only needs to synchronize the data slice corresponding to fingerprint P4, that is, B4, to the receiving party, thereby greatly reducing the amount of synchronized data.
[0146] However, since file difference synchronization calculates the difference between the new file and the old file, when there is no difference between the new file and the old file, it means that the new file already exists. Therefore, an attacker can steal the user's file data content through brute force.
[0147] like Figure 1 In part (B), the attacker submits a file2, and the multiple data slices calculated based on file2 include C1, C2, and C3. If the data content of C1 and C2 is the same as some data slices of file1, for example, the same as B1 and B2. The fingerprints of the data slices of File2 are P1, P2, and P5 (the fingerprint corresponding to C3). When the attacker impersonates the requester and submits the fingerprints of File2 (P1, P2, and P5) to the receiver, since the data slices B1 and B2 already exist in the receiver, the receiver will indicate that P5 is a differential fingerprint (or the data slice corresponding to P5 is differential data). At this point, the attacker can determine that the data slices C1 and C2 already exist in the requester, and can steal this part of the data. When the content of B1 and B2 is confidential data of the enterprise, the attacker has stolen the confidential data.
[0148] Moreover, attackers can generate countless different data slices through brute force, which greatly threatens the security of data and even causes property losses. Even if the identity is verified through identity authentication, the data may be stolen by people with identity authentication, such as corporate or organizational personnel.
[0149] In view of this, an embodiment of the present application provides a data synchronization method and related devices. In an embodiment of the present application, there is a one-to-one correspondence between data slices and fingerprints, so the fingerprint sequence of the file to be synchronized can be used to determine which data slices in the file to be synchronized have been stored and which data slices have not been stored. However, in the present application, the synchronization results determined based on the fingerprint sequence include fingerprints of the data slices that have been stored. In other words, although this part of the data slices has been stored on the server, it will still be indicated as "need to be synchronized". At this time, the attacker cannot accurately distinguish which data slices in the file to be synchronized are already stored on the server through the synchronization results, so it is difficult to steal the data content of the file (or the content of the file). Therefore, the embodiment of the present application can significantly reduce the possibility of data leakage and improve data security.
[0150] The following is an exemplary description of the system architecture of the embodiment of the present application. It should be noted that the system architecture described in this application is to more clearly illustrate the technical solution of the present application, and does not constitute a limitation on the technical solution provided by the present application. It is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution provided by the present application is also applicable to similar technical problems.
[0151] See also Figure 2 , Figure 2 2 is a schematic diagram of the architecture of a data management system provided in an embodiment of the present application, wherein the data management system includes a client 201 and a server 202 .
[0152] Among them, the client 201 is a device with computing and communication capabilities. For example, the client 201 can implement one or more of the following operations: executing the update of the data content of the file, dividing the data content of the file into blocks, or calculating the fingerprint of the data slice, etc. For another example, the client 201 can usually interact with the user, such as providing a user interface so that the user can add or modify the data content of the file. For another example, the client 201 has a communication capability and can perform data transmission with the server 202, and the data transmission includes but is not limited to the transmission of fingerprints, the transmission of data content, the transmission of the content of the data slice, etc.
[0153] Optionally, the client 201 further includes a storage space, or is connected to a memory, and the memory can provide the storage space. The storage space is used to store the data content of the file, and optionally can also store the metadata of the file.
[0154] The server 202, or the server, has computing and communication capabilities. For example, the server 202 can implement one or more of the following operations: checking for duplicate fingerprints, or obfuscating the duplicate checking results to generate synchronization results (explained below), etc. For another example, the server 202 can perform data transmission with the client 201, and the data transmission includes but is not limited to the transmission of fingerprints, the transmission of synchronization results, the transmission of data content, the transmission of data fragment content, etc.
[0155] Optionally, the server 202 further includes a storage space, or is connected to a memory, and the memory can provide the storage space. The storage space is used to store the data content of the file, and optionally can also store the metadata of the file.
[0156] It should be noted that the above system introduction takes the client 201 and the server 202 as examples to introduce the party requesting synchronization and the party receiving synchronization respectively. In the implementation process, the functions implemented by the client 201 and / or the server 202 can be implemented by software or by hardware.
[0157] The following takes the server 202 as an example to introduce possible implementations of the server 202 in the embodiment of the present application. The possible implementations of the client 201 can also refer to the implementation of the server 202.
[0158] In a possible implementation, the server 202 may be an offline device or an online device. For example, the server may be implemented by a rack server, a cloud, a computing device instance, a data center, or a personal computer, etc., which are collectively referred to as servers for the convenience of description. The computing device instance includes but is not limited to a virtual machine, a container, etc.
[0159] In one possible implementation, the server 202 may be implemented by a storage system. The storage system includes a storage module and a memory. The memory can provide storage space for storing the data content of the file. Optionally, the memory may include a hard disk. The processing module has computing capabilities and can complete one or more operations such as determining, querying, and updating data. The processing module may include a computing module implemented by a physical host, a virtual machine, a container, a central processing unit, a microprocessor, an application-specific integrated circuit (ASIC), or a programmable logic device (PLD). The above-mentioned PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0160] Optionally, the storage system may be a centralized storage system. For example, the storage system may be a storage system with a disk-controller integrated architecture, or a storage system with a disk-controller separated architecture. Alternatively, the storage system may be a distributed storage system, for example, the storage system includes but is not limited to the following architectures: fully converged architecture, storage-computing integrated architecture, storage-computing separated architecture, or Memory Fabric architecture.
[0161] As a possible implementation, the client 201 and / or the server 202 may be included in a global file system (GFS), or connected to a global file system.
[0162] See also Figure 3 , Figure 3 3 is a schematic diagram of the software architecture of a data management system provided in an embodiment of the present application. The data management system 30 includes one or more of a fingerprint filtering module 301, a fingerprint duplicate checking module 302, a fingerprint obfuscation module 303, or a fingerprint library management module 304. The connection relationship in the modules is only an example, and the connection relationship may have other designs in the specific implementation process.
[0163] Among them, the fingerprint filtering module 301 is used to determine the sensitivity level corresponding to the fingerprint. Optionally, the sensitivity level corresponding to the fingerprint can be stored in a sensitive fingerprint database, and the sensitivity level corresponding to the fingerprint can be queried from the sensitive fingerprint database through the fingerprint library management module. Further, the fingerprint filtering module 301 is also used to determine the distribution characteristics of the fingerprints in the fingerprint sequence under multiple sensitivity levels.
[0164] The fingerprint duplication checking module 302 is used to determine the original state of the data slice corresponding to the fingerprint, or the original state corresponding to the fingerprint. Optionally, the fingerprint duplication checking module 302 can be connected to the data slice fingerprint library to determine which data slices already exist.
[0165] The fingerprint obfuscation module 303 is used to determine the synchronization result. The fingerprint library management module 304 is used to manage the sensitivity level corresponding to the fingerprint, for example, to realize the addition, deletion, query, and modification of the sensitivity level.
[0166] Optionally, the data management system 30 further includes a sensitive data scanning module 305 for performing keyword scanning on the data content of the file. Further, the data content of the file may be read from a file system, in which case the data management system may optionally include a file system. The file system may be a global file system.
[0167] Further optionally, the data management system 30 further includes a sensitive data classification management module ( Figure 3 (not shown), the sensitive data classification management module is used to manage the security level of the file, for example, to provide security level query services, etc.
[0168] As a possible implementation, one or more modules among the fingerprint filtering module 301, the fingerprint duplication checking module 302, the fingerprint obfuscation module 303, or the fingerprint library management module 304 can be included in Figure 2 In the server 202 shown.
[0169] It should be noted that the "module" in this application can be a software module implemented by software, or can be a hardware module implemented by hardware. Exemplarily, the implementation of the module is introduced below by taking the fingerprint filtering module 301 as an example. Similarly, the implementation of other modules can refer to the implementation of the fingerprint filtering module 301.
[0170] The fingerprint filtering module 301 is an example of a software functional unit, which may include code running on a computing instance. Among them, the computing instance may include a physical host (computing device), a virtual machine, a container, etc. Further, the above computing instance may be one or more. For example, the fingerprint filtering module 301 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region (region) or in different regions. Further, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple data centers with similar geographical locations. Among them, a region may generally include multiple AZs. Similarly, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Among them, usually a VPC is set in a region. The cross-region communication between two VPCs in the same region and between VPCs in different regions requires setting up a communication gateway in each VPC to achieve interconnection between VPCs through the communication gateway.
[0171] The fingerprint filtering module 301 is an example of a hardware functional unit, which may include at least one computing module, such as a server, a personal computer, etc. The fingerprint filtering module 301 may also be a computing module implemented by a central processing unit, a microprocessor, an application-specific integrated circuit (ASIC), or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0172] In the case where the fingerprint filtering module 301 includes multiple computing modules, the multiple computing modules can be distributed in the same region or in different regions. The above regions can also be replaced with AZ, VPC and other granularities. The multiple computing modules can be any combination of computing devices such as hosts, ASICs, PLDs, CPLDs, FPGAs and GALs.
[0173] Optionally, the names of the modules in this application are only for illustration, and the names of the modules may be replaced during the specific implementation process. For example, the sensitive data scanning module may also be called the content scanning module.
[0174] The above describes the data management system provided by this application. Figure 4 and Figure 5 To exemplarily introduce the scenarios in which the data management system provided by the present application and the data synchronization method described below can be applied.
[0175] As a possible implementation method, the above-mentioned data management system, data synchronization method, etc. can be applied to multi-cloud, multi-terminal cross-domain file sharing and collaboration scenarios.
[0176] See also Figure 4 , Figure 4 This is a schematic diagram of the operation of a possible data management system provided by an embodiment of the present application. The global file system (or cloud) can be accessed by multiple clients. For example, it can be accessed by SiteA and SiteB. Files can be synchronized between SiteA, SiteB and the global file system.
[0177] Taking SiteA synchronizing files to the global file system as an example, when SiteA synchronizes files to the global file system, the source files of the files to be synchronized can be sliced to obtain multiple data slices. The fingerprints of multiple data slices (optionally after deduplication) are included in the fingerprint sequence. The fingerprint sequence can obtain newly added fingerprints after fingerprint deduplication. The fingerprint deduplication query process can include the following steps: SiteA provides the fingerprint sequence to the sensitive fingerprint filtering module, and the sensitive fingerprint filtering module, the fingerprint duplication check and the result obfuscation module deduplicate and obfuscate it to obtain the synchronization result, which can be fed back to SiteA. SiteA determines the newly added fingerprint based on the synchronization result, that is, the fingerprint of the data slice that needs to be synchronized. Based on the synchronization result, the fingerprint (optionally only the newly added fingerprint) and the data slice are transmitted to the global file system.
[0178] Correspondingly, the global file system receives the fingerprint and the data slice, and obtains the data content of the file to be synchronized.
[0179] Optionally, the global file system may reorganize the file according to the fingerprint of the file and the data slice of the file, thereby restoring the source file in the file system in the global file system.
[0180] Furthermore, the global file system can determine the sensitivity level corresponding to the fingerprint through the sensitive data scanning module and update it in the sensitive fingerprint database.
[0181] For related descriptions, please refer to the relevant descriptions in this article, which will not be repeated here.
[0182] As a possible implementation method, the above data management system, data synchronization method, etc. can be applied in data backup scenarios. Figure 5 , Figure 5 This is another possible operation diagram of a data management system provided by an embodiment of the present application. The data management system includes a backup source end (or backup client) and a backup destination end (or backup storage end). The backup source end (and the backup destination end) can synchronize files with each other.
[0183] For example, when backing up data, the backup source can synchronize files with the backup destination.
[0184] For another example, when backing up data, the backup destination can synchronize files with the backup source.
[0185] For a detailed description, please refer to the relevant description in this article, which will not be repeated here.
[0186] The system architecture of the embodiment of the present application is introduced above, and the method of the embodiment of the present application is introduced below. For ease of understanding, each embodiment is introduced separately through multiple diagrams below, which does not limit the independence of each embodiment, that is, the embodiments can be combined.
[0187] See also Figure 6 , Figure 6 is a schematic diagram of a possible data synchronization method provided by an embodiment of the present application. Optionally, the method can be applied to the aforementioned data management system, for example Figure 2 , Figure 3 , Figure 4 or Figure 5 It should be understood that for the convenience of description, the data synchronization method is described in the order of S601 to S602, and it is not intended to limit the execution to the above order. The embodiment of the present application does not limit the execution order, execution time, execution number, etc. of the above one or more steps. S601 to step S602 are as follows:
[0188] Step S601: The server obtains the fingerprint sequence of the file to be synchronized.
[0189] The to-be-synchronized file is a file that needs to be synchronized to the server. The receiver is the party that receives the synchronized data during the synchronization process. Synchronizing to the server can be uploading to the server or transmitting to the server. The server here refers to the receiver in the data synchronization process, which can be offline or online. For example, the server can be Figure 2 The server 202 is shown. For example, the server may be Figure 4 As another example, the server can be Figure 5 The backup destination is shown.
[0190] The data content of the file to be synchronized contains multiple data slices. Each data slice has a corresponding fingerprint. For example, see Figure 7 , Figure 7 It is a schematic diagram of the correspondence between a data slice and a fingerprint provided in an embodiment of the present application. Among them, the file file3 can contain 8 data slices, which are respectively identified as block1 to block8. Among them, block1 to block8 correspond to fingerprints A001 to A008, etc., as shown in the figure. Optionally, in some scenarios, when the content of the data slices is the same or the data is the same, the corresponding fingerprints may also be the same. For example, if the content of block1 and block5 is the same, the fingerprints A001 and A005 corresponding to the two are also the same.
[0191] It should be noted that the serial number, slice identifier, and fingerprint in the embodiments of the present application are all examples and are not intended to limit the length, format, etc. of the above parameters. Taking fingerprint as an example, A001, A002, etc. are all reference variables made for the convenience of description. The fingerprint of a data slice can be a longer or shorter string or number. For example, the fingerprint can be a 128-bit string or 256-bit data. Moreover, although the fingerprints of block1 and block appear to differ by 1 serial number in this application, in actual practice, there may be a huge difference between the fingerprints of the two.
[0192] The fingerprint sequence contains multiple fingerprints, each of which corresponds to a data slice. For example, the file to be synchronized can be Figure 7 The file file3 shown in the figure. The fingerprint sequence may include fingerprints corresponding to multiple data slices of file3, namely A001, A002, and so on.
[0193] It should be noted that a fingerprint sequence refers to data containing multiple fingerprints, and its storage or transmission method may be in the form of a sequence or other forms. For example, it can be transmitted in the form of a linked list, table, array, structure, object, etc. The order of each fingerprint may be in the order of the slices or not. For example, the fingerprint sequence of file3 may be in the form of "[A001, A002, A003, A004, A005, A006, A007, A008]", or in the form of "{{block1: A001}, {block2: A002}... {block8: A008}}". The order of fingerprints is only an example, and other orders may be used in the specific implementation process.
[0194] Optionally, multiple fingerprints in the fingerprint sequence may be deduplicated. Alternatively, multiple fingerprints in the fingerprint sequence are different from each other, or the contents of data slices corresponding to multiple fingerprints in the data sequence are different. For example, when the contents of block1 and block5 are the same, and the fingerprints A001 and A005 corresponding to the two are also the same, the fingerprint sequence may contain only one of A001 and A005.
[0195] As a possible implementation, the fingerprint sequence may be provided by the first device to the server. For example, the first device may be a client, such as Figure 3 As another example, the first device may be a device using a synchronization service, such as a storage device in a global file system, such as Figure 4 As another example, the first device may be SiteA and SiteB. Figure 5 The backup source or backup destination as shown.
[0196] As a possible implementation, a fingerprint corresponds to a sensitivity level, and the sensitivity level indicates the confidentiality or importance of the data slice corresponding to the fingerprint. For example, the sensitivity level may include high, medium, and low, wherein the confidentiality of high, medium, and low levels decreases in sequence, or the importance decreases in sequence, and vice versa. For another example, the sensitivity level may be S1, S2, S3, S4, and S5, and from S1 to S5 it means that the confidentiality increases or decreases in sequence, or the importance increases or decreases in sequence. Optionally, the sensitivity level may also be a combined rating obtained by combining the confidentiality level and the importance level.
[0197] Step S602: The server determines a synchronization result according to the fingerprint sequence.
[0198] The synchronization result is used to indicate the data slices that need to be synchronized.
[0199] For example, the synchronization result contains the fingerprint of the data slice that needs to be synchronized. Figure 7 For example, when the synchronization result contains fingerprint A003, the data slice block3 corresponding to A003 needs to be synchronized to the server.
[0200] For another example, the synchronization result includes the identifiers of other data slices that need to be synchronized. The identifiers of data slices may include fingerprints, data slice numbers, serial numbers, IDs, etc. For example, the fingerprint sequence of file3 includes the data slice number and the data slice fingerprint, such as "{{block1:A001},{block2:A002}...{block8:A008}}". The synchronization result may be block7, indicating that data slice block7 needs to be synchronized to the server.
[0201] As a possible implementation, the data slices to be synchronized include stored data slices. The stored data here refers to the storage on the synchronization receiving party. The following is an introduction taking the storage on the server as an example.
[0202] by Figure 7 For example, if the synchronization result is "[A001, A002]", block1 and block2 contain data slices that have been stored on the service. For example, block1 has been stored on the service, or block2 has been stored on the server, or both block1 and block2 have been stored on the server. In other words, although some data slices have been stored on the server, they will still be indicated as "need to be synchronized" in the synchronization result. At this point, the attacker cannot accurately distinguish which data slices in the file to be synchronized are already stored on the server through the synchronization results, so it is difficult to steal the data content of the file. Therefore, the embodiments of the present application can significantly reduce the possibility of data leakage and improve data security.
[0203] Optionally, when using the synchronization result to transmit synchronization data, some data slices that already exist on the server still participate in the synchronization transmission. Compared with the differential synchronization technology, this synchronization method has redundant transmission volume, so it can be called redundant synchronization.
[0204] Optionally, at least one of the multiple data slices of the file to be synchronized is already stored on the server. It is understandable that the data slices already stored on the server need to be prevented from being stolen by attackers. If the data slices of the file to be synchronized are not stored on the server, then the attacker cannot achieve the purpose of stealing the existing content by brute force.
[0205] As a possible implementation, when determining the synchronization result, it can be determined based on the original state of the data slice.
[0206] Exemplarily, the server queries the original states of the multiple data slices according to the fingerprint sequence, and determines the synchronization result according to the original states of the multiple data slices. The original state of the data slice indicates whether the data slice has been stored on the server. For example, the original state may include "already exists" or "not exist", and may optionally include other states, such as "being stored". "Already exists" means that the data slice has been stored on the server, and "not exist" means that it has not been stored on the server.
[0207] As a possible implementation, for multiple fingerprints in a fingerprint sequence, the server can query the fingerprint table separately. The query result can be used as the original state of the fingerprint. As shown in Table 1, a fingerprint table of a data slice provided in an embodiment of the present application includes fingerprints of data slices stored on the server. For example, block1, block2, block4, and block7 have been stored on the server, so Table 1 includes the fingerprints corresponding to the above data slices. Optionally, Table 1 also includes other information related to the fingerprint, such as a serial number, or a storage address of the data slice corresponding to the fingerprint.
[0208] In conjunction with Table 1, for any fingerprint in the fingerprint sequence "[A001, A002, A003, A004, A005, A006, A007, A008]", for example, taking fingerprint A001 as an example, if fingerprint A001 exists in Table 1, it means that the original state of its corresponding data slice is already present. However, fingerprint A003 does not exist in Table 1, which means that the original state of its corresponding data slice is not present.
[0209] Table 1 Fingerprint table of data slices
[0210] Serial number fingerprint Storage address 1 A001 Address 1 2 A002 Address 2 3 A004 Address 3 4 A007 Address 4 …… …… ……
[0211] Optionally, the fingerprint table shown in Table 1 may be stored by a data slice fingerprint library. Accordingly, the fingerprint of the data slice stored on the server may be queried through the data slice fingerprint library, or the original state of the data slice may be determined through the data slice fingerprint library.
[0212] It should be understood that the above is only for the sake of ease of understanding, so the information of the fingerprint of the data slice is explained in a tabular form, and is not intended to limit the fingerprint storage form, output form and transmission form. In the specific implementation process, the fingerprint information can also be indicated by other data formats, such as database tables, linked lists, heaps, stacks, JSON format data, or objects, etc., which are not listed one by one here. Similarly, other tables in this application are also exemplary data formats and are not used as strict limitations on the solution of this application.
[0213] It is understandable that the fingerprint corresponds to the data slice, and the data slice exists in the original state, so the fingerprint and the original state also correspond to each other, which is used to indicate the original state of the data slice corresponding to the fingerprint, and is also referred to as the original state corresponding to the fingerprint in some scenarios. As shown in Table 2, an original state table corresponding to a fingerprint provided in an embodiment of the present application includes the original state corresponding to the fingerprint, etc., and may optionally include other information such as a serial number.
[0214] Table 2 Original state table corresponding to fingerprint
[0215] Serial number fingerprint Original state 1 A001 Already exists 2 A002 Already exists 3 A003 Does not exist 4 A004 Already exists 5 A005 Does not exist 6 A006 Does not exist 7 A007 Already exists 8 A008 Does not exist
[0216] It is necessary to use the two values "exist" and "do not exist" to indicate the original state for ease of understanding. In the specific implementation process, the original state can also be indicated by other methods, and the indication method of the original state is not strictly limited here. For example, the original state can be indicated by "yes", "no", etc., or by 0, 1, etc., or by true, false, etc.
[0217] As a possible implementation, the server selects several (e.g., one or more) fingerprints whose original states already exist according to the original states corresponding to the fingerprints to obtain a synchronization result. For example, the synchronization result includes A001, and for another example, the synchronization result includes A001, A002, A003, and A004.
[0218] As a possible implementation, the synchronization result further includes the synchronization status of the data slices to be synchronized. The synchronization status can be used to indicate the data slices to be synchronized, which is a status obtained by obfuscating the original status.
[0219] The synchronization status of the second data slice in the data slices that need to be synchronized indicates that the second data slice is not stored on the server, and the second data slice is any one of the data slices that need to be synchronized. As shown in Table 3, an original state table corresponding to a fingerprint provided in an embodiment of the present application includes a fingerprint and a synchronization status corresponding to the fingerprint, and optionally may also include other information such as a serial number. Combining Table 3 and Table 5, it is easy to obtain that the synchronization result indicates that the data slices corresponding to A003, A004, A005, A006, A007, and A008 need to be synchronized, that is, block3, block4, block5, block6, block7, and block8.
[0220] Table 3 Synchronization status table corresponding to fingerprints in synchronization results
[0221] Serial number fingerprint Synchronization status 1 A001 No synchronization required 2 A002 No synchronization required 3 A003 Need to be synchronized 4 A004 Need to be synchronized 5 A005 Need to be synchronized 6 A006 Need to be synchronized 7 A007 Need to be synchronized 9 A008 Need to be synchronized
[0222] It can be seen that the original states corresponding to A004 and A007 are existing, but they are confused as needing synchronization in the synchronization result, so that redundant synchronization can be achieved.
[0223] It should be noted that the names of the various states listed in this application can be replaced. For example, the synchronization state can also be the same as the state name of the original state, including existence (ie, no synchronization is required), non-existence (ie, synchronization is required), etc.
[0224] As a possible implementation, the server may first determine the redundant synchronization amount, and determine the synchronization result based on the redundant synchronization amount.
[0225] Exemplarily, the redundant synchronization amount indicates the number of data slices that need redundant synchronization among the multiple data slices. The data slices that need redundant synchronization are data slices that have been stored on the server but need to be redundantly transmitted during synchronization. For example, the redundant synchronization amount is 10, and in the synchronization result, the data slices stored on 10 servers are indicated as needing synchronization. It can be understood that the redundant synchronization amount is less than or equal to the number of multiple data slices. For ease of description, the redundant synchronization amount is represented by M below, where M is an integer greater than or equal to 0, for example, M>0.
[0226] In this example, the synchronization result includes fingerprints of M data slices among the multiple data slices of the file to be synchronized, and the original state of each data slice among the M data slices indicates that each data slice has been stored on the server. Taking Table 2 as an example, if M=2, it means that the synchronization result includes 2 fingerprints whose corresponding original states are already present. That is, the synchronization result includes 2 fingerprints among A001, A002, A004, and A007.
[0227] The above example takes the redundant synchronization amount as the number of data slices that need redundant synchronization. In a specific implementation, the redundant synchronization amount can also be the data amount of the redundant data slices. For example, when the data size of each data slice is 2M and the redundant synchronization amount is 20M, in the synchronization result, 10 data slices stored on the server are indicated as needing synchronization.
[0228] Optionally, the redundant synchronization amount is predefined or predefined. Alternatively, the redundant synchronization amount may also be calculated. In other words, the redundant synchronization amount may be a dynamically changing quantitative feature. For ease of understanding, the following are several factors that may affect the redundant synchronization amount:
[0229] Factor 1: The amount of redundant synchronization is related to the sensitivity level of the fingerprints in the fingerprint sequence.
[0230] As a possible implementation manner, the redundant synchronization amount indicates the sum of data slices that require redundant synchronization at each sensitivity level in the multiple data slices.
[0231] Please refer to Table 1, which is a fingerprint sensitivity level table provided in an embodiment of the present application, wherein the sensitivity level corresponding to A001 is Low, the sensitivity levels corresponding to A002 and A004 are Medium, and the sensitivity level corresponding to A007 is High.
[0232] Table 4 Fingerprint sensitivity level table
[0233] Serial number fingerprint Sensitivity Level 1 A001 Low 2 A002 Medium 3 A004 Medium 4 A007 High …… …… ……
[0234] As a possible implementation, the number of redundant data slices required at each sensitivity level can be predetermined or pre-specified, or calculated by the server (described below). For example, if the number of redundant data slices required for each sensitivity level is: Low: 0, Medium: 1, High: 1, the redundant synchronization amount is 2. At this time, the redundant data slices include 1 data slice with a sensitivity level of Medium and 1 data slice with a sensitivity level of High.
[0235] As a possible implementation, the sensitivity levels corresponding to the multiple fingerprints include at least a first level and a second level, and the number of data slices that need to be redundantly synchronized at the first level among the multiple data slices is greater than the number of data slices that need to be redundantly synchronized at the second level. The confidentiality level of the first level is higher than the confidentiality level of the second level, and / or the importance of the first level is higher than the importance of the second level. In other words, among the stored data slices of the file to be synchronized, the more sensitive the data slices, the greater the number of redundant synchronizations, and thus the more difficult it is to steal its content by brute force cracking, which is conducive to achieving accurate protection of highly sensitive data and improving the security of highly sensitive data.
[0236] Exemplarily, when the first level is higher than the second level, the amount of redundant data slices at the first level is also greater than the amount of redundant data slices at the second level. For example, if the level Medium is higher than the level Low, then in the redundant synchronized data slices, the amount of data slices with a sensitivity level of Medium is greater than the amount of data slices with a sensitivity level of Medium. As mentioned above, Low: 0, Medium: 1.
[0237] Alternatively, quantity may be replaced by data volume.
[0238] Optionally, if the fingerprint does not have a corresponding sensitivity level in the fingerprint database, a default sensitivity level may be predefined, for example, the default sensitivity level of the fingerprint is Low, or Medium, or other values.
[0239] As a possible implementation, the server determines the amount of redundant synchronization based on a target quantity characteristic and a sensitivity level corresponding to fingerprints of data slices that are not stored on the server among multiple data slices; the target quantity characteristic indicates the number or proportion of fingerprints at each sensitivity level in the synchronization result.
[0240] Combination Figure 7, Table 2 and Table 4, the target quantity characteristics can be: Low: 4, Medium: 1, High: 1. Among them, the default sensitivity level of the fingerprint is Low. That is to say, in the synchronization result, the data slices with a sensitivity level of Low are 4, the data slices with a sensitivity level of Medium are 1, and the data slices with a sensitivity level of High are 1. Among them, the fingerprint of the data slices not stored on the server corresponds to a sensitivity level of Low, so the sensitivity level corresponding to A003, A005, A006, and A008 is Low. At this time, it is necessary to redundantly synchronize 1 data slice with a sensitivity level of Medium and 1 data slice with a sensitivity level of High. That is, the redundant synchronization amount is 2.
[0241] Similarly, the target quantity characteristics can be: Low: 66.6%, Medium: 16.7%, High: 16.7%. That is to say, in the synchronization results, the number of data slices with a sensitivity level of Low accounts for 66.6%, the number of data slices with a sensitivity level of Medium accounts for 16.7%, and the number of data slices with a sensitivity level of High accounts for 16.7%. The server can determine the number of data slices not stored on the server based on the sensitivity level corresponding to the data slices not stored on the server; based on the number of data slices not stored on the server and the above target quantity characteristics, the redundant synchronization amount can be obtained.
[0242] Optionally, when the target quantity characteristic is a ratio, the target quantity characteristic may be predefined or predefined.
[0243] Or optionally, the target quantity characteristic may also be determined by the server, that is, the target quantity characteristic may change dynamically.
[0244] As a possible implementation, the target quantity feature may be related to the distribution feature of the fingerprint sequence at multiple sensitivity levels. Optionally, the distribution feature here may be quantity or ratio.
[0245] As a possible implementation method, the server can query the sensitivity level corresponding to the fingerprint in the fingerprint sequence, and determine the target quantity characteristics according to the distribution characteristics of the fingerprints in the fingerprint sequence at multiple sensitivity levels. For example, please refer to Table 5, which is a query result of the sensitivity level corresponding to the fingerprint of the file to be synchronized provided in an embodiment of the present application. The query result can be obtained based on the sensitivity level table shown in Table 4. As shown in Table 5, the sensitivity level corresponding to fingerprint A001 is Low, and fingerprint A003 does not have a corresponding sensitivity level in the sensitivity level table. The rest of the cases are shown in Table 5.
[0246] Table 5 Query results of sensitivity levels corresponding to fingerprints
[0247] Serial number fingerprint Sensitivity Level 1 A001 Low 2 A002 Medium 3 A003 - 4 A004 Medium 5 A005 - 6 A006 - 7 A007 High 8 A008 -
[0248] Combined with Table 5, the distribution characteristics shown in Table 6 can be obtained. Optionally, the distribution characteristics may include one or more of proportion and quantity. For example, the distribution characteristics of fingerprints at each sensitivity level may be: Low: 62.5%, Medium: 25%, High: 12.5%. For another example, the distribution characteristics of fingerprints at each sensitivity level may be: Low: 5, Medium: 2, High: 1.
[0249] Table 6 Distribution characteristics of fingerprints in fingerprint sequences at multiple sensitivity levels
[0250] Sensitivity Level Proportion quantity Low 62.5% 5 Medium 25% 2 High 12.5% 1
[0251] In a possible implementation, the distribution feature is expressed in a proportion form. The server can calculate the target quantity feature based on the distribution features of the fingerprints in the fingerprint sequence at multiple sensitivity levels according to a weighted average algorithm.
[0252] Exemplarily, the weighted average algorithm can be specifically as follows: some or all sensitivity levels correspond to weight coefficients, and after the proportions corresponding to the sensitivity levels are multiplied by the weight coefficients, the proportions of each sensitivity level are redistributed to obtain the target quantity characteristics. For example, the weight coefficient of Low is 1, the weight coefficient of Medium is 2, and the weight coefficient of High is 5. The proportions under the sensitivity levels and the weight coefficients are combined to obtain the following intermediate results: Low: 62.5%, Medium: 50%, High: 62.5%, and the sum of the proportions of the three is 175%. Redistribute the proportions of each sensitivity level to obtain the target quantity characteristics: Low: (62.5% ÷ 175% =) 35.7%, Medium: (50% ÷ 175% =) 28.6%, High: 35.7%.
[0253] In another possible implementation, the server may increase or decrease the proportion of fingerprints at some sensitivity levels to obtain the target quantity feature. For example, for the distribution features shown in Table 6, the proportion corresponding to LOW increases by 4.1%, the proportion of Medium decreases by 8.3%, and the proportion of High increases by 4.2%, thereby obtaining the target quantity feature: Low: 66.6%, Medium: 16.7%, High: 16.7%.
[0254] The above is an example using proportion as an example. When the distribution feature is quantity distribution, the target quantity feature can also be calculated.
[0255] Factor 2: The amount of redundant synchronization is negatively correlated with the number of data slices that are not stored on the server among the multiple data slices. In other words, the more data slices that are not stored among the multiple data slices, the less redundant synchronization. This can reduce the amount of synchronization during file synchronization and improve synchronization efficiency.
[0256] Factor 3, the amount of redundant synchronization is positively correlated with the bandwidth of the network. The network may include a network for transmitting the data slices that need to be synchronized. For example, when the bandwidth of the synchronization network is small, the amount of redundant synchronization can be reduced to improve the synchronization efficiency. When the bandwidth of the synchronization network is large, the amount of redundant synchronization can be increased to further improve security.
[0257] Factor 4, the amount of redundant synchronization is related to the number of data slices of the file to be synchronized that have been stored on the server. The number can also be replaced by the amount of data.
[0258] As a possible implementation, when the file to be synchronized contains multiple data slices already stored on the server, the redundant synchronization amount is less than the number of data slices already stored on the server for the file to be synchronized. For example, if the file to be synchronized contains Q (where Q ≥ 2) data slices already stored on the server, then 0 ≤ M ≤ Q. Figure 7 Taking file3 as an example, if the four data slices of file3, block1, block2, block4, block7, etc., have been stored on the server, the redundant synchronization amount can be less than 4.
[0259] It should be noted that, in the specific implementation process, there may be other factors that affect the redundant synchronization amount, which will not be described one by one here. Moreover, the above multiple factors can be combined.
[0260] For example, factor 1 and factor 2 can be combined. As a possible implementation, the server can determine the target quantity feature based on the distribution characteristics of the fingerprints in the fingerprint sequence at multiple sensitivity levels and the number of data slices that are not stored on the server among the multiple data slices. In this case, the redundant synchronization amount obtained based on the target quantity feature is also affected by the number of unstored data slices, that is, the proportion of the synchronization results satisfies the target quantity feature, and the redundant synchronization amount is negatively correlated with the number of data slices that are not stored on the server among the multiple data slices.
[0261] For another example, factor 3 and factor 2 can be combined. As a possible implementation, the server can determine the target quantity characteristics based on the distribution characteristics of the fingerprints in the fingerprint sequence at multiple sensitivity levels and the bandwidth of the network. At this time, the redundant synchronization amount obtained based on the target quantity characteristics is also affected by the number of unstored data slices, that is, the proportion of the synchronization results satisfies the target quantity characteristics, and the redundant synchronization amount is positively correlated with the bandwidth of the network.
[0262] As a possible implementation, the data slices to be synchronized also include data slices not stored on the server. Taking Table 2 and Table 3 as examples, the synchronization result also includes fingerprints of data slices A003, A005, A006, A008, etc. that are not stored on the server.
[0263] As a possible implementation, the server may feed back the synchronization result to the first device. Accordingly, the first device may receive the synchronization result from the server. For example, the first device may Figure 2 The client 201 shown in FIG. Figure 4 As another example, the first device may be SiteA or SiteB. Figure 5 The backup source side is shown.
[0264] In some possible scenarios, the server may receive data slices that need to be synchronized from the first device. Figure 7 The data slices shown, the synchronization result indicates that the data slices to be synchronized are block3, block4, block5, block6, block7, block8. The server can receive block3, block4, block5, block6, block7, block8 uploaded by the first device.
[0265] Furthermore, the server may store data slices that are not stored on the server among the data slices that need to be synchronized. Figure 7 According to Table 2, the data slices not stored on the server are block3, block5, block6, and block8, and the server stores the above data slices in the data slices to be synchronized, thereby completing the synchronization of the files to be synchronized. At this point, all data slices of file3 are stored on the server, and the synchronization of file3 is completed.
[0266] As a possible implementation, the server may reorganize the to-be-synchronized file on the server according to the fingerprint sequence of the to-be-synchronized file and the data slice of the to-be-synchronized file. For example, the fingerprint sequence of the to-be-synchronized file may be in the form of [A001, A002, A003, A004, A005, A006, A007, A008]. According to the fingerprint sequence of the to-be-synchronized file, the data slice may be organized in sequence to obtain the complete content of the to-be-synchronized file.
[0267] In some scenarios, the reorganization process also needs to be arranged according to the order of data slices. Figure 7 For example, when file3 is reorganized on the server, block1 is the first data slice, block2 is the second data slice, and the order of the remaining slices is similar. Optionally, the order of the slices can also be indicated by the order of the fingerprints in the fingerprint sequence, or by additional information.
[0268] In some scenarios, in order to improve the data consistency of the system, after the files to be synchronized are synchronized to the server, the server needs to update the fingerprint information of the files to be synchronized.
[0269] As a possible implementation, the server may determine the sensitivity level of the fingerprint corresponding to the file according to the sensitivity level of the file. Figure 7 Taking file3 as an example, if the sensitivity level corresponding to file3 is High, then the sensitivity level corresponding to block3 obtained by segmenting file3 is also High.
[0270] Furthermore, the server may determine the sensitivity level of the first fingerprint corresponding to the first data slice according to the original state of the first data slice and the sensitivity level of the file to be synchronized, wherein the first data slice is one of multiple data slices of the file to be synchronized, and the first fingerprint is the fingerprint corresponding to the first data slice.
[0271] In one possible case, if the original state of the first data slice indicates that the first data slice is not stored on the server, the sensitivity level of the file to be synchronized is used as the sensitivity level of the first fingerprint. Figure 7 As shown in Table 2, for block5 contained in file3 synchronized to the server, the synchronization status corresponding to fingerprint A005 is non-existent, and the corresponding sensitivity also does not exist (i.e., default). The server can determine the sensitivity level corresponding to fingerprint A005 based on the sensitivity level of file3. For example, if the sensitivity level corresponding to file3 is Medium, the sensitivity level corresponding to block5 is also Medium.
[0272] In another possible scenario, the original state of the first data slice indicates that the first data slice has been stored on the server, and the sensitivity level of the first fingerprint is determined based on the sensitivity level of at least one file to which the first data slice belongs, and at least one file to which the first data slice belongs includes the file to be synchronized.
[0273] Exemplary, combined Figure 7 ,Table 2 and Table 4,For file3 synchronized to the server, block4 has been stored on the server, and the synchronization status corresponding to its fingerprint A004 is exists, and the corresponding sensitivity also exists.,When the file to which block4 belongs also contains file4, the server can determine the sensitivity level corresponding to fingerprint A004 based on the sensitivity levels of file3 and file4.
[0274] Optionally, the server may use the highest value of the sensitivity level of at least one file to which the first data slice belongs as the sensitivity level of the first data slice. For example, if the sensitivity level corresponding to file4 is Medium, and if the sensitivity level corresponding to file3 is High, then the sensitivity level corresponding to block4 is High.
[0275] Optionally, the server may use the average sensitivity level of at least one file to which the first data slice belongs as the sensitivity level of the first data slice. For example, if the sensitivity level corresponding to file4 is Medium, and if the sensitivity level corresponding to file3 is Medium, then the sensitivity level corresponding to block4 is also Medium.
[0276] Optionally, the mean value can be taken upward. For example, if the sensitivity level corresponding to file4 is Medium, and if the sensitivity level corresponding to file3 is High, then the sensitivity level corresponding to block4 is also the mean of Medium and High, and takes the value High upward.
[0277] As a possible implementation, the server may update the first fingerprint and the sensitivity level of the first fingerprint in the sensitive fingerprint database. The sensitivity level corresponding to the fingerprint may be stored in the sensitive fingerprint database.
[0278] As a possible implementation, the sensitivity level of a file may indicate the confidentiality or importance of the file. In a possible implementation, the sensitivity level of a file may be predefined. For example, all files updated by a user in an enterprise are confidential files. For another example, all files updated by a development department are confidential files.
[0279] In another possible implementation, the sensitivity level of a file may be user-defined. For example, the user sets the sensitivity level of file3 to high.
[0280] In another possible implementation, the sensitivity of a file may also be obtained by scanning the content of the file. Specifically, the server scans the content of the file to obtain a scan result. The sensitivity level of the file to be synchronized is determined based on the scan result. For example, when the content of the file contains the user's private information (such as a telephone number, ID number, etc.), the sensitivity level of the file is determined to be a relatively confidential sensitivity level. That is, when the content of the file contains the user's private information, the sensitivity level of the file is higher than the lowest level.
[0281] Optionally, scanning of the file content may be triggered when the file content is updated. For example, after synchronization of the file content is completed, scanning of the file content is triggered. For another example, when a user creates or modifies a file, the server reads the changed file content and scans the file content using predefined keywords.
[0282] Exemplarily, the server receives update indication information of the file to be synchronized, performs a sensitive word scan on the content of the file to be synchronized, obtains a scan result, and determines the sensitivity level of the file to be synchronized according to the scan result. The update indication information may include an identifier of the file to be synchronized, such as the file's inode number, the file's path, or the file's name.
[0283] As a possible embodiment, when a file in the file system is newly created or modified, the file system synchronizes the changed file name to the server in the form of an asynchronous message. Accordingly, the server can receive the asynchronous message, which can be regarded as update indication information.
[0284] The above scheme lists a variety of possible solutions. Figure 8 , Fig. 9 Several detailed implementation examples of this application are provided. It should be noted that the concepts, logic, etc. not explained below can be referred to Figure 6 Related introduction of the illustrated embodiment.
[0285] See also Figure 8 , Figure 8 is a flow chart of another possible data synchronization method provided by an embodiment of the present application. The method is applied to a system including a client and a server, for example Figure 2 The data management system shown in the figure includes a fingerprint deduplication query module on the client side, and a sensitive fingerprint filtering module, a fingerprint duplication checking module, a fingerprint result obfuscation module, and a sensitive fingerprint library management module on the server side.
[0286] It should be understood that for the convenience of description, the order of S801 to S811 is used for description, and it is not intended to limit the execution to the above order. The embodiment of the present application does not limit the execution order, execution time, execution number, etc. of the above one or more steps. S801 to S811 are as follows:
[0287] Step S801: The fingerprint deduplication query module provides the server with the fingerprint sequence of the file to be synchronized.
[0288] Correspondingly, the server receives the fingerprint sequence.
[0289] Specifically, the sensitive fingerprint filtering module of the server receives the fingerprint sequence. For related description, please refer to step S601.
[0290] Optionally, the above steps can also be implemented by function calling. For example, the client uses the fingerprint sequence of the file to be synchronized as a parameter to call the sensitive fingerprint filtering module on the server.
[0291] Step S802: The sensitive fingerprint filtering module queries the fingerprint information through the sensitive fingerprint library management module.
[0292] For example, the sensitive fingerprint library may store sensitive fingerprint levels as shown in Table 4. The sensitive fingerprint module may provide one or more fingerprints to the sensitive fingerprint library management module to query the sensitivity levels corresponding to the one or more fingerprints.
[0293] Step S803: The sensitive fingerprint library management module returns the sensitivity level to the sensitive fingerprint filtering module.
[0294] For example, Figure 6 For example, the sensitive fingerprint filtering module queries the information of fingerprint A001, and the sensitive fingerprint library management module returns the security level of A001, that is, Low.
[0295] Of course, the sensitive fingerprint filtering module can query the information of multiple fingerprints at one time. For example, the sensitive fingerprint filtering module queries the information of A001 to A008, and the sensitive fingerprint library returns the sensitivity level corresponding to each fingerprint.
[0296] Optionally, the above step S802 and step S203 may be performed multiple times. For example, the fingerprint filtering module traverses the entire fingerprint sequence, and for each fingerprint, calls the sensitive fingerprint library management module to query its corresponding sensitivity level.
[0297] Optionally, if the fingerprint does not exist in the sensitive fingerprint library, its default sensitivity level may be LOW.
[0298] Step S804: The sensitive fingerprint filtering module collects statistical distribution characteristics.
[0299] Specifically, the sensitive fingerprint module counts the proportion of each security level in the fingerprint sequence according to the sensitivity level corresponding to each fingerprint. For example, High: 25%, Medium: 10%, Low: 65%. For related descriptions, please refer to the above.
[0300] Step S805: The sensitive fingerprint filtering module determines the target quantity characteristics.
[0301] Specifically, the sensitive fingerprint filtering module determines the target quantity feature (or obfuscated target ratio) according to the statistical distribution feature. For example, the sensitive fingerprint filtering module calculates the obfuscated target ratio of the fingerprint sequence according to the weighted average algorithm.
[0302] Step S806: The sensitive fingerprint filtering module performs fingerprint sequence duplication checking through the fingerprint duplication checking module.
[0303] Specifically, the fingerprint filtering module calls the fingerprint duplication checking module to query the original state of the fingerprint sequence, that is, to query whether the fingerprint corresponding to the fingerprint sequence already exists in the fingerprint library.
[0304] Step S807: The fingerprint duplication checking module determines the original state.
[0305] Exemplarily, the fingerprint query module may determine the original state corresponding to the fingerprint, as shown in Table 2.
[0306] Optionally, when the fingerprint already exists in the fingerprint database, the data slice corresponding to the fingerprint has been stored on the server; when the fingerprint is not in the database, the data slice corresponding to the fingerprint is not stored on the server.
[0307] Step S808: The fingerprint duplication checking module provides the target ratio and the original state corresponding to the fingerprint to the fingerprint result obfuscation module.
[0308] Optionally, the fingerprint duplication checking module synchronizes (ie provides) the fingerprint sequence, the original state and the obfuscation target ratio to the fingerprint obfuscation module.
[0309] Step S809: The fingerprint result obfuscation module determines the synchronization result.
[0310] Specifically, the obfuscation module obfuscates the original state of the fingerprint in the fingerprint sequence according to the target quantity characteristics. For example, a fingerprint that originally exists is obfuscated as not existing (or needs to be synchronized) in the synchronization result.
[0311] Step S810: The fingerprint result obfuscation module returns the synchronization result to the sensitive fingerprint filtering module.
[0312] Step S811: The sensitive fingerprint filtering module returns the synchronization result to the client.
[0313] Figure 8 In the embodiment shown, the server determines the fingerprint of the data slices that have been stored in the synchronization result based on the fingerprint sequence. The attacker cannot accurately distinguish which data slices in the file to be synchronized are already stored on the server through the synchronization result, so it is difficult to steal the data content of the file. In addition, when determining the synchronization result, the sensitivity level corresponding to each data slice in the file to be synchronized will be referenced, which is conducive to normalizing the distribution of redundant synchronized data slices at each sensitivity level, avoiding excessive randomization, further significantly reducing the possibility of data leakage, and improving data security.
[0314] In some possible scenarios, when the content of a file is updated, the sensitivity level corresponding to the fingerprint of the data slice of the file also needs to be updated to facilitate the management of the fingerprint and determine a more accurate synchronization result.
[0315] See also Fig. 9 , Fig. 9 is a flow chart of another possible data synchronization method provided by an embodiment of the present application. The method is applied to a system including a client and a server, for example Figure 2 The data management system shown in the figure includes a fingerprint deduplication query module on the client side, and a sensitive fingerprint filtering module, a fingerprint duplication checking module, a fingerprint result obfuscation module, and a sensitive fingerprint library management module on the server side.
[0316] It should be understood that for the convenience of description, the order of S901 to S914 is used for description, and it is not intended to limit the execution to the above order. The embodiment of the present application does not limit the execution order, execution time, execution number, etc. of the above one or more steps. Steps S901 to S914 are as follows:
[0317] Step S901: The file system provides the sensitive data scanning module with the changed file name.
[0318] Exemplarily, when a file is newly created or modified in the file system, the file system synchronizes the changed file name to the sensitive data scanning module in the form of an asynchronous message.
[0319] by Figure 7 For example, if the first device uploads 6 data slices, such as block3 to block8, contained in file4 to the file system, the file system can store the data slices that are not stored. At this time, file3 is modified in the file system. The file system provides the file name of file3 to the sensitive data scanning module.
[0320] Step S902: The sensitive data scanning module reads the file content from the file system.
[0321] Exemplarily, if the file operation is to create or modify the file, the sensitive data scanning module reads the content of the changed file. For example, if file3 changes, the sensitive data scanning module reads the content of file3.
[0322] Optionally, the sensitive data module can read only the changed content. For example, if block 3, block 5, block 6, and block 8 of a file are newly synchronized data slices, the content stored in the above data slices can be read.
[0323] Step S903: The file system returns the file content to the sensitive data scanning module.
[0324] Step S904: The sensitive data scanning module performs keyword scanning on the file.
[0325] For example, the sensitive data scanning module uses predefined keywords to scan file contents.
[0326] Step S905: The sensitive data scanning module initiates a sensitivity level query to the sensitive data classification management module.
[0327] Optionally, the sensitive data scanning module synchronizes the results of the keyword scanning to the sensitive data classification management module and queries the corresponding security level.
[0328] Step S906: The sensitive data classification management module returns the sensitivity level of the file to the sensitive data scanning module.
[0329] The sensitive data classification management module determines the security level of the file based on predefined file classification rules and algorithms. For example, the sensitivity level can include High, Medium or Low. When the file contains an ID card number or a phone number, the sensitivity level of the file is High.
[0330] Optionally, one or more steps in step S904 to step S906 may not be performed. For example, the sensitive data module does not determine the sensitivity level of the file through the keyword scanning module. For example, the sensitivity level of the file may be user-defined.
[0331] Step S907: The sensitive data scanning module initiates a data slice query of the file to the file system.
[0332] Exemplarily, the sensitive data scanning module queries the data block fingerprint list of the file based on the data block query interface provided by the file system.
[0333] Step S908: The file system returns the fingerprint sequence of the file.
[0334] by Figure 7Taking the file file3 as an example, the fingerprint sequence may include fingerprints A001 to A008.
[0335] Step S909: The sensitive data scanning module queries the sensitive fingerprint library management module to see whether the fingerprint exists.
[0336] Optionally, when the fingerprint does not exist, steps S910 to S911 may be performed. Alternatively, when the fingerprint exists, steps S912 to S914 may be performed.
[0337] Step S910: the sensitive fingerprint library management module returns "not present".
[0338] Step S911: The sensitive data scanning module requests the sensitivity level corresponding to the newly added fingerprint.
[0339] If the file does not exist in the fingerprint database, the security level of the file is used as the security level of the fingerprint and updated to the sensitive fingerprint database.
[0340] Step S912: the sensitive fingerprint library management module returns "exists".
[0341] Step S913: The sensitive data scanning module determines the sensitivity level.
[0342] Step S914: The sensitive data scanning module requests to update the sensitivity level corresponding to the fingerprint.
[0343] If the fingerprint exists in the fingerprint library, the latest security level of the fingerprint is determined based on the sensitivity levels of all files referenced by the fingerprint, and updated to the sensitive fingerprint library.
[0344] For example, the latest security level of the fingerprint is determined according to the average sensitivity level of all files referenced by the fingerprint.
[0345] Optionally, some of the above steps S909 to S914 may be executed multiple times. For example, the sensitive data scanning module traverses the returned fingerprint list, queries the existing sensitive fingerprint library for each data block fingerprint, and updates the sensitivity level of the fingerprint.
[0346] The device provided in the embodiments of the present application is introduced below.
[0347] It should be understood that the division of units in the device provided in the embodiments of the present application is only a division of logical functions, and in actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated.
[0348] See also Fig.10 , Fig.101 is a schematic diagram of a data synchronization device provided in an embodiment of the present application. The data synchronization device 100 may include an acquisition module 1001 and a processing module 1002. The data synchronization device may be used to implement the aforementioned data synchronization method, for example Figure 6 , Figure 8 ,or Fig. 9 The data synchronization method in the embodiments.
[0349] Optionally, the acquisition module 1001 is used to complete operations such as requesting, receiving, and reading, and the processing module 1002 is used to complete the aforementioned functions such as determining, calculating, or generating.
[0350] It should be noted that the division of modules in the device 100 is only an exemplary division and does not limit the specific structure of the data synchronization device 100. In a specific implementation, some functional modules may be subdivided into more small functional modules, and some functional modules may be combined into one functional module. However, regardless of whether these functional modules are subdivided or combined, the general process executed by the data synchronization device 100 is the same. For example, the processing module 1002 can also be divided into a fingerprint filtering module, a fingerprint duplication checking module, a result obfuscation module, a sensitive data scanning module, etc.
[0351] In a possible implementation, the acquisition module 1001 is used to acquire a fingerprint sequence of a to-be-synchronized file, where the to-be-synchronized file is a file that needs to be synchronized to a server, the data content of the to-be-synchronized file includes multiple data slices, the fingerprint sequence includes multiple fingerprints, and each fingerprint in the multiple fingerprints corresponds to a data slice;
[0352] The processing module 1002 determines a synchronization result based on the fingerprint sequence, where the synchronization result includes a fingerprint of a data slice that needs to be synchronized, where the data slice that needs to be synchronized includes at least one data slice that has been stored on the server, and where the data slice that needs to be synchronized is used to indicate a data slice among the multiple data slices that needs to be synchronized to the server.
[0353] In yet another possible implementation, the processing module 1002 is further configured to:
[0354] querying the original states of the multiple data slices according to the fingerprint sequence, where the original state of a first data slice is used to indicate whether the first data slice has been stored on the server, and the first data slice is one of the multiple data slices;
[0355] The synchronization result is determined according to original states of the multiple data slices.
[0356] In yet another possible implementation, the synchronization result further includes a synchronization status of the data slice that needs to be synchronized;
[0357] The synchronization status of the second data slice among the data slices that need to be synchronized indicates that the second data slice is not stored on the server, and the second data slice is any one of the data slices that need to be synchronized.
[0358] In yet another possible implementation, the processing module 1002 is further configured to:
[0359] Determine a redundant synchronization amount M, where the redundant synchronization amount indicates the number of data slices that need redundant synchronization among the multiple data slices, and the redundant synchronization amount is less than or equal to the number of the multiple data slices;
[0360] The synchronization result is generated, wherein the synchronization result includes fingerprints of M data slices among the multiple data slices, and the original state of each data slice among the M data slices indicates that each data slice has been stored on the server.
[0361] In yet another possible implementation, each fingerprint of the multiple fingerprints corresponds to a sensitivity level, the sensitivity level corresponding to a first fingerprint indicates a confidentiality or importance of a data slice corresponding to the first fingerprint, and the first fingerprint is one of the multiple fingerprints;
[0362] The redundant synchronization amount indicates the sum of data slices that need redundant synchronization at each sensitivity level in the multiple data slices.
[0363] In another possible implementation, the sensitivity levels corresponding to the multiple fingerprints include at least a first level and a second level, and the number of data slices that need to be redundantly synchronized at the first level among the multiple data slices is greater than the number of data slices that need to be redundantly synchronized at the second level;
[0364] The sensitivity level corresponding to the first fingerprint indicates the confidentiality level of the data slice corresponding to the first fingerprint, and the confidentiality level of the first level is higher than the confidentiality level of the second level;
[0365] Alternatively, the sensitivity level corresponding to the first fingerprint indicates the importance of the data slice corresponding to the first fingerprint, and the importance of the first level is higher than that of the second level.
[0366] In yet another possible implementation, the processing module 1002 is further configured to:
[0367] determining a redundant synchronization amount according to a target quantity feature and a sensitivity level corresponding to a fingerprint of a data slice among the plurality of data slices that is not stored on the server;
[0368] The target quantity feature indicates the quantity or proportion of fingerprints at each sensitivity level in the synchronization result.
[0369] In yet another possible implementation, the processing module 1002 is further configured to:
[0370] Querying the sensitivity level corresponding to the fingerprint in the fingerprint sequence;
[0371] The target quantity feature is determined according to the distribution features of the fingerprints in the fingerprint sequence at multiple sensitivity levels.
[0372] In another possible implementation, the acquisition module 1001 is further used to read the data content of the file to be synchronized;
[0373] The processing module 1002 is further configured to determine a sensitivity level of a first fingerprint corresponding to the first data slice according to an original state of the first data slice and a sensitivity level of the file to be synchronized.
[0374] In another possible implementation, the correspondence between the fingerprint of the data slice and the sensitivity level is stored in a sensitive fingerprint database, and the method further includes:
[0375] The first fingerprint and the sensitivity level of the first fingerprint in the sensitive fingerprint database are updated.
[0376] In yet another possible implementation, determining the sensitivity level of the first fingerprint corresponding to the first data slice according to the original state of the first data slice and the sensitivity level of the file to be synchronized includes:
[0377] If the original state of the first data slice indicates that the first data slice is not stored on the server, using the sensitivity level of the to-be-synchronized file as the sensitivity level of the first fingerprint;
[0378] If the original state of the first data slice indicates that the first data slice has been stored on the server, the sensitivity level of the first fingerprint is determined according to the sensitivity level of at least one file to which the first data slice belongs, and at least one file to which the first data slice belongs includes the file to be synchronized.
[0379] In yet another possible implementation, the method further includes:
[0380] Receiving update indication information for the file to be synchronized;
[0381] Scan the content of the to-be-synchronized file for sensitive words to obtain a scanning result;
[0382] The sensitivity level of the file to be synchronized is determined according to the scanning result.
[0383] In yet another possible implementation, the redundant synchronization amount is negatively correlated with the number of data slices among the multiple data slices that are not stored on the server;
[0384] And / or, the redundant synchronization amount is positively correlated with the bandwidth of the network. The network may include a network for transmitting the data slices that need to be synchronized.
[0385] In yet another possible implementation, the data synchronization device is included in the server or connected to the server;
[0386] The acquisition module 1001 is further configured to receive the data slices to be synchronized from the first device;
[0387] The processing module 1002 is further configured to store data slices that are not stored on the server among the data slices that need to be synchronized.
[0388] In yet another possible implementation, the data slices that need to be synchronized further include data slices that are not stored on the server.
[0389] For related descriptions, reference may also be made to the descriptions in the aforementioned embodiments.
[0390] See also Fig.11 , Fig.11 1 is a schematic diagram of a computing device provided in an embodiment of the present application. The computing device 110 may be a physical device, such as a disk-controller integrated storage device, a server (such as a rack-mounted server), a host, etc.; it may also be a virtual device, such as a virtual machine, a container, etc.
[0391] like Fig.11 As shown, the computing device 110 includes: a processor 1102, a memory 1101, a bus 1104, and optionally a communication interface 1103. The processor 1102 and the memory 1101 communicate with each other via the bus 1104. It should be understood that the present application does not limit the number of processors and memories in the computing device 110.
[0392] The memory 1101 is used to provide a storage space, and the storage space can optionally store application data, user data, operating system, and computer programs. The memory 1101 may include a volatile memory, such as a random access memory (RAM). The memory 1101 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0393] The processor 1102 is a module for performing calculations, and may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), a digital signal processor (DSP), a data processor (DPU), a coprocessor (assisting the central processor in completing corresponding processing and applications), an application specific integrated circuit (ASIC), a microcontroller unit (MCU), a field programmable gate array (FPGA), and the like.
[0394] The communication interface 1103 is used to provide information input or output for the at least one processor. And / or, the communication interface 1103 can be used to receive data sent externally and / or send data to the outside. The communication interface 1103 can be a wired link interface including an Ethernet cable, etc., or a wireless link (Wi-Fi, Bluetooth, general wireless transmission and other wireless communication technologies, etc.) interface. Optionally, the communication interface 1103 can also include a transmitter (such as a radio frequency transmitter, an antenna, etc.) coupled to the interface, or a receiver, etc.
[0395] The bus 1104 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 The bus 1104 is represented by only one line, but it does not mean that there is only one bus or one type of bus. The bus 1104 may include a path for transmitting information between various components of the computing device 110 (for example, the memory 1101, the processor 1102, and the communication interface 1103).
[0396] In the embodiment of the present application, the memory 1101 stores executable instructions, and the processor 1102 executes the executable instructions to implement the aforementioned data synchronization method, for example Figure 6 , Figure 8 ,or Fig. 9 The data synchronization method in the embodiments of the present invention is as follows. That is, the memory 1101 stores instructions for executing the data synchronization method.
[0397] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device 110. The computing device 110 can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0398] For example, the computing device cluster includes at least one computing device 110. The memory 1101 in one or more computing devices 110 in the computing device cluster may store the same instructions for executing the data synchronization method.
[0399] In some possible implementations, the memory 1101 of one or more computing devices 110 in the computing device cluster may also store partial instructions for executing the data synchronization method. In other words, the combination of one or more computing devices 110 may jointly execute instructions for executing the data synchronization method.
[0400] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, where the network may be a wide area network or a local area network, etc.
[0401] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. The computer program instructions are used to implement the aforementioned data synchronization method, for example Figure 6 , Figure 8 ,or Fig. 9 The data synchronization method in the embodiments.
[0402] The present application also provides a computer-readable storage medium. The computer-readable storage medium includes instructions for implementing the aforementioned data synchronization method, such as Figure 6 , Figure 8 ,or Fig. 9 The data synchronization method in the embodiments.
[0403] The computer-readable storage medium may be any available medium that can be stored by a computing device, or a data storage device such as a data center that contains one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk).
[0404] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0405] The "at least one" mentioned in the embodiments of the present application refers to one or more, and "plurality" refers to two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, (a and b), (a and c), (b and c), or (a and b and c), where a, b, c can be single or multiple. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can be represented by: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0406] Furthermore, unless otherwise specified, the ordinal numbers such as "first" and "second" used in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects. For example, the first level and the second level are only for the convenience of description, and do not indicate that the structure, order, etc. of the first level and the second level are different.
[0407] In the above embodiments, the terms "when..." and "if..." can be interpreted as meaning "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the concept and principle of the present application shall be included in the protection scope of the present application.
[0408] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data synchronization method, characterized in that: The method comprises: Obtaining a fingerprint sequence of a file to be synchronized, wherein the file to be synchronized is a file that needs to be synchronized to the server, the data content of the file to be synchronized includes multiple data slices, the fingerprint sequence includes multiple fingerprints, and each fingerprint in the multiple fingerprints corresponds to a data slice; A synchronization result is determined according to the fingerprint sequence, wherein the synchronization result includes the fingerprint of the data slice that needs to be synchronized, the data slice that needs to be synchronized includes at least one data slice that has been stored on the server, and the data slice that needs to be synchronized is used to indicate the data slice among the multiple data slices that needs to be synchronized to the server.
2. The method according to claim 1, characterized in that The step of determining the synchronization result according to the fingerprint sequence comprises: querying the original states of the multiple data slices according to the fingerprint sequence, where the original state of a first data slice is used to indicate whether the first data slice has been stored on the server, and the first data slice is one of the multiple data slices; The synchronization result is determined according to original states of the multiple data slices.
3. The method according to claim 2, characterized in that The step of determining the synchronization result according to the original states of the plurality of data slices comprises: Determine a redundant synchronization amount M, where the redundant synchronization amount indicates the number of data slices that need redundant synchronization among the multiple data slices, and the redundant synchronization amount is less than or equal to the number of the multiple data slices; The synchronization result is generated, wherein the synchronization result includes fingerprints of M data slices among the multiple data slices, and the original state of each data slice among the M data slices indicates that each data slice has been stored on the server.
4. The method according to claim 3, characterized in that Each fingerprint in the multiple fingerprints corresponds to a sensitivity level, the sensitivity level corresponding to a first fingerprint indicates the confidentiality or importance of a data slice corresponding to the first fingerprint, and the first fingerprint is one of the multiple fingerprints; The redundant synchronization amount indicates the sum of data slices that need redundant synchronization at each sensitivity level in the multiple data slices.
5. The method according to claim 4, characterized in that The sensitivity levels corresponding to the multiple fingerprints include at least a first level and a second level, and the number of data slices that need to be redundantly synchronized at the first level among the multiple data slices is greater than the number of data slices that need to be redundantly synchronized at the second level; The sensitivity level corresponding to the first fingerprint indicates the confidentiality level of the data slice corresponding to the first fingerprint, and the confidentiality level of the first level is higher than the confidentiality level of the second level; Alternatively, the sensitivity level corresponding to the first fingerprint indicates the importance of the data slice corresponding to the first fingerprint, and the importance of the first level is higher than that of the second level.
6. The method according to claim 5, characterized in that The method further comprises: determining a redundant synchronization amount according to a target quantity characteristic and a sensitivity level corresponding to a fingerprint of a data slice among the plurality of data slices that is not stored on the server; The target quantity feature indicates the quantity or proportion of fingerprints at each sensitivity level in the synchronization result.
7. The method according to claim 6, characterized in that The method further comprises: Querying the sensitivity level corresponding to the fingerprint in the fingerprint sequence; The target quantity feature is determined according to the distribution features of the fingerprints in the fingerprint sequence at multiple sensitivity levels.
8. The method according to any one of claims 4 to 7, characterized in that: The method further comprises: Read the data content of the file to be synchronized; The sensitivity level of the first fingerprint corresponding to the first data slice is determined according to the original state of the first data slice and the sensitivity level of the file to be synchronized.
9. The method according to any one of claims 3 to 8, characterized in that: The redundant synchronization amount is negatively correlated with the amount of data slices among the multiple data slices that are not stored on the server; And / or, the redundant synchronization amount is positively correlated with the bandwidth of a network, and the network is a network used to transmit the data slices that need to be synchronized.
10. The method according to claim 9, characterized in that The method is performed by the server, and further comprises: Receiving the data slice that needs to be synchronized from the first device; The data slices that need to be synchronized and are not stored on the server are stored.
11. The method according to any one of claims 1 to 10, characterized in that: The data slices that need to be synchronized also include data slices that are not stored on the server.
12. A data synchronization device, characterized in that: The data synchronization device comprises an acquisition module and a processing module, wherein: The acquisition module is used to acquire a fingerprint sequence of a file to be synchronized, wherein the file to be synchronized is a file that needs to be synchronized to the server, the data content of the file to be synchronized includes multiple data slices, the fingerprint sequence includes multiple fingerprints, and each fingerprint in the multiple fingerprints corresponds to a data slice; The processing module determines a synchronization result based on the fingerprint sequence, where the synchronization result includes a fingerprint of a data slice that needs to be synchronized, where the data slice that needs to be synchronized includes at least one data slice that has been stored on the server, and where the data slice that needs to be synchronized is used to indicate a data slice among the multiple data slices that needs to be synchronized to the server.
13. The data synchronization device according to claim 12, characterized in that: The processing module is further used for: querying the original states of the multiple data slices according to the fingerprint sequence, where the original state of a first data slice is used to indicate whether the first data slice has been stored on the server, and the first data slice is one of the multiple data slices; The synchronization result is determined according to original states of the multiple data slices.
14. The data synchronization device according to claim 13, characterized in that: The processing module is further used for: Determine a redundant synchronization amount M, where the redundant synchronization amount indicates the number of data slices that need redundant synchronization among the multiple data slices, and the redundant synchronization amount is less than or equal to the number of the multiple data slices; The synchronization result is generated, wherein the synchronization result includes fingerprints of M data slices among the multiple data slices, and the original state of each data slice among the M data slices indicates that each data slice has been stored on the server.
15. The data synchronization device according to claim 14, characterized in that: Each fingerprint in the multiple fingerprints corresponds to a sensitivity level, the sensitivity level corresponding to a first fingerprint indicates the confidentiality or importance of a data slice corresponding to the first fingerprint, and the first fingerprint is one of the multiple fingerprints; The redundant synchronization amount indicates the sum of data slices that need redundant synchronization at each sensitivity level in the multiple data slices.
16. The data synchronization device according to claim 15, characterized in that: The sensitivity levels corresponding to the multiple fingerprints include at least a first level and a second level, and the number of data slices that need to be redundantly synchronized at the first level among the multiple data slices is greater than the number of data slices that need to be redundantly synchronized at the second level; The sensitivity level corresponding to the first fingerprint indicates the confidentiality level of the data slice corresponding to the first fingerprint, and the confidentiality level of the first level is higher than the confidentiality level of the second level; Alternatively, the sensitivity level corresponding to the first fingerprint indicates the importance of the data slice corresponding to the first fingerprint, and the importance of the first level is higher than that of the second level.
17. The data synchronization device according to claim 16, characterized in that: The processing module is further used for: determining a redundant synchronization amount according to a target quantity characteristic and a sensitivity level corresponding to a fingerprint of a data slice among the plurality of data slices that is not stored on the server; The target quantity feature indicates the quantity or proportion of fingerprints at each sensitivity level in the synchronization result.
18. The data synchronization device according to claim 17, characterized in that: The processing module is further used for: Querying the sensitivity level corresponding to the fingerprint in the fingerprint sequence; The target quantity feature is determined according to the distribution features of the fingerprints in the fingerprint sequence at multiple sensitivity levels.
19. The data synchronization device according to any one of claims 4 to 7, characterized in that: The acquisition module is further used to read the data content of the file to be synchronized; The processing module is further used to determine the sensitivity level of the first fingerprint corresponding to the first data slice according to the original state of the first data slice and the sensitivity level of the file to be synchronized.
20. The data synchronization device according to any one of claims 3 to 8, characterized in that: The redundant synchronization amount is negatively correlated with the number of data slices among the plurality of data slices that are not stored on the server; And / or, the redundant synchronization amount is positively correlated with the bandwidth of a network, and the network is a network used to transmit the data slices that need to be synchronized.
21. The data synchronization device according to claim 10, characterized in that: The data synchronization device is included in the server or connected to the server; The acquisition module is further used to receive the data slice that needs to be synchronized from the first device; The processing module is further used to store data slices that are not stored on the server among the data slices that need to be synchronized.
22. The data synchronization device according to any one of claims 12 to 21, characterized in that: The data slices that need to be synchronized also include data slices that are not stored on the server.
23. A computing device, characterized in that The computing device includes a processor and a memory; The processor is configured to execute instructions stored in the memory so that the computing device implements the method according to any one of claims 1 to 11.
24. A computer-readable storage medium, characterized in that: The method comprises computer program instructions, which, when executed by a computing device, enable the computing device to implement the method according to any one of claims 1 to 11.
25. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device, the computing device is enabled to implement the method according to any one of claims 1 to 11.
