CN112988457B - Data backup method, device, system and computer equipment - Google Patents

Data backup method, device, system and computer equipment Download PDF

Info

Publication number
CN112988457B
CN112988457B CN201911304021.1A CN201911304021A CN112988457B CN 112988457 B CN112988457 B CN 112988457B CN 201911304021 A CN201911304021 A CN 201911304021A CN 112988457 B CN112988457 B CN 112988457B
Authority
CN
China
Prior art keywords
backup
data
information
backed
path information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911304021.1A
Other languages
Chinese (zh)
Other versions
CN112988457A (en
Inventor
李永辉
裴照华
鄢兵安
马杰
卫延伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Henan Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Henan Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Henan Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201911304021.1A priority Critical patent/CN112988457B/en
Publication of CN112988457A publication Critical patent/CN112988457A/en
Application granted granted Critical
Publication of CN112988457B publication Critical patent/CN112988457B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a data backup method, a device, a system and computer equipment, wherein the method comprises the following steps: monitoring a preset program process, determining backup information corresponding to the preset program process, determining search path information of data to be backed up corresponding to the backup information based on the backup information, acquiring the data to be backed up based on the search path information, determining backup rules of the data to be backed up, and carrying out backup processing on the data to be backed up based on the backup rules. According to the embodiment of the invention, the data backup process does not need to be manually participated, so that the automation of the data backup process is realized, the data safety problem is effectively avoided, and simultaneously, the manpower and material resources are greatly reduced.

Description

Data backup method, device, system and computer equipment
Technical Field
The present invention relates to the field of data backup technologies, and in particular, to a data backup method, device, system, and computer device.
Background
In the past, data security is the focus of attention, and the protection of the security and reliability of enterprise core data is also the focus of the operation and maintenance work of each enterprise IT, and the backup of reliable data and software is naturally the work focus of each enterprise.
The current backup mode of data is based on manual configuration of a client and a server, and service on a server is discovered manually, and then backup software or data types, data paths and the like are manually configured.
However, when a batch server needs to backup different services or a single server needs to backup multiple software data, omission is unavoidable, so that serious data security problems are caused.
Disclosure of Invention
The embodiment of the invention aims to provide a data backup method, a device, a system and computer equipment, which are used for solving the problems that in the prior art, manual configuration is mostly used as a basis in the data backup process, time and labor are wasted, and serious data safety is easily caused.
In order to solve the technical problems, the embodiment of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a data backup method, including:
monitoring a preset program process and determining backup information corresponding to the preset program process;
determining search path information of data to be backed up corresponding to the backup information based on the backup information, and acquiring the data to be backed up based on the search path information;
And determining a backup rule of the data to be backed up, and carrying out backup processing on the data to be backed up based on the backup rule.
In a second aspect, an embodiment of the present invention provides a data backup apparatus, including:
the information determining module is used for monitoring a preset program process and determining backup information corresponding to the preset program process;
the data acquisition module is used for determining search path information of data to be backed up corresponding to the backup information based on the backup information and acquiring the data to be backed up based on the search path information;
and the data processing module is used for determining the backup rule of the data to be backed up and carrying out backup processing on the data to be backed up based on the backup rule.
In a third aspect, an embodiment of the present invention provides a data backup system, including: a management node, a memory, and at least one server, wherein:
the server is used for monitoring a preset program process, determining backup information corresponding to the preset program process and sending the backup information to the management node;
the management node is used for determining search path information of data to be backed up corresponding to the backup information based on the received backup information, and returning the search path information to the server;
The server acquires data to be backed up based on the search path information, and returns backup parameter information of the data to be backed up to the management node;
the management node determines a backup rule of the data to be backed up based on the backup parameter information and sends the backup rule to the server based on the backup rule;
the server stores the data to be backed up into a memory based on the backup rule.
In a fourth aspect, an embodiment of the present invention provides a computer device, including a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete communication with each other through a bus; the memory is used for storing a computer program; the processor is configured to execute a program stored in the memory, and implement the steps of the data backup method according to the first aspect.
In a fifth aspect, an embodiment of the present invention provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the data backup method according to the first aspect. As can be seen from the technical solutions provided in the embodiments of the present disclosure, by monitoring a predetermined program process, backup information corresponding to the predetermined program process is determined, and based on the backup information, search path information of data to be backed up corresponding to the backup information is determined, and the data to be backed up is obtained based on the search path information, then, a backup rule of the data to be backed up is determined, and backup processing is performed on the data to be backed up based on the backup rule. In this way, by monitoring the preset program process, determining backup information to be backed up, determining a search path of data to be backed up based on the backup information, acquiring the data to be backed up based on the search path information, and then carrying out backup processing on the acquired data to be backed up based on backup rules, the data backup process is free from manual participation, automation of the data backup process is realized, the problem of data safety is effectively avoided, and manpower and material resources are greatly reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a first flow chart of a data backup method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a second flow chart of a data backup method according to an embodiment of the present invention;
FIG. 3 is a third flowchart of a data backup method according to an embodiment of the present invention;
FIG. 4 is a diagram of an example dictionary multi-way tree;
FIG. 5 is a diagram of an example dictionary for a new dictionary of the dictionary multi-way tree;
FIG. 6 is a schematic diagram illustrating a module composition of a data backup device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a data backup method, a data backup device, a data backup system and computer equipment.
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, shall fall within the scope of the invention.
As shown in fig. 1, an embodiment of the present invention provides a data backup method, where an execution body of the method may be a server, where the server may be an independent server or may be a server cluster formed by a plurality of servers, and the server may be a server capable of performing data backup processing, and the method may implement automatic backup on data. The method specifically comprises the following steps:
in S101, a predetermined program process is monitored, and backup information corresponding to the predetermined program process is determined.
The predetermined program process may be a program process that is selected from a plurality of program processes running in a current server or a plurality of application programs running in the current server and needs to be backed up. The backup information may be information that data backup is required in a predetermined program, for example, backup information corresponding to a predetermined program process may be information in a parameter file of the predetermined program process or an application program, or information in a data file, etc.
In implementation, data security is always the focus of attention, and protecting the security and reliability of enterprise core data is always the important issue in the operation and maintenance of IT of each enterprise, and reliable data and software backup naturally becomes the work focus of each enterprise. The current backup mode of data is based on manual configuration of a client and a server, and service on a server is discovered manually, and then backup software or data types, data paths and the like are manually configured. However, when a batch server needs to backup different services or a single server needs to backup multiple software data, omission is unavoidable, so that serious data security problems are caused. Therefore, the embodiment of the invention provides a technical scheme capable of solving the problems, and the specific details can be seen in the following.
Specifically, after the client Agent is deployed to the server, an initialization program is started, at this time, a program scheduling module is started, and can detect the current host service state, connect with the server to update the Agent state, and then can start task execution. The client Agent starts a monitoring process, acquires information of a currently running program process or application program, sends the acquired information to the server, and then the server can determine backup information corresponding to a preset program process according to the acquired information.
In view of that some of the plurality of program processes running in the server do not need to be backed up, in order to improve the efficiency of data backup, a predetermined database may be preset, in which related information of the plurality of predetermined program processes (program processes that need to be backed up) is stored in advance. After the current server is started, the acquired related information of the currently running program process can be matched with the related information of a plurality of program processes needing to be backed up stored in the preset database, and the successfully matched currently running program process is determined to be the preset program process.
Further, considering that some file information (such as error-reporting log information in a predetermined program process) in the file information stored in the predetermined program process is not needed to be backed up, in order to further improve the data backup efficiency, the program process needing to be backed up and the backup information needing to be backed up in the program process may be stored in the predetermined database in advance correspondingly. In this way, when the server monitors the obtained scheduled program, the scheduled program can be matched with the program process to be backed up stored in the scheduled database, and the backup information corresponding to the successfully matched application program to be backed up can be determined as the backup information corresponding to the scheduled program process.
In S102, search path information of data to be backed up corresponding to the backup information is determined based on the backup information, and the data to be backed up is obtained based on the search path information.
The search path information may be installation path information of an application corresponding to the backup information, or may be path information acquired by a server addressed based on a predetermined data discovery mechanism.
The search path information corresponding to the backup information is stored in the predetermined database in advance. In implementation, after determining the backup information corresponding to the predetermined program process through the processing of S101, the server may return the stored search path information that matches the backup information to the client Agent, where the client Agent obtains the data to be backed up based on the obtained search path information.
In S103, a backup rule of the data to be backed up is determined, and backup processing is performed on the data to be backed up based on the backup rule.
The data to be backed up carries backup parameter information, where the backup parameter information may include: the environment information (such as disk space and the like) of the server running the predetermined program process corresponding to the data to be backed up, the target path information of the server where the data to be backed up is located, the data type of the data to be backed up, the memory occupation information of the data to be backed up and the like. The backup rule may be a backup rule formulated according to the acquired information such as the disk space size of the server where the data to be backed up is located, the data type of the data to be backed up, and the data backup frequency of the data to be backed up.
In implementation, after the server obtains the data to be backed up through the processing of S102, the backup rule of the data to be backed up may be determined according to the backup parameter information.
Specifically, a backup rule may be formulated according to environment information (such as a disk space, etc.) of a server running a predetermined program process corresponding to the data to be backed up, path information of the data to be backed up, information such as a memory size occupied by the data to be backed up, etc. and information such as a data backup frequency of the data to be backed up, and meanwhile, a backup path is generated, then the backup rule and the backup path are returned to the server running the predetermined program process corresponding to the data to be backed up, a client Agent on the server executes program call of a corresponding service backup tool based on the acquired backup path and the acquired backup rule, and performs instruction splicing according to parameters in the backup rule, so that backup is performed according to the rule and a timing task is added, data in the backup path of the backup client is regularly backed up, and backup completion information is returned to the server after backup is completed.
As can be seen from the technical solutions provided in the embodiments of the present disclosure, by monitoring a predetermined program process, backup information corresponding to the predetermined program process is determined, and based on the backup information, search path information of data to be backed up corresponding to the backup information is determined, and the data to be backed up is obtained based on the search path information, then, a backup rule of the data to be backed up is determined, and backup processing is performed on the data to be backed up based on the backup rule. In this way, by monitoring the preset program process, determining backup information to be backed up, determining a search path of data to be backed up based on the backup information, acquiring the data to be backed up based on the search path information, and then carrying out backup processing on the acquired data to be backed up based on backup rules, the data backup process is free from manual participation, automation of the data backup process is realized, the problem of data safety is effectively avoided, and manpower and material resources are greatly reduced.
As shown in fig. 2, the foregoing S101 monitors a predetermined program process, and before determining backup information corresponding to the predetermined program process, the following S001-S002 processes are further included.
In S001, information of a program process that has been currently created is acquired.
In implementation, the client Agent is pre-deployed on a server where the data to be backed up is located, and when the server works, the client Agent starts a monitoring process to acquire information such as state information, PID information, program process port identification, program process identification and the like of a program process which is currently running on the server.
In S002, the predetermined program process is determined according to the information of the currently created program process and the predetermined process matching rule, and the predetermined program process is added to the process queue to be backed up.
The predetermined process matching rule may be a rule for determining whether the currently created program process is a predetermined program process.
In implementation, after the client Agent obtains the program process that has been created on the current server, the client Agent may extract feature information from information of the program process that has been created currently, then match the extracted feature information with feature information of a plurality of program processes that need to be backed up and stored in a predetermined database according to a predetermined process matching rule, determine the program process that has been created currently and that matches the program process that needs to be backed up as a predetermined program process, and then add the predetermined program process to a process queue that needs to be backed up to facilitate subsequent program call.
The specific treatment mode of S002 can be varied, and an alternative treatment mode is provided below, and specific reference can be made to the following treatments S0021 to S0023.
In S0021, a process identifier of a currently created program process and/or a port identifier corresponding to the currently created program process is acquired.
In S0022, the process identifier is matched with a preset process identifier, and/or the port identifier is matched with a preset port identifier.
In S0023, the program process matching the preset process identifier and/or the program process matching the preset port identifier is determined as a predetermined program process.
In implementation, taking a process matching rule as that a process identifier of a created program process is matched with a preset process identifier, and taking the case that the port number of the program process is matched with the preset port identifier, if the process identifier of the currently created program process acquired by the client Agent is matched with the preset process identifier, and the port identifier of the currently created program process is matched with the preset port identifier, determining the acquired currently created program process as a preset program process, and allowing the acquired currently created program process to be added into a process queue to be backed up; if the process identifier of the currently created program process acquired by the client Agent is not matched with the preset process identifier and the port identifier of the currently created program process is not matched with the preset port identifier, the acquired currently created program process is determined to be an unauthorized program process, and the currently created program process is not allowed to be added into a process queue to be backed up; if the process identifier of the currently created program process acquired by the client Agent is not matched with the preset process identifier, or if the port identifier of the currently created program process is not matched with the preset port identifier, the acquired currently created program process is marked as an abnormal program process, the abnormal program process is not allowed to be added into a process queue to be backed up, and the abnormal program process can be analyzed and processed.
As shown in fig. 3, the specific processing manner of S102 may be varied, and an alternative processing manner is provided below, and specific reference may be made to the processing of S1021-S1024 below.
In S1021, first path information corresponding to the backup information is searched for from a predetermined database.
The first path information is search path information stored in the predetermined database in advance, and the first path information may be installation path information of an application program corresponding to the backup information, or may also be path information that is obtained by addressing by a client Agent based on a data discovery mechanism.
In implementation, after determining the backup information corresponding to the predetermined program process through the processing of S101, the server may return the first path information corresponding to the backup information stored in the predetermined database to the client Agent.
In S1022, if the data to be backed up is not obtained according to the first path information, the backup information is parsed, and a keyword corresponding to the parsing result is obtained.
In implementation, the client Agent obtains the data to be backed up based on the obtained first path information, and if the client Agent does not obtain the data to be backed up based on the obtained first path information, the obtained backup information can be analyzed, and a keyword corresponding to the analysis result can be obtained.
In S1023, the second path information is generated by combining the key with the path key in the predetermined program process and the process update time.
In implementation, the client Agent matches the keyword corresponding to the obtained analysis result with the path keyword in the predetermined program process, and finds and confirms the real data path information by combining with the data finding mechanism such as the detected process data updating time, and confirms the found real data path information as the second path information.
In S1024, the second path information is determined as search path information of the data to be backed up, and the data to be backed up is acquired based on the search path information.
The method further comprises the following steps of:
step one, judging whether the first path information is matched with the target path information.
And secondly, if the judgment result is negative, training based on path information corresponding to the data to be backed up as sample data, and storing the search path information generated after training into a preset database.
In an implementation, the data to be backed up may include backup parameter information, where the backup parameter information carries target path information. After the client Agent obtains the data to be backed up based on the search path information, whether the target path information is the same as the first path information stored in the predetermined database or not can be judged according to the received target path information, if not, training is performed based on the path information corresponding to the data to be backed up (such as the target path information carried in the backup parameter information) as sample data, and the search path information generated after training is stored in the predetermined database.
Wherein, the predetermined database may be a path dictionary, and the path dictionary is constructed as follows:
let d= { S1, S2, S3..sk } be based on one path set on path dictionary set Σ, S i =S i [1]...S i [n i ]Multi-way tree T of i=l..k, D D The root node is set empty, each path character string S i E D may use a tree from the root directory (/) to a child node l i Is represented by a path of (a). Edges starting from root directory of depth 0 (/), and
Figure BDA0002322590650000081
the root node has |L 0 I child nodes, the edge connected to each child node is L 0 Is a path character in (a).
An edge from node x of depth d: let x be one node in the tree with depth d, and the path from the root node to node x be al i For those path strings prefixed to ai at depth d, S i =a j 1=1, …, m; j=1, … d, let
Figure BDA0002322590650000082
X is +.>
Figure BDA0002322590650000083
Each child node, the edges connected to each child node are
Figure BDA0002322590650000084
Is a path character in (a).
According to the preset dictionary set { D ] 1 ,D 2 ,D 3 …D n And will build a dictionary prefix multi-way tree T D
The multi-way tree is shown in FIG. 4, as when the dictionary set is {/data/a.ibd,/data/b.ibd,/data/b.ibd.bak }, the dictionary ends with a semicolon.
The matching process of the sample data dictionary is as follows:
traversing sample data, set as { E ] 1 ,E 2 ,E 3 ....E n Conversion to backup Path sample data, { EP 1 ,EP 2 ,EP 3 ....EP n The nth sample data is EP n Take EP n Each letter starts to traverse the multi-way tree of the path dictionary, and matches one by one until a node' can be found; when the 'number dictionary end symbol' is, dictionary matching is represented, the matching position is returned, and whether the final judgment is madeMatching. If a child node cannot be matched, a matching failure is returned, and the EP is used for matching n The next letter starts traversing the dictionary multi-way tree until it ends. And marking the data matched with the dictionary as backup file paths, and adding the backup file paths into a backup path list.
The dictionary matching process is a process of acquiring backup paths according to the dictionary tree. The sample data is the data stored in the dictionary tree.
The dictionary data training process is as follows:
the software information returned by the service discovery layer contains the path information of the data file to be backed up by the application. When the agent performs data self-discovery, path information in the path dictionary table is used for assisting in searching paths so as to ensure the efficiency of data self-discovery and the correctness of backup data. Dictionary learning and expansion can improve the efficiency and accuracy of data discovery.
After determining the backup path, whether the path dictionary contains content similar to or in the same format as the keywords in the data corresponding to the path field is searched, and if not, the same content is added to the backup path dictionary as one keyword in the backup path dictionary.
And in the judging mode, when the learning evaluation value threshold value is reached in the matching process, adding the path into the dictionary set. Learning evaluation value
Figure BDA0002322590650000091
Where h is the length of the child node from the root directory (/) node side when failure, g is the length of the shortest dictionary ending Fu Juli root directory (/) node side, and k is 0.ltoreq.k.ltoreq.n, where n is the average length of the dictionary.
Examining the prefix in the dictionary multi-way tree, traversing downwards from the root node, when the child node is found to not meet P x When the nth letter is created, the child node is the letter, and is hung on the father node of the last letter of the matched prefix, and the ancestor is the matched node.
As shown in fig. 5, fig. 5 is a new structure of the dictionary multi-way tree after adding dictionary set {/data/a.ibd,/data/b.ibd,/data/b.ibd.bak } to dictionary/data/c.ibd. '. ' indicates a file type spacer, '; the' number represents the dictionary ending symbol.
Specifically, the training process may include the following steps one to three:
step one, a server generates a backup path distribution table based on target path information, and the backup path distribution table records the path of each level of catalogue in a storage partition or catalogue.
And secondly, searching and identifying the catalogs in the storage partitions or catalogs recorded in the backup catalog distribution table by taking the single-stage catalogs as a unit, and generating catalog object description information by taking the single-stage catalogs as objects.
And step three, updating the access times and the modification times of the directory in a specified time period according to the access and modification operations of the directory object data, and updating the corresponding path record in the backup path distribution table according to the new, modification or deletion operations of the directory or the file data. As can be seen from the technical solutions provided in the embodiments of the present disclosure, by monitoring a predetermined program process, backup information corresponding to the predetermined program process is determined, and based on the backup information, search path information of data to be backed up corresponding to the backup information is determined, and the data to be backed up is obtained based on the search path information, then, a backup rule of the data to be backed up is determined, and backup processing is performed on the data to be backed up based on the backup rule. In this way, by monitoring the preset program process, determining backup information to be backed up, determining a search path of data to be backed up based on the backup information, acquiring the data to be backed up based on the search path information, and then carrying out backup processing on the acquired data to be backed up based on backup rules, the data backup process is free from manual participation, automation of the data backup process is realized, the problem of data safety is effectively avoided, and manpower and material resources are greatly reduced.
Based on the same technical concept, the embodiment of the present invention further provides a data backup device, and fig. 6 is a schematic block diagram of the data backup device according to the embodiment of the present invention, where the data backup device is configured to execute the data backup method described in fig. 1 to 5, and as shown in fig. 6, the data backup device includes:
the information determining module 601 is configured to monitor a predetermined program process, and determine backup information corresponding to the predetermined program process;
the data acquisition module 602 is configured to determine search path information of data to be backed up corresponding to the backup information based on the backup information, and acquire the data to be backed up based on the search path information;
the data processing module 603 is configured to determine a backup rule of the data to be backed up, and perform backup processing on the data to be backed up based on the backup rule.
As can be seen from the technical solutions provided in the embodiments of the present disclosure, by monitoring a predetermined program process, backup information corresponding to the predetermined program process is determined, and based on the backup information, search path information of data to be backed up corresponding to the backup information is determined, and the data to be backed up is obtained based on the search path information, then, a backup rule of the data to be backed up is determined, and backup processing is performed on the data to be backed up based on the backup rule. In this way, by monitoring the preset program process, determining backup information to be backed up, determining a search path of data to be backed up based on the backup information, acquiring the data to be backed up based on the search path information, and then carrying out backup processing on the acquired data to be backed up based on backup rules, the data backup process is free from manual participation, automation of the data backup process is realized, the problem of data safety is effectively avoided, and manpower and material resources are greatly reduced.
Optionally, the apparatus further includes:
the information acquisition module is used for acquiring the information of the currently created program process;
and the scheduled program determining module is used for determining the scheduled program process according to the information of the currently created program process and the scheduled process matching rule, and adding the scheduled program process into a process queue to be backed up.
Optionally, the predetermined program determining module includes:
the identification acquisition unit is used for acquiring the process identification of the currently created program process and/or the port identification corresponding to the currently created program process;
the matching unit is used for matching the process identifier with a preset process identifier and/or matching the port identifier with a preset port identifier;
the predetermined program determining unit is used for determining the program process matched with the preset process identifier and/or the program process matched with the preset port identifier as the predetermined program process.
Optionally, the data acquisition module includes:
the searching unit is used for searching first path information corresponding to the backup information from a preset database;
the analysis unit is used for analyzing the backup information and acquiring keywords corresponding to analysis results if the data to be backed up are not acquired according to the first path information;
The path generation unit is used for generating second path information by combining the keywords with path keywords in a preset program process and process update time;
and the path determining unit is used for determining the second path information as search path information of the data to be backed up.
Optionally, the data to be backed up carries target path information used for obtaining the data to be backed up, and the device further includes:
the path detection module is used for judging whether the first path information is matched with the target path information;
and the storage module is used for training based on the path information corresponding to the data to be backed up as sample data if the judgment result is negative, and storing the search path information generated after training into the preset database.
Optionally, the data to be backed up carries backup parameter information, where the backup parameter information includes: at least one item of target path information, memory occupation information and data type information;
the data processing module is used for:
and determining the backup rule of the data to be backed up according to the backup parameter information.
As can be seen from the technical solutions provided in the embodiments of the present disclosure, by monitoring a predetermined program process, backup information corresponding to the predetermined program process is determined, and based on the backup information, search path information of data to be backed up corresponding to the backup information is determined, and the data to be backed up is obtained based on the search path information, then, a backup rule of the data to be backed up is determined, and backup processing is performed on the data to be backed up based on the backup rule. In this way, by monitoring the preset program process, determining backup information to be backed up, determining a search path of data to be backed up based on the backup information, acquiring the data to be backed up based on the search path information, and then carrying out backup processing on the acquired data to be backed up based on backup rules, the data backup process is free from manual participation, automation of the data backup process is realized, the problem of data safety is effectively avoided, and manpower and material resources are greatly reduced.
The data backup device provided by the embodiment of the invention can realize each process in the embodiment corresponding to the data backup method, and in order to avoid repetition, the description is omitted here.
It should be noted that, the data backup device provided by the embodiment of the present invention and the data backup method provided by the embodiment of the present invention are based on the same inventive concept, so that the specific implementation of the embodiment may refer to the implementation of the foregoing data backup method, and the repetition is not repeated.
According to the data backup method provided by the above embodiment, based on the same technical concept, the embodiment of the present invention further provides a data backup system, where the data backup system is used to execute the data backup method described in fig. 1 to 5, and the servers as execution subjects in the above embodiment may be divided into different functional units, where the servers as execution subjects may be divided into a management node, a memory, and at least one server, and the data backup system may be configured based on the divided different functional units, that is, the data backup system includes: a management node (i.e., a management device), a memory, and at least one server (based on the above, the server is different from the server as the execution subject in the above embodiment), wherein:
The server is used for monitoring a preset program process, determining backup information corresponding to the preset program process and sending the backup information to the management node;
the management node is used for determining search path information of data to be backed up corresponding to the backup information based on the received backup information, and returning the search path information to the server;
the server acquires data to be backed up based on the search path information, and returns backup parameter information of the data to be backed up to the management node;
the management node determines a backup rule of the data to be backed up based on the backup parameter information and sends the backup rule to the server based on the backup rule;
the server stores the data to be backed up into a memory based on the backup rule.
Optionally, the server is further configured to:
acquiring information of a currently created program process;
and determining the preset program process according to the information of the currently created program process and a preset process matching rule, and adding the preset program process into a process queue to be backed up.
Optionally, the server is further configured to:
Acquiring a process identifier of a currently created program process and/or a port identifier corresponding to the currently created program process;
matching the process identifier with a preset process identifier, and/or matching the port identifier with a preset port identifier;
and determining the program process matched with the preset process identifier and/or the program process matched with the preset port identifier as a preset program process.
Optionally, the management node is further configured to: searching first path information corresponding to the backup information from a preset database, and returning the first path information to the server;
the server acquires the data to be backed up according to the received first path information, analyzes the backup information if the data to be backed up is not acquired according to the first path information, and acquires keywords corresponding to analysis results; the keywords, path keywords in a preset program process and process update time are acquired, second path information is acquired, and the second path information is returned to the management node;
the management node is further configured to determine the second path information as search path information of the data to be backed up.
The data to be backed up carries target path information used for obtaining the data to be backed up, and optionally, the management node is further configured to:
judging whether the first path information is matched with the target path information or not;
if not, training based on the path information corresponding to the data to be backed up as sample data, and storing the search path information generated after training into the preset database.
The backup parameter information is carried in the data to be backed up, and the backup parameter information comprises: the management node is further configured to:
and determining the backup rule of the data to be backed up according to the backup parameter information.
As can be seen from the technical solutions provided in the embodiments of the present disclosure, by monitoring a predetermined program process, backup information corresponding to the predetermined program process is determined, and based on the backup information, search path information of data to be backed up corresponding to the backup information is determined, and the data to be backed up is obtained based on the search path information, then, a backup rule of the data to be backed up is determined, and backup processing is performed on the data to be backed up based on the backup rule. In this way, by monitoring the preset program process, determining backup information to be backed up, determining a search path of data to be backed up based on the backup information, acquiring the data to be backed up based on the search path information, and then carrying out backup processing on the acquired data to be backed up based on backup rules, the data backup process is free from manual participation, automation of the data backup process is realized, the problem of data safety is effectively avoided, and manpower and material resources are greatly reduced.
The data backup system provided by the embodiment of the invention can realize each process in the embodiment corresponding to the data backup method, and in order to avoid repetition, the description is omitted here.
It should be noted that, the data backup system provided by the embodiment of the present invention and the data backup method provided by the embodiment of the present invention are based on the same inventive concept, so that the specific implementation of the embodiment may refer to the implementation of the foregoing data backup method, and the repetition is not repeated.
According to the data backup method provided by the above embodiment, based on the same technical concept, the embodiment of the present invention further provides a computer device, where the computer device is configured to perform the above data backup method, and fig. 7 is a schematic structural diagram of a computer device for implementing each embodiment of the present invention, as shown in fig. 7. Computer devices may vary widely in configuration or performance, and may include one or more processors 701 and memory 702, where memory 702 may store one or more stored applications or data. Wherein the memory 702 may be transient storage or persistent storage. The application programs stored in the memory 702 may include one or more modules (not shown) each of which may include a series of computer-executable instructions for use in a computer device. Still further, the processor 701 may be arranged to communicate with the memory 702 and execute a series of computer executable instructions in the memory 702 on a computer device. The computer device may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input/output interfaces 705, and one or more keyboards 706.
In this embodiment, the computer device includes a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete communication with each other through a bus; the memory is used for storing a computer program; the processor is configured to execute the program stored in the memory, and implement the following method steps:
monitoring a preset program process and determining backup information corresponding to the preset program process;
determining search path information of data to be backed up corresponding to the backup information based on the backup information, and acquiring the data to be backed up based on the search path information;
and determining a backup rule of the data to be backed up, and carrying out backup processing on the data to be backed up based on the backup rule.
Embodiments of the present application also provide a computer readable storage medium having stored therein a computer program which when executed by a processor performs the following method steps:
monitoring a preset program process and determining backup information corresponding to the preset program process;
determining search path information of data to be backed up corresponding to the backup information based on the backup information, and acquiring the data to be backed up based on the search path information;
And determining a backup rule of the data to be backed up, and carrying out backup processing on the data to be backed up based on the backup rule.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (9)

1. A method of data backup, the method comprising:
monitoring a preset program process and determining backup information corresponding to the preset program process;
determining search path information of data to be backed up corresponding to the backup information based on the backup information, and acquiring the data to be backed up based on the search path information;
Determining a backup rule of the data to be backed up, and carrying out backup processing on the data to be backed up based on the backup rule;
the determining, based on the backup information, search path information of data to be backed up corresponding to the backup information includes:
searching first path information corresponding to the backup information from a preset database;
if the data to be backed up is not obtained according to the first path information, analyzing the backup information, and obtaining keywords corresponding to analysis results;
generating second path information by the keywords, path keywords in a preset program process and process update time;
and determining the second path information as search path information of the data to be backed up.
2. The method of claim 1, wherein monitoring the predetermined program process and before determining the backup information corresponding to the predetermined program process, further comprises:
acquiring information of a currently created program process;
and determining the preset program process according to the information of the currently created program process and a preset process matching rule, and adding the preset program process into a process queue to be backed up.
3. The method of claim 2, wherein the determining the predetermined program process based on the information of the currently created program process and a predetermined process matching rule comprises:
acquiring a process identifier of a currently created program process and/or a port identifier corresponding to the currently created program process;
matching the process identifier with a preset process identifier, and/or matching the port identifier with a preset port identifier;
and determining the program process matched with the preset process identifier and/or the program process matched with the preset port identifier as a preset program process.
4. The method of claim 1, wherein the data to be backed up carries target path information used for acquiring the data to be backed up, and the method further comprises:
judging whether the first path information is matched with the target path information or not;
if not, training based on the path information corresponding to the data to be backed up as sample data, and storing the search path information generated after training into the preset database.
5. The method of claim 4, wherein the data to be backed up carries backup parameter information, and the backup parameter information includes: at least one item of target path information, memory occupation information and data type information;
The determining the backup rule of the data to be backed up comprises the following steps:
and determining the backup rule of the data to be backed up according to the backup parameter information.
6. A data backup apparatus, the apparatus comprising:
the information determining module is used for monitoring a preset program process and determining backup information corresponding to the preset program process;
the data acquisition module is used for determining search path information of data to be backed up corresponding to the backup information based on the backup information and acquiring the data to be backed up based on the search path information;
the data processing module is used for determining the backup rule of the data to be backed up and carrying out backup processing on the data to be backed up based on the backup rule;
the data acquisition module includes:
the searching unit is used for searching first path information corresponding to the backup information from a preset database;
the analysis unit is used for analyzing the backup information and acquiring keywords corresponding to analysis results if the data to be backed up are not acquired according to the first path information;
the path generation unit is used for generating second path information by combining the keywords with path keywords in a preset program process and process update time;
And the path determining unit is used for determining the second path information as search path information of the data to be backed up.
7. A data backup system, comprising: a management node, a memory, and at least one server, wherein:
the server is used for monitoring a preset program process, determining backup information corresponding to the preset program process and sending the backup information to the management node;
the management node is used for determining search path information of data to be backed up corresponding to the backup information based on the received backup information, and returning the search path information to the server;
the server acquires data to be backed up based on the search path information, and returns backup parameter information of the data to be backed up to the management node;
the management node determines a backup rule of the data to be backed up based on the backup parameter information and sends the backup rule to the server based on the backup rule;
the server stores the data to be backed up into a memory based on the backup rule;
the management node is specifically configured to:
searching first path information corresponding to the backup information from a preset database;
If the data to be backed up is not obtained according to the first path information, analyzing the backup information, and obtaining keywords corresponding to analysis results;
generating second path information by the keywords, path keywords in a preset program process and process update time;
and determining the second path information as search path information of the data to be backed up.
8. A computer device comprising a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete communication with each other through a bus; the memory is used for storing a computer program; the processor is configured to execute a program stored in the memory, and implement the steps of the data backup method according to any one of claims 1 to 6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the data backup method according to any of claims 1-6.
CN201911304021.1A 2019-12-17 2019-12-17 Data backup method, device, system and computer equipment Active CN112988457B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911304021.1A CN112988457B (en) 2019-12-17 2019-12-17 Data backup method, device, system and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911304021.1A CN112988457B (en) 2019-12-17 2019-12-17 Data backup method, device, system and computer equipment

Publications (2)

Publication Number Publication Date
CN112988457A CN112988457A (en) 2021-06-18
CN112988457B true CN112988457B (en) 2023-04-25

Family

ID=76342418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911304021.1A Active CN112988457B (en) 2019-12-17 2019-12-17 Data backup method, device, system and computer equipment

Country Status (1)

Country Link
CN (1) CN112988457B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122260A (en) * 2017-04-18 2017-09-01 北京思特奇信息技术股份有限公司 A kind of data back up method and device
CN109862623A (en) * 2019-02-19 2019-06-07 苏州开心盒子软件有限公司 Wireless backup method, apparatus, equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103389925B (en) * 2012-05-09 2016-01-20 南京壹进制信息技术有限公司 A kind of real time backup method based on process name identification
CN103412801B (en) * 2013-08-09 2016-08-10 厦门天锐科技股份有限公司 The method carrying out file backup based on progress recognizing file
CN103500116A (en) * 2013-10-29 2014-01-08 中科创达软件股份有限公司 Method and system for clearing data generated by application program
US9842027B1 (en) * 2013-12-27 2017-12-12 EMC IP Holding Company LLC Intelligent application optimized backups
CN105302832A (en) * 2014-07-24 2016-02-03 中兴通讯股份有限公司 File management method and apparatus
US10824514B2 (en) * 2018-02-16 2020-11-03 Wipro Limited Method and system of automating data backup in hybrid cloud and data centre (DC) environment
CN108762979B (en) * 2018-04-17 2021-08-10 厦门市美亚柏科信息股份有限公司 Terminal information backup method and backup device based on matching tree
CN109669813A (en) * 2018-12-05 2019-04-23 深圳软牛科技有限公司 A kind of the incremental backup restoring method and device of iOS data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122260A (en) * 2017-04-18 2017-09-01 北京思特奇信息技术股份有限公司 A kind of data back up method and device
CN109862623A (en) * 2019-02-19 2019-06-07 苏州开心盒子软件有限公司 Wireless backup method, apparatus, equipment and storage medium

Also Published As

Publication number Publication date
CN112988457A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN106897334B (en) Question pushing method and equipment
CN107317724B (en) Data acquisition system and method based on cloud computing technology
CN110099059B (en) Domain name identification method and device and storage medium
CN111639101B (en) Method, device and system for correlating rule engine system of internet of things and storage medium
US10949765B2 (en) Automated inference of evidence from log information
US20170199889A1 (en) Method and device for identifying junk picture files
JP6282217B2 (en) Anti-malware system and anti-malware method
CN112347192A (en) Data synchronization method, device, platform and readable medium
CN110245059B (en) Data processing method, device and storage medium
CN107871055B (en) Data analysis method and device
CN113918438A (en) Method and device for detecting server abnormality, server and storage medium
CN112328363B (en) Cloud hard disk mounting method and device
CN110442439B (en) Task process processing method and device and computer equipment
CN113849820A (en) Vulnerability detection method and device
CN110928636A (en) Virtual machine live migration method, device and equipment
CN112988457B (en) Data backup method, device, system and computer equipment
CN109101595B (en) Information query method, device, equipment and computer readable storage medium
US20150347402A1 (en) System and method for enabling a client system to generate file system operations on a file system data set using a virtual namespace
CN113688240B (en) Threat element extraction method, threat element extraction device, threat element extraction equipment and storage medium
CN114330278A (en) Method and equipment for judging consistency of returned data
US11599544B2 (en) Primary tagging in a data stream
CN112988441A (en) Exception handling method and device
JP2018081403A (en) Incident management system, incident management method and computer program
CN113051329B (en) Data acquisition method, device, equipment and storage medium based on interface
CN108052654A (en) Data extraction method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant