CN104407932B - A kind of data back up method and device - Google Patents

A kind of data back up method and device Download PDF

Info

Publication number
CN104407932B
CN104407932B CN201410594827.XA CN201410594827A CN104407932B CN 104407932 B CN104407932 B CN 104407932B CN 201410594827 A CN201410594827 A CN 201410594827A CN 104407932 B CN104407932 B CN 104407932B
Authority
CN
China
Prior art keywords
data
disk
directory
data set
test system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410594827.XA
Other languages
Chinese (zh)
Other versions
CN104407932A (en
Inventor
薛平
陆凌
林建贞
傅宁
张敏芳
李璐
葛维妮
汤正燕
陈峰莲
张琛赟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank 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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201410594827.XA priority Critical patent/CN104407932B/en
Publication of CN104407932A publication Critical patent/CN104407932A/en
Application granted granted Critical
Publication of CN104407932B publication Critical patent/CN104407932B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of data back up method and devices.Method therein may include:Data synchronous point is obtained in the case where production system does not interrupt production;The standby creation data of calamity in first disk of disaster recovery and backup systems is copied in the second disk of disaster recovery and backup systems;Disconnect the connection of the master catalogue and the second data directory of test system;The first data directory in the master catalogue and second disk of the system of testing is established into connection, to realize that test system can read the first data directory in second disk and the data set under the first data directory;The data set in second disk is repaired according to the data set modification record in production system journal file under data synchronous point, to obtain the data backup of creation data in a test system.It using the present invention, may be implemented in the case where not influencing production system normal operation, the data backup to creation data completed in test system.

Description

A kind of data back up method and device
Technical field
The present invention relates to field of data storage more particularly to a kind of data back up method and device.
Background technology
In the science and technology society of today, the utilization of IT (Information Technology) technology has penetrated into me Live and work every aspect, bring the previous all no facility of any technological revolution and fast for us, I Be more than previous any type technology to the dependence of IT system.However IT system provides information skill in the fast development for business While art architecture, the previous negative factor that we never realize also is brought.Such as the height due to information and processing Concentration makes business operating be overly dependent upon IT system, and can be greatly affected because of the bursting problem of IT system, serious Even it can cause operation system that can not be normally carried out.Therefore with the continuous development of IT technologies, production field, apparatus field etc. Data calamity is increasingly improved for the requirement of technology.The standby i.e. data disaster backup of data calamity, refer to for prevent operation error or The system failure leads to loss of data, and by total system or partial data set, copy to it from the hard disk or array of applied host machine The process of his storage medium.
In the prior art, when testing new opplication version, the creation data for using production system is needed, is being tested Period needs the normal operation for first stopping production system, in the state that production system is in static, completes to production system The creation data of the disaster recovery of creation data, disaster recovery can test the test number that system uses as new opplication version According to after disaster recovery process terminates, production system can just be continued, and production has been seriously affected during disaster recovery The normal operation of system is unfavorable for actual production operation.
Invention content
Technical problem to be solved of the embodiment of the present invention is in the case where not influencing the normal operation of production system, A kind of data back up method and device are provided, production system creation data is realized, the method for testing system backup data.
In a first aspect, an embodiment of the present invention provides a kind of data back up method, including:
Data synchronous point is obtained in the case where production system does not interrupt production;
When the data synchronous point reaches, the standby creation data of calamity in the first disk of disaster recovery and backup systems is copied to described In the second disk of disaster recovery and backup systems, wherein the disaster recovery and backup systems are used for generated in process of production to the production system The creation data progress calamity is standby, and the creation data includes the first of the storage relationship of data set and the reflection data set Data directory;
Disconnect the connection of the master catalogue and the second data directory of test system, wherein the test system is used for described Production system is tested, and second data directory is used data directory when testing the test system last time;
When the data synchronous point reaches, by the institute in the master catalogue of the test system and the second disk It states the first data directory and establishes connection, to realize that the test system can read first number in the second disk According to the data set under catalogue and first data directory;
According to the data set modification record in the production system journal file under the data synchronous point to described Data set in two disks is repaired, to obtain the data backup of the creation data, the data in a test system Collection modification record is the record for the modification operation that the data set is recorded in the journal file.
Second aspect, an embodiment of the present invention provides a kind of data backup devices, including:
Acquisition module, for obtaining data synchronous point in the case where production system does not interrupt production;
Replication module is used for when the data synchronous point reaches, by the standby production of calamity in the first disk of disaster recovery and backup systems Data copy in the second disk of the disaster recovery and backup systems, wherein the disaster recovery and backup systems are for producing the production system The creation data progress calamity caused by the process is standby, and the creation data includes data set and the reflection data set First data directory of storage relationship;
Module is disconnected, the connection of master catalogue and the second data directory for disconnecting test system, wherein the survey For test system for testing the production system, second data directory tests when institute for the test system last time The data directory used;
Establish link block, for when the data synchronous point reaches, by the master catalogue of the test system and First data directory in the second disk establishes connection, to realize that the test system can read described second The data set under first data directory and first data directory in disk;
Repair module, for being changed according to the data set in the production system journal file under the data synchronous point Record repairs the data set in the second disk, to which the data for obtaining the creation data in a test system are standby Part, the data set modification record is the record for the modification operation that the data set is recorded in the journal file.
By implementing the embodiment of the present invention, may be implemented, in the case where not influencing production system normal operation, testing Realize that the normal use to the creation data of production system and the creation data to production system carry out data backup in system.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram of data back up method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of tree structure provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another data back up method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of data backup device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another data backup device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the embodiment provided in an embodiment of the present invention for establishing link block;
Fig. 7 is the structural schematic diagram of the embodiment of recovery module provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
It should be noted that the term used in embodiments of the present invention is the mesh only merely for description specific embodiment , it is not intended to limit the invention." the one of the embodiment of the present invention and singulative used in the attached claims Kind ", " described " and "the" are also intended to including most forms, unless context clearly shows that other meanings.It is also understood that this Term "and/or" used herein refers to and includes one or more associated any or all possible group of list items purposes It closes.
An embodiment of the present invention provides a kind of data back up method and equipment, can not influence production system normal operation In the case of, test system realizes use and data backup to the creation data of production system.For the ease of understanding this hair Bright embodiment is below first described the data back up method of the embodiment of the present invention.
Referring to Fig. 1, Fig. 1 is a kind of data back up method flow diagram disclosed by the embodiments of the present invention.Such as Fig. 1 institutes Show, which may comprise steps of:
101, data synchronous point is obtained in the case where production system does not interrupt production.
In embodiments of the present invention, the production system refers to supporting the information system of routine work running under normal circumstances System, it includes creation data, creation data processing system and production network.The creation data is production system in production when institute The data of generation.In the case where not stopping production system normal operation, the operating personnel of production system according to set required, if Set data synchronous point, the data synchronous point is some time point, can be production system operating personnel it is preset some when Between point.
102, when the data synchronous point reaches, the standby creation data of calamity in the first disk of disaster recovery and backup systems is copied to In the second disk of the disaster recovery and backup systems, wherein the disaster recovery and backup systems for producing the production system in process of production Raw creation data progress calamity is standby, and the creation data includes the storage relationship of data set and the reflection data set First data directory.
The backup content of disaster recovery and backup systems includes that it is standby to pertain only to calamity in embodiments of the present invention for data backup and system backup Data backup of the system to the creation data of production system, the data that disaster recovery and backup systems generate production system in process of production into Row backup, to have creation data in the first disk of disaster recovery and backup systems.Disaster recovery and backup systems relative to production system can be Can also be locally in strange land, the embodiment of the present invention is not especially limited.Disaster recovery and backup systems can utilize zero to interrupt Flash Copy (a kind of quick Data Replication Technology in Mobile in a short time copies to a large amount of data based on the state at source data a certain moment In target data system) technology or other duplication technologies realize the creation data in the first disk stopping production system just Often the creation data under data synchronous point is obtained in quick copy to second disk in the case of operation.The life of production system It is hierarchical data to produce data, specifically, can refer to the tree structure of Fig. 2, which is the creation data of production system Hierarchical structure, set the label name Data of disk that creation data is stored in production system to the root in tree structure Node, there are two sub-branches under root node, are A files and B files respectively, and there are two sub-branches under A files, divide Be not C files and D files, under B files there are one sub-branch be E files, under C files there are one leaf node be F numbers According to collection, under D files there are one leaf node be G data collection, under E files there are one leaf node be H data collection.It is producing In the disk of system, the storage format of creation data is recordable type, and each record all has recorded every in production system in detail The data directory of one data set and the reflection data set storage tier relationship, the first data directory, that is, record Data set storage tier relationship.Specifically, seeing table 1, disaster recovery and backup systems are used to carry out the creation data of production system Calamity is standby, therefore the creation data in the first disk of disaster recovery and backup systems is identical as the creation data of production system, in the first disk The storage format of creation data is also also identical as the storage format of the production system in the disk of production system, storage format For recordable type.
Table 1
Record number Label name Folder name Filename Data set name
1 Data A C F
2 Data A D G
3 Data B E H
103, disconnect test system master catalogue and the second data directory connection, wherein the test system be used for pair The creation data is tested, and second data directory is used data mesh when testing the test system last time Record.
In embodiments of the present invention, the host catalog of the test system is divided into master catalogue and data directory, the data Catalogue can be the data directory for the other equipment for being loaded into the test system, and the other equipment can be disk, CD Deng the embodiment of the present invention is not especially limited, and after the master catalogue and data directory are attached, could be realized and tested system It accesses to the data directory of the other equipment under master catalogue in system.Test system is carrying out this production to production system Before data are tested, the master catalogue for testing system needs the data directory first with the system of last test to disconnect.
It 104, will be in the master catalogue of the test system and the second disk when the data synchronous point reaches First data directory establish connection, to realize that the test system can read described the in the second disk The data set under one data directory and first data directory.
In embodiments of the present invention, when test system needs to test production system using creation data, need by The master catalogue of test system and the first data directory being stored in the second disk of creation data are established and are connected, and are surveyed to realize Test system can read the data set of the production system according to the first data directory.
105, according to the data set modification record in the production system journal file under the data synchronous point to institute The data set stated in second disk is repaired, described to obtain the data backup of the creation data in a test system Data set modification record is the record for the modification operation that the data set is recorded in the journal file.
In embodiments of the present invention, this step is the reparation completed to the creation data in the second disk in disaster recovery and backup systems Operation, the method for all reparations are all based on the production number that the second disk in disaster recovery and backup systems is replicated from the first disk According to.For some relatively simple production systems, the update of creation data is relatively slow, and test system is needed using production When data, it is only necessary to do down at some time point a creation data data backup can, which can be true Reflect the creation data under some time point on the spot, but for a busy large-scale production system, creation data It updates relatively fast, when carrying out data backup at some time point, might have something and do honest work underway, therefore obtain The data backup of creation data can and true creation data there are deviations, therefore only data backup be it is far from being enough, also It needs to carry out data reparation to the creation data that data backup obtains.The core of data reparation is to maintain a running log, raw Journal file in production system can record the critical operational information of each affairs, such as before updating the change of data set of operation Value after value and change.When data synchronous point reaches, the standby creation data of calamity copies to institute in the first disk of disaster recovery and backup systems In the second disk for stating disaster recovery and backup systems, replicate some possible data in this of short duration time of operation and be not carried out, carry out Data will carry out data-backoff operation when repairing.It is exactly that the update done is cancelled to retract, cancel newer method be exactly from The value before the change of data set, and second to that will there be creation data are taken out in the journal file of the creation data of production system Corresponding data set is revised as the value before change in disk.Rollback means the creation data in second disk to be restored to data Good working condition before synchronous point.
Specifically, now for the example of a bank transfer, from account button money is produced, it is not in time for write-in and is transferred to account The creation data that calamity is standby in first disk just has occurred, and to copy to this duplication in the second disks of the disaster recovery and backup systems dynamic Make.Data set in second disk can show that the money for producing account has deducted, but the money for the user that transfers accounts does not increase, it is clear that be in The true inconsistent state of creation data, will be from the journal file of production system producing account balance when data-backoff Change before value find out, and corresponding data set in second disk is revised as the value before change, affairs of transferring accounts just retract ?.Account does not change into inessential, can turn primary again after a period of time, it is important that the creation data in second disk can be extensive Correct shape in the multiple second disk for copying to the disaster recovery and backup systems to the standby creation data of calamity in the first disk before This move State.Therefore, the integrality of the creation data in second disk is just maintained.
Referring to Fig. 3, Fig. 3 is the flow diagram of another data back up method provided in an embodiment of the present invention.Such as Fig. 3 Shown, which may comprise steps of:
301, by the data set that the production system generates in process of production and reflect depositing for the data set First data directory of storage relationship is stored to third disk, as the creation data.
In embodiments of the present invention, production system is in the case where interrupting production, the number that will be generated in process of production Store the third disk to production system in real time according to the first data directory of the storage relationship for collecting and reflecting these data sets In, as creation data.The production system can be any application system for being related to data, and the embodiment of the present invention is not made to have Body limits.
It 302, will be in the modification operation note to the journal file of the data set of the production system.
In embodiments of the present invention, production system is not in the case where interrupting production, meeting in the journal file of production system The modification operation of each data set, including the value before data set change, the value after change and modification operation are recorded in real time Time.
303, the creation data in the third disk is copied to described the first of the disaster recovery and backup systems in real time In disk.
In embodiments of the present invention, production system, can be (a kind of based on master by XRC in the case where not interrupting production A kind of long-range asynchronous duplication technology that machine Parallel coupled technology and disk hardware are realized) technology or other reproduction technologies realize the Creation data in three disks is copied in real time in the first disk of disaster recovery and backup systems, to make the first disk in disaster recovery and backup systems In data it is consistent with the creation data in the third disk of production system.
304, data synchronous point is obtained in the case where production system does not interrupt production.
In embodiments of the present invention, the production system refers to supporting the information system of routine work running under normal circumstances System, it includes creation data, creation data processing system and production network.The creation data is production system in production when institute The data of generation.In the case where not stopping production system normal operation, the operating personnel of production system according to set required, if Set data synchronous point, the data synchronous point is some time point, can be production system operating personnel it is preset some when Between point.
305, when the data synchronous point reaches, the standby creation data of calamity in the first disk of disaster recovery and backup systems is copied to In the second disk of the disaster recovery and backup systems, wherein the disaster recovery and backup systems for producing the production system in process of production Raw creation data progress calamity is standby, and the creation data includes the storage relationship of data set and the reflection data set First data directory.
The backup content of disaster recovery and backup systems includes that it is standby to pertain only to calamity in embodiments of the present invention for data backup and system backup Data backup of the system to the creation data of production system, disaster recovery and backup systems can also be locally relative to production system In strange land, the embodiment of the present invention is not especially limited.Disaster recovery and backup systems can utilize zero to interrupt a kind of Flash Copy (quick numbers According to reproduction technology, based on the state at source data a certain moment, a large amount of data are copied to target data system in a short time In) technology or other duplication technologies realize the creation data in the first disk the case where not stopping production system normal operation In lower quick copy to second disk, the creation data under data synchronous point is obtained.The creation data of production system is level Type data, specifically, can refer to the tree structure of Fig. 2, which is the hierarchical structure of the creation data of production system, The label name Data for the disk that creation data is stored in production system is set to the root node in tree structure, in root node Lower there are two sub-branches, are A files and B files respectively, and there are two sub-branches under A files, are C files and D respectively File, under B files there are one sub-branch be E files, under C files there are one leaf node be F data sets, in D files Lower there are one leaf node is G data collection, there are one leaf node is H data collection under E files.In the disk of production system In, the storage format of creation data is recordable type, and each record all has recorded each data set in production system in detail And the data directory of the reflection data set storage tier relationship, the data set of first data directory, that is, record Storage tier relationship.Specifically, seeing table 1, creation data progress calamity of the disaster recovery and backup systems for production system is standby, therefore calamity Creation data in first disk of standby system is identical as the creation data of production system, and the creation data in the first disk is deposited It is also also identical as the storage format of the production system in the disk of production system to store up format, storage format is also recordable type.
306, disaster recovery and backup systems set the label name of the second disk to the label name of the third disk, the label Name in first data directory for indicating the disk name that the data set is stored.
In embodiments of the present invention, label is a mark of a disk, is automatically generated by formatting or is manually set, An only mark for being different from other disks.Specifically, the disk partition of the lower computer system of acquiescence is this earth magnetism Disk (C:), local disk (D:) etc., it is called no label at this time, if given a name again to them, such as makes System (C into:), Game(D:) etc., at this moment the label of C is exactly System, and the label of D is exactly Game.Specifically, corresponding to table 1, it is by production The third disk renamed as Data of system, the then entitled Data of the label of third disk, by the second disk renaming of disaster recovery and backup systems For Copy, then the entitled Copy of the label of second disk, the number recorded in the first data directory in the creation data of production system According to the storage disk integrated as the third disk of production system, the first data in creation data in the second disk of disaster recovery and backup systems The storage disk of the data set recorded in catalogue is the third disk for being also production system, in order to realize test system from the standby system of calamity It accesses to creation data in the second disk of system, the label name of the first second disk by disaster recovery and backup systems is needed to be set as described The label name of third disk, this step are the label for the third disk for setting the label name Copy of second disk to production system Name Data.
307, disconnect test system master catalogue and the second data directory connection, wherein the test system be used for pair The creation data is tested, and second data directory is used data mesh when testing the test system last time Record.
In embodiments of the present invention, the host catalog of the test system is divided into master catalogue and data directory, the data Catalogue can be the data directory for the other equipment for being loaded into the test system, and the other equipment can be disk, CD Deng the embodiment of the present invention is not especially limited, and after the master catalogue and data directory are attached, could be realized and tested system It accesses to the data directory of the other equipment under master catalogue in system.Test system is carrying out this production to production system Before data are tested, the master catalogue for testing system needs the data directory first with the system of last test to disconnect.
308, the first data directory in the master catalogue of the test system and the second disk is established into physics Connection, using the first data directory described in software language logical definition in the test system, to realize the test system System can read first data directory in the second disk and the data set under first data directory.
In embodiments of the present invention, it when test system needs to test the creation data of production system, needs to survey The master catalogue of test system establishes physical connection with the second disk for being stored with creation data, and uses database in a test system First data directory described in language or other software programming language logical definition, to realize that the test system can read institute State first data directory in second disk and the data set under first data directory.
309, all numbers under the data synchronous point are searched in the journal file according to the data synchronous point According to collection modification operation.
In embodiments of the present invention, the journal file of production system has recorded all modification operations of each data set Record includes the time of the value before the change of data set, the value after change and modification operation, according to data synchronous point from daily record All data set modification operation notes corresponded under the data synchronous point are searched in file.
310, all data sets modification under the data synchronous point is operated into corresponding data set in second magnetic Data-backoff operation is carried out in disk, is the data set modification behaviour under the data synchronous point by the data set recovery Data set before work, to obtain the data backup of the creation data in a test system.
In embodiments of the present invention, this step is the reparation completed to the creation data in the second disk in disaster recovery and backup systems Operation, the method for all reparations are all based on the production number that the second disk in disaster recovery and backup systems is replicated from the first disk According to.For some relatively simple production systems, the update of creation data is relatively slow, and test system is needed using production When data, it is only necessary to do down at some time point a creation data data backup can, which can be true Reflect the creation data under some time point on the spot, but for a busy large-scale production system, creation data It updates relatively fast, when carrying out data backup at some time point, might have something and do honest work underway, therefore obtain The data backup of creation data can and true creation data there are deviations, therefore only data backup be it is far from being enough, also It needs to carry out data reparation to the creation data that data backup obtains.The core of data reparation is to maintain a running log, raw Journal file in production system can record the critical operational information of each affairs, such as before updating the change of data set of operation Value after value and change.When data synchronous point reaches, the standby creation data of calamity copies to institute in the first disk of disaster recovery and backup systems In the second disk for stating disaster recovery and backup systems, replicate some possible data in this of short duration time of operation and be not carried out, carry out Data will carry out data-backoff operation when repairing.It is exactly that the update done is cancelled to retract, cancel newer method be exactly from The value before the change of data set, and second to that will there be creation data are taken out in the journal file of the creation data of production system Corresponding data set is revised as the value before change in disk.Rollback means the creation data in second disk to be restored to data Good working condition before synchronous point.
The above-mentioned method for illustrating the embodiment of the present invention, following for convenient for preferably implementing the embodiment of the present invention Said program is correspondingly also provided below for coordinating the relevant apparatus for implementing said program.
Referring to Fig. 4, being a kind of structural schematic diagram of data backup device provided in an embodiment of the present invention, the data processing Device 40 may include:Acquisition module 401, replication module 402 disconnect module 403, establish link block 404 and repair mould Block 405.
Acquisition module 401, for obtaining data synchronous point in the case where production system does not interrupt production.
In embodiments of the present invention, the production system refers to supporting the information system of routine work running under normal circumstances System, it includes creation data, creation data processing system and production network.The creation data is production system in production when institute The data of generation.In the case where not stopping production system normal operation, the operating personnel of production system according to set required, if Set data synchronous point, the data synchronous point is some time point, can be production system operating personnel it is preset some when Between point.
Replication module 402 is used for when the data synchronous point reaches, by the standby life of calamity in the first disk of disaster recovery and backup systems Production data copy in the second disk of the disaster recovery and backup systems, wherein the disaster recovery and backup systems are used for the production system in life The creation data progress calamity caused by during production is standby, and the creation data includes data set and the reflection data set Storage relationship the first data directory.
Module 403 is disconnected, the connection of master catalogue and the second data directory for disconnecting test system, wherein institute Test system is stated for testing the production system, second data directory is tested for the test system last time When used data directory.
Link block 404 is established, is used for when the data synchronous point reaches, by the master catalogue of the test system It establishes and connects with first data directory in the second disk, to realize that the test system can read described the The data set under first data directory and first data directory in two disks.
Repair module 405, for according to the data set in the production system journal file under the data synchronous point Modification record repairs the data set in the second disk, to obtain the number of the creation data in a test system According to backup, the data set modification record is the record for the modification operation that the data set is recorded in the journal file.
It will be appreciated that the function of modules can correspond to and scheme with reference in above method embodiment in data backup device 40 The specific implementation mode of 1 embodiment, details are not described herein.
Referring to Fig. 5, being a kind of structural schematic diagram of data backup device provided in an embodiment of the present invention, the data processing Device 50 may include:Acquisition module 401, copied cells 402 disconnect module 403, establish link block 404, repair module 405, memory module 406, logging modle 407, the first replication module 408 and recovery module 409.
Wherein, acquisition module 401, copied cells 402, disconnect module 403, establish link block 404 and repair mould The structure and function of block 405 sees the associated description of embodiment illustrated in fig. 4, and details are not described herein.
Memory module 406, the data set for generating the production system in process of production and reflection institute First data directory for stating the storage relationship of data set is stored to third disk, as the creation data.
Logging modle 407, for the modification operation note of the data set of the production system is literary to the daily record In part.
First replication module 408, for the creation data in the third disk to be copied to the calamity in real time In first disk of standby system.
Recovery module 409 sets the label name of the second disk to for disaster recovery and backup systems the volume of the third disk Entitling, the label name in first data directory for indicating the disk name that the data set is stored.
It will be appreciated that the function of modules can correspond to and scheme with reference in above method embodiment in data backup device 50 The specific implementation mode of 3 embodiments, details are not described herein.
Fig. 6 is referred to, is the structural schematic diagram of the embodiment provided in an embodiment of the present invention for establishing link block;The foundation Link block 404 may include:Establish connection unit 4041 and definition unit 4042.
Connection unit 4041 is established, is used for first in the master catalogue of the test system and the second disk Data directory establishes physical connection.
Definition unit 4042, for using the first data mesh described in software language logical definition in the test system Record, to realize that the test system can read first data directory in the second disk and first number According to the data set under catalogue.
It will be appreciated that establishing the function of each unit in link block 404 can correspond to reference in above method embodiment The specific implementation mode of Fig. 3 embodiments, details are not described herein.
Fig. 7 is referred to, is the structural schematic diagram of the embodiment of recovery module provided in an embodiment of the present invention;The recovery module 409 may include:Searching unit 4091 and recovery unit 4092.
Connection unit 4091 is established, for being searched in the data in the journal file according to the data synchronous point All data sets modification operation under synchronous point.
Recovery unit 4092, for all data sets modification under the data synchronous point to be operated corresponding data set In the second disk carry out data-backoff operation, by the data set recovery be under the data synchronous point described in Data set before data set modification operation, to obtain the data backup of the creation data in a test system.
It will be appreciated that the function of each unit can be corresponded to reference to Fig. 3 realities in above method embodiment in recovery module 409 The specific implementation mode of example is applied, details are not described herein.
In conclusion by implementing the embodiment of the present invention, may be implemented the case where not influencing production system normal operation Under, realize that the normal use to the creation data of production system and the creation data to production system carry out in test system Data backup.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
It is above disclosed to be only a preferred embodiment of the present invention, the power of the present invention cannot be limited with this certainly Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and is weighed according to the present invention Equivalent variations made by profit requirement, still belong to the scope covered by the invention.

Claims (10)

1. a kind of data back up method, which is characterized in that including:
Data synchronous point is obtained in the case where production system does not interrupt production;
When the data synchronous point reaches, it is standby that the standby creation data of calamity in the first disk of disaster recovery and backup systems is copied into the calamity In the second disk of system, wherein the disaster recovery and backup systems are used for generated described in process of production to the production system Creation data progress calamity is standby, and the creation data includes the first data of the storage relationship of data set and the reflection data set Catalogue;
Disconnect the connection of the master catalogue and the second data directory of test system, wherein the test system is used for the production System is tested, and second data directory is used data directory when testing the test system last time;
When the data synchronous point reaches, by described the in the master catalogue of the test system and the second disk One data directory establishes connection, to realize that the test system can read the first data mesh in the second disk The data set under record and first data directory;
According to the data set modification record in the production system journal file under the data synchronous point to second magnetic Data set in disk is repaired, and to obtain the data backup of the creation data in a test system, the data set is repaiied Change the record for the modification operation for being recorded as recording the data set in the journal file.
2. according to the method described in claim 1, it is characterized in that, described obtain in the case where production system does not interrupt production Before data synchronous point, the method further includes:
The storage relationship of the data set and the reflection data set that the production system is generated in process of production The first data directory storage is to third disk, as the creation data;
It will be in the modification operation note to the journal file of the data set of the production system;
The creation data in the third disk is copied in real time in first disk of the disaster recovery and backup systems.
3. according to the method described in claim 2, it is characterized in that, described when the data synchronous point reaches, by the standby system of calamity After the standby creation data of calamity copies in the second disks of the disaster recovery and backup systems in first disk of system, the disconnections test is With before the connection of the second data directory, the method further includes the master catalogue of system:
Disaster recovery and backup systems set the label name of the second disk to the label name of the third disk, and the label name is used for The disk name that the data set is stored is indicated in first data directory.
4. according to the method described in claim 1, it is characterized in that, described when the data synchronous point reaches, by the survey The master catalogue of test system is established with first data directory in the second disk and is connected, to realize the test System can read first data directory in the second disk and the data under first data directory Collection, including:
When the data synchronous point reaches, by the first number in the master catalogue of the test system and the second disk Physical connection is established according to catalogue, using the first data directory described in software language logical definition in the test system, thus Realize that the test system can read first data directory in the second disk and first data directory Under the data set.
5. according to the method described in claim 1, it is characterized in that, it is described according in the production system journal file described Data set modification record under data synchronous point repairs the data set in the second disk, in a test system The data backup of the creation data is obtained, including:
All data sets modification under the data synchronous point is searched in the journal file according to the data synchronous point Operation;
All data sets modification under the data synchronous point is operated corresponding data set to carry out in the second disk Data-backoff operates, before being the data set modification operation under the data synchronous point by the data set recovery Data set, to obtain the data backup of the creation data in a test system.
6. a kind of data backup device, which is characterized in that including:
Acquisition module, for obtaining data synchronous point in the case where production system does not interrupt production;
Replication module is used for when the data synchronous point reaches, by the standby creation data of calamity in the first disk of disaster recovery and backup systems It copies in the second disk of the disaster recovery and backup systems, wherein the disaster recovery and backup systems are used for the production system in production process In the generated creation data carry out that calamity is standby, the creation data includes the storage of data set and the reflection data set First data directory of relationship;
Module is disconnected, the connection of master catalogue and the second data directory for disconnecting test system, wherein the test system For testing the production system, second data directory uses system when being tested by the test system last time Data directory;
Establish link block, for when the data synchronous point reaches, by the master catalogue of the test system with it is described First data directory in second disk establishes connection, to realize that the test system can read the second disk In first data directory and the data set under first data directory;
Repair module, for according to the data set modification record in the production system journal file under the data synchronous point Data set in the second disk is repaired, to obtain the data backup of the creation data in a test system, The data set modification record is the record for the modification operation that the data set is recorded in the journal file.
7. device according to claim 6, which is characterized in that described device further includes:
Memory module, the data set for generating the production system in process of production and the reflection data set Storage relationship first data directory store to third disk, as the creation data;
Logging modle, being used for will be in the modification operation note to the journal file of the data set of the production system;
First replication module, for the creation data in the third disk to be copied to the disaster recovery and backup systems in real time In first disk.
8. device according to claim 7, which is characterized in that described device further includes,
Recovery module sets the label name of the second disk to for disaster recovery and backup systems the label name of the third disk, institute Label name is stated for indicating the disk name that the data set is stored in first data directory.
9. device according to claim 6, which is characterized in that the link block of establishing includes:
Establish connection unit, for when the data synchronous point reaches, by the master catalogue of the test system with it is described The first data directory in second disk establishes physical connection;
Definition unit, for using the first data directory described in software language logical definition in the test system, to real The existing test system can be read under first data directory and first data directory in the second disk The data set.
10. device according to claim 6, which is characterized in that the repair module includes:
Searching unit, for searching the institute under the data synchronous point in the journal file according to the data synchronous point There is data set modification operation;
Recovery unit, for all data sets modification under the data synchronous point to be operated corresponding data set described the Data-backoff operation is carried out in two disks, and the data set recovery is repaiied for the data set under the data synchronous point Change the data set before operation, to obtain the data backup of the creation data in a test system.
CN201410594827.XA 2014-10-29 2014-10-29 A kind of data back up method and device Active CN104407932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410594827.XA CN104407932B (en) 2014-10-29 2014-10-29 A kind of data back up method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410594827.XA CN104407932B (en) 2014-10-29 2014-10-29 A kind of data back up method and device

Publications (2)

Publication Number Publication Date
CN104407932A CN104407932A (en) 2015-03-11
CN104407932B true CN104407932B (en) 2018-11-06

Family

ID=52645565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410594827.XA Active CN104407932B (en) 2014-10-29 2014-10-29 A kind of data back up method and device

Country Status (1)

Country Link
CN (1) CN104407932B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614266A (en) * 2018-12-05 2019-04-12 北京和利时***工程有限公司 A kind of method of data synchronization and device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111722880B (en) * 2020-05-11 2024-02-09 深圳市共进电子股份有限公司 Equipment production method and device, terminal equipment and medium
CN112395135A (en) * 2020-11-30 2021-02-23 福建安正智能科技有限公司 Data backup method and device for computer room server
CN113553007A (en) * 2021-07-20 2021-10-26 中国工商银行股份有限公司 Host disk data snapshot copy method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494651B (en) * 2009-02-11 2011-12-07 江苏敏捷科技股份有限公司 Method for active backup of data
CN103581318A (en) * 2013-10-31 2014-02-12 北京奇虎科技有限公司 Data backup and restoration method and device for mobile device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7139808B2 (en) * 2002-04-30 2006-11-21 Intel Corporation Method and apparatus for bandwidth-efficient and storage-efficient backups

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494651B (en) * 2009-02-11 2011-12-07 江苏敏捷科技股份有限公司 Method for active backup of data
CN103581318A (en) * 2013-10-31 2014-02-12 北京奇虎科技有限公司 Data backup and restoration method and device for mobile device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614266A (en) * 2018-12-05 2019-04-12 北京和利时***工程有限公司 A kind of method of data synchronization and device
CN109614266B (en) * 2018-12-05 2021-07-02 北京和利时***工程有限公司 Data synchronization method and device

Also Published As

Publication number Publication date
CN104407932A (en) 2015-03-11

Similar Documents

Publication Publication Date Title
CN100430936C (en) System and method for a consistency check of a database backup
CN104850598B (en) A kind of real-time data base back-up restoring method
US6983295B1 (en) System and method for database recovery using a mirrored snapshot of an online database
CN103116596B (en) System and method of performing snapshot isolation in distributed databases
CN102591982B (en) Perform the method and system of increment SQL server database backup
CN104407932B (en) A kind of data back up method and device
CN106021016A (en) Virtual point in time access between snapshots
CN101075203B (en) Storage system and method of producing recovery volume
CN106407356A (en) Data backup method and device
CN107003935A (en) Optimize database duplicate removal
CN105938448A (en) Method and device used for data replication
US20090055610A1 (en) Maintaining consistency for remote copy using virtualization
US10976942B2 (en) Versioning a configuration of data storage equipment
CN104765794B (en) A kind of method for partitioning database and device
CN104750755B (en) A kind of data covering method and system after database active-standby switch
CN101356527A (en) File system dump/restore by node numbering
CN108153619A (en) A kind of data proofreading method and device
CN106802895A (en) For repair data storehouse for database data method and apparatus
US20080059941A1 (en) Method and system for supporting a collaborative development environment
CN108984337A (en) A kind of restorative procedure of data synchronous abnormality, prosthetic device, medium and calculate equipment
CN106326041A (en) Second-level recovery method for database
CN106294013B (en) A kind of different data disaster tolerance method and systems backed up between domain
CN115955488A (en) Distributed storage copy cross-computer room placement method and device based on copy redundancy
CN110333970A (en) A kind of data reconstruction method and device
CN112612852B (en) Data synchronization method and device, electronic equipment and storage medium

Legal Events

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