Data backup method, network node and system

文档序号:1963609 发布日期:2021-12-14 浏览:9次 中文

阅读说明:本技术 一种数据备份方法、网络节点及系统 (Data backup method, network node and system ) 是由 刘跃普 王磊 于 2021-09-06 设计创作,主要内容包括:本发明公开了一种数据备份方法、网络节点及系统,所述数据备份方法,其包括以下步骤:根据主节点的磁盘数据文件和持久化数据,生成增量数据文件;将所述增量数据文件传输到从节点。采用上述方案,本发明的主节点和从节点灵活多变,主节点仅将增量数据文件传输到从节点,在实现数据备份的同时,还能够节省处理器计算和临时内存开销,对于节点的磁盘或者磁盘的扇区来说,这些增量数据文件是连续存放的,因此避免了在节点的磁盘写入数据时产生多个分散的存储区域。(The invention discloses a data backup method, a network node and a system, wherein the data backup method comprises the following steps: generating an incremental data file according to the disk data file and the persistent data of the main node; transmitting the incremental data file to a slave node. By adopting the scheme, the main node and the slave nodes are flexible and changeable, the main node only transmits the incremental data files to the slave nodes, the data backup is realized, meanwhile, the calculation cost of a processor and the temporary memory cost can be saved, and for the magnetic disk of the nodes or the sectors of the magnetic disk, the incremental data files are continuously stored, so that a plurality of scattered storage areas are avoided when the data are written into the magnetic disk of the nodes.)

1. A method for backing up data, comprising the steps of:

generating an incremental data file according to the disk data file and the persistent data of the main node;

transmitting the incremental data file to a slave node.

2. The data backup method according to claim 1, characterized by comprising the following steps:

s1, determining a master node and a slave node;

s2, setting a backup strategy;

s3, establishing a backup task according to the backup strategy;

s4, generating an incremental data file according to the backup task, the disk data file of the main node and the persistent data;

and S5, transmitting the incremental data file to the slave node according to the backup task.

3. The data backup method according to claim 2, further comprising the steps of:

s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file;

or, the data backup method further comprises the steps of:

s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file;

s7, writing the incremental data file in its entirety in the write buffer of the slave node;

or, the data backup method further comprises the steps of:

s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file;

s7, writing the incremental data file in its entirety in the write buffer of the slave node;

and S8, feeding back a write report to the master node.

4. The data backup method according to claim 2 or 3, wherein in S1, a distribution status and/or a storage status of the master node and the slave node is further obtained;

in S2, the backup policy is set or adjusted according to the distribution state and/or storage state of the master node and the slave node.

5. The data backup method according to claim 4, wherein in S2, the backup policy includes an evaluation index and an evaluation element, and the evaluation element is used to evaluate the evaluation index according to a distribution status and/or a storage status of the master node and the slave node, to set the backup policy or adjust the backup policy;

in S4, the backup task is adjusted by performing intelligent induction based on the incremental data file, and evaluating the result of the intelligent induction using the evaluation element.

6. The data backup method of claim 5, wherein in S4, adjusting the backup task comprises selecting the slave node, setting the packet size and format of the incremental data file, and setting the time period for transferring the incremental data file to the slave node.

7. The data backup method according to claim 5, wherein in S4, according to the incremental data file, a key evaluation index is obtained by performing intelligent induction using a keyword, and the backup task is adjusted by evaluating the key evaluation index using the evaluation element.

8. A data backup network node is characterized by comprising a main node and a slave node, and generating an incremental data file according to a disk data file and persistent data of the main node; transmitting the incremental data file to the slave node.

9. A data backup system is characterized by comprising at least two main nodes and at least two slave nodes, wherein each main node is connected with at least two slave nodes, and each slave node is connected with at least two main nodes;

generating an incremental data file according to the disk data file and the persistent data of the main node; transmitting the incremental data file to the slave node.

10. The data backup system according to claim 9, further comprising at least one terminal, wherein for any one of said terminals, the node directly connected thereto serves as said master node, and the other nodes serve as said slave nodes.

Technical Field

The present invention relates to the field of data storage technologies, and in particular, to a data backup method, a network node, and a system.

Background

With the development of technology, more data are obtained and more important. Data backup is the basis of disaster recovery, and refers to a process of copying all or part of a data set from a hard disk or an array of an application host to another storage medium in order to prevent data loss caused by misoperation of a system or system failure. The traditional data backup mainly adopts a built-in or external tape unit for cold backup. However, this method can only prevent human failures such as misoperation, and the recovery time is long.

