CN101996108A - Distributed environment backup and recovery method and system - Google Patents

Distributed environment backup and recovery method and system Download PDF

Info

Publication number
CN101996108A
CN101996108A CN2009101656958A CN200910165695A CN101996108A CN 101996108 A CN101996108 A CN 101996108A CN 2009101656958 A CN2009101656958 A CN 2009101656958A CN 200910165695 A CN200910165695 A CN 200910165695A CN 101996108 A CN101996108 A CN 101996108A
Authority
CN
China
Prior art keywords
environment
backup
node
file
recovery
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.)
Granted
Application number
CN2009101656958A
Other languages
Chinese (zh)
Other versions
CN101996108B (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.)
Chongqing Ouke Dab Technology Co ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 200910165695 priority Critical patent/CN101996108B/en
Publication of CN101996108A publication Critical patent/CN101996108A/en
Application granted granted Critical
Publication of CN101996108B publication Critical patent/CN101996108B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a distributed environment backup and recovery method and a distributed environment backup and recovery system. The system comprises a system management platform and a first node, a second node and a third node which are provided with distributed platforms, wherein the node has a platform agent unit, a configuration file automatic generation module and a version control module; the second node has a program running environment; and the third node has an environmental file storage. When the system is used for backup and recovery operation, a version control principle and a distributed environment are combined, so the automatic operation and maintenance of the backup and recovery of the distributed environment can be realized and the human problems and unknown conditions in an environment backup process can be reduced to a minimum degree.

Description

