CN104063294B - A kind of linux system backup and restoration methods - Google Patents
A kind of linux system backup and restoration methods Download PDFInfo
- Publication number
- CN104063294B CN104063294B CN201410319101.5A CN201410319101A CN104063294B CN 104063294 B CN104063294 B CN 104063294B CN 201410319101 A CN201410319101 A CN 201410319101A CN 104063294 B CN104063294 B CN 104063294B
- Authority
- CN
- China
- Prior art keywords
- backup
- scheme
- setting
- incremental
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000011084 recovery Methods 0.000 claims abstract description 38
- 230000008569 process Effects 0.000 claims abstract description 18
- 238000013439 planning Methods 0.000 claims abstract description 7
- 238000012795 verification Methods 0.000 claims description 8
- 238000012856 packing Methods 0.000 claims description 5
- 230000001186 cumulative effect Effects 0.000 claims description 4
- 230000009471 action Effects 0.000 claims description 3
- 238000012217 deletion Methods 0.000 claims description 2
- 230000037430 deletion Effects 0.000 claims description 2
- 238000001514 detection method Methods 0.000 claims description 2
- 238000007726 management method Methods 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 5
- 238000012546 transfer Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003716 rejuvenation Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000012550 audit Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003442 weekly effect Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of linux system backup that the invention provides and restoration methods, described method comprises the following steps: 1) predefine full backup scheme, incremental backup scheme, raw device recovery scheme, increment recovery scheme; 2) real-time Planning Directive is received; 3) legitimacy of plan is detected; 4) state of destination node is confirmed; 5) scheme meeting plan is performed.The present invention devises backup and the recovery scheme of complete set, by IP Address Recognition server, receive backup and recover Planning Directive, reasonable distribution BACKUP TIME, achieve the intellectuality centralized management to Linux server backup in enormous quantities and recovery, decrease manpower and materials consumption, substantially increase the efficiency of reaction and process.
Description
Technical field
The present invention relates to a kind of backup and restoration methods, specifically a kind of linux system backup and restoration methods.
Background technology
Under the server of (SuSE) Linux OS is installed; still backup and the recovery of operating system is responsible for primarily of system manager; data base administrator is responsible for backup and the recovery of database; application system keeper is responsible for backup and the recovery of application system; there is no that a kind of instrument or system are operating system under whole server, database data, application system data, other data backup and recovery, more do not have the Linux server under completely online (not shutting down) state of system or instrument support to back up completely.Rely on the instrument that the script of keepers is mutually incompatible with each backup tool manufacturer, back-up job complexity and easily makeing mistakes.
Particularly, in Linux server backup and the problem of management recovered of One's name is legion in the machine room, the unified platform of neither one is as support, and the Shell script by keeper one by one and a large amount of not easy care is difficult to deal with.The title of the backup information of each keeper definition, preserve position, validity, use-pattern are not identical, or even the corresponding relation of backup information and server, recover the information such as applicable elements all not records, be all that recovery and the use of these Backup Datas brings difficulty.Say nothing of when keeper changes, carry out backup and resume work joining, just extremely difficult especially.
Summary of the invention
In order to solve the problem, the invention provides the backup of a kind of linux system and restoration methods, by the processing scheme of default Four types, realizing the intelligent backup to Linux server in enormous quantities and recovery operation.
The present invention is by the following technical solutions: a kind of linux system backup and restoration methods, and it is characterized in that, described method comprises the following steps:
Predefine full backup scheme, incremental backup scheme, raw device recovery scheme, increment recovery scheme;
Receive real-time Planning Directive;
Detect the legitimacy of plan;
Confirm the state of destination node;
Perform the scheme meeting plan.
Further, the process of predefine full backup scheme is:
Defining named specification;
Select the catalogue under operating system, setting backup scope;
Setting NFS agreement and SSH agreement two kinds of host-host protocols;
Definition backup library node structure;
Setting command mode, snap shot two kinds of backup modes;
Full backup scheme after examination & verification is saved in database.
Further, the process of predefine incremental backup scheme is:
Defining named specification;
The backup of setting cumulative increment and difference incremental backup two kinds of incremental backup type;
Select the catalogue under operating system, setting backup scope;
Setting NFS agreement and SSH agreement two kinds of host-host protocols;
Definition auto-increment BACKUP TIME;
Defined node backup library structure;
Incremental backup scheme after examination & verification is saved in database.
Further, the load state of destination node can be uploaded to database by resident client RCT, according to numerous destination node load distribution situation, arranges each node incremental backup initial time.
Further, in incremental backup scheme implementation, resident client utility RCT former the component list of automatic comparison object node and current up-to-date the component list whether variant, if variant, safeguard a component list variation inventory comprising component Name, affiliated bag, newly-increased/deletion content, and after the execution of incremental backup scheme terminates, pass back in backup set storehouse to merge with former the component list and preserve.
Further, when resident client utility RCT execution incremental backup scheme selectes command mode, whether RCT, according to the file attribute in backup scope, has relatively had alter operation, has since Last Backup, carries out backup packing as new incremental backup object.
Further, the process of predefine raw device recovery scheme is:
Setting recovery action required system, full backup collection, path, storehouse, incremental backup collection place;
Setting NFS agreement and SSH agreement two kinds of host-host protocols;
Definition recovers library structure;
Select LiveISO;
Select RCT client resident tools;
Raw device recovery scheme after examination & verification is saved in database.
Further, the process of predefine increment recovery scheme is:
Path, storehouse, incremental backup collection place needed for setting recovery;
Setting NFS agreement and SSH agreement two kinds of host-host protocols;
Definition recovers library structure;
Setting backup detection module;
Increment recovery scheme after examination & verification is saved in database.
The invention has the beneficial effects as follows: the present invention devises backup and the recovery scheme of complete set, by IP Address Recognition server, receive backup and recover Planning Directive, reasonable distribution BACKUP TIME, achieve the intelligent management to Linux server backup in enormous quantities and recovery, decrease manpower and materials, substantially increase the efficiency of reaction and process.
Accompanying drawing explanation
Fig. 1 is schematic flow sheet of the present invention;
Fig. 2 is the schematic flow sheet that the present invention performs full backup scheme;
Fig. 3 is the schematic flow sheet that the present invention performs incremental backup scheme;
Fig. 4 is the schematic flow sheet that the present invention performs raw device recovery scheme;
Fig. 5 is the schematic flow sheet that the present invention performs increment recovery scheme.
Embodiment
A kind of linux system backup as shown in Figure 1 and restoration methods, described method comprises the following steps:
S101: predefine full backup scheme, its process is: the Naming conventions that definition needs; Select the catalogue under operating system, setting backup scope, wherein, does not need selection to be automatically included in scope for system component, equipment, config directory etc.; Setting NFS and SSH backs up host-host protocol, and wherein, NFS agreement needs backup center open backup set storehouse authority, and SSH agreement needs user to preserve in a database, the user cipher of backup target server if change of secret code can cause backup failure in advance; Definition backup library node structure; Setting command mode, snap shot two kinds of backup modes, wherein, command mode is applicable to all kinds of Linux backup target server, and snap shot requires that destination server disk slack space is more than 1.5 times that have used space, and free space allows subregion again; After finally this plan being audited, full backup scheme is saved in database.
S102: predefine incremental backup scheme, its process is: the Naming conventions that definition needs; The backup of setting cumulative increment and difference incremental backup two kinds of incremental backup type, wherein, cumulative increment backup backup from last time full backup or sigma delta backup since increment, difference incremental backup has backed up increment since Last Backup; Select the catalogue under operating system, setting backup scope; Setting NFS and SSH backs up host-host protocol, and wherein, NFS agreement needs backup center open backup set storehouse authority, and SSH agreement needs user to preserve in a database, the user cipher of backup target server if change of secret code can cause backup failure in advance; The time of definition incremental backup, can be every day some, weekly just/end, the beginning of each month/end, beginning of each quarter/end, the per beginning of the year/last equal time; Defined node backup library structure; Setting command mode, snap shot two kinds of backup modes, wherein, command mode is applicable to all kinds of Linux backup target server, and snap shot requires that destination server disk slack space is more than 1.5 times that have used space, and free space allows subregion again; After finally this plan being audited, incremental backup scheme is saved in database.
S103: predefine raw device recovery scheme, its process is: setting recovery action required system, full backup collection, path, storehouse, incremental backup collection place, select host-host protocol, definition recovers library structure, select LiveISO, select RCT client resident tools, and the program is audited, information is preserved in a database.
S104: predefine increment recovery scheme, its process is path, storehouse, incremental backup collection place needed for setting recovery, selects host-host protocol, and definition recovers library structure, and audits the program, information is preserved in a database.
S105: receive real-time Planning Directive, this Planning Directive can be artificial input, also can be the feedback of destination node.
S106: whether legally detect plan, if legal, enter next step, if illegal, return previous step.
S107: confirm that destination node is in connection status, and the communications protocol that select target node adopts;
S108: perform the scheme meeting plan.
In order to the difference of four kinds of schemes in clear and definite this invention, below, by reference to the accompanying drawings the implementation of four kinds of schemes is described.
As shown in Figure 2, the process performing full backup scheme is:
S201: select a kind of backup mode;
S202: transfer the file within the scope of backup;
S203: packing compression is carried out to file according to Naming conventions;
S204: carry out communication according to host-host protocol, files in backup set storehouse corresponding to full backup scheme by backup set, the Data Source that the file directory in this backup set storehouse can be recovered as raw device.
As shown in Figure 3, the process performing incremental backup scheme is:
S301: check each server state, sets each server delta backup initial time;
S302: select a kind of backup mode;
S303: transfer the file within the scope of backup;
S304: resident client utility RCT former the component list of automatic comparison object node and current up-to-date the component list whether variant, if variant, safeguard one comprise component Name, affiliated bag, newly-increased/delete the component list variation inventory of content after enter step S305, if fruit does not have, directly enter next step;
S305: packing compression is carried out to file according to Naming conventions;
S306: carry out communication according to host-host protocol, files in backup set storehouse corresponding to full backup scheme by backup set, the Data Source that the file directory in this backup set storehouse can be recovered as raw device.
Further, when resident client utility RCT execution incremental backup scheme selectes command mode, whether RCT, according to the file attribute in backup scope, has relatively had alter operation, has since Last Backup, carries out backup packing as new incremental backup object.
As shown in Figure 4, the process performing increment recovery scheme is:
S401: carry out communication, receives the backup set recovering requirements of plan;
S402: check whether and need to recover front backup, enter next step after if so, performing backup operation, if not, directly enter next step;
S403: transfer recovery data, performs recovery operation;
S404: check whether restoration result meets the requirements, and if so, enters next step, if not, returns previous step;
S405: rejuvenation record also uploads to database.
As shown in Figure 5, the process performing raw device recovery scheme is:
S501: make LiveISO mirror optical disk, CD-ROM drive is loaded into this CD on destination server, and the automatic Boot Server of the guiding tool on this CD starts and enters raw device recovery routine;
S502: with backup library communication, receives the backup medium required for recovering and backup set;
S503: recovery operation system;
S504: install RCT instrument;
S505: recover full backup data;
S506: recover incremental backup data;
S507: check whether restoration result meets the requirements, and if so, enters next step, if not, returns S502;
S508: rejuvenation record also uploads to database.
In the implementation of four kinds of schemes, the information that destination node or server comprise comprises the IP address of server, server name, the host-host protocol supported, OS Type and version, file system type, hard disk configures, memory configurations, network card configuration, directory information, module information etc., wherein, IP address is that backup identifies numerous backup target server with rehabilitation center or recovers the foundation of destination server, OS Type and version, file system type, hard disk configures, memory configurations, network card configuration, directory information, module information etc., in the user name of input destination server, after password, destination server can be connected to by the automatic acquisition instrument of this platform, perform corresponding system order automatic acquisition.
Except structure of the present invention, all the other are prior art.
The above is the preferred embodiment of the present invention, and for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications are also regarded as protection scope of the present invention.
Claims (4)
1. linux system backup and a restoration methods, it is characterized in that, described method comprises the following steps:
Predefine full backup scheme, detailed process is: defining named specification; Select the catalogue under operating system, setting backup scope; Setting NFS agreement and SSH agreement two kinds of host-host protocols; Defined node backup library structure; Setting command mode, snap shot two kinds of backup modes; Full backup scheme after examination & verification is saved in database;
Predefine incremental backup scheme, detailed process is: defining named specification; The backup of setting cumulative increment and difference incremental backup two kinds of incremental backup type; Select the catalogue under operating system, setting backup scope; Setting NFS agreement and SSH agreement two kinds of host-host protocols; Definition auto-increment BACKUP TIME; Definition backup library node structure; Incremental backup scheme after examination & verification is saved in database;
Predefine raw device recovery scheme, detailed process is: setting recovery action required system, full backup collection, path, storehouse, incremental backup collection place; Setting NFS agreement and SSH agreement two kinds of host-host protocols; Definition recovers library structure; Select LiveISO; Select resident client utility RCT; Raw device recovery scheme after examination & verification is saved in database;
Predefine increment recovery scheme, detailed process is path, storehouse, incremental backup collection place needed for setting recovery; Setting NFS agreement and SSH agreement two kinds of host-host protocols; Definition recovers library structure; Setting backup detection module; Increment recovery scheme after examination & verification is saved in database;
Receive real-time Planning Directive;
Detect the legitimacy of plan;
Confirm the state of destination node;
Perform the scheme meeting plan.
2. a kind of linux system backup according to claim 1 and restoration methods, it is characterized in that, the load state of destination node can be uploaded to database by resident client utility RCT, according to numerous destination node load distribution situation, arranges each node incremental backup initial time.
3. a kind of linux system backup according to claim 1 and restoration methods, it is characterized in that, in incremental backup scheme implementation, resident client utility RCT former the component list of automatic comparison object node and current up-to-date the component list whether variant, if variant, safeguard a component list variation inventory comprising component Name, affiliated bag, newly-increased/deletion content, and after the execution of incremental backup scheme terminates, pass back in backup set storehouse to merge with former the component list and preserve.
4. a kind of linux system backup according to claim 1 and restoration methods, it is characterized in that, when resident client utility RCT execution incremental backup scheme selectes command mode, RCT is according to the file attribute in backup scope, relatively since Last Backup, whether there is alter operation, have, carry out backup packing as new incremental backup object.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410319101.5A CN104063294B (en) | 2014-07-07 | 2014-07-07 | A kind of linux system backup and restoration methods |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410319101.5A CN104063294B (en) | 2014-07-07 | 2014-07-07 | A kind of linux system backup and restoration methods |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104063294A CN104063294A (en) | 2014-09-24 |
CN104063294B true CN104063294B (en) | 2016-03-16 |
Family
ID=51551016
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410319101.5A Active CN104063294B (en) | 2014-07-07 | 2014-07-07 | A kind of linux system backup and restoration methods |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104063294B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105302671A (en) * | 2015-11-11 | 2016-02-03 | 中国建设银行股份有限公司 | Automatic backup and rollback method and device |
CN106339278A (en) * | 2016-08-24 | 2017-01-18 | 浪潮电子信息产业股份有限公司 | Data backup and recovery method of network file system |
CN106919477B (en) * | 2017-03-03 | 2020-05-22 | 上海爱数信息技术股份有限公司 | Virtual disk analysis method and system |
CN114610535A (en) * | 2022-02-21 | 2022-06-10 | 广州鼎甲计算机科技有限公司 | Linux operating system bare computer recovery method, system, device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100505614C (en) * | 2006-08-15 | 2009-06-24 | 华为技术有限公司 | System backup and recovery method, and backup and recovery server |
CN102693168A (en) * | 2011-03-22 | 2012-09-26 | 中兴通讯股份有限公司 | A method, a system and a service node for data backup recovery |
CN103885855A (en) * | 2012-12-20 | 2014-06-25 | 航天信息股份有限公司 | Data backup and recovery method and data backup and recovery device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8856591B2 (en) * | 2011-06-14 | 2014-10-07 | Ca, Inc. | System and method for data disaster recovery |
-
2014
- 2014-07-07 CN CN201410319101.5A patent/CN104063294B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100505614C (en) * | 2006-08-15 | 2009-06-24 | 华为技术有限公司 | System backup and recovery method, and backup and recovery server |
CN102693168A (en) * | 2011-03-22 | 2012-09-26 | 中兴通讯股份有限公司 | A method, a system and a service node for data backup recovery |
CN103885855A (en) * | 2012-12-20 | 2014-06-25 | 航天信息股份有限公司 | Data backup and recovery method and data backup and recovery device |
Non-Patent Citations (1)
Title |
---|
分布式Linux下数据库文件自动备份和恢复;张兴发等;《计算机时代》;20060131(第1期);第16页-第17页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104063294A (en) | 2014-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10007499B2 (en) | Decoupled installation of data management systems | |
JP5563220B2 (en) | Method and system for data backup | |
EP2234049B1 (en) | Background service process for local collection of data in an electronic discovery system | |
CN104063294B (en) | A kind of linux system backup and restoration methods | |
CN102360410B (en) | User operation discovery method of file system and synchronous system utilizing the same | |
CN104781791A (en) | Universal pluggable cloud disaster recovery system | |
CN102497424A (en) | Method for achieving cloud storage through mobile storage device | |
CN103226612B (en) | A kind of Content Management System based on memory database | |
WO2016161396A9 (en) | Network attached storage (nas) apparatus having reversible privacy settings for logical storage area shares, and methods of configuring same | |
CN102521390B (en) | Database management and monitoring system based on pin function | |
WO2014056371A1 (en) | Method and apparatus for determining range of files to be migrated | |
CN105446831A (en) | Server-Free backup method in conjunction with SAN | |
US20240045770A1 (en) | Techniques for using data backup and disaster recovery configurations for application management | |
US20240187248A1 (en) | Techniques for data retrieval using cryptographic signatures | |
CN111737227A (en) | Data modification method and system | |
WO2011075145A1 (en) | Server migration method | |
WO2020112993A1 (en) | Systems and methods for data usage monitoring in multi-tenancy enabled hadoop clusters | |
KR100935831B1 (en) | A method for a data synchronizing based on a data structure which has multiple event identifier and the Data back up solution uses the method | |
CN101022633B (en) | Allocation data recovering method, system and device | |
CN103714089A (en) | Method and system of rolling back cloud database | |
US20220075769A1 (en) | Logfile collection and consolidation | |
CN112732280B (en) | Personal habit data management system for computer users | |
CN111177116B (en) | Intelligent database management platform and management method thereof | |
US11074002B2 (en) | Object storage system with meta object replication | |
US20170075920A1 (en) | System and methods for detecting precise file system events from a large number and assortment of automatically-generated file system events during user operations |
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 |