With the continuous development of the technology, the amount of data is increased, and a large number of enterprises begin to adopt network backup. Network backups are typically implemented by specialized data storage management software in conjunction with corresponding hardware and storage devices.

However, in the prior art, in order to maintain an organization structure based on a content sorting order in a write buffer, when a slave node triggers to write data in the write buffer into a disk, a large amount of processor calculation and temporary memory overhead are generated; when the data is written into the disk of the node, a plurality of scattered storage areas are generated, which increases the overhead.

Accordingly, the prior art is deficient and needs improvement.

Disclosure of Invention

The invention provides a data backup method, a network node and a system, and aims to solve the technical problems that: how to save the calculation and temporary memory overhead of a processor, avoid generating a plurality of scattered storage areas when the disk of the node writes data, and the like.

The technical scheme of the invention is as follows:

a method of data backup comprising the steps of:

generating an incremental data file according to the disk data file and the persistent data of the main node;

transmitting the incremental data file to a slave node.

Preferably, the data backup method specifically includes the following steps:

s1, determining a master node and a slave node;

s2, setting a backup strategy;

s3, establishing a backup task according to the backup strategy;

s4, generating an incremental data file according to the backup task, the disk data file of the main node and the persistent data;

and S5, transmitting the incremental data file to the slave node according to the backup task.

Preferably, the data backup method further includes the steps of: and S6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file.

Preferably, the data backup method further includes the steps of:

s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file;

and S7, writing the incremental data file in the write buffer of the slave node in whole.

Preferably, the data backup method further includes the steps of:

s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file;

s7, writing the incremental data file in its entirety in the write buffer of the slave node;

and S8, feeding back a write report to the master node.

Preferably, in S1, a distribution status and/or a storage status of the master node and the slave node is further obtained;

in S2, the backup policy is set or adjusted according to the distribution state and/or storage state of the master node and the slave node.

Preferably, in S2, the backup policy includes an evaluation index and an evaluation element, and the evaluation element is used to evaluate the evaluation index according to a distribution state and/or a storage state of the master node and the slave node, so as to set the backup policy or adjust the backup policy;

in S4, the backup task is adjusted by performing intelligent induction based on the incremental data file, and evaluating the result of the intelligent induction using the evaluation element.

Preferably, in S4, adjusting the backup task includes selecting the slave node, setting the size and format of the data packet of the incremental data file, and setting the time period for transmitting the incremental data file to the slave node.

Preferably, in S4, the incremental data file is intelligently summarized by using a keyword to obtain a key evaluation index, and the evaluation element is used to evaluate the key evaluation index to adjust the backup task.

Preferably, the data backup network node comprises a master node and a slave node, and generates an incremental data file according to a disk data file and persistent data of the master node; transmitting the incremental data file to the slave node.

Preferably, the data backup system comprises at least two main nodes and at least two slave nodes, wherein each main node is connected with at least two slave nodes, and each slave node is connected with at least two main nodes;

generating an incremental data file according to the disk data file and the persistent data of the main node; transmitting the incremental data file to the slave node.

Preferably, the data backup system further includes at least one terminal, and for any one of the terminals, the node directly connected to the terminal serves as the master node, and the other nodes serve as the slave nodes.

By adopting the scheme, the main node and the slave nodes are flexible and changeable, the main node only transmits the incremental data files to the slave nodes, the data backup is realized, meanwhile, the calculation cost of a processor and the temporary memory cost can be saved, and for the magnetic disk of the nodes or the sectors of the magnetic disk, the incremental data files are continuously stored, so that a plurality of scattered storage areas are avoided when the data are written into the magnetic disk of the nodes.

In other technical schemes, a backup strategy is also set, generation of backup tasks is optimized, the backup tasks can be generated or selected according to the backup strategy preset by a user by adopting corresponding indexes and evaluation elements, for example, data backup is carried out in a specific time period or data backup is carried out by using different slave nodes, and key evaluation indexes can be obtained by carrying out intelligent induction, so that large data management can be carried out, and the method can be further applied to a block chain technology.