A kind of backup of distributed environment and restoration methods and system thereof
Technical field
The present invention relates to the computer automated testing field, be specifically related to a kind of backup and restoration methods and system thereof of distributed environment.
Background technology
Software industry distribution formula environment is very general at present, and promptly a project operation environment does not just operate on the machine, but operates in above many machines.Objectively, this just causes various communication protocol coexistences, network architecture complexity.Simultaneously, with regard to the value-added telecom services software industry (hereinafter to be referred as the industry), such environment also possesses following characteristic mostly:
1, it is more that entire environment is installed artificial participation configuration, and a certain process of operation just can start the operation of total system after the installation.
2, repeat to install same class environment, operate similar substantially.
3, installation process is little to the dependence of local system, is about to be installed in an environment on the machine and copies to the operation of getting on of another machine, as long as carry out the necessary parameter configuration, can normally move.
4, relate to the environment of database, only need be on mounted database Run Script, and the relevant parameter of configuration database gets final product.
At above-mentioned environmental characteristic, can find that such environment can transplant.Yet, at present the environmental operations personnel that the industry is relevant (comprise tester, developer or with clothes support staff) are manual carry out environment backup and recoveries, under the situation of and circumstance complication various at Item version, the artificial workload that environment is safeguarded is bigger, and the risk that exists also is clearly: or be that environment is got wrong and mixed up, perhaps file is deleted or the like reason by mistake, all may cause the environmental disutility that is backed up, can't carry out recovery operation, all that has been achieved is spoiled.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of backup and restoration methods and system thereof of distributed environment, and Version Control Principle and distributed environment are organically combined, and realizes automation mechanized operation and maintenance are carried out in the backup and the recovery of distributed environment.
In order to solve the problems of the technologies described above, the invention provides a kind of backup method of distributed environment, the system that is applied to comprise system management table and first node, Section Point and the 3rd node of distributed platform are installed, described first node has the platform agent function, described Section Point has the project operation environment, described the 3rd node has the environment file warehouse, and this backup method comprises:
After described first node starts backup according to the request of system management table, according to the configuration information of environment backup transmission environment backup instruction and backup procedure information to described Section Point and described the 3rd node;
After described Section Point was received described environment backup instruction, the content that inspection will be backed up as not unusual, then began to carry out environment backup separately, and generates backup file; According to described backup procedure information described backup file is sent to described the 3rd node then,
Described the 3rd node is preserved described backup file according to described backup procedure information.
Further, above-mentioned backup method also can have following characteristics:
After described Section Point generates backup file, send backup to described first node earlier and finish information;
After described first node receives that information is finished in backup, mutual with the 3rd node, judge whether the environment file warehouse of the 3rd node has preserved the spare part file of described Section Point project operation environment,, notify Section Point then if the version information of definite this backup file of having preserved is again arranged;
After described Section Point is notified,, more described backup file is sent to described the 3rd node for after the described backup file of this time generation adds corresponding version flag.
Further, above-mentioned backup method also can have following characteristics:
The configuration information of described environment backup is kept in the environment backed-up config file with the XML file layout, and described environment backed-up config file is the existing environment backed-up config file of described first node loading or the new environment backed-up config file that generates according to the configuration data that system management table sends.
Further, above-mentioned backup method also can have following characteristics:
In described backup procedure, if occur unusually, then described distributed platform is caught described unusual, and the daily record of will being correlated with behind the operation scene snapshot is fed back to described system management table.
The present invention also provides a kind of restoration methods of distributional environment, the system that is applied to comprise system management table and first node, Section Point and the 3rd node of distributed platform are installed, described first node has the platform agent function, described Section Point has the project operation environment, described the 3rd node has the environment file warehouse, described environment file warehouse has the environment version file, and this restoration methods comprises:
System management table sends recovery request to described first node after extracting the configuration information that described environment version file and configuration surroundings recover;
After described first node is received request, send connection request and recover procedure information to described the 3rd node according to the configuration information of described environment recovery;
Behind request of receiving of described the 3rd node and the recovery procedure information, the content that inspection will recover as not unusual, is not then recovered according to the Section Point of described recovery procedure information to appointment in the described recovery procedure information.
Further, above-mentioned restoration methods also can have following characteristics:
The configuration information of described environment recovery is kept in the environment recovery configuration file with the XML file layout, and described environment recovery configuration file is the existing environment recovery configuring file of described first node loading or the new environment recovery configuration file that generates according to the configuration data that system management table sends.
Further, above-mentioned restoration methods also can have following characteristics:
In described rejuvenation, if occur unusually, then described distributed platform is caught described unusual, and the daily record of will being correlated with behind the operation scene snapshot is fed back to described system management table.
The present invention also provides a kind of standby system of distributed environment, comprise system management table and first node, Section Point and the 3rd node that distributed platform is installed, described first node has the platform agent function, described Section Point has the project operation environment, described the 3rd node has the environment file warehouse, wherein
Described system management table is used for the configuration information of configuration surroundings backup, and sends backup request to described first node;
After described first node is used for starting backup according to the backup request of described system management table, send environment backup instruction and backup procedure information to described Section Point and described the 3rd node according to the configuration information of described environment backup;
After described Section Point was received described environment backup instruction, the content that inspection will be backed up as not unusual, then began to carry out environment backup separately, and the backup file that generates is sent to described the 3rd node;
Described the 3rd node is used for according to the described backup file of described backup flow process message pick-up, and preserves described backup file.
Further, above-mentioned standby system also can have following characteristics: described first node comprises platform agent unit, configuration file automatically-generating module and Version Control module,
Described platform agent unit is used to respond the backup request of described system management table, described backup request is sent to described configuration file automatically-generating module and described Version Control module, and return the process information of described configuration file automatically-generating module and described Version Control module;
The configuration information that the environment that described configuration file automatically-generating module is used for that described system management table is disposed backs up is with XML file layout build environment backed-up config file;
Described Version Control module is used to read described environment backed-up config file, and environment backup instruction in the described environment backed-up config file and backup procedure information are sent to described Section Point and described the 3rd node by described platform agent unit.
Further, above-mentioned standby system also can have following characteristics:
Described Version Control module also is used for after described Section Point backup is finished, mutual by described platform agent unit and described the 3rd node, judge whether the environment file warehouse of the 3rd node has preserved the spare part file of described Section Point project operation environment, if the version information of determining this backup file of having preserved is arranged again, again send to described three node for the described backup file of this time generation after adding corresponding version flag by described platform agent unit notice Section Point then.
Further, above-mentioned standby system also can have following characteristics: described distributed platform comprises daily record error tracking module and environment scene snapshot module:
Described daily record error tracking module be used for catching described standby system backup procedure occur any unusual;
Described environment scene snapshot module is used for writing down the operation scene of described standby system at backup procedure.
The present invention also provides a kind of system of recovery of distributed environment, comprise system management table and first node, Section Point and the 3rd node that distributed platform is installed, described first node has the platform agent function, described Section Point has the project operation environment, described the 3rd node has the environment file warehouse, described environment file warehouse has the environment version file, wherein
System management table is used to extract the configuration information of described environment version file and configuration surroundings recovery, sends recovery request to described first node then;
Described first node be used for according to the recovery request of described system management table start recover after, send connection request and recover procedure information to described the 3rd node according to the configuration information of described environment recovery;
After described the 3rd node was used to receive described connection request and recovers procedure information, the content that inspection will recover as not unusual, was then recovered according to the Section Point of described recovery procedure information to appointment in the described recovery procedure information.
Further, above-mentioned recovery system also can have following characteristics: described first node comprises platform agent unit, configuration file automatically-generating module and Version Control module,
Described platform agent unit is used to respond the recovery request of described system management table, described recovery request is sent to described configuration file automatically-generating module and described Version Control module, and return the process information of described configuration file automatically-generating module and described Version Control module;
Described configuration file automatically-generating module with the configuration information of the environment recovery of described system management table configuration with XML file layout build environment recovery configuring file;
Described Version Control module is used to read described environment recovery configuration file, and described environment recovery configuration file is sent to described the 3rd node by described platform agent unit.
Further, above-mentioned recovery system also can have following characteristics: described distributed platform comprises daily record error tracking module and environment scene snapshot module,
Described daily record error tracking module be used for catching described recovery system rejuvenation occur any unusual;
Described environment scene snapshot module is used for writing down the operation scene of described recovery system in rejuvenation.
In sum, the backup of distributed environment provided by the invention and restoration methods and system thereof, Version Control Principle and distributed environment are organically combined, can realize the backup of distributed environment and the automation mechanized operation and the maintenance of recovery, can drop to artificial problem in the environment backup procedure and unknown situation minimum.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the backup of distributed environment of the embodiment of the invention and the synoptic diagram of recovery system;
Fig. 2 is the process flow diagram of backup method of the distributed environment of the embodiment of the invention;
Fig. 3 is the process flow diagram of restoration methods of the distributed environment of the embodiment of the invention.
Embodiment
Key of the present invention is Version Control Principle and distributed environment are organically combined, and proposes a kind of environment backup and the method for recovering of suitable value-added telecom services software industry environment, realizes backup and recovery automation mechanized operation and maintenance to distributed environment.Probably introduce Version Control Principle below:
Be widely used at present in the version management of the source code in the project exploitation, because in the exploitation of many people project, following situation may occur:
1, the developer repeatedly submits source code in different places, can increase file, also may updating file or deleted file, how do the other staff of so same project team know this variation? at this moment, by submitting to source code in version repository, allow others get and get final product.
2, same file is made amendment as different developers, be submitted in the version repository again, this file has just been revised by two people like this, when that second people submits to, can find that file has not been the state before the himself revises in the existing edition storehouse, at this moment version control system can not allow second people submit success to, but the file that requires second people to take out earlier in the version storehouse merges in this locality, and then when submitting to, just no longer only be to cover original in the version repository, and this file has been distinguished with different version numbers.
3, concurrent the carrying out of project different editions exploitation submitted to when frequent, and manually the management to version becomes very difficult.
The general user just can get up-to-date version by upgrading (update) order when getting version, but also can get the version of historical a certain particular version number.
All details relevant with version change all are responsible for by version control tool, and the change of the artificial participation of strict restriction internal release is handled, and is used for replacing the mechanism of labor management version in the Version Control Principle that Here it is.
Yet, difficulty as artificial version management also can appear in backup of the environment of distributed environment and rejuvenation, so just this Version Control Principle can be applied in the processing of distributed environment (be equivalent to each machine is exactly a developer in the distributed environment), promptly replace the backup (being equivalent to submit to version) of artificial treatment project environment and recover on (being equivalent to get version) by Version Control mechanism.In addition, because version control system itself can not be handled distributed environment, so, must there be a distributed platform to organically combine with it.
Below in conjunction with drawings and Examples technical scheme of the present invention is described in detail.
Fig. 1 is the backup of distributed environment of the embodiment of the invention and the synoptic diagram of recovery system, as shown in Figure 1, the backup of the distributed environment of the embodiment of the invention and recovery system comprise: system management table, the first node that distributed platform is installed, Section Point and the 3rd node.Have platform agent unit, configuration file automatically-generating module and Version Control module on the first node, Section Point has the project operation environment, and the 3rd node has the environment file warehouse.System management table communicates with the platform agent unit, can be positioned on the first node at place, platform agent unit, and the user can link system management table by browser.Each node also comprises actuator and routine inspection module separately.
Backup and recovery system to the distributed environment of present embodiment is elaborated below.
Because the backup of distributed environment and recovery need many machines (promptly, node) participation and coordination, but still there is bigger difference in the system software of different machines itself at present, may cause mutually the difficulty that intercoms, coordinates, so uniform platform of needs is come the difference between the balance different machines system, this task promptly is responsible for processing by distributed platform, so in the process of environment backup and recovery, every machine will be installed distributed platform software in advance, just can equality intercom mutually between each machine like this.This distributed platform exist for environment backup and recovery provides uniform platform and accordant interface, can be responsible for handling the bottom funtion part that all need computer assisted procedure, artificial problem in environment backup and the rejuvenation can be reached unknown situation and drops to minimum simultaneously.The function of distributed platform is the abstract processing that has realized all general character functions of distributed environment, and supports developing plug and service extension so that further perfect.The bottom function of distributed platform support comprises: file system operation, file transfer, Process Tracking, daily record error tracking and environment scene snapshot etc.
In environment backup and rejuvenation, relevant tracking module in the distributed platform, comprising that Process Tracking module, daily record error tracking module and environment scene snapshot module etc. are started by the platform acquiescence comes various case in real-time follow-up backup and the rejuvenation.If any problem appears in backup and rejuvenation, all catch by daily record error tracking module, distributed platform will suspend the execution of actuator and environment will be carried out the scene snapshot, then by platform agent server feedback error log information to turnkey console, wait for that the related personnel handles.After finishing dealing with, can carry out scene by distributed platform and recover, continue to finish back up or restore work.
The environment scene snapshot module is used for writing down each time point of total system backup and rejuvenation.When appearance was unusual or wrong, the environment scene snapshot module can write down total system operation scene.When restoration scenario, the state that can return to the scene time point is to continue recovery.
System management table is a web interface, is total system and environmental operations personnel's man-machine interface.System management table links to each other with the platform agent unit, on any machine that browser is housed that can be in distributed environment, also can go as long as can connect in the distributed environment network not in distributed environment, gets final product.System management table provides environment backup and the operation that recovers, to the state of total system monitor, functions such as journal displaying and error tracking processing.Can the environment configurations file (comprising environment backed-up config file and environment recovery configuration file) that generate can be saved as template (being positioned on the machine of place, platform agent unit) so that use next time in operation on the system management table.Can directly carry out template and load when using next time, to improve the efficient of build environment configuration file.Can carry out following operation on the turnkey console: can the loading environment profile template, the environment vncsion history can be inquired about, can plan whole back up or restore process, can carry out log tracks, can suspend the backup environment process, can suspend and recover the environment process, can carry out the environment scene snapshot, can continue the operation of environment back up or restore, can carry out error tracking and location etc. fast on turnkey console.
Distributed platform agency (being the platform agent unit), configuration file automatically-generating module and Version Control module are installed on first node.
The platform agent unit is used for realizing a C/S (Client/Server on distributed platform, be client/server) framework, be equivalent to service end, a middleware as distributed platform and system management table, be responsible for the request of handles system management platform, this request is sent to distributed platform, and return the result of request.
In environment backup and rejuvenation, the configuration file automatically-generating module is used for Backup Data or restore data build environment backed-up config file or environment recovery configuration file.
Environment backed-up config file and environment recovery configuration file belong to DSL (specific area language) category, are to adopt the XML language format to describe the details of all nodes (machine) in the entire environment according to the requirement of environment backup and environment recovery.Use relevant XML instruction, control the deployment and the concrete back up or restore process of environment of every machine.Adopt the XML file as environment backed-up config file and environment recovery configuration file, have in this environment backed-up config file and environment recovery configuration file and environment backup or the relevant instruction of environment recovery, these instructions specifically are to be responsible for interpretation process and execution by the Version Control module.
Because the opening of XML file and standardization, configuration file automatically-generating module are responsible for finishing the automatic generation of environmental structure configuration file according to XML syntax rule and environmental requirement.Simultaneously, the configuration file automatically-generating module also possesses configuration file self-verifying function, and possesses error correction.
The environment back up or restore configuration file that the native system that the configuration file automatically-generating module is generated need be used can only be the XML file layout.
With regard to backup, the concrete configuration process of backup configuration data is as follows:
The environment that operating personnel will back up by system management table planning comprises: IP address, the source directory and the file that need back up on each machine of environment file warehouse location, each machine that will use and need detailed configuration information of backup database or the like.After the system management table deploy is finished, can start the configuration file automatically-generating module by XML file layout build environment backed-up config file, the environment backed-up config file of this generation is kept on place, the platform agent unit machine (that is first node) automatically.
With regard to recovery, the concrete configuration process of recovery configuring data is as follows:
Because rejuvenation is the inverse process of backup procedure, the XML fileinfo of backup environment (also can be described as the environment version file so operating personnel are as long as read by system management table, this document has comprised the position in environment file warehouse), plan the environment that will recover then, comprising: need return to the target directory on each machine and need the detailed configuration information in data recovered storehouse or the like.After the system management table deployment is finished, can start the configuration file automatically-generating module by XML file layout build environment recovery configuring file, the environment recovery configuration file of this generation is kept on the machine of platform agent place automatically.
The configuration file generation module is positioned on the machine of place, platform agent unit, when the platform agent unit sends the solicited message that generates configuration file, generate corresponding configuration file according to solicited message in system management table by platform agent unit requests configuration file generation module.
The Version Control module is used for the checking in of response platform agent unit, detect with update request etc., reads the environment backed-up config file or the recovery configuring file that are generated by the configuration file automatically-generating module, explains that the XML in this configuration file instructs.
In the environment backup procedure, the Version Control module reads the environment backed-up config file according to the configuration information of environment backup transmission environment backup instruction and the backup procedure information to Section Point and the 3rd node, Section Point is finished backup and will be generated backup file according to the backup procedure information and sends to the 3rd node then, and the 3rd node is preserved backup file according to the backup procedure information.Wherein, after the Section Point backup is finished, the Version Control module also is used for by described platform agent unit and described the 3rd node mutual, read the fileinfo in the environment file warehouse of the 3rd node, and judge whether the environment file warehouse has preserved the spare part file of Section Point project operation environment, promptly judge the spare part file that whether has the spare part file same file name that generates with Section Point in the fileinfo, if have, determine the version information of this backup file preserved again, notifying Section Point then is that the backup file of this time generation adds corresponding version flag; Section Point sends to the 3rd node according to backing up the backup file of procedure information with this interpolation version flag more then.
In the environment recovery process, the Version Control module read environment recovery configuring file according to the configuration information of environment recovery to the transmission connection request of the 3rd node and recover procedure information, the 3rd node recovers the Section Point that recovers appointment in the procedure information according to recovering procedure information then.
The Version Control module specifically has following function in native system: realized version control function, can carry out the control and the tracking of environment version based on Version Control Principle to distributed environment; Can safeguard the environment file warehouse automatically; Inquiry that can the execution environment version objects, check in, detect, upgrade and conflict and handle etc.
Above-mentioned environment version is meant to be treated all environment of a project as a version, can be by the information entity of Version Control module operation.The difference of environment version of mentioning here and the baseline version usually submitted to the developer is: the baseline version that the developer submits to (is exactly to be submitted to the version of version machine to tester's test, be baseline version) just be used to carry out the source code processing, and can only be in version warehouse and two machinery compartments transmission of developer place machine; And the environment version of mentioning in the present embodiment is meant a project environment that can normally move, and comprises executable file in many machines, static file and database relevant information or the like all data necessary.
The Version Control module is positioned on the first node, can carry out with plug-in unit mode and platform agent integrated, response platform agency's Version Control request.
Installation environment file repository on the 3rd node, and startup monitor process, monitor the connection request that actuator is sent exactly, back up the connection request that ready back first node is sent such as Section Point in the backup procedure, be used to notify the environment file warehouse, the Section Point backup is ready can carry out the environment backup operation, so just can allow Section Point and the 3rd node communicate, and environment is backuped in the environment file warehouse go again.
The environment file warehouse is used for centralized management, preservation and the maintenance to backup file.The maintenance in environment file warehouse can't help manually to participate in, forbid that human factor participates in the warehouse file in the environment file warehouse is carried out any modification, the warehouse file is operated by the actuator of its place distributed platform in strict accordance with the function that the Version Control module provides.
On the operating mechanism in environment file warehouse, the environment file warehouse can start a service, opens port, accepts the connection of actuator, accepts the instruction that actuator transmits, and the warehouse environment file is operated accordingly.
In distributed environment, if carry out environment backup or recovery, then all nodes all must become a member in the distributed environment, and are furnished with actuator.The effect of actuator have following some: realize the related protocol in the distributed environment, be used for communicating with other machine; Carry out home environment backup operation or recovery operation by system's global configuration requirement (i.e. the process platform agent unit that sends by the Version Control module pass to actuator order); Start and to need module (, hereinafter will illustrate) or other executable file of carrying out in the environment such as the routine inspection module.
Usually, all be furnished with the routine inspection module on all nodes in distributed environment, the routine inspection module is used for backup and all checkpoints of rejuvenation are checked, is used to guarantee system backup or recovers successfully.There is following situation the checkpoint:
Carry out following inspection when 1) environment backs up:
Check hardware and system environments; Check local current running environment state, i.e. the node environment running status at routine inspection module place; Check database situation with environmental correclation; Check connectedness with related other node of home environment.
2) carry out following inspection during environment recovery:
Check the hardware and the system environments of destination node; Check the directory permission of recovering target; Check the database environment that recovers target; Inspection will with other the connectedness of node of recovering target association.
The routine inspection module checks the checkpoint, if do not pass through, then suspends the environment back up or restore by distributed platform, and returns log information by daily record error tracking module etc. and give the platform agent unit, finally shows on system management table, waits pending.
Describe the backup method of the distributed environment of the embodiment of the invention below in detail.
Fig. 2 is the process flow diagram of backup method of the distributed environment of the embodiment of the invention.As shown in Figure 2, the backup method of the distributed environment of the embodiment of the invention comprises following step:
Step S201 disposes and the operation distributed environment;
Distributed platform software all is installed on all machines (being also referred to as node) is formed distributed environment, make between each node and can intercom mutually coequally.
Deployment has the first node of platform agent, the distributed platform agent software is installed as first node on the machine in the reality in distributed environment, a middleware as distributed platform and system management table, be responsible for the request of handles system management platform, this request is sent to each distributed platform and returns response.On first node, also dispose automatically-generating module mentioned above and Version Control module.
Deployment system turnkey console, system management table are web interfaces, link to each other with platform agent, so system management table can be in distributed environment any one is equipped with on the machine of browser, also can not in distributed environment, go, get final product as long as can connect in the distributed environment network.Can be on the machine that the distributed platform agent software is installed installation system turnkey console program, be used on network, whole distributed environment being controlled, distributed environment installed carry out initial configuration, the situation of distributed environment robotization backup and recovering process and the operation of other distributed environment is monitored or the like operation.
Deployment has the 3rd node in environment file warehouse, in the reality on other a certain machine the installation environment file repository, be used for managing concentratedly, preserving and safeguarding to backup file.Except that first node and the 3rd node, other node is called Section Point.
Bring into operation after disposing distributed environment.
Step S202 sends the request of build environment backed-up config file to first node behind the configuration information of system management table configuration surroundings backup;
The configuration information of environment backup configuration surroundings backup on system management table, for example configuration surroundings file server IP address and path; Configuration need be carried out all clients of environment backup, comprises IP address, path catalogue etc.; Information such as which storehouse, tables of data or table space are backed up in the configuration database address.After configuration was finished, system management table sent the request of build environment backed-up config file to the platform agent unit of first node.
Automatic build environment backed-up config file after step S203, first node accept request;
Start the configuration file automatically-generating module after the generation backed-up config file request that platform agent cell response system management table in the first node is sent, and the request of described generation backed-up config file is sent to the configuration file automatically-generating module;
The configuration file automatically-generating module receives after the request of described generation backed-up config file that configuration information with the environment backup of system management table configuration is by XML file layout build environment backed-up config file, the environment backed-up config file that is generated is stored in the first node, also the environment backed-up config file that generates can be stored as template for future use, return then and generate successful information to the platform agent unit;
If on system management table, carried out historical operation, the template of ready-made environment backed-up config file is arranged in first node, then can on system management table, directly load the existing environment backed-up config file, to save the time of configuration.
The platform agent unit will generate successful information and send to system management table then, and system management table sends the backup environment request to the platform agent unit after receiving and generating successful information.
After step S204, first node receive the request of backup environment, begin to carry out the environment backup;
Start the Version Control module after the backup environment request that platform agent cell response system management table is sent, and described backup environment request is sent to the Version Control module;
The Version Control module reads the environment backed-up config file after receiving described backup environment request, according to the configuration information of described environment backup transmission environment backup instruction and the backup procedure information to Section Point and the 3rd node, backup flow process packets of information is drawn together the operation that will carry out and the content of backup.
Step S205, Section Point handle by procedure information after receiving environment backup instruction and backup procedure information, file, catalogue and database or the like related procedure information is checked, whether the content that judgement will be backed up has unusually, if having unusually, then enters step S211; If no abnormal, then carry out step S206.
Step S206, Section Point returns normal state information to the platform agent unit of first node, and the environment that begins then to carry out separately backs up, and comprises database backup information or the like, generates backup file and also stores.
Step S207 after the Section Point backup operation is finished, sends backup to first node and finishes information; After first node received that information is finished in backup that Section Point is sent, the Version Control module of first node read the information in the environment file warehouse in the backed-up config file, and sent connection request to the 3rd node; The routine inspection module that promptly starts wherein of the actuator of the 3rd node is carried out connectivity checks to Section Point then, also database is checked, if unusual, then enter step S211; Unusually then enter step S208 if occur.
Step S208, Section Point send to the backup file in the Section Point according to the backup procedure information environment file warehouse of the 3rd node.
In backup phase, the version control module reads the listed files of environment file repository earlier by the platform agent unit, judges whether the environment file warehouse of the 3rd node has preserved the spare part file of Section Point project operation environment; If had the backup file version before, the version control module will judge whether this backup and preceding once backup have the file conflict, for example, before the judgement once the filename of the backup file of backup whether the filename with the backup file of this backup identical, if it is identical, then the version information of definite this backup file of having preserved is notified Section Point then; After Section Point is notified, for the backup file of this time generation adds corresponding version flag, such as on filename, adding a zone bit, to show difference, again described backup file is sent to described the 3rd node, the version control and the following function of version control module that Here it is.If there was not the environment backup before, then the actuator on the 3rd node can directly pass to backup file in the environment file warehouse and go.
Step S209 writes environment backup warehouse with backup file behind the backup file that the environment file warehouse is sent according to backup flow process message pick-up Section Point.
Step S210, after backup was finished, the platform agent unit in the first node returned the backup success message to system management table.
Step S211, distributed platform carries out abnormality processing, and this abnormality processing specifically comprises: the platform agent unit in first node is returned error message; carry out the scene snapshot; suspend the environment backup process, and the daily record of will being correlated with turns back to system management table etc., wait pending then.
Any problem that runs in above-mentioned backup procedure occurs any unusual in other words, all will be distributed the formula platform and catch, and is undertaken by the abnormality processing flow process, suspends backup operation then, and the daily record of will being correlated with feeds back to system management table, waits pending; After disposing, recover the backup flow process again.
Whole backup procedure can monitor in system management table, the platform agent of first node is exported all process log informations on system management table, like this backup method of the distributed environment of present embodiment also can implementation mistake follow the tracks of, the function of location etc. fast.
Can realize dropping to artificial problem in the environment backup procedure and unknown situation minimum the automation mechanized operation and the maintenance of the backup of distributed environment according to the backup method of the distributed environment of present embodiment.
Describe the restoration methods of the distributed environment of the embodiment of the invention below in detail.
Fig. 3 is the restoration methods process flow diagram of the distributed environment of the embodiment of the invention.Before environment recovery, there has been the whole distributed environment in the environment backup procedure and in the environment file warehouse, had the environment version file of environment backup file information.As shown in Figure 3, the restoration methods of the distributed environment of present embodiment comprises following step:
Step S301 behind the configuration information that configuration surroundings on the system management table recovers, sends the request of build environment recovery configuring file to first node;
The environment backup extracts the environment version file of the environment backup file information that has disposed on system management table, configuration need be carried out the Section Point of environment recovery then, comprises the IP address, path catalogue of each Section Point etc.; Which storehouse, tables of data or table space are recovered in the configuration database address; Configuration will be carried out details such as which recovery operation.
On system management table during the configuration restore procedure information, the Version Control module will read the environment version information in the environment file repository, if there are a plurality of environment versions to exist, then the Version Control module can show the information of a plurality of environment versions on system management table, allows the user select to recover which version.
After configuration is finished, can send the request of build environment recovery configuring file to the platform agent unit of first node.
After step S302, first node should ask automatic build environment recovery configuring file, system management table sent the request that recovers environment to first node;
Start the configuration file automatically-generating module after the generation recovery configuring file request that platform agent cell response system management table is sent, and described generation recovery configuring file request is sent to the configuration file automatically-generating module;
The configuration file automatically-generating module receives after the described generation recovery configuring file request that configuration information with the environment recovery of system management table configuration with XML file layout build environment recovery configuring file, returns then and generates successful information to the platform agent unit;
The platform agent unit sends to system management table with the successful information of described generation, and system management table sends the recovery context request to the platform agent unit after receiving and generating successful information.
Among above-mentioned steps S301 and the S302,, there have been a plurality of environment version files in the environment file warehouse if total system exists.As want to return to certain historical baseline, then on system management table, need only the IP address and the path of configuration surroundings file repository, directly obtaining old version information in the environment file warehouse to the platform agent unit requests of first node on the system management table then, at this moment the platform agent unit can send order obtaining old version information to the environment file warehouse, and returns to system management table.After system management table gets access to old version information, promptly can ask the platform agent unit to generate corresponding environment recovery configuration file.
If on the system management table historical recovery operation record was arranged, existing ready-made environment recovery configuration file then can directly load existing environment recovery configuring file, to save setup time on system management table.
Step S303, after first node is received the request that recovers environment, read environment recovery configuring file, send connection request and recover procedure information to the environment file warehouse, recover procedure information and comprise the operation that to carry out and the content of recovery according to the configuration information of environment recovery;
Particularly, start the Version Control module after the recovery context request that platform agent cell response system management table is sent, and described recovery context request is sent to the Version Control module;
The Version Control module reads described environment recovery configuration file after receiving described recovery context request, sends connection request and recovers procedure information to the 3rd node according to the configuration information of described environment recovery.
Step S304, after the 3rd node is received connection request, by recovering procedure information each Section Point (i.e. the targeted environment that will recover) is carried out connectivity checks, promptly the routine inspection module in the 3rd node is to recovering target, it is each Section Point, carry out connectivity checks, and also database is checked.Inspection is passed through, and then returns the platform agent unit that normal condition is given first node, execution in step S305; Check and do not pass through, then execution in step S306.
Step S305, the 3rd node send to each Section Point that will recover according to the recovery procedure information with the environment version file and carry out environment recovery.
Step S306, distributed platform carries out abnormality processing, and this abnormality processing specifically comprises: will return error message to the platform agent unit of first node; carry out the scene snapshot; suspend the environment recovery process, the daily record of will being correlated with turns back to system management table etc., waits pending then.
Any problem that runs in above-mentioned rejuvenation occurs any unusual in other words, is undertaken by the abnormality processing flow process, suspends recovery operation then, and the daily record of will being correlated with feeds back to system management table, waits pending; After disposing, recover recovering process again.
Whole rejuvenation can monitor in system management table, all process log informations can be exported in the platform agent unit of first node on system management table, the restoration methods of the distributed environment of present embodiment also can implementation mistake be followed the tracks of and the function of location etc. fast like this.
Can realize dropping to artificial problem in the environment recovery process and unknown situation minimum the automation mechanized operation and the maintenance of the recovery of distributed environment according to the restoration methods of the distributed environment of present embodiment.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (14)

