Summary of the invention;
The present invention solves data in the hardware owing to the technical problem that depends on hardware and cause data may forever loss, damage, a kind of data discrete storage method and data discrete storage device are provided, can make data depend on hardly hardware, thereby can prevent better lossing and damaging of data;
The present invention also provides a kind of data discrete storage method and device, can be automatically to the data storage of dispersing, and according to the storage of dispersing of practical business characteristic.
The present invention also provides a kind of data reconstruction method of above-mentioned data discrete storage device.
Data among the present invention, data are same concept, all refer to be stored in the computer, information take computer hardware as carrier, that show as the forms such as literal, symbol, computer-readable code.
Technical scheme of the present invention is as follows:
A kind of data discrete storage method comprises the steps:
1), a main web site is set, described main web site has and is no less than the mirror sites of managing coefficient of dispersion, each the data website that is connected in the network can be accessed described main web site, each mirror sites of described main web site all stores identifying information and the distributed intelligence of each data website in the described network, described identifying information and distributed intelligence consist of the data network diagram, described management coefficient of dispersion is the natural number more than or equal to 1, described mirror sites and data website are to comprise some hardware, separate physical site, possess data storage capacities.
2), according to the data network diagram, need to determine the data website of backup information and the backup list of other data websites of its data of backup, each mirror sites of main web site is preserved this backup list; The described data website of backup information that needs is called discrete backup site, for discrete backup site provides the data website of backup services to be called the backup services website, the quantity of described backup services website is no less than the storage coefficient of dispersion, and described storage coefficient of dispersion is the natural number more than or equal to 2.
3), will disperse backup services website that data that backup site need to back up lists according to its backup list by one or more transmission methods backups in these backup services websites.
Described management coefficient of dispersion is preferably more than or equals 2 natural number.
The technique effect of such scheme: said method of the present invention is owing to be no less than other the separate physical site (backup services website) that store coefficient of dispersion with arbitrary data backup of the data website (i.e. discrete backup site) of backup information that needs, store coefficient of dispersion more than or equal to 2, and backup list is kept in the mirror sites of main web site, if discrete backup site is destroyed, as long as the destroyed number of other data websites (backup services website) of its data of backup is less than storing coefficient of dispersion, the data of discrete backup site just can be lost scarcely, by being stored in the identifying information in the mirror sites, distributed intelligence, add in case of necessity backup list, just never in other data websites (backup services website) of impaired its data of backup data is fetched, this discrete backup site is recovered again.Like this, owing to being dispersed, data is stored in other separate hardware, just make the data in the single hardware can not cause data forever to be loss owing to relying on this hardware, damage, be equivalent to data and hardware separation, any single hardware damage, needn't comprehend data, reparation or alternative hardware just can be passed through from mirror sites request information network diagram separately, ask in case of necessity backup list, and then fetch data from other data websites that back up its data, namely data can not lost, and a plurality of hardware is when damaging simultaneously, as long as the number of damage is no more than the storage coefficient of dispersion, just can not cause the permanent loss of data.
Particularly, when the mirror sites of main web site also is provided with more than 2 or 2 and simultaneously backup, to preserve by the mirror sites of a plurality of backups equally owing to the data network diagram with for other data websites (being the backup services website) of discrete backup site backup information and the backup list of discrete backup site namely, this data network diagram and backup list can be stored in each mirror sites safely in order to asking for, if discrete backup site is destroyed, as long as the destroyed number of other data websites (backup services website) of its data of backup is less than storing coefficient of dispersion, and have at least a mirror sites not to be destroyed, the data of discrete backup site just can be lost scarcely.When a plurality of hardware are damaged simultaneously, as long as the number of damage is no more than respectively two coefficient of dispersion, just can not cause the permanent loss of data.
Further, each data website can be arbitrarily or is combined into according to certain rules backup relation member inventory, and this member's inventory also can be stored in the mirror sites safely in order to asking for.Each data website both can be used as discrete backup site, and to enjoy other data websites be its backup information, also provides backup services to other data websites.
Preferably, described data network diagram is for coming the data network diagram of Distribution Data website by application flow.
Preferably, described each mirror sites is connected in this network, at least two backup services websites are positioned at different geographic areas in the backup services website of backup services for a discrete backup site provides at least two mirror sites in each mirror sites and the data website, and described geographic area can be different buildings or different administrative regions at different levels.Like this, even force majeure such as breaking out of fire, earthquakes, data also can be resumed.
Preferably, described each mirror sites and each data website are connected to respectively or jointly in the such public network of intenet and/or wireless network, and described data website is for producing the data website of data.Like this, because stability, popularization, promptness and the jumbo bandwidth of public network, can be easily at various places distribution mirror sites and a large amount of data websites.
The data discrete storage method that can automatically disperse and store data comprises the steps:
1), one main web site is set, described main web site has and is no less than the mirror sites of managing coefficient of dispersion, each the data website that is connected in the network can be accessed described main web site, each mirror sites of described main web site stores the identifying information of each data website in the described network simultaneously, distributed intelligence, and the discrete engine that stores simultaneously each data website download of confession, described management coefficient of dispersion is the natural number more than or equal to 1, described identifying information and distributed intelligence consist of the data network diagram, described mirror sites and data website are for comprising some hardware, separate physical site possesses data storage capacities; Described discrete engine is the software of driving and data transmission, and being used for setting up the automated back-up driving and being sent in the rear data that automatically a certain data website need be backed up of foundation driving is other data websites of its backup information and this data website of data back that other data websites is backed up according to corresponding conditions.
2), according to the data network diagram, need to determine the data website of backup information and the backup list of other data websites of its data of backup, each mirror sites of main web site is preserved this backup list; The described data website of backup information that needs is called discrete backup site, for discrete backup site provides the data website of backup services to be called the backup services website, the quantity of described backup services website is no less than the storage coefficient of dispersion, and described storage coefficient of dispersion is the natural number more than or equal to 2.
3), discrete backup site downloads discrete engine from main web site, the discrete engine data that backup site need to back up that will disperse is no less than the backup services website that stores coefficient of dispersion, the engine that disperses is installed to quantity according to the backup list automated back-up.
Described management coefficient of dispersion is preferably more than or equals 2 natural number.
Preferably, above-mentioned steps 1) the data network diagram for come the data network diagram of Distribution Data website by application flow.
Preferably, described each mirror sites is connected in this network, at least two mirror sites in each mirror sites are positioned at different geographic areas with at least two backup services websites in the backup services website that backup services is provided for a discrete backup site, and described geographic area can be different buildings or different administrative regions at different levels.
Preferably, described each mirror sites and each data website are connected to respectively or jointly in the such public network of intenet and/or wireless network.
Above-mentioned steps 2) the discrete backup site in, in response to and be called data when directly producing data and produce point, the data that described data produce the some generation are AUTHORITATIVE DATA, the Backup Data of the data generation point that other data websites receive is that the duplicate of AUTHORITATIVE DATA is called discrete data, the backup of the AUTHORITATIVE DATA that produces by operation flow is reference data or reference, backup that a data website receives, produce the AUTHORITATIVE DATA that point produces by the data of operation flow constitute reference database or consulting database; The described discrete engine instant AUTHORITATIVE DATA automated back-up that produces of backup site that will disperse is no less than the backup services website that stores coefficient of dispersion to quantity---and website disperses, described discrete website comprises the data website that certainly leads to data by operation flow other data website secondary site that to be nature website and natural website number supply when storing coefficient of dispersion, and the backup list of discrete backup site website discrete with it is called the website inventory that disperses.
Discrete engine will the AUTHORITATIVE DATA of a certain discrete backup site oneself the AUTHORITATIVE DATA group timing automatic that consists of of combination backup to quantity and be no less than the backup services website that stores coefficient of dispersion---the backup services website that disperses, the backup list of the backup site backup services website discrete with it that disperse is called the backup services website inventory that disperses.
Described data produce the single data of some generation all by additional unique natural coding, and this natural coding has a clear and definite mathematics order, comprises this natural coding in the data that discrete engine transmits.
Above-mentioned discrete data storage means of carrying out automated back-up, owing to can make the data of discrete backup site or the data automated back-up of its generation arrive the backup services website, comprise discrete website and discrete backup services website, can greatly save the spent time of manpower backup, reduce human cost.
A kind of data discrete storage device, comprise a main web site, described main web site has the mirror sites that is not less than the management coefficient of dispersion, each mirror sites of described main web site is to comprise some hardware, separate physical site, have data storage capacities, described management coefficient of dispersion is the natural number more than or equal to 1;
The data website that also comprises the some quantity that are connected in the network, each data website can be accessed described main web site, described data website is to comprise some hardware, separate physical site, and has a data storage capacities, the data of single data website is backed up in quantity and is not less than other data websites that store coefficient of dispersion, the described data website of backup information that needs is called discrete backup site, provide other data data websites of backup services to be called the backup services website, described storage coefficient of dispersion is the natural number more than or equal to 2; Each mirror sites store simultaneously the identifying information of each data website and distributed intelligence by, described identifying information, distributed intelligence consist of the data network diagram; Discrete backup site obtains according to the data network diagram with the backup list of the backup services website of its data of backup, and preserves this backup list by each mirror sites of main web site.
Described management coefficient of dispersion is preferably more than or equals 2 natural number.
Described data network diagram is the graph of a relation by each data website of application flow distribution.
Preferably, described each mirror sites is connected in this network, at least two mirror sites in each mirror sites are positioned at different geographic areas with at least two backup services websites in the backup services website that backup services is provided for a discrete backup site, and described geographic area can be different buildings or different administrative regions at different levels.
Preferably, described each mirror sites and each data website are connected to respectively or jointly in the such public network of intenet and/or wireless network.
Preferably, mirror sites in the said apparatus and each data website are provided with discrete engine, described discrete engine is the software that drives and data transmit, and is used for setting up automated back-up and passback drives and the data of the predefined discrete backup site that needs backup is returned this discrete backup site according to the backup list automated back-up to corresponding backup services website and the data that the backup services website backed up under certain condition after driving setting up.
Preferably, described other data websites are discrete website, and described discrete website comprises the data website that certainly leads to data by operation flow other data website secondary site that to be nature website and natural website number supply when storing coefficient of dispersion; Discrete backup site in operation flow in response to and be called data when directly producing data and produce point, the data that described data produce the some generation are AUTHORITATIVE DATA; Described discrete engine comprises the instant delivery module of data, be used for the instant AUTHORITATIVE DATA automated back-up that produces of described discrete backup site is no less than the backup services website that stores coefficient of dispersion to quantity---discrete website, the backup list of discrete backup site website discrete with it is called discrete website inventory, and this inventory also is sent to each discrete website by instant delivery module simultaneously.The backup of the AUTHORITATIVE DATA that produces by operation flow is reference data or reference, and the duplicate of the AUTHORITATIVE DATA that other data websites receive is called discrete data.
Preferably, each data website also comprises reference database, and the data that receive for this data website, press operation flow produce a combination of the backup of the AUTHORITATIVE DATA that produces.
Preferably, described discrete engine also comprises a discrete backup services website module, being used for the AUTHORITATIVE DATA group timing automatic that constitutes with the AUTHORITATIVE DATA of a certain discrete backup site oneself backups to quantity and is no less than other data websites that store coefficient of dispersion, these other data websites are called discrete backup services website, and the backup list of discrete backup site backup services website discrete with it is called discrete backup services website inventory; Described discrete backup services website module also comprises a services sites checklist module, is used for being sent to the discrete backup services website that each backs up at backup services website inventory that AUTHORITATIVE DATA group automated back-up will be dispersed when dispersing the backup services website.
Described data produce the single data of some generation all by additional unique natural coding, and this natural coding has a clear and definite mathematics order, comprises this natural coding in the data that discrete engine transmits.
Preferably, described each data produce point and all comprise a sequential generator, are used for producing in chronological sequence serialization of an AUTHORITATIVE DATA that produces to these data.
Described discrete engine comprises that also data return module, and the data that are used under certain condition the backup services website being stored pass back to discrete backup site.
The data of described discrete engine are returned module and are comprised the recovery indicating module and recover delivery module, recover indicating module and be used for transmitting recovery request, namely notify discrete backup services website and/or the discrete website of a certain discrete backup site that the data of needs is sent back to, recover delivery module and be used for according to the request that recovers indicating module, transmit the backup information that to pass back to discrete backup site.
The data reconstruction method of data discrete storage device comprises the steps:
1) need the discrete recovery sites of recovery data to obtain discrete backup services website inventory from main web site, discrete engine recovers from each discrete backup services site requests backup by discrete backup services website inventory, the discrete engine of each discrete backup services website is sent the backup information of former discrete backup site back to according to recovery request, injects in the authoritative data bank of discrete recovery sites;
2) discrete recovery sites is by analyzing overall data network diagram and obtain or directly obtaining discrete website inventory from main web site, and discrete engine recovers the data that discrete backup services website is not contained according to discrete website inventory from discrete website;
3) the discrete engine of each discrete website of the discrete engine requests of discrete recovery sites or each discrete website starts repeating transmission authoritative data separately voluntarily, rebuilds the consulting database.
More preferably, 1 of said method) also comprise the steps: before the step
The new non-avaible website of A, alternative certain the discrete backup site i.e. discrete website that substitutes is connected into main web site, confirms to require recovery after the identity by identifying information;
B, download discrete engine, data network diagram, step 1 from main web site) discrete recovery sites be the discrete website that substitutes.
Above-mentioned steps 2) the discrete step that substitutes the discrete website inventory of website acquisition is in:
The discrete site analysis overall situation data network diagram that substitutes obtains discrete website inventory, puts into and recovers the contact point inventory;
Above-mentioned steps 2) also comprises the steps: afterwards
(1) the discrete website that substitutes namely assists website to send recovery request to each at the discrete website that recovers on the inventory of contact point;
(2) each assists website that the authoritative data that obtains from discrete alternative website (former discrete backup site) is returned; Make local authoritative data bank complete;
Above-mentioned steps 3) also comprises the steps: afterwards
1 " each assists the list of making a copy for---each backup list of site analysis consulting database, draws and this discrete relevant friend of website inventory of standing that substitutes;
2 " the discrete website inventory of should the friend standing that substitutes joins and recovers the contact point inventory, and send and assist recovery request until the assistance recovery website that recovers on the inventory of contact point is all finished the work, the authoritative data of discrete alternative website and reference just are returned to the state before the former discrete backup site loss of function;
Technique effect;
A, the present invention have avoided hardware damage to bring the consequence of data loss because data is disperseed to store on a plurality of hardware.
B, each data website only have the data relevant with it, so data bank must be lacked than overall data.The response time of data bank improves greatly.This is a large advantage of data discrete storage device of the present invention.
C, each data have an independent authority (other websites are obeyed fully to this data), and data-integrity is stronger.
Data can be recovered automatically after D, the loss of function.Such as above-mentioned analysis, in the situation that is no more than coefficient of dispersion website afunction, data is inevitable to be recovered fully.
E, in the full-automatic situation of data migration (can see through artificial recover produce), any hardware maintenance does not affect operation.
In other words, the computer of destroyed (hardware destroy or virus etc.) can not considered data and repaired, and then the recovery data.
F, data are separated fully with hardware.Any artificial maintenance and on-the-spot backup do not need.
Embodiment:
The present invention is described further below in conjunction with accompanying drawing.
Referring to Fig. 1 and Fig. 4, be the structural representation of data discrete storage device of the present invention and the flow chart of data discrete storage method of the present invention, main web site 2 has and is no less than the mirror sites 1 of managing coefficient of dispersion among the figure, and present embodiment is 3 mirror sites, and namely managing coefficient of dispersion is 3.The management coefficient of dispersion is the natural number more than or equal to 1, and the management coefficient of dispersion is 1 o'clock, and namely main web site 2 is 1 mirror sites, and certainly, the preferred administration coefficient of dispersion is the natural number more than or equal to 2, to obtain higher reliability.A plurality of data websites 3 are connected in the network 4, and each data website 3 can be accessed main web site 2, and this access relation is expressed by the line between data website 3 and the main web site 2 in Fig. 1.Each mirror sites 1 of main web site 2 all stores identifying information 11 and the distributed intelligence 12 of each data website 3 in the network 4, identifying information 11 and distributed intelligence 12 consist of the data network diagram, each mirror sites 1 and each data website 3 are and comprise some hardware, separate physical site, possess data storage capacities.The data of arbitrary data website 3 can be not less than other data websites 3 that store coefficient of dispersion by network 4 backups in quantity, the described data website 3 of backup information that needs is called discrete backup site, for discrete backup site provides the data website of backup services to be called the backup services website, each data website 3 both can require other data websites 3 to be its backup information as discrete backup site, also can be used as the backup services website and provide backup services for other data websites 3, by a dotted line line expression has each data website 3 of backup relation among Fig. 1; The storage coefficient of dispersion is the natural number more than or equal to 2, such as 5.
Arbitrary discrete backup site is kept in main web site 2 each mirror sites 1 with the backup list 13 of the backup services website of its data of backup, both can determine according to the data network diagram that each backup services website of a certain discrete backup site set up the backup list 13 of this discrete backup site by main web site 2, and also can directly be defined as its quantity that backup services is provided by a certain discrete backup site according to certain rule and be no less than the backup services website that stores coefficient of dispersion.
Management coefficient of dispersion and storage coefficient of dispersion are decreased coefficient the maximum while, specifically select the size of these two kinds of coefficients according to the specific needs of different practical applications, as long as simultaneously impaired website number (mirror sites and be the backup services website number of a certain data website backup) is lower than respectively two kinds of coefficients simultaneously, then apparatus of the present invention just can not born permanent data loss.Each mirror sites and each data website can be respectively single computers, also can be respectively take single computer as representative, with the common local area network (LAN) of data that conventional method is set up, for other data websites, be a data website.Therefore, when selecting mirror sites and backup services website at definite two kinds of coefficients with according to coefficient, the local area computer that each group (one or more) data communicate is considered as a data website.
Preferably, see the embodiment of Fig. 2, each mirror sites 1 can directly be connected in the network 4, and network 4 can be internet and/or public wireless network.
Preferably, at least two mirror sites in each mirror sites are positioned at different geographic areas respectively with at least two backup services websites in the backup services website that backup services is provided for a discrete backup site, and described geographic area can be different buildings or different administrative regions at different levels.Such distribution is conducive to tackle the natural calamity that occurs with Stall or areal, and the natural calamity in a building and an area is unlikely to cause the calamity of data to be loss.
The data of discrete backup site backs up at the backup services website by one or more transmission methods, one or more transmission methods can be archives transfer approach (FTP:File Transfer Protocol), in specific system, can also be fax, note etc.
Preferably, described data network diagram is for coming the data network diagram of Distribution Data website by application flow, the distributed intelligence 12 that is the data website is determined by the application flow rule, application flow can refer to the coml contact demand that each website has, for example, a production environment, for a certain single product of producing on the production line, the data that this single product production produces must be copied to:
I, to the material procurement section of the relevant material of this product;
Ii, to the materials warehouse of the relevant material of this product;
Iii, to the product warehouse of this material;
Iv, sales department;
V, cost clearing section.
Use the just needs of Expression and Application well of data network diagram that the incompatible Distribution Data website of kissings consists of with these so, be convenient to succinctly and easily backup list of foundation.These application can also be the websites that quick despatch may arrive in the express system, and therefore the data website of data network diagram is to distribute by the geographical position at this moment.Most of actual life, production and commercial application have the associated stations number of a natural law, and this numerical value adds considering that this system safety requires, and can draw applicable storage coefficient of dispersion.The considerations of management coefficient of dispersion is incomplete same with the storage coefficient of dispersion, and therefore, two coefficients can be different.
Discrete backup site in operation flow in response to and be called data generation point when directly producing data, the data that described data produce the some generation are AUTHORITATIVE DATA or authoritative data, AUTHORITATIVE DATA is unique initial data, and other data all are transcript of this AUTHORITATIVE DATA.The backup of the AUTHORITATIVE DATA that produces by operation flow is reference data or reference, and the duplicate of the AUTHORITATIVE DATA that other data websites (backup services website) receive is called discrete data or discrete data.
All transcript data comprise the transcript of this data website authority data being combined into one group of useful data by application flow, are exactly reference data set or reference group.This reference data set is to allow the data of target application performance function.The below illustrates, see Fig. 3, application for the production of producing electric fan, the production division of electric fan comprises assembly shop, base workshop, blade workshop, safety net workshop, motor workshop, certainly each workshop that forms the parts of electric fan might not be to produce, and also may be the workshop that is assembled into these parts.Each workshop is a data website, the data that assembly shop is assembled each electric fan generation are AUTHORITATIVE DATA, such as model, date of manufacture, batch, which platform of this batch etc., these data can be copied to the product warehouse of material procurement section, materials warehouse and this material as previously mentioned by application flow, can be exactly purchasing department and the parts warehouse thereof of each parts workshop, each parts in the example of this electric fan, certainly, according to practical application, may only have each parts workshop or data only to deliver to the workshop of each parts; These data also can be copied to sales department, cost clearing section etc. these data websites 3, and these data websites 3 are backup services websites.Produce so the transcript that all of an electric fan must data and be combined into the useful data that to produce this electric fan, it is exactly reference data set, namely an electric fan is from part sourcing (stock), parts are produced (stock), assembling parts, quality examination or product warehouse, sales situation, the combination of cost clearing etc. a series of useful data transcript, this reference data set can make production play a role to selling the such application of electric fan, and this reference data set has been gathered the necessary data of the needed complete flow process of application in other words.
Each produces the data website of data and all sets up a reference database or consulting database, the data that receive for this data website, press operation flow produce a combination of the backup of the AUTHORITATIVE DATA that produces, therefore, the single data of in the described reference database each all is to produce point from its data to hand over, and is read-only data.The example that electric fan is produced above adopting.In producing the application flow of an electric fan, it is AUTHORITATIVE DATA that assembly shop is assembled the data that each electric fan produces, and assembly shop is with the data data website of the necessary process of flow process institute of producing this application of electric fan of making a copy for to, as previously mentioned.And all or part of data generation point can transmit its AUTHORITATIVE DATA (assembly shop directly has a data generation requirement of demand data data must be transmitted to it in the application flow at least) to assembly shop in the operation flow of this application of production electric fan, as just backuping to assembly shop after each parts workshop generation AUTHORITATIVE DATA, assembly shop has just had the necessary data of each parts, and the base of using such as a certain electric fan of assembling is which part base which day production of base workshop, which batch, which model.These are exactly reference database by the AUTHORITATIVE DATA backup that the applied business flow process produces in the combination of assembly shop.
Apparatus of the present invention are provided with basic application module, and this module can need a certain data to produce the data that point produces by which data website of basic computation of application flow, and requires these data websites initiatively to make a copy for to them.Like this, practical application just moves around reference data.
The backup services website that is in the application flow produces the next data of some friendship except obtaining by data, can also initiatively produce point to data and ask it that authority and essential data are arranged, and this mainly is in order to set up the needs of its consulting database.Therefore, suppose that this data website of blade workshop makes a copy for the data of its generation to assembly shop, but must use it because assembly shop is produced electric fan, so this data website of assembly shop can initiatively be asked for the data that it produces to this data website of blade workshop in application flow.
More preferably, apparatus of the present invention also are provided with discrete engine.Discrete engine is arranged on mirror sites and downloads for each data website, described discrete engine is the software that drives and data transmit, at least comprise driver module, the automated back-up transport module, data reception module and data passback module, driver module is set up automated back-up, data receiver and passback drive, and after set up driving by the automated back-up transport module with the data of the predefined discrete backup site that needs backup according to the backup list automated back-up to corresponding backup services website and by data passback module the data that the backup services website backs up is returned this discrete backup site under certain condition, also can be according to imposing a condition, with the data website of corresponding data transmission to other appointments, in the data that the discrete backup site of data reception module reception of backup services website transmits and the storage area that is used for backup that is stored into the backup services website.Automated back-up, can be to produce some generation data according to data to trigger, also can be to trigger at regular intervals, trigger mechanism such as the Internet various automatic renewals commonly used, whether there is new content to need to back up such as the scanning of one hour or the halfhour time interval in requisition for the part of backup, even specifically uses direct certain hour interval and just carry out automated back-up.
After setting up driving, described data produce the single data of some generation all by additional unique natural coding, this natural coding has a clear and definite mathematics order, comprise this natural coding in the data that discrete engine transmits, data reception module also has automatic inspection and deixis, jump number if detect the natural coding of the data that receive, data reception module can initiatively require the discrete engine of data source to retransmit, to supply.
Preferably, described each data produce point and all comprise a sequential generator, are used for producing in chronological sequence serialization of an AUTHORITATIVE DATA that produces, sequence number when above-mentioned natural coding can be to these data.
The backup services website comprises discrete website and discrete backup services website, to be used for the backup requirements of different modes.
Described discrete website is made of natural website and secondary site, the nature website is for certainly leading to the data website that is used for providing backup services of data by operation flow, the data website that is used for providing backup services that secondary site is supplied when storing coefficient of dispersion for natural website number.Because natural website is because of need of work, must obtain corresponding data, therefore data these natural websites of making a copy for just are not considered as extra work, these five points of the i that this application flow of the production environment of giving an example in the front is made a copy for a certain product information---v are exactly the nature website.Not participation of secondary site data is utilized, discrete backup services is provided merely, basically these services sites are random chooses, but also can obtain according to a certain or several criterion calculation, such as the fastest response time, the maximum residual hard-disk capacity, minimum external service or in conjunction with physical distance farthest, recently physical distance, correlation degree etc., to obtain rational website inventory.Because these websites did not use this backup information originally, be that extra work is arranged so still treat as when using.
If during by application flow work, the quantity of natural website meets or exceeds the storage coefficient of dispersion, then need not seek secondary site.Certainly, these natural websites should not be positioned at identical region.If during work, the quantity of natural website does not reach the storage coefficient of dispersion, then must seek secondary site, equals or exceeds the storage coefficient of dispersion so that natural website adds the sum of secondary site.
Each single data has one group of discrete website, and the discrete site groups of each single data all is unique.
Writing out data by application flow produces with the identity of AUTHORITATIVE DATA, results from the data website (data that are exactly this AUTHORITATIVE DATA produce point) of this application, with discrete calculation mode each discrete website of making a copy for.Which data website is so-called discrete calculation mode refer to calculate is the natural website that these data produce point, and can find out secondary site according to the account form that system further sets, and also can require main web site to provide secondary site.In the applied business of production electric fan shown in Figure 3, for assembly shop, next step flow process needs quality examination exactly in the production procedure, carry out financial accounting and sale, previous step is that parts are sent in each parts workshop here, therefore, these points all are the nature websites, totally 7, suppose that the storage coefficient of dispersion that we set is 5, so, because natural website surpasses coefficient of dispersion, then discrete website can be 5,6,7, coefficient of dispersion is 8 if we set storage, and its application flow is for this natural website of assembly shop, the natural website of contacting directly with it only has 7, can directly ask for to main web site for the 8th so.Apparatus of the present invention can be set multiple computational methods, such as from this natural website of assembly shop natural website farthest, or the natural website of its natural website (second-class parent), base warehouse such as Fig. 3, or the second-class parent of its natural website (the third-class parent of assembly shop nature website), such as the base purchasing department of Fig. 3, data website that response is the fastest at present etc.
Preferably, described discrete engine comprises the instant delivery module of data, be used for the instant AUTHORITATIVE DATA automatic transmission that produces of described discrete backup site to the automated back-up transport module, by the automated back-up transport module AUTHORITATIVE DATA automated back-up is no less than the backup services website that stores coefficient of dispersion to quantity---discrete website, the backup list of discrete backup site website discrete with it is called discrete website inventory, should disperse the website inventory can be in the data transmission process, deliver to the various discrete website with data, namely each discrete website can both be known this discrete website forming member.
Preferably, described discrete engine also comprises a discrete backup services website module, be used for the AUTHORITATIVE DATA group that constitutes of the AUTHORITATIVE DATA of a certain discrete backup site oneself regularly is transferred to the automated back-up transport module, be no less than other data websites that store coefficient of dispersion to quantity by automated back-up transport module automated back-up, these other data websites are called discrete backup services website, and the backup list of discrete backup site backup services website discrete with it is called discrete backup services website inventory.Can find out, discrete backup services website is a kind of services sites that receives discrete backup site timed backup, and be to form the timed backup of AUTHORITATIVE DATA group after the AUTHORITATIVE DATA packing, because comparatively speaking, the quantity of the data of backup is few, volume is smaller, therefore can effectively reduce the workload of recovering in the future.
The service of discrete backup services website should be that the overall situation is reciprocal.For example: each website can voluntarily as the discrete backup services website of other websites, be served for friend's website.Simultaneously, this website is also accepted other discrete backup services points to its service with the identity of discrete backup site.But, do not take direct interaction service (in other words, the A website backups to the B point, is not encouraged but the B point backups to again the A point), because the direct interaction service can when a plurality of websites are destroyed, be lowered anti-disaster ability, so do not advise the direct interaction service.
The selection of discrete backup services website, can distribute according to corresponding condition, relation or method, can be arranged in the discrete engine, calculated by discrete backup site oneself, also can only be arranged in the main web site, go application by each discrete backup site: its condition, relation or method are as follows: can be at random, it also can be the fastest response time, by communication speed Time alignment on (backup services website) network, also can be to distribute by volume of services, distributing to not busy website, can also be the conclusion behind the considering of said method.
The data passback module of described discrete engine comprises to be recovered indicating module and recovers delivery module, recover indicating module and be used for transmitting recovery request, namely notify discrete backup services website and/or the discrete website of a certain discrete backup site that the data of needs is sent back to, recover delivery module and be used for according to the request that recovers indicating module, transmit the backup information that to pass back to discrete backup site.
After the above-mentioned complete data discrete storage device that has autostore and automatically recover is set up and is stored running, in case the data of a certain data website is lost or physical hardware is damaged, this data website is obtained and is carried out recovery process behind new hardware or the basic data and become discrete recovery sites.Substitute the discrete backup site of this conduct the data website be called discrete alternative website, be new non-avaible website, application substitutes the backup site that should disperse, remain the identity application with discrete backup site during application, require to substitute this old discrete backup site, to obtain its station period, function and whole data.Correspondingly, former discrete backup site (loss of function is so replaced) can be declared no longer in effect and be rolled off the production line.After discrete alternative website is finished datum recover, namely be considered as substituting fully former damage website.In the situation about recovering of having ready conditions, eliminated such as former hardware, can be substituted by brand-new hardware; Repair such as hardware, the data recovery can be to carry out at (fixing) former hardware.
Recovering step is as follows: referring to Fig. 5
1, the discrete website that substitutes is gone up first network insertion apparatus of the present invention, confirms identity in modes such as passwords.In case affirmation, this discrete website that substitutes just can begin to recover data and the discrete data (all data) that (former discrete backup site) dispersed and back up in the past.
2, preferably, discrete alternative website is at first obtained the discrete backup services website inventory of former discrete backup site from main web site, then backup information is fetched.Fetching of data should be from a plurality of discrete backup services websites, and parallel multithreading operation is fetched;
When a certain discrete backup services website did not respond, this data can obtain from other discrete backup services website;
The data of fetching is injected in the authoritative data bank of discrete alternative website.
3, the discrete site analysis overall situation data network diagram that substitutes obtains the natural website inventory that it must be got in touch with, and puts into and recovers the contact point inventory;
Then, the discrete website that substitutes sends and recovers to assist request each data website on the inventory of recovery contact point; (these websites are referred to as and assist website);
Each assists website the authoritative data (authority refers to the authoritative data for original discrete backup site) that obtains from discrete alternative website, returns to the discrete website that substitutes;
The discrete website that substitutes is with these authoritative data, its local authoritative data of recombinating;
Each assists website also the authoritative data of itself, and the part according to relevant with discrete alternative website sending to the discrete website that substitutes;
Other people authoritative data, discrete website its reference that is used for recombinating that substitutes.
Each assists website, can be with itself record, according to preparing one and concern the website list with the discrete website (be exactly former discrete backup site number) that substitutes, sending to discrete alternative website.
4, because the data of each transmission has its list of making a copy for---backup list (comprising discrete website inventory and discrete backup services website inventory), each assists website to see through analysis in its consulting database, substitute the authoritative data that website (former discrete backup site) is sent here from discrete, just draw and this discrete relevant friend of website inventory of standing that substitutes;
The discrete website that substitutes joins this inventory to recover contact point inventory (repeated number does not heavily add naturally).And it is sent assistance ask;
Assist website to finish the work when each recovery that recovers on the inventory of contact point, the authoritative data of discrete alternative website and reference just are returned to the data before the former backup site loss of function.
Therefore, if the simultaneously loss of function of the website of no more than coefficient of dispersion, all data all must be successfully recovered.Comprise discrete recovery sites, (storing coefficient of dispersion-1) individual other website losses of function are arranged at most.In other words, each is distributed in the data of apparatus of the present invention, all must have the data website of a minimum survival that this data is arranged.
(do not comprise the data of forfeiture on other websites of lossing simultaneously) after recovery is finished, the discrete data that substitutes on the website just must comprise (on former backup site, before the loss of function) whole data.Simultaneously, because the mirror sites of the main web site of its data network diagram of backup, discrete engine also is a plurality of backups, therefore, apparatus of the present invention have more security advantages.These Heterosis exist:
A) data is distributed on a plurality of computers, so there is not the problem of data traffic congestion.And each website only has the data relevant with it.So data bank must be lacked than overall data.The response time of data bank improves greatly.This is a large advantage of discrete model.
B) each data has an independent authority (other websites are obeyed fully to this data), and data-integrity is stronger.
C) data can be recovered automatically after the loss of function.Such as above-mentioned analysis, in the situation that is no more than coefficient of dispersion website afunction, data is inevitable to be recovered fully.
D) in the full-automatic situation of data migration (can see through artificial the recovery produces), any hardware maintenance does not affect operation.
In other words, the computer of destroyed (hardware destroy or virus etc.) can not considered data and repaired, and then the recovery data.
E) data is separated fully with hardware.Any artificial maintenance and on-the-spot backup do not need.
F) discrete model can recover the hardware capability front data of lossing fully.
G) because AUTHORITATIVE DATA just back up away by discrete engine once producing, so data can return in the AUTHORITATIVE DATA generation, like this, AUTHORITATIVE DATA just can not lost, and has guaranteed the integrality of applied business.
Being applied in of apparatus of the present invention has a power failure and can not bring into play repertoire when stopping netting.Behind power supply and network recovery, data can be recovered automatically.