In summary, the overall objective of each technical solution of the present invention is to perform data backup, and in subdivision, the primary objective is to save processor computation and temporary memory overhead, and avoid generating multiple dispersed storage areas when data is written in a disk of a node, the secondary objective is to improve disaster recovery effect, and flexibly implement backup of one master node to one or more slave nodes according to a policy, the third objective is to adopt an incremental backup manner of a task system to avoid network congestion when a large number of slave nodes are backed up, and the other objectives further include providing a key evaluation index for large data management.

Drawings

FIG. 1 is a schematic view of a first embodiment of the present invention;

FIG. 2 is a schematic view of a second embodiment of the present invention;

FIG. 3 is a schematic view of a third embodiment of the present invention;

FIG. 4 is a schematic view of a fourth embodiment of the present invention;

FIG. 5 is a schematic view of a fifth embodiment of the present invention;

FIG. 6 is a schematic view of a sixth embodiment of the present invention;

FIG. 7 is a schematic view of a seventh embodiment of the present invention;

FIG. 8 is a schematic view of an eighth embodiment of the present invention;

FIG. 9 is a schematic view of a ninth embodiment of the invention;

FIG. 10 is a schematic view of a tenth embodiment of the present invention;

FIG. 11 is a schematic view of an eleventh embodiment of the invention;

FIG. 12 is a schematic view of a twelfth embodiment of the invention;

FIG. 13 is a schematic view of a thirteenth embodiment of the present invention;

fig. 14 is a schematic view of a fourteenth embodiment of the present invention.

Detailed Description

In order to facilitate an understanding of the invention, the invention is described in more detail below with reference to the accompanying drawings and specific examples. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.

As shown in fig. 1, an embodiment of the present invention is a data backup method, which includes the following steps: generating an incremental data file according to the disk data file and the persistent data of the main node; transmitting the incremental data file to a slave node. By adopting the scheme, the main node and the slave nodes are flexible and changeable, the main node only transmits the incremental data files to the slave nodes, the data backup is realized, meanwhile, the calculation cost of a processor and the temporary memory cost can be saved, and for the magnetic disk of the nodes or the sectors of the magnetic disk, the incremental data files are continuously stored, so that a plurality of scattered storage areas are avoided when the data are written into the magnetic disk of the nodes.

Preferably, as shown in fig. 2, the data backup method specifically includes the following steps: s1, determining a master node and a slave node; s2, setting a backup strategy; s3, establishing a backup task according to the backup strategy; s4, generating an incremental data file according to the backup task, the disk data file of the main node and the persistent data; and S5, transmitting the incremental data file to the slave node according to the backup task. Preferably, the backup strategy is set according to technology and requirements, and is used for presenting balance of processor calculation amount, memory overhead, backup importance degree, backup urgency degree, slave node selection and transmission rate, and accordingly, the establishment can also be understood as generating a backup task, and the establishment of the backup task can generate one by one or can generate the backup task rapidly according to a template and some options, just like a selection topic volume. For the backup strategy, it is preferable that the backup strategy is not constant but constantly changing with the technology and the demand, the backup strategy includes at least two evaluation indexes and evaluation elements thereof, the evaluation elements may be individually set corresponding to each evaluation index, or all the evaluation indexes may correspond to one or a group of evaluation elements. The embodiment is a refinement of the previous embodiment, a backup strategy is set, different backup tasks are generated according to the backup strategy, and each node can be a master node and a slave node if necessary. For a service provider, one-to-one services may be selected, and one-to-many services may be provided. The backup strategy and thus established backup tasks may also be different for different charging services, which provides a basis for differentiated services.

Preferably, the data backup method further includes the steps of: and S6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file. As shown in fig. 3, the data backup method includes the following steps: s1, determining a master node and a slave node; s2, setting a backup strategy; s3, establishing a backup task according to the backup strategy; s4, generating an incremental data file according to the backup task, the disk data file of the main node and the persistent data; s5, transmitting the incremental data file to the slave node according to the backup task; and S6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file. Preferably, in S4, a check code, such as an information digest code, of the incremental data file is also generated; in S5, the check code is also transmitted to the slave node; in S6, before deleting the data related to the incremental data file in the write buffer of the slave node, a new check code is further generated for the incremental data file in the disk data file of the slave node, and if the two check codes match, the data related to the incremental data file in the write buffer of the slave node is deleted according to the incremental data file. The check code may be a Message digest code, such as an MD5 code (MD5 Message-digest algorithm), which is a 128-bit (16-byte) hash value generated by a cryptographic hash function. The applicant finds in tests that even incremental data files are likely to be duplicated, so in order to store these incremental data files continuously as a whole, data related to the incremental data files in the write buffer of the slave node can be deleted after the incremental data files are transmitted to the slave node, which is equivalent to optimizing the storage structure of the slave node after backup. Drip accumulation is very significant for a large number of node management, especially for mass storage nodes of storage service providers.