1. the backup method of a distributed environment, the system that is applied to comprise system management table and first node, Section Point and the 3rd node of distributed platform are installed, described first node has the platform agent function, described Section Point has the project operation environment, described the 3rd node has the environment file warehouse, and this backup method comprises:
After described first node starts backup according to the request of system management table, according to the configuration information of environment backup transmission environment backup instruction and backup procedure information to described Section Point and described the 3rd node;
After described Section Point was received described environment backup instruction, the content that inspection will be backed up as not unusual, then began to carry out environment backup separately, and generates backup file; According to described backup procedure information described backup file is sent to described the 3rd node then,
Described the 3rd node is preserved described backup file according to described backup procedure information.
2. backup method as claimed in claim 1 is characterized in that:
After described Section Point generates backup file, send backup to described first node earlier and finish information;
After described first node receives that information is finished in backup, mutual with the 3rd node, judge whether the environment file warehouse of the 3rd node has preserved the spare part file of described Section Point project operation environment,, notify Section Point then if the version information of definite this backup file of having preserved is again arranged;
After described Section Point is notified,, more described backup file is sent to described the 3rd node for after the described backup file of this time generation adds corresponding version flag.
3. backup method as claimed in claim 1 or 2 is characterized in that:
The configuration information of described environment backup is kept in the environment backed-up config file with the XML file layout, and described environment backed-up config file is the existing environment backed-up config file of described first node loading or the new environment backed-up config file that generates according to the configuration data that system management table sends.
4. backup method as claimed in claim 1 or 2 is characterized in that, also comprises,
In described backup procedure, if occur unusually, then described distributed platform is caught described unusual, and the daily record of will being correlated with behind the operation scene snapshot is fed back to described system management table.
5. the restoration methods of a distributional environment, the system that is applied to comprise system management table and first node, Section Point and the 3rd node of distributed platform are installed, described first node has the platform agent function, described Section Point has the project operation environment, described the 3rd node has the environment file warehouse, described environment file warehouse has the environment version file, and this restoration methods comprises:
System management table sends recovery request to described first node after extracting the configuration information that described environment version file and configuration surroundings recover;
After described first node is received request, send connection request and recover procedure information to described the 3rd node according to the configuration information of described environment recovery;
Behind request of receiving of described the 3rd node and the recovery procedure information, the content that inspection will recover as not unusual, is not then recovered according to the Section Point of described recovery procedure information to appointment in the described recovery procedure information.
6. restoration methods as claimed in claim 5 is characterized in that,
The configuration information of described environment recovery is kept in the environment recovery configuration file with the XML file layout, and described environment recovery configuration file is the existing environment recovery configuring file of described first node loading or the new environment recovery configuration file that generates according to the configuration data that system management table sends.
7. as claim 5 or 6 described restoration methods, it is characterized in that,
In described rejuvenation, if occur unusually, then described distributed platform is caught described unusual, and the daily record of will being correlated with behind the operation scene snapshot is fed back to described system management table.
8. the standby system of a distributed environment, comprise system management table and first node, Section Point and the 3rd node that distributed platform is installed, described first node has the platform agent function, described Section Point has the project operation environment, described the 3rd node has the environment file warehouse, wherein
Described system management table is used for the configuration information of configuration surroundings backup, and sends backup request to described first node;
After described first node is used for starting backup according to the backup request of described system management table, send environment backup instruction and backup procedure information to described Section Point and described the 3rd node according to the configuration information of described environment backup;
After described Section Point was received described environment backup instruction, the content that inspection will be backed up as not unusual, then began to carry out environment backup separately, and the backup file that generates is sent to described the 3rd node;
Described the 3rd node is used for according to the described backup file of described backup flow process message pick-up, and preserves described backup file.
9. standby system as claimed in claim 8 is characterized in that, described first node comprises platform agent unit, configuration file automatically-generating module and Version Control module,
Described platform agent unit is used to respond the backup request of described system management table, described backup request is sent to described configuration file automatically-generating module and described Version Control module, and return the process information of described configuration file automatically-generating module and described Version Control module;
The configuration information that the environment that described configuration file automatically-generating module is used for that described system management table is disposed backs up is with XML file layout build environment backed-up config file;
Described Version Control module is used to read described environment backed-up config file, and environment backup instruction in the described environment backed-up config file and backup procedure information are sent to described Section Point and described the 3rd node by described platform agent unit.
10. standby system as claimed in claim 9 is characterized in that,
Described Version Control module also is used for after described Section Point backup is finished, mutual by described platform agent unit and described the 3rd node, judge whether the environment file warehouse of the 3rd node has preserved the spare part file of described Section Point project operation environment, if the version information of definite this backup file of having preserved is again arranged, notify Section Point to add corresponding version flag by described platform agent unit then for the described backup file of this time generation.
11., it is characterized in that described distributed platform comprises daily record error tracking module and environment scene snapshot module as each described standby system of claim 8-10:
Described daily record error tracking module be used for catching described standby system backup procedure occur any unusual;
Described environment scene snapshot module is used for writing down the operation scene of described standby system at backup procedure.
12. the system of the recovery of a distributed environment, comprise system management table and first node, Section Point and the 3rd node that distributed platform is installed, described first node has the platform agent function, described Section Point has the project operation environment, described the 3rd node has the environment file warehouse, described environment file warehouse has the environment version file, wherein
System management table is used to extract the configuration information of described environment version file and configuration surroundings recovery, sends recovery request to described first node then;
Described first node be used for according to the recovery request of described system management table start recover after, send connection request and recover procedure information to described the 3rd node according to the configuration information of described environment recovery;
After described the 3rd node was used to receive described connection request and recovers procedure information, the content that inspection will recover as not unusual, was then recovered according to the Section Point of described recovery procedure information to appointment in the described recovery procedure information.
13. recovery system as claimed in claim 12 is characterized in that, described first node comprises platform agent unit, configuration file automatically-generating module and Version Control module,
Described platform agent unit is used to respond the recovery request of described system management table, described recovery request is sent to described configuration file automatically-generating module and described Version Control module, and return the process information of described configuration file automatically-generating module and described Version Control module;
Described configuration file automatically-generating module with the configuration information of the environment recovery of described system management table configuration with XML file layout build environment recovery configuring file;
Described Version Control module is used to read described environment recovery configuration file, and described environment recovery configuration file is sent to described the 3rd node by described platform agent unit.
14., it is characterized in that described distributed platform comprises daily record error tracking module and environment scene snapshot module as claim 12 or 13 described recovery systems,
Described daily record error tracking module be used for catching described recovery system rejuvenation occur any unusual;
Described environment scene snapshot module is used for writing down the operation scene of described recovery system in rejuvenation.
CN 200910165695 2009-08-18 2009-08-18 Distributed environment backup and recovery method and system Expired - Fee Related CN101996108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910165695 CN101996108B (en) 2009-08-18 2009-08-18 Distributed environment backup and recovery method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910165695 CN101996108B (en) 2009-08-18 2009-08-18 Distributed environment backup and recovery method and system

