Backup method and device for block-level data
Through the block-level data backup method, the updated block-level data in the target data file is monitored and extracted, and sent to the server for merge and deduplication backup, which solves the problems of high system pressure and high human resource consumption in the existing data backup method, and improves Ensure the effectiveness and accuracy of data backup.
Patent Information
- Application Number
- CN202411251047.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2025-01-21
AI Technical Summary
Existing data backup methods usually perform full backup after data modification, resulting in high system pressure, high human resource consumption, cumbersome operation, and easy to cause data loss due to human or equipment force majeure factors, reducing the effectiveness and accuracy of backups.
Adopting block -level data backup methods, by obtaining block information of the target data file, monitoring and extracting updated block -level data, and sending to the server for merger to reinstate backup.
It reduces the system pressure of server -side data backup, reduces the complication of resource consumption and operation of manpower triggers, improves the effectiveness and accuracy of data backup, and avoids the loss of data backup.
Smart Images

Figure CN119336540A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method and device for partitioning block-level data. Background Art
[0002] With the rapid development of big data processing technology, in order to improve daily work efficiency, some important file data of users needs to be backed up on a server or another terminal device to avoid data loss.
[0003] Currently, when performing data backup, the entire data is usually backed up for each modified data. For example, after modifying a piece of data in a file, it is necessary to manually select to back up the entire file as a whole, which greatly increases the system pressure of data backup, consumes human resources, and increases the cumbersomeness of operation. When force majeure factors such as human or equipment occur, a large amount of data will be lost, reducing the effectiveness and accuracy of data backup. Summary of the invention
[0004] In view of this, the present invention provides a block-level data backup method and device, the main purpose of which is to solve the problem of poor effectiveness and accuracy of existing data backup.
[0005] According to one aspect of the present invention, a block-level data backup method is provided, comprising:
[0006] Obtaining block division information of the target data file, wherein the block division information includes block data size and block identifier for dividing the target data file into blocks;
[0007] When it is monitored based on the block division information that the target block-level data in the target data file is updated, extracting the target block-level data;
[0008] The target block-level data with the target block identifier is sent to the server, so that the server merges the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier.
[0009] According to one aspect of the present invention, another block-level data backup method is provided, comprising:
[0010] Generate block division information of the target data file, wherein the block division information includes block data size and block identifier for dividing the target data file into blocks;
[0011] receiving target block-level data with a target block identifier, wherein the target block-level data is extracted when an update is detected in the target data file according to the block partitioning information;
[0012] Based on the target block identifier, the data content of the target data file is merged with the target block-level data for deduplication backup.
[0013] According to another aspect of the present invention, a block-level data backup device is provided, comprising:
[0014] An acquisition module, used for acquiring block division information of a target data file, wherein the block division information includes a block data size and a block identifier for dividing the target data file into blocks;
[0015] An extraction module, configured to extract the target block-level data when it is detected based on the block division information that the target block-level data in the target data file is updated;
[0016] The sending module is used to send the target block-level data with the target block identifier to the server, so that the server can merge the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier.
[0017] According to another aspect of the present invention, another block-level data backup device is provided, comprising:
[0018] A generating module, used for generating block division information of a target data file, wherein the block division information includes a block data size and a block identifier for dividing the target data file into blocks;
[0019] A receiving module, used for receiving target block-level data with a target block identifier, wherein the target block-level data is extracted when an update is detected in the target data file according to the block division information;
[0020] The backup module is used to merge the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier.
[0021] According to one aspect of the present invention, a storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned block-level data backup method.
[0022] According to one aspect of the present invention, there is provided a terminal, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0023] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned block-level data backup method.
[0024] According to one aspect of the present invention, another storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned block-level data backup method.
[0025] According to one aspect of the present invention, another terminal is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0026] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned block-level data backup method.
[0027] By means of the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:
[0028] The present invention provides a block-level data backup method and device. Compared with the prior art, in an embodiment of the present invention, a client obtains block division information of a target data file, wherein the block division information includes block data size and block identifier for dividing the target data file into blocks; when updating of target block-level data in the target data file is detected based on the block division information, the target block-level data is extracted; and the target block-level data with the target block identifier is sent to a server, so that the server merges the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier, thereby reducing the system pressure of data backup on the server, reducing the resource consumption triggered by human power and the cumbersomeness of operation, thereby avoiding loss during data backup and improving the effectiveness and accuracy of data backup.
[0029] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0031] Figure 1 A flowchart of a block-level data backup method provided by an embodiment of the present invention is shown;
[0032] Figure 2A flowchart of another block-level data backup method provided by an embodiment of the present invention is shown;
[0033] Figure 3 A block diagram showing the composition of a block-level data backup device provided by an embodiment of the present invention is shown;
[0034] Figure 4 A block diagram showing another block-level data backup device provided by an embodiment of the present invention is shown;
[0035] Figure 5 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention is shown;
[0036] Figure 6 A schematic diagram showing the structure of another terminal provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0037] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0038] The embodiment of the present invention provides a block-level data backup method, such as Figure 1 As shown, the method includes:
[0039] 101. Obtain block division information of a target data file.
[0040] In the embodiment of the present invention, the current execution end serves as a client for executing block-level data backup, including but not limited to computer equipment, processors, etc., wherein the target data file is any file in the computer system that needs to be backed up at the block level, and the data text can be used for different business types, including but not limited to system data files, product data files, execution data files, etc., which are not specifically limited in the embodiment of the present invention. In addition, the block partitioning information includes the block data size and block identifier for partitioning the target data file, the block data size is used to represent the minimum unit for partitioning the data block, including but not limited to bytes, and the block identifier is used to represent the identity of the block, including but not limited to ID serial number, etc., which are not specifically limited in the embodiment of the present invention.
[0041] It should be noted that when the current execution end obtains the block division information, it can be obtained based on loading from the server, or it can be obtained after loading at a specified time or according to a specified instruction, and the embodiment of the present invention does not make a specific limitation.
[0042] 102. When it is monitored based on the block division information that target block-level data in the target data file is updated, extract the target block-level data.
[0043] In the embodiment of the present invention, after the current execution end obtains the block division information, it divides the target data file according to each block identifier and block data size, and monitors the block-level data of each division. Among them, the monitoring of the block-level data in the target data file is to determine in real time whether the block-level data has changed, including but not limited to modification, deletion, addition, etc., so as to extract the target block-level data when the block-level data is monitored to be updated.
[0044] 103. Send the target block-level data with the target block identifier to the server.
[0045] In the embodiment of the present invention, after the current execution end monitors the target block-level data corresponding to the updated target block identifier, it sends the target block-level data to the server, so that the server merges the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier. After receiving the target block identifier and the corresponding target block-level data, the server queries the block-level data to be backed up based on the target block identifier, and merges the deduplication backup based on the target block-level data, which is not specifically limited in the embodiment of the present invention.
[0046] The embodiment of the present invention provides a block-level data backup method, which can reduce the system pressure of data backup on the server side, reduce the resource consumption and cumbersome operation triggered by human power, thereby avoiding data loss during the backup process and improving the effectiveness and accuracy of data backup.
[0047] In another embodiment of the present invention, for further explanation and limitation, before extracting the block-level data, the method further includes:
[0048] Dividing the target data file into blocks based on the block data size to obtain a plurality of block-level data, and marking the block-level data according to the block identifier;
[0049] The block-level data corresponding to each of the block marks is monitored to determine whether the target block-level data is updated.
[0050] In order to perform targeted data backup, data is monitored based on tracking of updated data. The current execution end needs to divide the target data file into blocks according to the block data size to obtain multiple block-level data. For example, a 100-bit target data file has a block data size of 1 bit, and 100 block-level data are obtained after block division. The embodiment of the present invention does not make specific restrictions. Furthermore, multiple block-level data are marked according to block identifiers to obtain multiple block identifiers. At this time, different block-level data correspond to different block identifiers. The block identifier can be composed of symbols or serial numbers such as digital identifiers, text identifiers, and English identifiers, and is sorted and marked according to the number of block-level data, for example, 1, 2, 3..., which is not specifically limited in the embodiment of the present invention. In addition, when the target data file is divided based on the block data size, not only the data content in the target data file is divided, but also the data content in all subfiles under the directory of the target data file can be divided, that is, the obtained block-level data includes the data content in the target data file and the data content of all subfiles under the directory of the target data file. The embodiment of the present invention does not make specific restrictions.
[0051] It should be noted that after the current execution end completes marking the block-level data, it monitors the block-level data corresponding to each block mark to determine whether the target block-level data is updated. In an embodiment of the present invention, the update includes at least one of data modification, data writing, and data deletion, and the embodiment of the present invention does not make specific limitations.
[0052] In another embodiment of the present invention, for further explanation and limitation, the step of monitoring the block-level data corresponding to each of the block marks includes:
[0053] A hash value of the block-level data is calculated, and at a preset time interval, it is determined whether the target block-level data in the target data file is updated according to the change of the hash value.
[0054] In order to accurately monitor each block-level data in the target data file, the current execution end determines whether the block-level data has changed based on the calculation of the hash value. Specifically, the hash value of each block-level data is calculated, and based on the preset time interval corresponding to the monitoring, it is determined whether each hash value has changed, so as to determine whether the block-level data has been updated based on the change situation, and thus determine it as the target block-level data. Among them, the preset time interval can be configured according to the timing duration of the listener, such as 0.1 seconds, 1 second, etc., or in order to reflect the effect of real-time backup, the preset time interval can be configured as a very small time unit, which is not specifically limited in the embodiment of the present invention.
[0055] It should be noted that, in a specific embodiment, when the current execution end monitors the block-level data, it can be performed based on the listener configured on the current execution end, and the embodiment of the present invention does not make a specific limitation.
[0056] In another embodiment of the present invention, for further explanation and limitation, the step of monitoring the block-level data corresponding to each of the block marks includes:
[0057] Calculate the hash value of the block-level data and send the hash value to the server, so that the server determines whether the target block-level data in the target data file is updated based on the change, and retrieves the updated target block-level data for backup.
[0058] In order to accurately monitor each block-level data in the target data file, the current execution end determines whether the block-level data has changed based on the calculation of the hash value. Specifically, the hash value of each block-level data is calculated, and the calculated hash value is sent to the server, so that the server determines whether the target block-level data in the target data file is updated based on the change, and retrieves the updated target block-level data for backup. At this time, the client as the current execution end only needs to calculate the hash value of each block-level data, and then send it to the server, and the judgment is made by the listener configured by the server. The embodiment of the present invention does not make specific limitations.
[0059] It should be noted that, when the hash value is sent, the block identifier corresponding to the block-level data needs to be sent to the server so that the server can determine which block-level data has changed.
[0060] In the embodiment of the present invention, the calculation method of the hash value includes but is not limited to MD5, SHA-1, SHA-256 and other calculation methods, and the embodiment of the present invention does not make any specific limitation.
[0061] In another embodiment of the present invention, for further explanation and limitation, after the step of sending the target block-level data with the target block identifier to the server, the method further includes:
[0062] Send a backup file load request.
[0063] In order to achieve the purpose of low backup consumption of the current client, thereby reducing the amount of system data backup, the current execution end sends a backup file loading request, so that the server can feedback the target block-level data of the backup based on the target block identifier, or so that the server can feedback the target data file of the backup according to the target block identifier, which is not specifically limited in the embodiment of the present invention. Among them, the backup file loading request carries all the target block identifiers, so that the server can quickly search for the target block-level data that needs to be loaded and has been backed up for feedback, which is not specifically limited in the embodiment of the present invention.
[0064] The embodiment of the present invention provides another block-level data backup method. Compared with the prior art, the client of the embodiment of the present invention obtains block division information of a target data file, wherein the block division information includes block data size and block identifier for dividing the target data file into blocks; when updating of target block-level data in the target data file is detected based on the block division information, the target block-level data is extracted; the target block-level data with the target block identifier is sent to a server, so that the server merges the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier, thereby reducing the system pressure of data backup on the server, reducing the resource consumption triggered by manpower and the cumbersomeness of operation, thereby avoiding data loss during the data backup process, and improving the effectiveness and accuracy of data backup.
[0065] The embodiment of the present invention provides another block-level data backup method, such as Figure 2 As shown, the method includes:
[0066] 201. Generate block division information of a target data file.
[0067] In the embodiment of the present invention, the current execution end serves as a server end for executing block-level data backup, including but not limited to terminal servers, cloud servers, etc., wherein the block division information includes the block data size and block identifier for dividing the target data file into blocks, and the target data file is any file in the computer system that needs to be backed up at the block level. The data text can be used for different business types, including but not limited to system data files, product data files, execution data files, etc., which are not specifically limited in the embodiment of the present invention. In addition, the block data size is used to represent the minimum unit for dividing the data block, including but not limited to bytes, and the block identifier is used to represent the identity of the block, including but not limited to ID serial number, etc., which are not specifically limited in the embodiment of the present invention.
[0068] 202. Receive target block-level data with a target block identifier.
[0069] In an embodiment of the present invention, the target block-level data is extracted when an update is detected in the target data file according to the block division information, that is, when the client detects that the target block-level data is updated, the target block-level data carrying the block identifier is sent to the current server, and the embodiment of the present invention does not make specific limitations.
[0070] 203. Based on the target block identifier, the data content of the target data file is merged with the target block-level data for deduplication backup.
[0071] In the embodiment of the present invention, the server as the current execution end searches for the block-level data in the target data file as the data content to be updated according to the target block identifier, and performs a merged deduplication backup on the data content based on the target block-level data. The merged deduplication backup is to compare the original data content with the target block-level data, retain the same parts, retain the different parts according to the target block-level data, and delete the original data content, thereby completing the merged deduplication backup.
[0072] In another embodiment of the present invention, for further explanation and limitation, the step of generating block division information of the target data file includes:
[0073] Determine the block data size and block identifier corresponding to the file size and file type of the target data file.
[0074] In order to reduce the tediousness of manual backup, avoid the inefficiency of manual backup, and achieve the purpose of real-time and effective data backup, in a specific implementation scenario, the current execution end determines the file size and file type of the target data file, the data block size and the block identifier. For example, if the file size is 50 bits and the file type is a numerical file, a is divided by the numerical unit 1 bit to obtain 50 block-level data, and a digital number of 1-50 is used as the block identifier. The embodiment of the present invention does not make specific limitations.
[0075] In order to reduce the tediousness of manual backup, avoid the inefficiency of manual backup, and achieve the purpose of real-time and effective data backup, in another specific implementation scenario, the current execution end first determines the associated content between all data in the target data file. At this time, the associated content includes at least one of the business-related content, system-related content, type-related content, and operation-related content between all data. Among them, the business-related content is the content that is associated with the business, for example, all the data of a social business is business-related content a, and all the data of a search business is business-related content b, which is not specifically limited in the embodiment of the present invention. The system-related content is the content that is associated with the system function, for example, the data stored in the system is system-related content c, and the data of the system access application is system-related content d, which is not specifically limited in the embodiment of the present invention. The type-related content is the content that is associated with the data type, for example, all image data is type-related content f, and all text data is type-related content g, which is not specifically limited in the embodiment of the present invention. The operation-related content is the content that is associated with the system operation or the user operation, for example, all the data of the system access operation is operation-related content k, and all the data of the user access operation is operation-related content l, which is not specifically limited in the embodiment of the present invention. Furthermore, the block data size and block identifier are determined according to the associated content. At this time, the minimum storage unit of the associated content can be used as the block data size, and the serial number can be arranged and identified to obtain the block identifier of each block-level data. The embodiment of the present invention does not make specific limitations.
[0076] The embodiment of the present invention provides another block-level data backup method. Compared with the prior art, the embodiment of the present invention generates block division information of a target data file through a server, receives target block-level data with a target block identifier, and merges the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier, thereby reducing the system pressure of data backup on the server, reducing the resource consumption triggered by human power and the cumbersome operation, thereby avoiding data loss during the backup process and improving the effectiveness and accuracy of data backup.
[0077] Furthermore, as a response to the above Figure 1 The implementation of the method shown in the figure, the embodiment of the present invention provides a block-level data backup device, such as Figure 3 As shown, the device comprises:
[0078] An acquisition module 31 is used to acquire block division information of a target data file, wherein the block division information includes a block data size and a block identifier for dividing the target data file into blocks;
[0079] An extraction module 32, configured to extract the target block-level data when it is detected based on the block division information that the target block-level data in the target data file is updated;
[0080] The sending module 33 is used to send the target block-level data with the target block identifier to the server, so that the server can merge the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier.
[0081] Furthermore, the device also includes:
[0082] a partitioning module, configured to partition the target data file into blocks based on the block data size to obtain a plurality of block-level data, and mark the block-level data according to the block identifier, wherein the block-level data includes the data content in the target data file and the data content of all sub-files under the directory of the target data file;
[0083] The monitoring module is used to monitor the block-level data corresponding to each of the block marks to determine whether the target block-level data is updated, and the update includes at least one of data modification, data writing, and data deletion.
[0084] Furthermore, the monitoring module is specifically used to calculate the hash value of the block-level data, and determine whether the target block-level data in the target data file is updated according to the change of the hash value at a preset time interval.
[0085] Furthermore, the monitoring module is specifically used to calculate the hash value of the block-level data and send the hash value to the server, so that the server can determine whether the target block-level data in the target data file is updated based on the change situation, and retrieve the updated target block-level data for backup.
[0086] Further,
[0087] The sending module is further used to send a backup file loading request, which carries all the target block identifiers, so that the server can feedback the backed up target block-level data based on the target block identifier, or enable the server to feedback the backed up target data file according to the target block identifier.
[0088] The embodiment of the present invention provides a block-level data backup device. Compared with the prior art, the embodiment of the present invention comprises a client that obtains block division information of a target data file, wherein the block division information comprises a block data size and a block identifier for dividing the target data file into blocks; extracts the target block-level data when an update of the target block-level data in the target data file is detected based on the block division information; and sends the target block-level data with the target block identifier to a server, so that the server combines the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier, thereby reducing the system pressure of data backup on the server, reducing the resource consumption triggered by human power and the cumbersomeness of operation, thereby avoiding data loss during the data backup process, and improving the effectiveness and accuracy of data backup.
[0089] Furthermore, as a response to the above Figure 2 The implementation of the method shown in the figure, the embodiment of the present invention provides another block-level data backup device, such as Figure 4 As shown, the device comprises:
[0090] A generating module 41, used for generating block division information of a target data file, wherein the block division information includes a block data size and a block identifier for dividing the target data file into blocks;
[0091] A receiving module 42, configured to receive target block-level data with a target block identifier, wherein the target block-level data is extracted when an update is detected in the target data file according to the block partitioning information;
[0092] The backup module 43 is used to merge the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier.
[0093] Furthermore, the device also includes:
[0094] A determination module is used to determine the block data size and block identifier corresponding to the file size and file type of the target data file; or to determine the associated content between all the data in the target data file, and determine the block data size and block identifier according to the associated content, wherein the associated content includes at least one of the business associated content, system associated content, type associated content, and operation associated content between all the data.
[0095] An embodiment of the present invention provides another block-level data backup device. Compared with the prior art, the embodiment of the present invention generates block division information of a target data file through a server, receives target block-level data with a target block identifier, and merges the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier, thereby reducing the system pressure of data backup on the server, reducing the resource consumption triggered by human power and the cumbersomeness of operation, thereby avoiding data loss during the backup process and improving the effectiveness and accuracy of data backup.
[0096] According to an embodiment of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the block-level data backup method in any of the above method embodiments.
[0097] Figure 5 A schematic diagram of the structure of a terminal provided according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the terminal.
[0098] like Figure 5 As shown, the terminal may include: a processor (processor) 502, a communication interface (Communications Interface) 504, a memory (memory) 506, and a communication bus 508.
[0099] The processor 502 , the communication interface 504 , and the memory 506 communicate with each other via a communication bus 508 .
[0100] The communication interface 504 is used to communicate with other devices such as clients or other servers.
[0101] The processor 502 is used to execute the program 510, and specifically can execute the relevant steps in the above-mentioned block-level data backup method embodiment.
[0102] Specifically, the program 510 may include program codes, which include computer operation instructions.
[0103] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0104] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0105] The program 510 may be specifically configured to enable the processor 502 to perform the following operations:
[0106] Obtaining block division information of the target data file, wherein the block division information includes block data size and block identifier for dividing the target data file into blocks;
[0107] When it is monitored based on the block division information that the target block-level data in the target data file is updated, extracting the target block-level data;
[0108] The target block-level data with the target block identifier is sent to the server, so that the server merges the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier.
[0109] According to an embodiment of the present invention, another storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the block-level data backup method in any of the above method embodiments.
[0110] Figure 6 A schematic diagram of the structure of another terminal provided according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the terminal.
[0111] like Figure 6 As shown, the terminal may include: a processor (processor) 602, a communication interface (Communications Interface) 604, a memory (memory) 606, and a communication bus 608.
[0112] The processor 602 , the communication interface 604 , and the memory 606 communicate with each other via a communication bus 608 .
[0113] The communication interface 604 is used to communicate with other devices such as clients or other servers.
[0114] The processor 602 is used to execute the program 610, and specifically can execute the relevant steps in the above-mentioned block-level data backup method embodiment.
[0115] Specifically, the program 610 may include program codes, which include computer operation instructions.
[0116] The processor 602 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0117] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0118] The program 610 may be specifically configured to enable the processor 602 to perform the following operations:
[0119] Generate block division information of the target data file, wherein the block division information includes block data size and block identifier for dividing the target data file into blocks;
[0120] receiving target block-level data with a target block identifier, wherein the target block-level data is extracted when an update is detected in the target data file according to the block partitioning information;
[0121] Based on the target block identifier, the data content of the target data file is merged with the target block-level data for deduplication backup.
[0122] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0123] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A block-level data backup method, characterized in that: include: Obtaining block division information of the target data file, wherein the block division information includes block data size and block identifier for dividing the target data file into blocks; When it is monitored based on the block division information that the target block-level data in the target data file is updated, extracting the target block-level data; The target block-level data with the target block identifier is sent to the server, so that the server merges the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier.
2. The method according to claim 1, characterized in that Before extracting the block-level data, the method further includes: Dividing the target data file into blocks based on the block data size to obtain a plurality of block-level data, and marking the block-level data according to the block identifier, wherein the block-level data includes the data content in the target data file and the data content of all sub-files under the directory of the target data file; The block-level data corresponding to each of the block marks is monitored to determine whether the target block-level data is updated, wherein the update includes at least one of data modification, data writing, and data deletion.
3. A block-level data backup method, characterized in that: include: Generate block division information of the target data file, wherein the block division information includes block data size and block identifier for dividing the target data file into blocks; receiving target block-level data with a target block identifier, wherein the target block-level data is extracted when an update is detected in the target data file according to the block partitioning information; Based on the target block identifier, the data content of the target data file is merged with the target block-level data for deduplication backup.
4. The method according to claim 3, characterized in that The block division information for generating the target data file includes: Determine a block data size and a block identifier corresponding to the file size and file type of the target data file; or, Determine the association content between all data in the target data file, and determine the block data size and block identifier according to the association content, wherein the association content includes at least one of business association content, system association content, type association content, and operation association content between all data.
5. A block-level data backup device, characterized in that: include: An acquisition module, used for acquiring block division information of a target data file, wherein the block division information includes a block data size and a block identifier for dividing the target data file into blocks; An extraction module, configured to extract the target block-level data when it is detected based on the block division information that the target block-level data in the target data file is updated; The sending module is used to send the target block-level data with the target block identifier to the server, so that the server can merge the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier.
6. A block-level data backup device, characterized in that: include: A generating module, used for generating block division information of a target data file, wherein the block division information includes a block data size and a block identifier for dividing the target data file into blocks; A receiving module, used for receiving target block-level data with a target block identifier, wherein the target block-level data is extracted when an update is detected in the target data file according to the block division information; The backup module is used to merge the data content of the target data file with the target block-level data for deduplication backup based on the target block identifier.
7. A storage medium storing at least one executable instruction, wherein the executable instruction enables a processor to execute an operation corresponding to the block-level data backup method according to any one of claims 1 to 2.
8. A terminal, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the block-level data backup method according to any one of claims 1-2.
9. A storage medium storing at least one executable instruction, wherein the executable instruction enables a processor to execute an operation corresponding to the block-level data backup method according to any one of claims 3 to 4.
10. A terminal, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the block-level data backup method according to any one of claims 3-4.
Citation Information
Cited By
Monitoring operation system for data disaster recovery backup control system
CN121116742A
A monitoring operating system for a data disaster backup control system
CN121116742B