Preferably, the data backup method further includes the steps of: s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file; and S7, writing the incremental data file in the write buffer of the slave node in whole. As shown in fig. 4, the data backup method includes the following steps: s1, determining a master node and a slave node; s2, setting a backup strategy; s3, establishing a backup task according to the backup strategy; s4, generating an incremental data file according to the backup task, the disk data file of the main node and the persistent data; s5, transmitting the incremental data file to the slave node according to the backup task; s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file; and S7, writing the incremental data file in the write buffer of the slave node in whole. In actual operation, the embodiments may also process the incremental data file to be transferred to the write buffer of the slave node according to the backup task in S5, and write the incremental data file from the write buffer of the slave node to a storage space, for example, a predetermined disk space, in its entirety in S7.

Preferably, the data backup method further includes the steps of: s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file; s7, writing the incremental data file in its entirety in the write buffer of the slave node; and S8, feeding back a write report to the master node. As shown in fig. 5, the data backup method includes the following steps: s1, determining a master node and a slave node; s2, setting a backup strategy; s3, establishing a backup task according to the backup strategy; s4, generating an incremental data file according to the backup task, the disk data file of the main node and the persistent data; s5, transmitting the incremental data file to the slave node according to the backup task; s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file; s7, writing the incremental data file in its entirety in the write buffer of the slave node; and S8, feeding back a write report to the master node. The feedback write report may be a simple success or failure, or may include a series of message digest codes. The feedback write report may also include auxiliary information such as task completion status, elapsed time, and/or computational effort.

In the backup system in which the total number of the master nodes and the slave nodes is multiple, preferably, in S1, a distribution state or a storage state of the master nodes and the slave nodes is further acquired; in S2, the backup policy is set or adjusted according to the distribution state and storage state of the master node and the slave node. Preferably, in S1, a distribution state and a storage state of the master node and the slave node are further obtained; in S2, the backup policy is set or adjusted according to the distribution state and storage state of the master node and the slave node. In different backup system configurations, a plurality of nodes include at least one master node and at least two slave nodes, where the distribution of each node position, the connection state, and the storage state of a disk space may be different, which may affect the backup of a large amount of data, so it is necessary to set or adjust a backup policy according to the distribution state and the storage state of the master node and the slave nodes, so that the backup policy better conforms to the distribution state and the storage state of the master node and the slave nodes, for example, the backup policy is set or adjusted according to regions, used spaces, transmission rates, and the like, so that the data backup is better in the ground and better conforms to the application environment. As shown in fig. 6, the data backup method includes the following steps: s1, determining a master node and a slave node, and further acquiring the distribution state and the storage state of the master node and the slave node; s2, setting a backup strategy or adjusting the backup strategy according to the distribution state and the storage state of the master node and the slave node; s3, establishing a backup task according to the backup strategy; s4, generating an incremental data file according to the backup task, the disk data file of the main node and the persistent data; and S5, transmitting the incremental data file to the slave node according to the backup task. Alternatively, as shown in fig. 7, the data backup method includes the following steps: s1, determining a master node and a slave node, and further acquiring the distribution state and the storage state of the master node and the slave node; s2, setting a backup strategy or adjusting the backup strategy according to the distribution state and the storage state of the master node and the slave node; s3, establishing a backup task according to the backup strategy; s4, generating an incremental data file according to the backup task, the disk data file of the main node and the persistent data; s5, transmitting the incremental data file to the slave node according to the backup task; s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file; s7, writing the incremental data file in its entirety in the write buffer of the slave node; and S8, feeding back a write report to the master node. Other embodiments are analogized and will not be described in detail below.