Publications (2)

Publication Number Publication Date
CN101996108A true CN101996108A (en) 2011-03-30
CN101996108B CN101996108B (en) 2013-05-08

Family

ID=43786291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910165695 Expired - Fee Related CN101996108B (en) 2009-08-18 2009-08-18 Distributed environment backup and recovery method and system

Country Status (1)

Country Link
CN (1) CN101996108B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013091162A1 (en) * 2011-12-19 2013-06-27 华为技术有限公司 Method, device, and system for recovering distributed storage data
CN103198131A (en) * 2013-04-11 2013-07-10 天脉聚源(北京)传媒科技有限公司 Method and system of file management
CN104572339A (en) * 2013-10-17 2015-04-29 捷达世软件(深圳)有限公司 Data backup restoring system and method based on distributed file system
CN107506258A (en) * 2016-06-14 2017-12-22 伊姆西公司 Method and apparatus for data backup
CN107577556A (en) * 2017-08-04 2018-01-12 西安电子科技大学 A kind of data back up method of the domain collaborative multi based on Internet of Things layer architecture
CN108599982A (en) * 2018-03-14 2018-09-28 华为技术有限公司 Data reconstruction method and relevant device
CN108958971A (en) * 2018-06-14 2018-12-07 北京小米移动软件有限公司 Information backup method, device and equipment
WO2019019607A1 (en) * 2017-07-28 2019-01-31 中兴通讯股份有限公司 Data backup method, device and system
CN109388411A (en) * 2018-09-29 2019-02-26 广州鼎甲计算机科技有限公司 Distributed software installation method and system based on text interface
CN110309128A (en) * 2019-07-05 2019-10-08 广东铭太信息科技有限公司 Oracle backup file automatic leading-in device and its implementation, the method that the importing of backup file is carried out using the device
CN110888758A (en) * 2019-11-15 2020-03-17 天津联想协同科技有限公司 File control method, file recovery method, file control device, file recovery device and storage medium
CN111355615A (en) * 2020-03-11 2020-06-30 北京思特奇信息技术股份有限公司 Instruction issuing method and system based on distributed platform
CN111400107A (en) * 2020-04-21 2020-07-10 贵州新致普惠信息技术有限公司 Self-starting recovery system and method for database multi-master cluster
CN111522689A (en) * 2019-02-01 2020-08-11 阿里巴巴集团控股有限公司 Global snapshot method, device, electronic equipment and computer-readable storage medium
CN111752545A (en) * 2020-06-25 2020-10-09 武汉众邦银行股份有限公司 Stream computing method supporting data replay

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6986008B2 (en) * 2003-01-14 2006-01-10 International Business Machines Corporation Backup firmware in a distributed system

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013091162A1 (en) * 2011-12-19 2013-06-27 华为技术有限公司 Method, device, and system for recovering distributed storage data
CN103198131A (en) * 2013-04-11 2013-07-10 天脉聚源(北京)传媒科技有限公司 Method and system of file management
CN104572339A (en) * 2013-10-17 2015-04-29 捷达世软件(深圳)有限公司 Data backup restoring system and method based on distributed file system
CN107506258A (en) * 2016-06-14 2017-12-22 伊姆西公司 Method and apparatus for data backup
US11243845B2 (en) 2016-06-14 2022-02-08 EMC IP Holding Company LLC Method and device for data backup
WO2019019607A1 (en) * 2017-07-28 2019-01-31 中兴通讯股份有限公司 Data backup method, device and system
CN107577556A (en) * 2017-08-04 2018-01-12 西安电子科技大学 A kind of data back up method of the domain collaborative multi based on Internet of Things layer architecture
CN108599982B (en) * 2018-03-14 2021-02-12 华为技术有限公司 Data recovery method and related equipment
CN108599982A (en) * 2018-03-14 2018-09-28 华为技术有限公司 Data reconstruction method and relevant device
CN108958971A (en) * 2018-06-14 2018-12-07 北京小米移动软件有限公司 Information backup method, device and equipment
CN109388411A (en) * 2018-09-29 2019-02-26 广州鼎甲计算机科技有限公司 Distributed software installation method and system based on text interface
CN111522689A (en) * 2019-02-01 2020-08-11 阿里巴巴集团控股有限公司 Global snapshot method, device, electronic equipment and computer-readable storage medium
CN110309128A (en) * 2019-07-05 2019-10-08 广东铭太信息科技有限公司 Oracle backup file automatic leading-in device and its implementation, the method that the importing of backup file is carried out using the device
CN110888758A (en) * 2019-11-15 2020-03-17 天津联想协同科技有限公司 File control method, file recovery method, file control device, file recovery device and storage medium
CN111355615A (en) * 2020-03-11 2020-06-30 北京思特奇信息技术股份有限公司 Instruction issuing method and system based on distributed platform
CN111400107A (en) * 2020-04-21 2020-07-10 贵州新致普惠信息技术有限公司 Self-starting recovery system and method for database multi-master cluster
CN111400107B (en) * 2020-04-21 2023-03-03 贵州新致普惠信息技术有限公司 Self-starting recovery system and method for database multi-master cluster
CN111752545A (en) * 2020-06-25 2020-10-09 武汉众邦银行股份有限公司 Stream computing method supporting data replay
CN111752545B (en) * 2020-06-25 2021-02-26 武汉众邦银行股份有限公司 Stream computing method supporting data replay

