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

Distributed environment backup and recovery method and system Download PDF

Info

Publication number
CN101996108B
CN101996108B CN 200910165695 CN200910165695A CN101996108B CN 101996108 B CN101996108 B CN 101996108B CN 200910165695 CN200910165695 CN 200910165695 CN 200910165695 A CN200910165695 A CN 200910165695A CN 101996108 B CN101996108 B CN 101996108B
Authority
CN
China
Prior art keywords
environment
file
backup
node
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.)
Expired - Fee Related
Application number
CN 200910165695
Other languages
Chinese (zh)
Other versions
CN101996108A (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
The Software Industry distributed environment is very general at present, and namely a project operation environment does not just operate on a machine, but operates in above many machines.Objectively, this just causes various communication protocols to coexist, and the network architecture is complicated.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 whole environment is installed artificial participation configuration, and after installation, a certain process of operation just can start the operation of whole system.
2, repeat to install the same class environment, operate substantially similar.
3, installation process is little to the dependence of local system, is about to be arranged on an environment on machine and copies to the operation of getting on of another machine, as long as carry out necessary parameter configuration, can normally move.
4, relate to the environment of database, only need to be on mounted database Run Script, and the relevant parameter of configuration database gets final product.
For above-mentioned environmental characteristic, can find that such environment can transplant.Yet, the environmental operations personnel that at present industry is relevant (comprise tester, developer or with taking the support staff) are manual carry out environment backup and recoveries, in the situation that Item version is various and circumstance complication, the artificial workload that environment is safeguarded is larger, and the risk that exists is also clearly: or be that environment is got wrong and mixed up, perhaps file is deleted etc. reason by mistake, all may cause the environmental disutility that backs 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 is to provide 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 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 the 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 abnormal, began to carry out environment backup separately, and generates backup file; Then according to described backup procedure information, described backup file is sent to described the 3rd node,
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, first send backup to described first node and complete information;
After described first node receives that information is completed in backup, mutual with the 3rd node, whether the environment file warehouse that judges the 3rd node has preserved the spare part file of described Section Point project operation environment, if the version information of determining again this backup file of having preserved is arranged, then notifies Section Point;
After described Section Point is notified, after the corresponding version flag of described backup file interpolation for this time generation, more described backup file is sent to described the 3rd node.
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 extremely, described distributed platform is caught described extremely, and the daily record of being correlated with after the Run-time scenario 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:
The backward described first node of configuration information that system management table is extracted described environment version file and configuration surroundings recovery sends recovery request;
After described first node was received request, the configuration information that recovers according to described environment sent connection request and recovers procedure information to described the 3rd node;
After the request of receiving of described the 3rd node and recovery procedure information, the content that inspection will recover as not abnormal, is not recovered according to the Section Point of described recovery procedure information to appointment in described recovery procedure information.
Further, above-mentioned restoration methods also can have following characteristics:
The configuration information that described environment recovers is kept in environment recovery configuring file with the XML file layout, and described environment recovery configuring file is the existing environment recovery configuring file of described first node loading or the new environment recovery configuring 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 extremely, described distributed platform is caught described extremely, and the daily record of being correlated with after the Run-time scenario 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 was used for backing up according to the backup request startup of described system management table, the configuration information that backs up according to described environment sent the environment backup instruction and backs up 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 abnormal, 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 receiving described backup file according to described backup procedure information, 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 for responding 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 to 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 configured backs up is with XML file layout build environment backed-up config file;
Described Version Control module is used for reading described environment backed-up config file, and the environment backup instruction in described environment backed-up config file and backup flow process information exchange are crossed described platform agent unit sends to described Section Point and described the 3rd node.
Further, above-mentioned standby system also can have following characteristics:
Described Version Control module also is used for after described Section Point backup is completed, 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, then by sending to again described the 3rd node after the corresponding version flag of described backup file interpolation of described platform agent unit notice Section Point for this time generation.
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 abnormal;
Described environment scene snapshot module is used for recording described standby system at the Run-time scenario of 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 for extracting the configuration information of described environment version file and configuration surroundings recovery, then sends recovery request to described first node;
After described first node started recovery for the recovery request according to described system management table, the configuration information that recovers according to described environment sent connection request and recovery procedure information to described the 3rd node;
After described the 3rd node was used for receiving described connection request and recovers procedure information, the content that inspection will recover as not abnormal, was recovered according to the Section Point of described recovery procedure information to appointment in 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 for responding 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 to 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 configures described system management table recovers is with XML file layout build environment recovery configuring file;
Described Version Control module is used for reading described environment recovery configuring file, and described environment recovery configuring 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 abnormal;
Described environment scene snapshot module is used for recording described recovery system at the Run-time scenario of 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 automation mechanized operation and the maintenance of recovery, can drop to the artificial problem in the environment backup procedure and unknown situation minimum.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Fig. 1 is the backup of distributed environment of the embodiment of the present invention and the schematic diagram of recovery system;
Fig. 2 is the process flow diagram of backup method of the distributed environment of the embodiment of the present invention;
Fig. 3 is the process flow diagram of restoration methods of the distributed environment of the embodiment of the present 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.The below probably introduces Version Control Principle:
Be widely used at present in the version management of the source code in project development, because in many people project development, 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 modified as different developers, be submitted to again in version repository, this file has just been revised by two people like this, when that second people submits to, meeting discovery existing edition storehouse File has not been the state before the himself has revised, at this moment version control system can not allow second people submit to successfully, but the file that requires second people first to take out in edition storehouse merges in this locality, and then when submitting to, be no longer only just to cover original in 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, manually the management of version become 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 processed, and is used for replacing the mechanism of labor management version in Version Control Principle that Here it is.
Yet, difficulty as artificial version management also can appear in the 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 in distributed environment, each machine is exactly a developer), namely 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 processed 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 present invention and the schematic diagram of recovery system, as shown in Figure 1, the backup of the distributed environment of the embodiment of the present 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 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.
The below is elaborated to backup and the recovery system of the distributed environment of the present embodiment.
Due to the backup of distributed environment and recover to need many machines (namely, node) participation and coordination, but still there is larger difference in the system software of different machines itself at present, may cause mutually the difficulty that intercoms, coordinates, so need a unified platform to come difference between balance different machines system, this task namely 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.The existing for environment backup and recover to provide unified platform and accordant interface of this distributed platform, can be responsible for processing the bottom funtion part that all need computer assisted procedure, can with the artificial problem in environment backup and rejuvenation, reach unknown situation and drop 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 distributed platform, comprising that Process Tracking module, daily record error tracking module and environment scene snapshot module etc. are started by the platform acquiescence the various situations that occur in real-time follow-up backup and rejuvenation.If any problem appears in backup and rejuvenation, all caught 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 processes.After finishing dealing with, can carry out scene by distributed platform and recover, continue to complete back up or restore work.
The environment scene snapshot module is used for recording each time point of whole system backup and rejuvenation.When occurring abnormal or wrong the time, the environment scene snapshot module can record the whole system Run-time scenario.When restoration scenario, can return to the state of scene time point to continue recovery.
System management table is a web interface, is whole system and environmental operations personnel's man-machine interface.System management table is connected 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 whole system monitor, the functions such as journal displaying and error tracking processing.Can the environment configurations file (comprising environment backed-up config file and environment recovery configuring file) that generate can be saved as template (being positioned on the machine of place, platform agent unit) in order to use next time in operation on system management table.Can directly carry out template and load when using next time, to improve the efficient of build environment configuration file.Can proceed as follows on turnkey console: can the loading environment profile template, can inquire about the environment vncsion history on turnkey console, 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.
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 to the result of request.
In environment backup and rejuvenation, the configuration file automatically-generating module is used for Backup Data or recovers data build environment backed-up config file or environment recovery configuring file.
Environment backed-up config file and environment recovery configuring file belong to DSL (specific area language) category, are to adopt the XML language format to describe the details of all nodes (machine) in whole environment according to the requirement that environment backup and environment recover.Use relevant XML instruction, control 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 configuring file, have the instruction relevant to environment backup or environment recovery in this environment backed-up config file and environment recovery configuring file, these instructions specifically are responsible for interpretation process and execution by the Version Control module.
Because the opening of XML file and standardization, the configuration file automatically-generating module is responsible for according to XML syntax rule and environmental requirement, completes the automatic generation of environmental structure configuration file.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 generates need to be used can only be the XML file layout.
With regard to backup, the concrete configuration process of backup configuration data is as follows:
Operating personnel plan the environment that will back up by system management table, comprising: IP address, source directory and the file that need to back up on each machine of environment file warehouse location, each machine that will use and need detailed configuration information of backup database etc.After the system management table deploy is completed, 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, 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), then the planning environment that will recover comprises: the detailed configuration information etc. that need to return to the database of target directory on each machine and needs recovery.System management table dispose complete after, can start the configuration file automatically-generating module by XML file layout build environment recovery configuring file, the environment recovery configuring 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 system management table sends the solicited message of generating configuration file to the platform agent unit, generate corresponding configuration file by platform agent unit requests configuration file generation module according to solicited message.
The Version Control module be used for the response platform agent unit check-in, detect with update request etc., read the environment backed-up config file or the recovery configuring file that are generated by the configuration file automatically-generating module, explain the XML instruction in this configuration file.
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, then Section Point is completed backup and will be generated backup file according to the backup procedure information and sends to the 3rd node, and the 3rd node is preserved backup file according to the backup procedure information.wherein, after the Section Point backup is completed, the Version Control module also is used for mutual by described platform agent unit and described the 3rd node, 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, namely judge the spare part file that whether has the spare part file same file name that generates with Section Point in fileinfo, if have, determine again the version information of this backup file preserved, then notifying Section Point is the corresponding version flag of backup file interpolation of this time generation, then Section Point sends to the 3rd node according to backing up the backup file of procedure information with this interpolation version flag again.
In environment rejuvenation, the Version Control module reads configuration information that environment recovery configuring file recovers according to environment to the transmission connection request of the 3rd node and recovers procedure information, and then the 3rd node recovers the Section Point that recovers appointment in procedure information according to recovering procedure information.
The Version Control module specifically has following functions in native system: realized version control function, can carry out based on Version Control Principle control and the tracking of environment version to distributed environment; Can automatically safeguard the environment file warehouse; Inquiry that can the execution environment version objects, check in, detect, upgrade and conflict and process etc.
Above-mentioned environment version refers to all environment of a project are treated as a version, can be by the information entity of Version Control module operation.The difference of the 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 machine to the version of tester's test, be baseline version) just be used for carrying out the source code processing, and can only be in version warehouse and two machinery compartments transmission of developer's place machine; And the environment version of mentioning in the present embodiment refers to a project environment that can normally move, and comprises the data that executable file in many machines, static file and database relevant information etc. are necessary.
The Version Control module is positioned on 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 exactly the connection request that actuator is sent, such as Section Point in backup procedure backs up the connection request that ready rear first node is sent, be used for notice environment file repository, Section Point backup is ready can carry out the environment backup operation, so just can allow Section Point and the 3rd node communicate, then environment is backuped in the environment file warehouse goes.
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 function that the warehouse file provides in strict accordance with the Version Control module is operated by the actuator of its place distributed platform.
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 the environment backup or recover, all nodes all must become a member in distributed environment, and are furnished with actuator.The effect of actuator have following some: realize the related protocol in distributed environment, be used for communicating with other machine; Carry out home environment backup operation or recovery operation by system's global configuration requirement (order that the process platform agent unit that is namely sent by the Version Control module passes to actuator); Start and to need module (such as the routine inspection module, hereinafter will illustrate) or other executable file of carrying out in environment.
Usually, all be furnished with the routine inspection module on all nodes in distributed environment, the routine inspection module is used for all checkpoints of backup and rejuvenation are checked, is used for guaranteeing system backup or being successfully recovered.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 the database situation with environmental correclation; Check the connectedness with related other node of home environment.
Carry out following inspection when 2) environment recovers:
Check 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, suspends the environment back up or restore by distributed platform, and returns to log information to the platform agent unit by daily record error tracking module etc., finally shows on system management table, waits pending.
The below describes the backup method of the distributed environment of the embodiment of the present invention in detail.
Fig. 2 is the process flow diagram of backup method of the distributed environment of the embodiment of the present invention.As shown in Figure 2, the backup method of the distributed environment of the embodiment of the present invention comprises following step:
Step S201 disposes and moves distributed environment;
Distributed platform software all is installed on all machines (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 a machine in 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 to response.Also dispose automatically-generating module mentioned above and Version Control module on first node.
Deployment system turnkey console, system management table are web interfaces, are connected with platform agent, so system management table can be in distributed environment any one is equipped with on the machine of browser, also can go as long as can connect in the distributed environment network not in distributed environment, get final product.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 is installed carry out initial configuration, the situation of distributed environment robotization backup and recovering process and the operation of other distributed environment is monitored etc. operation.
Deployment has the 3rd node in environment file warehouse, in reality on other a certain machine the installation environment file repository, be used for managing concentratedly, preserving and safeguarding backup file.Except first node and the 3rd node, other node is called Section Point.
Bring into operation after disposing distributed environment.
Step S202, the backward first node of configuration information of system management table configuration surroundings backup sends the request of build environment backed-up config file;
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 to be carried out all clients of environment backup, comprises IP address, path catalogue etc.; The information such as which storehouse, tables of data or table space are backed up in the configuration database address.After configuration was completed, system management table was to the request of the platform agent unit transmission build environment backed-up config file of first node.
Step S203, the first node rear automatic build environment backed-up config file that accepts 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 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 generates is stored in first node, also the environment backed-up config file that generates can be stored as template for future use, then return and generate successful information to the platform agent unit;
If carried out historical operation on system management table, the template of ready-made environment backed-up config file is arranged in first node, can directly load existing environment backed-up config file on system management table, to save the time of configuration.
Then the platform agent unit will generate successful information and send to system management table, and system management table is received the successful backward platform agent of the information unit transmission backup environment request that generates.
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 process by procedure information after receiving environment backup instruction and backup procedure information, file, catalogue and database etc. related procedure information is checked, whether the content that judgement will be backed up has extremely, if having extremely, enters step S211; If without abnormal, carry out step S206.
Step S206, Section Point returns to normal state information to the platform agent unit of first node, then begins to carry out environment backup separately, comprises database backup information etc., generates backup file and also stores.
Step S207 after the Section Point backup operation is completed, sends backup to first node and completes information; After first node received that information is completed in backup that Section Point is sent, the Version Control module of first node read the information in the environment file warehouse in backed-up config file, and sends connection request to the 3rd node; Then the routine inspection module that namely starts wherein of the actuator of the 3rd node is carried out connectivity checks to Section Point, also database is checked, if there is extremely, enters step S211; Extremely enter step S208 if occur.
Step S208, Section Point sends to the backup file in Section Point in the environment file warehouse of the 3rd node according to the backup procedure information.
In backup phase, the version control module first reads the listed files of environment file repository 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 front once backup have the file conflict, for example, before judgement once the filename of the backup file of backup whether the filename with the backup file of this backup identical, if identical, the version information of definite this backup file of having preserved, then notify Section Point; After Section Point is notified, for the corresponding version flag of backup file interpolation of this time generation, such as add a zone bit on filename, to show difference, again described backup file is sent to described the 3rd node, version control and the following function of version control module that Here it is.If there is no environment backup before, the actuator on the 3rd node can be directly passes to backup file in the environment file warehouse and goes.
Step S209, the environment file warehouse receives according to the backup procedure information and backup file is write after the backup file that Section Point sends environment backup warehouse.
Step S210, after backup was completed, the platform agent unit in first node returned to the backup success message to system management table.
Step S211, distributed platform carries out abnormality processing, and this abnormality processing specifically comprises: will return to error message to the platform agent unit in first node; carry out the scene snapshot; suspend the environment backup process, and the daily record of being correlated with turns back to system management table etc., then wait pending.
Any problem that runs in above-mentioned backup procedure occurs any abnormal in other words, all will be distributed the formula platform and catch, and is undertaken by the abnormality processing flow process, then suspends backup operation, and the daily record of being correlated with feeds back to system management table, waits pending; After being disposed, then recover the backup flow process.
Whole backup procedure can monitor in system management table, the platform agent of first node is exported all process logs information on system management table, like this backup method of the distributed environment of the present embodiment also can implementation mistake follow the tracks of, the function of location etc. fast.
Can realize automation mechanized operation and the maintenance of the backup of distributed environment according to the backup method of the distributed environment of the present embodiment, can drop to the artificial problem in the environment backup procedure and unknown situation minimum.
The below describes the restoration methods of the distributed environment of the embodiment of the present invention in detail.
Fig. 3 is the restoration methods process flow diagram of the distributed environment of the embodiment of the present invention.Before environment recovers, there has been the whole distributed environment in the environment backup procedure and had the environment version file of environment backup file information in the environment file warehouse.As shown in Figure 3, the restoration methods of the distributed environment of the present embodiment comprises following step:
Step S301 after the configuration information that configuration surroundings on 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 configured on system management table, then configuration need to be carried out the Section Point that environment recovers, and 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 the 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, 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 completed, can send to the platform agent unit of first node the request of build environment recovery configuring file.
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 described generation recovery configuring file request that configuration information that the environment with the system management table configuration recovers with XML file layout build environment recovery configuring file, then returns 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 receives that generating the successful backward platform agent of information unit transmission recovers context request.
In above-mentioned steps S301 and S302, if whole system exists, there have been a plurality of environment version files in environment file in the warehouse.As want to return to certain historical baseline, need only IP address and the path of configuration surroundings file repository on system management table, then directly obtain old version information in the environment file warehouse to the platform agent unit requests of first node on system management table, at this moment the platform agent unit can send to the environment file warehouse and order to obtain old version information, and returns to system management table.After system management table gets old version information, namely can ask environment recovery configuring file corresponding to platform agent unit generation.
If historical recovery operation record was arranged on system management table, existing ready-made environment recovery configuring file 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, the configuration information that recovers according to environment sends connection request and recovers procedure information to the environment file warehouse, recovers procedure information and comprises the operation that will carry out and the content of 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 configuring file after receiving described recovery context request, and the configuration information that recovers according to described environment sends connection request and recovers procedure information to the 3rd node.
Step S304, after the 3rd node is received connection request, by recovering procedure information, each Section Point (targeted environment that namely will recover) is carried out connectivity checks, namely 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 returns to normal condition to the platform agent unit of first node, execution in step S305; Check and do not pass through, execution in step S306.
Step S305, the 3rd node sends to each Section Point that will recover to carry out the environment recovery environment version file according to recovering procedure information.
Step S306, distributed platform carries out abnormality processing, and this abnormality processing specifically comprises: will return to error message to the platform agent unit of first node; carry out the scene snapshot; suspend the environment recovering process, the daily record of being correlated with turns back to system management table etc., then waits pending.
Any problem that runs in above-mentioned rejuvenation occurs any abnormal in other words, is undertaken by the abnormality processing flow process, then suspends recovery operation, and the daily record of being correlated with feeds back to system management table, waits pending; After being disposed, then recover recovering process.
Whole rejuvenation can monitor in system management table, the platform agent unit of first node can be to all process logs information of output on system management table, like this restoration methods of the distributed environment of the present embodiment function of also can implementation mistake following the tracks of and locating fast etc.
Can realize automation mechanized operation and the maintenance of the recovery of distributed environment according to the restoration methods of the distributed environment of the present embodiment, can drop to the artificial problem in environment rejuvenation and unknown situation minimum.
Certainly; the present invention also can have other various embodiments; in the situation that do not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make according to the present invention various corresponding changes and distortion, 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 the environment backup information build environment backed-up config file of described first node according to the system management table configuration, start backup according to the request of system management table, according to the configuration information of the backup of the environment in described environment backed-up config file transmission environment backup instruction and the 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 abnormal, began to carry out environment backup separately, and generates backup file; Mutual with the 3rd node, judge whether the environment file warehouse of the 3rd node has preserved the spare part file of Section Point project operation environment, if have, then the version information of definite this backup file of having preserved, then notifying Section Point is that the backup file that generates adds corresponding version flag; Then according to described backup procedure information, described backup file is sent to described the 3rd node;
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, first send backup to described first node and complete information;
After described first node receives that information is completed in backup, mutual with the 3rd node, whether the environment file warehouse that judges the 3rd node has preserved the spare part file of described Section Point project operation environment, if the version information of determining again this backup file of having preserved is arranged, then notifies Section Point;
After described Section Point is notified, after the corresponding version flag of described backup file interpolation for this time generation, more described backup file is sent to described the 3rd node.
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 comprise,
In described backup procedure, if occur extremely, described distributed platform is caught described extremely, and the daily record of being correlated with after the Run-time scenario 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:
The backward described first node of configuration information that system management table is extracted described environment version file and configuration surroundings recovery sends recovery request;
After described first node was received request, the configuration information that recovers according to described environment sent connection request and recovers procedure information to described the 3rd node;
After the request of receiving of described the 3rd node and recovery procedure information, the content that inspection will recover as not abnormal, is not recovered according to the Section Point of described recovery procedure information to appointment in described recovery procedure information.
6. restoration methods as claimed in claim 5, is characterized in that,
The configuration information that described environment recovers is kept in environment recovery configuring file with the XML file layout, and described environment recovery configuring file is the existing environment recovery configuring file of described first node loading or the new environment recovery configuring file that generates according to the configuration data that system management table sends.
7. restoration methods as described in claim 5 or 6, is characterized in that,
In described rejuvenation, if occur extremely, described distributed platform is caught described extremely, and the daily record of being correlated with after the Run-time scenario 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 the environment backup information build environment backed-up config file that described first node is used for configuring according to system management table, start backup according to the backup request of described system management table, the configuration information that backs up according to described environment sends environment backup instruction and backup procedure information to described Section Point and described the 3rd node;
After described Section Point is received described environment backup instruction, the content that inspection will be backed up, as not abnormal, begin to carry out separately the environment backup, mutual with the 3rd node, judge whether the environment file warehouse of the 3rd node has preserved the spare part file of Section Point project operation environment, if have, determine the version information of this backup file preserved, then notifying Section Point is that the backup file that generates adds corresponding version flag, and the backup file that generates is sent to described the 3rd node again;
Described the 3rd node is used for receiving described backup file according to described backup procedure information, 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 for responding 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 to 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 configured backs up is with XML file layout build environment backed-up config file;
Described Version Control module is used for reading described environment backed-up config file, and the environment backup instruction in described environment backed-up config file and backup flow process information exchange are crossed described platform agent unit sends to described Section Point and described the 3rd node.
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 completed, 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, be then the corresponding version flag of described backup file interpolation of this time generation by described platform agent unit notice Section Point.
11. as the described standby system of claim 8-10 any one, it is characterized in that, 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 abnormal;
Described environment scene snapshot module is used for recording described standby system at the Run-time scenario of backup procedure.
12. the recovery 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, described environment file warehouse has the environment version file, wherein
System management table is used for extracting the configuration information of described environment version file and configuration surroundings recovery, then sends recovery request to described first node;
After described first node started recovery for the recovery request according to described system management table, the configuration information that recovers according to described environment sent connection request and recovery procedure information to described the 3rd node;
After described the 3rd node was used for receiving described connection request and recovers procedure information, the content that inspection will recover as not abnormal, was recovered according to the Section Point of described recovery procedure information to appointment in 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 for responding 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 to 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 configures described system management table recovers is with XML file layout build environment recovery configuring file;
Described Version Control module is used for reading described environment recovery configuring file, and described environment recovery configuring file is sent to described the 3rd node by described platform agent unit.
14. recovery system as described in claim 12 or 13 is characterized in that, 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 abnormal;
Described environment scene snapshot module is used for recording described recovery system at the Run-time scenario of 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 CN101996108A (en) 2011-03-30
CN101996108B true 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)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103262042B (en) * 2011-12-19 2016-03-30 华为技术有限公司 A kind of distributed storage data reconstruction method, Apparatus and system
CN103198131B (en) * 2013-04-11 2015-08-19 天脉聚源(北京)传媒科技有限公司 A kind of 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
CN107506258B (en) 2016-06-14 2021-11-12 伊姆西Ip控股有限责任公司 Method and apparatus for data backup
CN109308233A (en) * 2017-07-28 2019-02-05 中兴通讯股份有限公司 Data back up method, apparatus and system
CN107577556B (en) * 2017-08-04 2020-10-16 西安电子科技大学 Multi-domain collaborative data backup method based on layered architecture of Internet of things
CN108599982B (en) * 2018-03-14 2021-02-12 华为技术有限公司 Data recovery method and related equipment
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
CN111522689B (en) * 2019-02-01 2022-04-29 阿里巴巴集团控股有限公司 Global snapshot method, device, electronic equipment and computer-readable storage medium
CN110309128B (en) * 2019-07-05 2020-07-17 广东铭太信息科技有限公司 Oracle backup file automatic importing device, implementation method thereof and method for importing backup file by using 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
CN111400107B (en) * 2020-04-21 2023-03-03 贵州新致普惠信息技术有限公司 Self-starting recovery system and method for database multi-master cluster
CN111752545B (en) * 2020-06-25 2021-02-26 武汉众邦银行股份有限公司 Stream computing method supporting data replay

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1836216A (en) * 2003-01-14 2006-09-20 国际商业机器公司 Backup firmware in a distributed system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1836216A (en) * 2003-01-14 2006-09-20 国际商业机器公司 Backup firmware in a distributed system