Preferably, in S2, the backup policy includes an evaluation index and an evaluation element, and the evaluation element is used to evaluate the evaluation index according to a distribution state and/or a storage state of the master node and the slave node, so as to set the backup policy or adjust the backup policy; in S4, the backup task is adjusted by performing intelligent induction based on the incremental data file, and evaluating the result of the intelligent induction using the evaluation element. As shown in fig. 8, the data backup method includes the following steps: s1, determining a master node and a slave node, and further acquiring the distribution state and the storage state of the master node and the slave node; s2, setting a backup strategy or adjusting the backup strategy according to the distribution state and the storage state of the master node and the slave node; the backup strategy comprises an evaluation index and an evaluation element, the evaluation index is evaluated by adopting the evaluation element according to the distribution state and/or the storage state of the main node and the slave node, and the backup strategy is set or adjusted; s3, establishing a backup task according to the backup strategy; s4, generating an incremental data file according to the backup task, the disk data file of the main node and the persistent data; carrying out intelligent induction according to the incremental data file, evaluating the result of the intelligent induction by adopting the evaluation element, and adjusting the backup task; s5, transmitting the incremental data file to the slave node according to the backup task; s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file; s7, writing the incremental data file in its entirety in the write buffer of the slave node; and S8, feeding back a write report to the master node.

The evaluation index is evaluated by using the evaluation element, that is, the evaluation index is evaluated by using the evaluation element according to the distribution state and/or storage state of the master node and the slave node, for example, according to the distribution state and storage state of the master node and the slave node, or according to the distribution state or storage state of the master node and the slave node, and the evaluation index is related to the distribution state and storage state of the master node and the slave node, and different evaluation indexes can be set according to different requirements. For example, the evaluation index is used for representing the storage state of the master node, the distribution state of the master node and the slave nodes, particularly the distribution state of a plurality of slave nodes relative to the master node, the storage state of the slave nodes, and the like; when only one slave node exists, the evaluation index is judged by adopting the evaluation element, and the reliability and the availability of the slave node are mainly reflected; and when two or more slave nodes exist, the evaluation indexes are judged by adopting the evaluation elements, so that the quality selection of each slave node is mainly embodied.

Judging the evaluation index by using the evaluation element can be evaluation of judging properties, such as whether the evaluation result is yes or not, for example, whether a certain slave node is adopted or not; it may also be an evaluation of the nature of the score, e.g. a slave node with a low transmission rate and/or a full storage state due to the distribution state, with a low score, while another slave node with a relatively high transmission rate and/or a large margin of storage states due to the distribution state, with a high score. For multiple slave nodes, the evaluation may also be referred to as a critique because they are compared to each other.

Similarly, the evaluation element is used to evaluate the result of the intelligent summarization, or the result of the intelligent summarization may be used as a key index similar to the evaluation index, for example, called a key evaluation index, and the evaluation is performed by the above method, that is, based on the distribution state and/or storage state of the master node and the slave nodes, a qualitative or quantitative evaluation is made on the master node and/or the slave nodes, for example, whether a master node has a condition as a master node, whether a hardware device or a transmission network needs to be replaced, or the like.

For automatic and intelligent AI identification, intelligent induction is often implemented using keywords. Preferably, the evaluation index includes an economic index, a security index, and the like, for example, in S2, the backup policy includes an economic index, a security index, and an evaluation element, and the backup policy is set or adjusted by evaluating the economic index and the security index using the evaluation element according to the distribution state and the storage state of the master node and the slave node; in S4, the incremental data file is also intelligently summarized to obtain a key evaluation index, which may also be referred to as an evaluation key index, and the evaluation elements are used to evaluate the key evaluation index and adjust the backup task. As shown in fig. 9, the data backup method includes the following steps: s1, determining a master node and a slave node, and further acquiring the distribution state and the storage state of the master node and the slave node; s2, setting a backup strategy or adjusting the backup strategy according to the distribution state and the storage state of the master node and the slave node; the backup strategy comprises an economic index, a safety index and an evaluation element, the economic index and the safety index are judged by adopting the evaluation element according to the distribution state and the storage state of the main node and the slave node, and the backup strategy is set or adjusted; s3, establishing a backup task according to the backup strategy; s4, generating an incremental data file according to the backup task, the disk data file of the main node and the persistent data; intelligently inducing according to the incremental data file to obtain a key evaluation index, judging the key evaluation index by adopting an evaluation factor, and adjusting the backup task; s5, transmitting the incremental data file to the slave node according to the backup task; s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file; s7, writing the incremental data file in its entirety in the write buffer of the slave node; and S8, feeding back a write report to the master node. The evaluation indexes in the backup strategy may also include other indexes, such as a speed index and a time index, but in a test, it is basically enough that the evaluation indexes satisfy that the economic index and the safety index are basically the two most important indexes in influencing the selection.

