CN104407932A - Data backup method and device - Google Patents

Data backup method and device Download PDF

Info

Publication number
CN104407932A
CN104407932A CN201410594827.XA CN201410594827A CN104407932A CN 104407932 A CN104407932 A CN 104407932A CN 201410594827 A CN201410594827 A CN 201410594827A CN 104407932 A CN104407932 A CN 104407932A
Authority
CN
China
Prior art keywords
data
production
disk
data set
directory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410594827.XA
Other languages
Chinese (zh)
Other versions
CN104407932B (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

Abstract

The embodiment of the invention discloses a data backup method and device, wherein the method can comprise the following steps that a data synchronization point is obtained under the condition that the production of a production system is not interrupted, the production data of disaster recovery in a first disc of a disaster recovery system is copied into a second disc of the disaster recovery system; the connection between a main directory and a second data directory of a test system is disconnected; the connection is built for the main directory of the test system and a first data directory in the second disc, so that the goal of reading the first data directory and a data set under the first data directory in the second disc by the test system can be achieved; the data set in the second disc is restored according to a data set amendment record under the data synchronization point in a production system log file, so that the data backup of the production data is obtained in the test system. When the method and the device are adopted, the data backup on the production data can be completed in the test system under the condition of not influencing the normal operation of the production system.

Description

A kind of data back up method and device
Technical field
The present invention relates to field of data storage, particularly relate 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 the every aspect of our live and work, for we bring facility that any technological revolution in the past all do not have and fast, we have exceeded any one technology in the past to the dependence of IT system.But IT system is while the fast development for business provides IT infrastructure, also bring our negative factor never realized in the past.Such as because the high concentration of information and process makes business running be overly dependent upon IT system, and can be greatly affected because of the bursting problem of IT system, the serious operation system that even can cause cannot normally be carried out.Therefore along with the development of IT technology, production field, apparatus field etc. improve day by day to the requirement of data calamity for technology.The backup of data calamity standby i.e. data disaster, refers to as preventing misoperation or the system failure causes loss of data, and by total system or partial data set, copies to the process of other storage mediums from the hard disk of applied host machine or array.
In prior art, when testing new opplication version, need the production data using production system, at test period, need the normal operation first stopping production system, under production system is in static state, complete the disaster recovery of the production data to production system, the production data of disaster recovery can as the test data of new opplication version test macro use, after disaster recovery process terminates, production system just can proceed, and has had a strong impact on the normal operation of production system, be unfavorable for that actual production operates during disaster recovery.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, when not affecting the normal operation of production system, to provide a kind of data back up method and device, achieves production system production data, the method for test macro Backup Data.
First aspect, embodiments provides a kind of data back up method, comprising:
When production system not breaks in production obtain data synchronous point;
When described data syn-chronization point arrives, production data standby for calamity in first disk of disaster recovery and backup systems is copied in the second disk of described disaster recovery and backup systems, wherein, described disaster recovery and backup systems are used for the described production data produced in process of production to described production system, and to carry out calamity standby, and described production data comprises data set and reflects first data directory of storage relation of described data set;
Disconnect the master catalogue of test macro and the connection of the second data directory, wherein, described test macro is used for testing described production system, the data directory of described second data directory for using during described test macro last time test;
When described data syn-chronization point arrives, described first data directory in the described master catalogue of described test macro and described second disk is connected, thus realizes described test macro and can read described first data directory in described second disk and the described data set under described first data directory;
According to the data set amendment record in described production system journal file under described data syn-chronization point, the data set in described second disk is repaired, thus obtaining the data backup of described production data in a test system, described data set amendment record is the record of the retouching operation recording described data set in described journal file.
Second aspect, embodiments provides a kind of data backup device, comprising:
Acquisition module, for when production system not breaks in production obtain data synchronous point;
Replication module, for when described data syn-chronization point arrives, production data standby for calamity in first disk of disaster recovery and backup systems is copied in the second disk of described disaster recovery and backup systems, wherein, described disaster recovery and backup systems are used for the described production data produced in process of production to described production system, and to carry out calamity standby, and described production data comprises data set and reflects first data directory of storage relation of described data set;
Disconnect module, for the connection of the master catalogue and the second data directory that disconnect test macro, wherein, described test macro is used for testing described production system, the data directory of described second data directory for using during described test macro last time test;
Connect module, for when described data syn-chronization point arrives, described first data directory in the described master catalogue of described test macro and described second disk is connected, thus realizes described test macro and can read described first data directory in described second disk and the described data set under described first data directory;
Repair module, for repairing the data set in described second disk according to the data set amendment record in described production system journal file under described data syn-chronization point, thus obtaining the data backup of described production data in a test system, described data set amendment record is the record of the retouching operation recording described data set in described journal file.
By implementing the embodiment of the present invention, can be implemented in and not affect production system when normally running, test macro realizes the normal use to the production data of production system and the production data to production system carries out data backup.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of data back up method that the embodiment of the present invention provides;
Fig. 2 is the structural representation of a kind of tree structure that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of the another kind of data back up method that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of data backup device that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the another kind of data backup device that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the embodiment of the module that connects that the embodiment of the present invention provides;
Fig. 7 is the structural representation of the embodiment of the recovery module that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, the term used in embodiments of the present invention is only for the object describing specific embodiment, and not intended to be limiting the present invention." one ", " described " and " being somebody's turn to do " of the singulative used in the embodiment of the present invention and appended claims is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
Embodiments provide a kind of data back up method and equipment, when normally can run when not affecting production system, test macro realization is to the use of the production data of production system and data backup.For the ease of understanding the embodiment of the present invention, first the data back up method of the embodiment of the present invention is described below.
Refer to Fig. 1, Fig. 1 is a kind of data back up method schematic flow sheet disclosed in the embodiment of the present invention.As shown in Figure 1, this data back up method can comprise the following steps:
101, when production system not breaks in production obtain data synchronous point.
In embodiments of the present invention, described production system refers to the infosystem supporting day to day operation running under normal circumstances, and it comprises production data, production data disposal system and produces network.Described production data is the data that production system produces when producing.When not stopping production system normally running, the operating personnel of production system are according to needed for set, and setting data synchronous point, described data syn-chronization point is certain time point, can be certain time point that the operating personnel of production system preset.
102, when described data syn-chronization point arrives, production data standby for calamity in first disk of disaster recovery and backup systems is copied in the second disk of described disaster recovery and backup systems, wherein, described disaster recovery and backup systems are used for the described production data produced in process of production to described production system, and to carry out calamity standby, and described production data comprises data set and reflects first data directory of storage relation of described data set.
The backup content of disaster recovery and backup systems comprises data backup and system backup, in embodiments of the present invention, only relate to the data backup of disaster recovery and backup systems to the production data of production system, disaster recovery and backup systems back up the data that production system produces in process of production, thus can have production data in the first disk of disaster recovery and backup systems.Disaster recovery and backup systems can be also can be that the embodiment of the present invention does not do concrete restriction in strange land in this locality relative to production system.Disaster recovery and backup systems can utilize zero interruption Flash Copy, and (one is Data Replication Technology in Mobile fast, based on the state in source data a certain moment, a large amount of data are copied in target data system at short notice) technology or other duplication technologies realize the quick copy when not stopping production system normally running of the production data in the first disk in second disk, to obtain the production data under data syn-chronization point.The production data of production system is hierarchical data, concrete, can refer to the tree structure of Fig. 2, this tree structure is the hierarchical structure of the production data of production system, the label name Data depositing the disk of production data in production system is set to the root node in tree structure, in root node Xia Youliangge sub-branch, A file and B file respectively, in A file Xia Youliangge sub-branch, C file and D file respectively, E file in B file Xia Youyige sub-branch, under C file, there is a leaf node to be F data set, under D file, there is a leaf node to be G data set, under E file, there is a leaf node to be H data collection.In the disk of production system, the storage format of production data is recordable type, each records each data set that have recorded all in detail in production system and the data directory reflecting described data set storage hierarchical relationship, the storage hierarchical relationship of the data set of described first data directory and described record.Concrete, table 1 can be consulted, disaster recovery and backup systems are standby for carrying out calamity to the production data of production system, production data in first disk of therefore disaster recovery and backup systems is identical with the production data of production system, the storage format of the production data in the first disk is also also identical with the storage format of the production system in the disk of production system, and its storage format is also recordable type.
Table 1
LSN 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 the master catalogue of test macro and the connection of the second data directory, wherein, described test macro is used for testing described production data, the data directory of described second data directory for using during described test macro last time test.
In embodiments of the present invention, the main frame catalogue of described test macro is divided into master catalogue and data directory, described data directory can for being loaded into the data directory of other equipment of described test macro, other equipment described can be disk, CD etc., the embodiment of the present invention does not do concrete restriction, after described master catalogue is connected with data directory, could realize conducting interviews to the data directory of other equipment under master catalogue in a test system.Test macro is carrying out before this production data to production system tests, and the master catalogue of test macro needs first to disconnect with the data directory of last system of testing.
104, when described data syn-chronization point arrives, described first data directory in the described master catalogue of described test macro and described second disk is connected, thus realizes described test macro and can read described first data directory in described second disk and the described data set under described first data directory.
In embodiments of the present invention, when test macro needs to use production data to test production system, need the master catalogue of test macro and the first data directory stored in the second disk of production data to connect, thus realize test macro can read described production system data set according to the first data directory.
105, according to the data set amendment record in described production system journal file under described data syn-chronization point, the data set in described second disk is repaired, thus obtaining the data backup of described production data in a test system, described data set amendment record is the record of the retouching operation recording described data set in described journal file.
In embodiments of the present invention, this step operates the reparation of the production data in the second disk in disaster recovery and backup systems, and the method for all reparations all copies the production data obtained from the first disk based on the second disk in disaster recovery and backup systems.For some relatively simple production systems, the renewal of production data is relatively slow, when test macro needs to use production data, only need the data backup doing a production data under certain time point just passable, this data backup can reflect the production data under certain time point truly, but for a busy large-scale production system, the renewal of production data is relatively very fast, when certain time point carries out data backup, may have something does honest work underway, deviation can be there is in the data backup of the production data therefore obtained with real production data, therefore data backup is only had to be far from being enough, the production data to data backup obtains also is needed to carry out data restore.The core of data restore is maintenance running log, and the journal file in production system can record the critical operational information of each affairs, the value before the change of the data set of such as renewal rewards theory and the value after changing.When data syn-chronization point arrives, the production data that in first disk of disaster recovery and backup systems, calamity is standby copies in the second disk of described disaster recovery and backup systems, carry out may some data not executing in this of short duration time of replicate run, when carrying out data restore, will data-backoff operation be carried out.Rollback is exactly that the renewal done is cancelled, and cancelling the method upgraded is exactly take out the value before the change of data set from the journal file of the production data of production system, and is revised as the value before change to by corresponding data set in the second disk having a production data.Rollback means the production data in second disk is returned to the good working condition before data syn-chronization point.
Concrete, now for the example of a bank transfer, from producing account button money, not having enough time to write and proceed to account and copy to this replication actions in the second disk of described disaster recovery and backup systems with regard to there occurs the production data that in described first disk, calamity is standby.Data set in second disk can show the money producing account and deduct, but the money of the user that transfers accounts does not increase, obviously the state inconsistent with real production data is in, from the journal file of production system, the value before the change producing account balance will be found out during data-backoff, and data set corresponding in second disk is revised as the value before change, affairs of transferring accounts are with regard to rollback.Account does not change into inessential, can turn once more after a while, but the production data importantly in second disk can return to production data that in the first disk, calamity is standby copies to correct status in the second disk of described disaster recovery and backup systems before This move.Therefore, the integrality of the production data in second disk is just kept.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of the another kind of data back up method that the embodiment of the present invention provides.As shown in Figure 3, this data processing method can comprise the following steps:
Described first data directory of the described data set 301, described production system produced in process of production and the storage relation that reflects described data set is stored into the 3rd disk, as described production data.
In embodiments of the present invention, production system is when not breaks in production, by the data set produced in process of production and reflect that first data directory of storage relation of these data sets is stored in the 3rd disk of production system, as production data in real time.Described production system can be any application system relating to data, and the embodiment of the present invention does not do concrete restriction.
302, the retouching operation of the described data set of described production system is recorded in described journal file.
In embodiments of the present invention, production system, when not breaks in production, can record the retouching operation of each data set in real time in the journal file of production system, comprises the time of the value before data set change, the value after change and retouching operation.
303, the described production data in described 3rd disk is copied in described first disk of described disaster recovery and backup systems in real time.
In embodiments of the present invention, production system is when not breaks in production, XRC (the long-range asynchronous duplication technology of one that a kind of Intrusion Detection based on host Parallel coupled technology and disk hardware realize) technology can be passed through or other reproduction technologies realize the production data in the 3rd disk to copy in real time in the first disk of disaster recovery and backup systems, thus make the data in the first disk in disaster recovery and backup systems consistent with the production data in the 3rd disk of production system.
304, when production system not breaks in production obtain data synchronous point.
In embodiments of the present invention, described production system refers to the infosystem supporting day to day operation running under normal circumstances, and it comprises production data, production data disposal system and produces network.Described production data is the data that production system produces when producing.When not stopping production system normally running, the operating personnel of production system are according to needed for set, and setting data synchronous point, described data syn-chronization point is certain time point, can be certain time point that the operating personnel of production system preset.
305, when described data syn-chronization point arrives, production data standby for calamity in first disk of disaster recovery and backup systems is copied in the second disk of described disaster recovery and backup systems, wherein, described disaster recovery and backup systems are used for the described production data produced in process of production to described production system, and to carry out calamity standby, and described production data comprises data set and reflects first data directory of storage relation of described data set.
The backup content of disaster recovery and backup systems comprises data backup and system backup, in embodiments of the present invention, only relate to the data backup of disaster recovery and backup systems to the production data of production system, disaster recovery and backup systems can be also can be that the embodiment of the present invention does not do concrete restriction in strange land in this locality relative to production system.Disaster recovery and backup systems can utilize zero interruption Flash Copy, and (one is Data Replication Technology in Mobile fast, based on the state in source data a certain moment, a large amount of data are copied in target data system at short notice) technology or other duplication technologies realize the quick copy when not stopping production system normally running of the production data in the first disk in second disk, to obtain the production data under data syn-chronization point.The production data of production system is hierarchical data, concrete, can refer to the tree structure of Fig. 2, this tree structure is the hierarchical structure of the production data of production system, the label name Data depositing the disk of production data in production system is set to the root node in tree structure, in root node Xia Youliangge sub-branch, A file and B file respectively, in A file Xia Youliangge sub-branch, C file and D file respectively, E file in B file Xia Youyige sub-branch, under C file, there is a leaf node to be F data set, under D file, there is a leaf node to be G data set, under E file, there is a leaf node to be H data collection.In the disk of production system, the storage format of production data is recordable type, each records each data set that have recorded all in detail in production system and the data directory reflecting described data set storage hierarchical relationship, the storage hierarchical relationship of the data set of described first data directory and described record.Concrete, table 1 can be consulted, disaster recovery and backup systems are standby for carrying out calamity to the production data of production system, production data in first disk of therefore disaster recovery and backup systems is identical with the production data of production system, the storage format of the production data in the first disk is also also identical with the storage format of the production system in the disk of production system, and its storage format is also recordable type.
306, the label name of described second disk is set to the label name of described 3rd disk by disaster recovery and backup systems, the disk name that described label name stores for indicating described data set in described first data directory.
In embodiments of the present invention, label is a mark of a disk, and automatically being generated by format or artificially set, is only a mark being different from other disks.Concrete, the disk partition of the lower computer system of acquiescence is local disk (C :), local disk (D :) etc., now be called without label, if again given a name to them, such as, make System (C :) into, Game (D :) etc., at this moment the label of C is exactly the label of System, D is exactly Game.Concrete, corresponding to table 1, by the 3rd disk RNTO Data of production system, then the label of the 3rd disk is called Data, by the second disk RNTO Copy of disaster recovery and backup systems, then the label of second disk is called Copy, the memory disk of the data set recorded in the first data directory in the production data of production system is the 3rd disk of production system, the memory disk of the data set recorded in the first data directory in the production data in the second disk of disaster recovery and backup systems is also be the 3rd disk of production system, production data is conducted interviews from the second disk of disaster recovery and backup systems to realize test macro, need the label name first the label name of the second disk of disaster recovery and backup systems being set to described 3rd disk, this step is set to the label name Data of the 3rd disk of production system by the label name Copy of second disk.
307, disconnect the master catalogue of test macro and the connection of the second data directory, wherein, described test macro is used for testing described production data, the data directory of described second data directory for using during described test macro last time test.
In embodiments of the present invention, the main frame catalogue of described test macro is divided into master catalogue and data directory, described data directory can for being loaded into the data directory of other equipment of described test macro, other equipment described can be disk, CD etc., the embodiment of the present invention does not do concrete restriction, after described master catalogue is connected with data directory, could realize conducting interviews to the data directory of other equipment under master catalogue in a test system.Test macro is carrying out before this production data to production system tests, and the master catalogue of test macro needs first to disconnect with the data directory of last system of testing.
308, the first data directory in the described master catalogue of described test macro and described second disk is set up physical connection, in described test macro, use the first data directory described in software language logical definition, thus realize described test macro and can read described first data directory in described second disk and the described data set under described first data directory.
In embodiments of the present invention, when test macro needs to test the production data of production system, the master catalogue of test macro and the second disk storing production data is needed to set up physical connection, and the first data directory described in usage data storehouse language or other software-programming languages logical definitions in a test system, thus realize described test macro and can read described first data directory in described second disk and the described data set under described first data directory.
309, in described journal file, all data set retouching operations under described data syn-chronization point are searched according to described data syn-chronization point.
In embodiments of the present invention, the journal file of production system have recorded all retouching operation records of each data set, comprise the time of the value after the value before the change of data set, change and retouching operation, from journal file, search all data set retouching operation records corresponded under described data syn-chronization point according to data syn-chronization point.
310, data set corresponding for all data set retouching operations under described data syn-chronization point is carried out data-backoff operation in described second disk, being the data set before the described data set retouching operation under described data syn-chronization point by described data set recovery, thus obtain the data backup of described production data in a test system.
In embodiments of the present invention, this step operates the reparation of the production data in the second disk in disaster recovery and backup systems, and the method for all reparations all copies the production data obtained from the first disk based on the second disk in disaster recovery and backup systems.For some relatively simple production systems, the renewal of production data is relatively slow, when test macro needs to use production data, only need the data backup doing a production data under certain time point just passable, this data backup can reflect the production data under certain time point truly, but for a busy large-scale production system, the renewal of production data is relatively very fast, when certain time point carries out data backup, may have something does honest work underway, deviation can be there is in the data backup of the production data therefore obtained with real production data, therefore data backup is only had to be far from being enough, the production data to data backup obtains also is needed to carry out data restore.The core of data restore is maintenance running log, and the journal file in production system can record the critical operational information of each affairs, the value before the change of the data set of such as renewal rewards theory and the value after changing.When data syn-chronization point arrives, the production data that in first disk of disaster recovery and backup systems, calamity is standby copies in the second disk of described disaster recovery and backup systems, carry out may some data not executing in this of short duration time of replicate run, when carrying out data restore, will data-backoff operation be carried out.Rollback is exactly that the renewal done is cancelled, and cancelling the method upgraded is exactly take out the value before the change of data set from the journal file of the production data of production system, and is revised as the value before change to by corresponding data set in the second disk having a production data.Rollback means the production data in second disk is returned to the good working condition before data syn-chronization point.
The above-mentioned method illustrating the embodiment of the present invention, below for the ease of implementing the such scheme of the embodiment of the present invention better, correspondingly, is also provided for coordinating the relevant apparatus implementing such scheme below.
Refer to Fig. 4, be the structural representation of a kind of data backup device that the embodiment of the present invention provides, this data processing equipment 40 can comprise: acquisition module 401, replication module 402, disconnect module 403, the module that connects 404 and repair module 405.
Acquisition module 401, for when production system not breaks in production obtain data synchronous point.
In embodiments of the present invention, described production system refers to the infosystem supporting day to day operation running under normal circumstances, and it comprises production data, production data disposal system and produces network.Described production data is the data that production system produces when producing.When not stopping production system normally running, the operating personnel of production system are according to needed for set, and setting data synchronous point, described data syn-chronization point is certain time point, can be certain time point that the operating personnel of production system preset.
Replication module 402, for when described data syn-chronization point arrives, production data standby for calamity in first disk of disaster recovery and backup systems is copied in the second disk of described disaster recovery and backup systems, wherein, described disaster recovery and backup systems are used for the described production data produced in process of production to described production system, and to carry out calamity standby, and described production data comprises data set and reflects first data directory of storage relation of described data set.
Disconnect module 403, for the connection of the master catalogue and the second data directory that disconnect test macro, wherein, described test macro is used for testing described production system, the data directory of described second data directory for using during described test macro last time test.
Connect module 404, for when described data syn-chronization point arrives, described first data directory in the described master catalogue of described test macro and described second disk is connected, thus realizes described test macro and can read described first data directory in described second disk and the described data set under described first data directory.
Repair module 405, for repairing the data set in described second disk according to the data set amendment record in described production system journal file under described data syn-chronization point, thus obtaining the data backup of described production data in a test system, described data set amendment record is the record of the retouching operation recording described data set in described journal file.
Will be understood that, in data backup device 40, the function of modules may correspond to the embodiment with reference to Fig. 1 embodiment in said method embodiment, does not repeat them here.
Refer to Fig. 5, for the structural representation of a kind of data backup device that the embodiment of the present invention provides, this data processing equipment 50 can comprise: acquisition module 401, copied cells 402, disconnect module 403, the module that connects 404, repair module 405, memory module 406, logging modle 407, first replication module 408 and recover module 409.
Wherein, acquisition module 401, copied cells 402, disconnect module 403, the module that connects 404 and repair the 26S Proteasome Structure and Function of module 405 and can consult associated description embodiment illustrated in fig. 4, do not repeat them here.
Memory module 406, described first data directory for the described data set that described production system produced in process of production and the storage relation that reflects described data set is stored into the 3rd disk, as described production data.
Logging modle 407, the retouching operation for the described data set by described production system is recorded in described journal file.
First replication module 408, for copying to the described production data in described 3rd disk in real time in described first disk of described disaster recovery and backup systems.
Recover module 409, for disaster recovery and backup systems, the label name of described second disk is set to the label name of described 3rd disk, the disk name that described label name stores for indicating described data set in described first data directory.
Will be understood that, in data backup device 50, the function of modules may correspond to the embodiment with reference to Fig. 3 embodiment in said method embodiment, does not repeat them here.
Refer to Fig. 6, the structural representation of the embodiment of the module that connects provided for the embodiment of the present invention; This module 404 that connects can comprise: connect unit 4041 and definition unit 4042.
Connect unit 4041, for the first data directory in the described master catalogue of described test macro and described second disk is set up physical connection.
Definition unit 4042, for using the first data directory described in software language logical definition in described test macro, thus realize described test macro and can read described first data directory in described second disk and the described data set under described first data directory.
Will be understood that, in the module that connects 404, the function of unit may correspond to the embodiment with reference to Fig. 3 embodiment in said method embodiment, does not repeat them here.
Refer to Fig. 7, the structural representation of the embodiment of the recovery module provided for the embodiment of the present invention; This recovery module 409 can comprise: search unit 4091 and recovery unit 4092.
Connect unit 4091, for searching all data set retouching operations under described data syn-chronization point according to described data syn-chronization point in described journal file.
Recovery unit 4092, for data set corresponding for all data set retouching operations under described data syn-chronization point is carried out data-backoff operation in described second disk, being the data set before the described data set retouching operation under described data syn-chronization point by described data set recovery, thus obtain the data backup of described production data in a test system.
Will be understood that, the function recovering unit in module 409 may correspond to the embodiment of Fig. 3 embodiment in reference said method embodiment, does not repeat them here.
In sum, by implementing the embodiment of the present invention, can be implemented in and not affect production system when normally running, test macro realizes the normal use to the production data of production system and the production data to production system carries out data backup.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (10)

1. a data back up method, is characterized in that, comprising:
When production system not breaks in production obtain data synchronous point;
When described data syn-chronization point arrives, production data standby for calamity in first disk of disaster recovery and backup systems is copied in the second disk of described disaster recovery and backup systems, wherein, described disaster recovery and backup systems are used for the described production data produced in process of production to described production system, and to carry out calamity standby, and described production data comprises data set and reflects first data directory of storage relation of described data set;
Disconnect the master catalogue of test macro and the connection of the second data directory, wherein, described test macro is used for testing described production system, the data directory of described second data directory for using during described test macro last time test;
When described data syn-chronization point arrives, described first data directory in the described master catalogue of described test macro and described second disk is connected, thus realizes described test macro and can read described first data directory in described second disk and the described data set under described first data directory;
According to the data set amendment record in described production system journal file under described data syn-chronization point, the data set in described second disk is repaired, thus obtaining the data backup of described production data in a test system, described data set amendment record is the record of the retouching operation recording described data set in described journal file.
2. method according to claim 1, is characterized in that, described when production system not breaks in production obtain data synchronous point before, described method also comprises:
Described first data directory of the described data set described production system produced in process of production and the storage relation that reflects described data set is stored into the 3rd disk, as described production data;
The retouching operation of the described data set of described production system is recorded in described journal file;
Described production data in described 3rd disk is copied in described first disk of described disaster recovery and backup systems in real time.
3. method according to claim 1, it is characterized in that, it is described when described data syn-chronization point arrives, after production data standby for calamity in first disk of disaster recovery and backup systems is copied in the second disk of described disaster recovery and backup systems, before the master catalogue of described disconnection test macro and the connection of the second data directory, described method also comprises:
The label name of described second disk is set to the label name of described 3rd disk by disaster recovery and backup systems, the disk name that described label name stores for indicating described data set in described first data directory.
4. method according to claim 1, it is characterized in that, it is described when described data syn-chronization point arrives, described first data directory in the described master catalogue of described test macro and described second disk is connected, thus realize described test macro and can read described first data directory in described second disk and the described data set under described first data directory, comprising:
When described data syn-chronization point arrives, the first data directory in the described master catalogue of described test macro and described second disk is set up physical connection, in described test macro, use the first data directory described in software language logical definition, thus realize described test macro and can read described first data directory in described second disk and the described data set under described first data directory.
5. method according to claim 1, it is characterized in that, describedly according to the data set amendment record in described production system journal file under described data syn-chronization point, the data set in described second disk to be repaired, thus obtain the data backup of described production data in a test system, comprising:
In described journal file, all data set retouching operations under described data syn-chronization point are searched according to described data syn-chronization point;
Data set corresponding for all data set retouching operations under described data syn-chronization point is carried out data-backoff operation in described second disk, being the data set before the described data set retouching operation under described data syn-chronization point by described data set recovery, thus obtain the data backup of described production data in a test system.
6. a data backup device, is characterized in that, comprising:
Acquisition module, for when production system not breaks in production obtain data synchronous point;
Replication module, for when described data syn-chronization point arrives, production data standby for calamity in first disk of disaster recovery and backup systems is copied in the second disk of described disaster recovery and backup systems, wherein, described disaster recovery and backup systems are used for the described production data produced in process of production to described production system, and to carry out calamity standby, and described production data comprises data set and reflects first data directory of storage relation of described data set;
Disconnect module, for the connection of the master catalogue and the second data directory that disconnect test macro, wherein, described test macro is used for testing described production system, the data directory of described second data directory for using during described test macro last time test;
Connect module, for when described data syn-chronization point arrives, described first data directory in the described master catalogue of described test macro and described second disk is connected, thus realizes described test macro and can read described first data directory in described second disk and the described data set under described first data directory;
Repair module, for repairing the data set in described second disk according to the data set amendment record in described production system journal file under described data syn-chronization point, thus obtaining the data backup of described production data in a test system, described data set amendment record is the record of the retouching operation recording described data set in described journal file.
7. device according to claim 6, is characterized in that, described device also comprises:
Memory module, described first data directory for the described data set that described production system produced in process of production and the storage relation that reflects described data set is stored into the 3rd disk, as described production data;
Logging modle, the retouching operation for the described data set by described production system is recorded in described journal file;
First replication module, for copying to the described production data in described 3rd disk in real time in described first disk of described disaster recovery and backup systems.
8. device according to claim 6, is characterized in that, described device also comprises,
Recover module, for disaster recovery and backup systems, the label name of described second disk is set to the label name of described 3rd disk, the disk name that described label name stores for indicating described data set in described first data directory.
9. device according to claim 6, is characterized in that, described in the module that connects comprise:
Connect unit, for when described data syn-chronization point arrives, the first data directory in the described master catalogue of described test macro and described second disk set up physical connection;
Definition unit, for using the first data directory described in software language logical definition in described test macro, thus realize described test macro and can read described first data directory in described second disk and the described data set under described first data directory.
10. device according to claim 6, is characterized in that, described recovery module comprises:
Search unit, for searching all data set retouching operations under described data syn-chronization point according to described data syn-chronization point in described journal file;
Recovery unit, for data set corresponding for all data set retouching operations under described data syn-chronization point is carried out data-backoff operation in described second disk, being the data set before the described data set retouching operation under described data syn-chronization point by described data set recovery, thus obtain the data backup of described production 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 true CN104407932A (en) 2015-03-11
CN104407932B 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
CN111722880A (en) * 2020-05-11 2020-09-29 深圳市共进电子股份有限公司 Equipment production method, device, terminal equipment and medium

Families Citing this family (1)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030204609A1 (en) * 2002-04-30 2003-10-30 Anderson Andrew V. Method and apparatus for bandwidth-efficient and storage-efficient backups
CN101494651A (en) * 2009-02-11 2009-07-29 江苏敏捷科技股份有限公司 Method for active backup of data
CN103581318A (en) * 2013-10-31 2014-02-12 北京奇虎科技有限公司 Data backup and restoration method and device for mobile device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030204609A1 (en) * 2002-04-30 2003-10-30 Anderson Andrew V. Method and apparatus for bandwidth-efficient and storage-efficient backups
CN101494651A (en) * 2009-02-11 2009-07-29 江苏敏捷科技股份有限公司 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
CN111722880A (en) * 2020-05-11 2020-09-29 深圳市共进电子股份有限公司 Equipment production method, device, terminal equipment and medium
CN111722880B (en) * 2020-05-11 2024-02-09 深圳市共进电子股份有限公司 Equipment production method and device, terminal equipment and medium

Also Published As

Publication number Publication date
CN104407932B (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN102891849B (en) Service data synchronization method, data recovery method, data recovery device and network device
CN106407356B (en) Data backup method and device
US7484051B2 (en) Apparatus, system and method for reliably updating a data group in a read-before-write data replication environment using a comparison file
CN102782639B (en) Enable to copy the system and method that target reclaims untapped storage space in thin supply storage system
CN102033786B (en) Method for repairing consistency of copies in object storage system
CN102200944B (en) Test environment cloning method and system for enterprise resource planning (ERP) system
CN102063348B (en) Partition table information backup method and device and storage system
CN102483711B (en) Synchronization of replicated sequential access storage components
CN111078667B (en) Data migration method and related device
CN105183581A (en) Database disaster tolerance system
US10976942B2 (en) Versioning a configuration of data storage equipment
CN105302667A (en) Cluster architecture based high-reliability data backup and recovery method
CN106155943B (en) A kind of method and device of the power down protection of dual control storage equipment
CN102402562A (en) Database remote disaster tolerant method and system
CN102385537B (en) Disk failure processing method of multi-copy storage system
CN103544057A (en) Switching method and switching system for data service systems
CN107533495A (en) Technology for data backup and resume
CN104750755A (en) Method and system for recovering data after switching between main database and standby database
CN103176867A (en) Fast file differential backup method
CN104850628B (en) The synchronous method and device of a kind of database data
CN104407932A (en) Data backup method and device
CN113535665A (en) Method and device for synchronizing log files between main database and standby database
CN104978241A (en) Data recovery method and apparatus for COW type file system
CN104317833A (en) Method and device for recovering system file indexes
CN107402841A (en) Large-scale distributed file system data recovery method and equipment

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