Also Published As

Publication number Publication date
CN101996108A (en) 2011-03-30

Similar Documents

Publication Publication Date Title
CN101996108B (en) Distributed environment backup and recovery method and system
US11880679B2 (en) System and method for supporting patching in a multitenant application server environment
US10853056B2 (en) System and method for supporting patching in a multitenant application server environment
CN101789886B (en) Environment setup automation system of distribution type environment and method
CA2468644C (en) Method and apparatus for managing components in an it system
KR102268355B1 (en) Cloud deployment infrastructure validation engine
KR102047216B1 (en) Replaying jobs at a secondary location of a service
US20020004824A1 (en) Method and apparatus for automatically deploying data and simultaneously Executing computer program scripts in a computer network
CN103635885A (en) Deploying environments for testing by providing instantaneous availability of prebuilt environments
JP5444178B2 (en) Backup / restore processing device, backup / restore processing method and program
JP2010009552A (en) Computer system for backing up software constituent elements, method therefor, and computer program
CN110519088A (en) Configure service disaster and system
CN106708541A (en) Version upgrading processing method and apparatus
Lovrek et al. Improving software maintenance by using agent-based remote maintenance shell
US6668271B1 (en) System for distributing, installing and running web applications (agents)
Ermagan et al. A fault tolerance approach for enterprise applications
CN115297129B (en) Method and device for establishing data communication network
CN117235107B (en) Data access processing method and device, electronic equipment and storage medium
JP2005018463A (en) Simple backup system
Allison et al. Oracle Real Application Clusters Installation Guide, 11g Release 1 (11.1) for Microsoft Windows B28251-06
Allison et al. Oracle Real Application Clusters Installation Guide, 11g Release 1 (11.1) for Microsoft Windows B28251-05
KR20100125922A (en) Integration system and method of perforce server and clearquest server

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