For the adjustment of the backup task, it is preferable that the adjustment of the backup task includes selecting the slave node, setting the packet size and format of the incremental data file, and setting the time period for transmitting the incremental data file to the slave node in S4. Preferably, the priority level of the backup task is also set. As shown in fig. 10, the data backup method includes the following steps: s1, determining a master node and a slave node, and further acquiring the distribution state and the storage state of the master node and the slave node; s2, setting a backup strategy or adjusting the backup strategy according to the distribution state and the storage state of the master node and the slave node; the backup strategy comprises an economic index, a safety index and an evaluation element, the economic index and the safety index are judged by adopting the evaluation element according to the distribution state and the storage state of the main node and the slave node, and the backup strategy is set or adjusted; s3, establishing a backup task according to the backup strategy; s4, generating an incremental data file according to the backup task, the disk data file of the main node and the persistent data; intelligently inducing according to the incremental data file to obtain a key evaluation index, judging the key evaluation index by adopting an evaluation factor, and adjusting the backup task; adjusting the backup task comprises selecting the slave node, setting the size and format of a data packet of the incremental data file, and setting a time period for transmitting the incremental data file to the slave node; s5, transmitting the incremental data file to the slave node according to the backup task; s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file; s7, writing the incremental data file in its entirety in the write buffer of the slave node; and S8, feeding back a write report to the master node. In practical application, due to the difference of specific network conditions and the difference of network transmission cost, the advantages and disadvantages of the slave nodes are different, the backup task is not invariable, the backup task with high priority can be provided for high-priced customers, and the service can be provided for the customers pursuing free of charge in a low-cost time period.

And preferably, in S4, intelligently inducing according to the incremental data file by using a keyword to obtain a key evaluation index, and evaluating the key evaluation index by using the evaluation element to adjust the backup task. As shown in fig. 11, the data backup method includes the following steps: s1, determining a master node and a slave node, and further acquiring the distribution state and the storage state of the master node and the slave node; s2, setting a backup strategy or adjusting the backup strategy according to the distribution state and the storage state of the master node and the slave node; the backup strategy comprises an evaluation index and an evaluation element, the evaluation index is evaluated by adopting the evaluation element according to the distribution state and/or the storage state of the main node and the slave node, and the backup strategy is set or adjusted; s3, establishing a backup task according to the backup strategy; s4, generating an incremental data file according to the backup task, the disk data file of the main node and the persistent data; intelligently inducing by adopting a keyword according to the incremental data file to obtain a key evaluation index, evaluating the key evaluation index by adopting the evaluation element, and adjusting the backup task; s5, transmitting the incremental data file to the slave node according to the backup task; s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file; s7, writing the incremental data file in its entirety in the write buffer of the slave node; and S8, feeding back a write report to the master node.

Preferably, in S4, the key evaluation index is obtained by performing intelligent induction using keyword search, key factor scoring and/or backup registration according to the incremental data file. Therefore, the corresponding indexes and evaluation elements can be adopted according to a backup strategy preset by a user to generate a backup task or select the backup task, for example, data backup is carried out in a specific time period or data backup is carried out by using different slave nodes, and intelligent induction can be carried out to obtain a key evaluation index, so that large data management can be carried out, and the method can be further applied to a block chain technology. As shown in fig. 12, the data backup method includes the steps of: s1, determining a master node and a slave node, and further acquiring the distribution state and the storage state of the master node and the slave node; s2, setting a backup strategy or adjusting the backup strategy according to the distribution state and the storage state of the master node and the slave node; the backup strategy comprises an economic index, a safety index and an evaluation element, the economic index and the safety index are judged by adopting the evaluation element according to the distribution state and the storage state of the main node and the slave node, and the backup strategy is set or adjusted; s3, establishing a backup task according to the backup strategy; s4, generating an incremental data file according to the backup task, the disk data file of the main node and the persistent data; intelligently inducing according to the incremental data file to obtain a key evaluation index, judging the key evaluation index by adopting an evaluation factor, and adjusting the backup task; according to the incremental data file, carrying out intelligent induction by adopting keyword search, key factor scoring and/or backup registration to obtain the key evaluation index; s5, transmitting the incremental data file to the slave node according to the backup task; s6, deleting the data related to the incremental data file in the write buffer of the slave node according to the incremental data file; s7, writing the incremental data file in its entirety in the write buffer of the slave node; and S8, feeding back a write report to the master node. Carrying out intelligent induction on the keywords, extracting the keywords identified by some intelligent programs in the incremental data files mainly in the modes of keyword searching and the like, and then adopting key factor grading to present the importance of some keywords; backup registration may also be employed to mark the manager's heavy vocabulary as a specific keyword or associated phrase. Therefore, some data related to the keywords can be obtained, for example, "CisXX" or "SiXX" appears 10 times, and the technical result is 10 points; "HuaXX" appears 5 times, and the technical performance is 15 points; the relation of 'Si XX-Hua XX' appears 3 times, the economy is 30 points, and finally the key evaluation indexes comprise the technical 25 points and the economy 30 points. And evaluating the key evaluation index by using the evaluation element, wherein the evaluation element comprises but is not limited to taking the sum of the key evaluation index and the key evaluation index, or taking the weight according to a preset weight value and then summing the weights, and then obtaining a quantitative evaluation result. The priority level of the backup task is set or adjusted according to the quantified evaluation result.