Also Published As

Publication number Publication date
CN101996108B (en) 2013-05-08

Similar Documents

Publication Publication Date Title
CN101996108B (en) Distributed environment backup and recovery method and system
US11449330B2 (en) System and method for supporting patching in a multitenant application server environment
JP6748638B2 (en) System and method for supporting patching in a multi-tenant application server environment
CN101789886B (en) Environment setup automation system of distribution type environment and method
CN104679534B (en) System application installation package loading processing method, apparatus and terminal
CN107122270B (en) Method, system and storage medium for replaying job at secondary position of service
US8245216B2 (en) Patch management system
US8037195B2 (en) Method and apparatus for managing components in an IT system
CN1791871B (en) Enterprise console
CN101932999A (en) Automated methods and systems for developing and deploying projects in parallel
CN103635885A (en) Deploying environments for testing by providing instantaneous availability of prebuilt environments
US8924947B2 (en) Direct deployment of static content
Lovrek et al. Improving software maintenance by using agent-based remote maintenance shell
JP4532946B2 (en) Application replacement method and program
US6668271B1 (en) System for distributing, installing and running web applications (agents)
Cisco Using Info Gateways
JP2000003271A (en) Software managing device and computer readable recording medium for recording program
Kannan et al. Managing configuration complexity during deployment and maintenance of SOA solutions
JP2005018463A (en) Simple backup system
CN116775103A (en) Technical center platform system based on cloud native micro-service ecological architecture
CN115297129A (en) Data communication network establishing method and device
KR20100125922A (en) Integration system and method of perforce server and clearquest server
Curtis Pro Oracle GoldenGate for the DBA
Wolf et al. Component Replication based on Failover Units
Allison et al. Oracle Real Application Clusters Installation Guide, 11g Release 1 (11.1) for Microsoft Windows B28251-06

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20170904

Address after: 400015, No. 11, building 2-1, unit 9-10, unity village, No. 3, Yuzhong District, Chongqing

Patentee after: Chongqing OUKE DAB Technology Co.,Ltd.

Address before: 518057 Ministry of justice, Zhongxing building, hi tech Industrial Park, hi tech Industrial Park, Shenzhen, Guangdong, Nanshan District

Patentee before: ZTE Corp.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130508

CF01 Termination of patent right due to non-payment of annual fee