In particular, when "huaxx" is important, not only is it technically reflected but also it is reflected at a predetermined weight value, and once the backup data of "huaxx" is referred to, it is preferentially completed. This is merely a simple example illustration, and within a true backup system design, there may be many conditions and parameters involved, as would be conventionally understood by those skilled in the art of data backup.

Preferably, the data backup network node comprises a master node and a slave node, and generates an incremental data file according to a disk data file and persistent data of the master node; transmitting the incremental data file to the slave node. Preferably, the data backup network node controls implementation according to any one of the data backup methods.

Preferably, the data backup system comprises at least two main nodes and at least two slave nodes, wherein each main node is connected with at least two slave nodes, and each slave node is connected with at least two main nodes; generating an incremental data file according to the disk data file and the persistent data of the main node; transmitting the incremental data file to the slave node. Preferably, the data backup system is controlled to implement according to any one of the data backup methods.

Preferably, as shown in fig. 13, the data backup system includes at least two master nodes and at least two slave nodes, each master node is connected to each slave node, and each slave node is connected to each master node.

Preferably, the data backup system further includes at least one terminal, and for any one of the terminals, the node directly connected to the terminal serves as the master node, and the other nodes serve as the slave nodes.

Preferably, as shown in fig. 14, the data backup system further includes at least one server, where any one of the servers is connected to each of the master nodes and each of the slave nodes, the master node does not need to pass through the server when transmitting the incremental data file to the slave node, and the server is used to set a backup policy and a backup task. The technical scheme of the invention also sets a backup strategy, optimizes the generation of backup tasks, can adopt corresponding indexes and evaluation elements according to the backup strategy preset by a user to generate the backup tasks or select the backup tasks, for example, data backup is carried out in a specific time period or data backup is carried out by using different slave nodes, and also can carry out intelligent induction to obtain key evaluation indexes, thereby being capable of carrying out big data management and being also applied in a block chain technology.

The embodiments of the present invention are all the whole targets serving the same data backup, and the whole targets are subdivided and can be divided into the primary targets of saving the calculation and temporary memory overhead of a processor and avoiding generating a plurality of scattered storage areas when data are written into a disk of a node, the secondary targets of improving the disaster recovery effect and flexibly realizing the backup of one master node to one or more slave nodes according to a strategy, the third target of adopting an incremental backup mode of a task system to avoid network congestion when a large number of backups occur, and the other targets of the present invention also include providing a key evaluation index for large data management. In order to solve the problem that the incremental data file sent by the master node is written into the disk of the slave node, the incremental data file is generated by the master node according to persistent data and the disk data file of the master node, the persistent data comes from a write buffer of the master node, and the incremental data file written into the disk of the master node deletes data related to the incremental data file in the write buffer of the slave node. In order to improve the data service capability and resist the risk of data loss, a plurality of data service nodes are used to form a data service cluster to provide data service for the client so as to support the system.

Further, the embodiments of the present invention further include a data backup method, a network node, and a system formed by combining the technical features of the embodiments with each other.

The technical features mentioned above are combined with each other to form various embodiments which are not listed above, and all of them are regarded as the scope of the present invention described in the specification; also, modifications and variations may be suggested to those skilled in the art in light of the above teachings, and it is intended to cover all such modifications and variations as fall within the true spirit and scope of the invention as defined by the appended claims.

24页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种数据同步冗余系统及其控制方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!