CN110008060A - Backup data store and loading method, device and storage medium - Google Patents

Backup data store and loading method, device and storage medium Download PDF

Info

Publication number
CN110008060A
CN110008060A CN201910185669.5A CN201910185669A CN110008060A CN 110008060 A CN110008060 A CN 110008060A CN 201910185669 A CN201910185669 A CN 201910185669A CN 110008060 A CN110008060 A CN 110008060A
Authority
CN
China
Prior art keywords
data
backup data
data region
region
backup
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.)
Pending
Application number
CN201910185669.5A
Other languages
Chinese (zh)
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.)
Wuhan Kotei Informatics Co Ltd
Original Assignee
Wuhan Kotei Informatics Co Ltd
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 Wuhan Kotei Informatics Co Ltd filed Critical Wuhan Kotei Informatics Co Ltd
Priority to CN201910185669.5A priority Critical patent/CN110008060A/en
Publication of CN110008060A publication Critical patent/CN110008060A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1456Hardware arrangements for backup
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process

Abstract

The present invention discloses a kind of backup data store and loading method, device and storage medium.Wherein method can be in storing data, the first verification data are generated according to the Backup Data in Backup Data region, inquire the version index number of Backup Data in Backup Data region, and more new version index number, at least two storing data regions are distributed in read-only memory, the combination of the Backup Data in storage Backup Data region, version index number and the first verification data is in storing data region respectively;When loading data, calculate the second verification data of Backup Data in storing data region, in the first verification data and identical the second verification data, choosing corresponding storing data region is valid data region, compare the version index number in different valid data regions, it chooses that meet the corresponding valid data area of version index number of prerequisite be latest data region, and loads Backup Data in latest data region to Backup Data region.

Description

Backup data store and loading method, device and storage medium
Technical field
The present invention relates to technical field of data processing, in particular to a kind of backup data store and loading method, dress It sets and storage medium.
Background technique
In current TBOX software systems, more data is backed up and stored.But generally require backup Data are in being respectively defined in different compiled code or module, when being backed up to these data, developer need by These data backup to ROM one by one, and process is not only cumbersome but also does not allow easy to maintain and updates.
Summary of the invention
The embodiment of the present invention at least discloses a kind of backup data store and loading method, can uniformly deposit Backup Data It puts, while being compared by proof of algorithm and version index, guarantee the timeliness of Backup Data.
The described method includes:
S100, the Backup Data region that storage Backup Data is distributed in random access memory;
In storing data,
S210, the first verification data are generated according to the Backup Data in the Backup Data region,
The version index number of Backup Data in S220, the inquiry Backup Data region, and update the version index Number,
S230, at least two storing data regions are distributed in read-only memory,
S240, Backup Data, the version index number and first school in the Backup Data region are stored respectively The combination of data is tested in the storing data region;
When loading data,
S310, the second verification data for calculating Backup Data in the storing data region,
S320, in the first verification data and identical the second verification data, choose the corresponding storing data Region is valid data region,
S330, the different valid data regions of comparison version index number,
The corresponding valid data area of the version index number that S340, selection meet prerequisite is latest data area Domain, and Backup Data in the latest data region is loaded to the Backup Data region.
In some embodiments disclosed by the invention,
S100 is configured with:
S110, the storage information in random access memory configuration Backup Data region and the Backup Data region;
S120, storage Backup Data are in the Backup Data region of the correspondence storage information.
In some embodiments disclosed by the invention,
S210 is configured as generating the first cryptographic Hash according to the Backup Data in the Backup Data region;
S240 is configured to store Backup Data in the Backup Data region, the version index number and described The combination of first cryptographic Hash is in the storing data region;
S310 is configured as calculating the second cryptographic Hash of Backup Data in the storing data region;
S320, in first cryptographic Hash and identical second cryptographic Hash, choose the corresponding storing data region For valid data region.
In some embodiments disclosed by the invention,
S220 is configured with:
The version index number of Backup Data in S221, the inquiry Backup Data region, and in the version index number In the absence of, version index number described in assignment is N, and N is natural number,
S222, make the version index number plus 1;
S330 is configured as the numerical values recited of version index number in the different valid data regions of comparison;
S340 is configured as choosing the corresponding valid data area of the numerical value maximum version index number being latest data Region, and Backup Data in the latest data region is loaded to the Backup Data region.
In some embodiments disclosed by the invention,
S340 is configured as when the maximum version index number of numerical value has at least two, is randomly selected numerical value maximum and is appointed The corresponding valid data area of the version index number of anticipating is in latest data region, and the load latest data region Backup Data to the Backup Data region.
In some embodiments disclosed by the invention,
S340 is configured as when not meeting the version index of prerequisite, initializes the Backup Data area Domain.
A kind of storage medium is at least disclosed in the embodiment of the present invention, for storing computer instruction, which is characterized in that described The step of method as claimed in any one of claims 1 to 6 is realized when computer instruction is executed by processor.
In the embodiment of the present invention, a kind of backup data store and loading device are at least disclosed, which is characterized in that
Described device includes:
Random access memory configuration is configured as distributing at least one for storing the Backup Data area of Backup Data Domain;
Read-only memory configuration is configured as at least two storing data regions of distribution;
Data memory module is configured as generating the first check number according to the Backup Data in the Backup Data region According to inquiring the version index number of Backup Data in the Backup Data region, and update the version index number, store respectively The combination of Backup Data, the version index number and the first verification data in the Backup Data region is in the storage Data area;
Data loading module is configured as calculating the second verification data of Backup Data in the storing data region, When the first verification data and identical the second verification data, choosing the corresponding storing data region is valid data area Domain, the version index number in the more different valid data regions choose the version index correspondence for meeting prerequisite The valid data area be latest data region, and load Backup Data in the latest data region to the backup Data area.
For above scheme, the present invention is by being referring to the drawings described in detail disclosed exemplary embodiment, also The other feature and its advantage for making the embodiment of the present invention understand.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the framework map of one backup data store of embodiment and loading device;
Fig. 2 is the flow chart of two backup data store of embodiment and loading device.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of disclosed the embodiment of the present invention in the accompanying drawings is not intended to limit below claimed The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects It encloses.
The present embodiment discloses a kind of backup data store and loading device.Device can be to needing to back up through this embodiment The pretreatment of data, the specified region for being stored in random access memory for enabling Backup Data to be unified;Meanwhile device pair The multiple redundancy backup and hash effect of Backup Data, can optimize the Stored Procedure of Backup Data, improve Backup Data when Effect property.
Embodiment one
Fig. 1 is the framework map of the present embodiment backup data store and loading device.Referring to FIG. 1, the present embodiment device packet Include memory and processing unit.The example such as electric terminal of same architecture is included at least in the prior art.
Electric terminal can be the equipment for providing a user voice and/or data connectivity, with wireless connecting function Handheld device or other processing equipments for being connected to radio modem, such as: the electric terminal can be mobile electricity Words (or being " honeycomb " phone), computer with mobile terminal etc., can also be portable, pocket, hand-held, calculating Built in machine or vehicle-mounted mobile device, naturally it is also possible to be wearable device (such as smartwatch, Intelligent bracelet), plate Computer, PC (Personal Computer, PC), personal digital assistant (Personal Digital Assistant, PDA), POS (point-of-sale terminal, Point of Sales) etc..
Electric terminal generally has the RAM and ROM as memory.RAM includes at least an assigned Backup Data area The application journey that domain, application program needed for can be used for storage program area, at least one function and the present embodiment are related to Sequence obtains or output or the Backup Data of process etc..ROM includes at least two assigned storing data regions, can be used for Storage uses created data according to electric terminal, specifies Backup Data region including slave RAM involved in the present embodiment The Backup Data etc. of middle copy.
Electric terminal generally has the processor as processing unit.The processor combination peripheral circuit energy of the present embodiment device Enough execute data processing module and data loading module.
The processor and its peripheral circuit of the present embodiment, by distributing the standby of RAM in the compiling link file of application program The storage information of part data area, such as section name, initial position and size.And according to storage information, distribute specified backup number According to arrive Backup Data region.
When data memory module is executed by processor, for storing Backup Data, step specific as follows.
The first hash is generated according to the Backup Data in Backup Data region.
The version index index of Backup Data in inquiry Backup Data region, and more new version index index Numerical values recited.
The combination of the Backup Data version index index and the first hash in Backup Data region are stored respectively in storage number According to region.
Preferably, the present embodiment is as follows the step of the numerical values recited update to version index index is performed.
The version index index of Backup Data in Backup Data region is inquired, and is not deposited in version index index When, assignment version index index be 0;Make version index index+1.
When data loading module is executed by processor, for loading Backup Data, step specific as follows.
Calculate the 2nd hash of Backup Data in storing data region.
In the first hash and the 2nd hash identical, choosing corresponding storing data region is valid data region.
Compare the numerical values recited of version index index in valid data region.
When the maximum version index index of numerical value only has one, it is corresponding to choose numerical value maximum version index index Valid data area be latest data region, and load Backup Data in latest data region to Backup Data region.
When the maximum version index index of numerical value has at least two, the maximum any version index of numerical value is randomly selected Number corresponding valid data area index is latest data region, and load Backup Data in latest data region to backing up Data area.
In no version index index, initialization backup data area.
Embodiment two
Referring to FIG. 2, the present embodiment discloses the flow chart of backup data store and loading method.The step of the present embodiment method Suddenly it can completely be executed in the processor for being connected with RAM and ROM.
S110, the storage information in RAM configuration backup data area and the Backup Data region.
S120, storage Backup Data are in the Backup Data region of the correspondence storage information.
S210, the first hash is generated according to the Backup Data in Backup Data region.
The version index index of Backup Data in S221, inquiry Backup Data region, or in version index number In the absence of index, assignment version index index is 0.
S222, make version index index+1.
S230, two storing data regions are distributed in ROM.
The combination of S240, the Backup Data version index index and the first hash that store Backup Data region respectively exist Storing data region.
S310, the 2nd hash for calculating Backup Data in storing data region.
S320, in the first hash and the 2nd hash identical, choosing corresponding storing data region is valid data region.
The numerical values recited of version index index in S330, the different valid data regions of comparison.
S340, according to the numerical values recited of all version index index, specifically execute following three steps:
S341, when the maximum version index index of numerical value has only one, choose numerical value maximum version index number The corresponding valid data area index is latest data region, and loads Backup Data in latest data region to backup number According to region;
S342, when the maximum version index index of numerical value has at least two, randomly select the maximum any version of numerical value The corresponding valid data area call number index is latest data region, and the Backup Data loaded in latest data region arrives Backup Data region;
S343, in no version index index, initialization backup data area.
Embodiment three
In order to which the method to the present embodiment further illustrates, the present embodiment discloses a kind of storage medium, for storing The computer instruction that can be executed by the processor of such as electric terminal and its peripheral circuit.The computer instruction of the present embodiment is located Manage the step of realizing the above method when device executes.
These are only the preferred embodiment of the present invention, is not intended to restrict the invention, for those skilled in the art For member, the invention may be variously modified and varied.All within the spirits and principles of the present invention, it is made it is any modification, Equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of backup data store and loading method, which is characterized in that
The described method includes:
S100, the Backup Data region that storage Backup Data is distributed in random access memory;
In storing data,
S210, the first verification data are generated according to the Backup Data in the Backup Data region,
The version index number of Backup Data in S220, the inquiry Backup Data region, and the version index number is updated,
S230, at least two storing data regions are distributed in read-only memory,
S240, Backup Data, the version index number and first check number in the Backup Data region are stored respectively According to combination in the storing data region;
When loading data,
S310, the second verification data for calculating Backup Data in the storing data region,
S320, in the first verification data and identical the second verification data, choose the corresponding storing data region For valid data region,
S330, the different valid data regions of comparison version index number,
The corresponding valid data area of the version index number that S340, selection meet prerequisite is latest data region, And Backup Data in the latest data region is loaded to the Backup Data region.
2. backup data store as described in claim 1 and loading method it is characterized in that,
S100 is configured with:
S110, the storage information in random access memory configuration Backup Data region and the Backup Data region;
S120, storage Backup Data are in the Backup Data region of the correspondence storage information.
3. backup data store as described in claim 1 and loading method, which is characterized in that
S210 is configured as generating the first cryptographic Hash according to the Backup Data in the Backup Data region;
S240 is configured to store Backup Data in the Backup Data region, the version index number and described first The combination of cryptographic Hash is in the storing data region;
S310 is configured as calculating the second cryptographic Hash of Backup Data in the storing data region;
S320, in first cryptographic Hash and identical second cryptographic Hash, choosing the corresponding storing data region is to have Imitate data area.
4. backup data store as described in claim 1 and loading method, which is characterized in that
S220 is configured with:
The version index number of Backup Data in S221, the inquiry Backup Data region, and do not deposited in the version index number When, version index number described in assignment is N, and N is natural number,
S222, make the version index number plus 1;
S330 is configured as the numerical values recited of version index number in the different valid data regions of comparison;
S340 is configured as choosing the corresponding valid data area of the numerical value maximum version index number being latest data region, And Backup Data in the latest data region is loaded to the Backup Data region.
5. backup data store as claimed in claim 4 and loading method, which is characterized in that
S340 is configured as when the maximum version index number of numerical value has at least two, randomly selects the maximum any institute of numerical value It is standby in latest data region, and the load latest data region for stating the corresponding valid data area of version index number Part data are to the Backup Data region.
6. backup data store as described in claim 1 and loading method, which is characterized in that
S340 is configured as when not meeting the version index of prerequisite, initializes the Backup Data region.
7. a kind of storage medium, for storing computer instruction, which is characterized in that when the computer instruction is executed by processor The step of realizing method as claimed in any one of claims 1 to 6.
8. a kind of backup data store and loading device, which is characterized in that
Described device includes:
Random access memory configuration is configured as distributing at least one for storing the Backup Data region of Backup Data;
Read-only memory configuration is configured as at least two storing data regions of distribution;
Data memory module is configured as generating the first verification data according to the Backup Data in the Backup Data region, look into The version index number of Backup Data in the Backup Data region is ask, and updates the version index number, respectively described in storage The combination of Backup Data, the version index number and the first verification data in Backup Data region is in the storing data Region;
Data loading module is configured as calculating the second verification data of Backup Data in the storing data region, described When the first verification data and identical the second verification data, choosing the corresponding storing data region is valid data region, Compare the version index number in the different valid data regions, chooses the corresponding institute of the version index number for meeting prerequisite Stating valid data area is latest data region, and loads Backup Data in the latest data region to the Backup Data Region.
CN201910185669.5A 2019-03-12 2019-03-12 Backup data store and loading method, device and storage medium Pending CN110008060A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910185669.5A CN110008060A (en) 2019-03-12 2019-03-12 Backup data store and loading method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910185669.5A CN110008060A (en) 2019-03-12 2019-03-12 Backup data store and loading method, device and storage medium

Publications (1)

Publication Number Publication Date
CN110008060A true CN110008060A (en) 2019-07-12

Family

ID=67166877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910185669.5A Pending CN110008060A (en) 2019-03-12 2019-03-12 Backup data store and loading method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110008060A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070043790A1 (en) * 2005-08-18 2007-02-22 Emc Corporation Snapshot indexing
CN105740098A (en) * 2016-01-26 2016-07-06 浪潮(北京)电子信息产业有限公司 Determination method and system for stale data among backup data
CN107332690A (en) * 2017-06-06 2017-11-07 烽火通信科技股份有限公司 A kind of method that sub-network level network configuration data retracts
CN107544873A (en) * 2017-08-28 2018-01-05 郑州云海信息技术有限公司 A kind of standby system and method for depositing Backup Data
CN107844386A (en) * 2016-09-19 2018-03-27 北京金山云网络技术有限公司 A kind of data backup, restoration methods and device
CN108573034A (en) * 2018-03-30 2018-09-25 北京辰森世纪科技股份有限公司 Data back up method, device, computer equipment and readable storage medium storing program for executing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070043790A1 (en) * 2005-08-18 2007-02-22 Emc Corporation Snapshot indexing
CN105740098A (en) * 2016-01-26 2016-07-06 浪潮(北京)电子信息产业有限公司 Determination method and system for stale data among backup data
CN107844386A (en) * 2016-09-19 2018-03-27 北京金山云网络技术有限公司 A kind of data backup, restoration methods and device
CN107332690A (en) * 2017-06-06 2017-11-07 烽火通信科技股份有限公司 A kind of method that sub-network level network configuration data retracts
CN107544873A (en) * 2017-08-28 2018-01-05 郑州云海信息技术有限公司 A kind of standby system and method for depositing Backup Data
CN108573034A (en) * 2018-03-30 2018-09-25 北京辰森世纪科技股份有限公司 Data back up method, device, computer equipment and readable storage medium storing program for executing

Similar Documents

Publication Publication Date Title
CN111522641B (en) Task scheduling method, device, computer equipment and storage medium
Liu et al. Extended benders decomposition for two-stage SCUC
CN108881193B (en) Message generation method and device
CN109710655A (en) Data base query method, device, terminal device and storage medium
CN104486748B (en) Contact number update method and mobile terminal
CN108228628A (en) Wide table generating method and its device in a kind of structured query language database
CN107336681A (en) The control method and device of vehicle
CN106301772A (en) Cipher set-up method, device and for arranging the device of password
CN102624958B (en) Device and method for managing contact information
CN105630419B (en) A kind of the subregion view sending method and management node of resource pool
CN110532041A (en) Regulation engine method for parameter configuration, device, computer equipment and storage medium
CN101867638B (en) Automatic sorting method and terminal
CN104408192A (en) Compression processing method and device of character string type column
CN113240226A (en) Resource distribution method and device between satellite ground stations
CN106844319A (en) Report form generation method and device
CN110008060A (en) Backup data store and loading method, device and storage medium
CN108959229A (en) Planning report generation method, terminal and storage medium based on customer information
CN109644209A (en) For assigning the method for MAC Address and with the database of MAC Address
CN109697569A (en) A kind of method and system defining workflow
CN106664637B (en) Routing information configuration method and device
CN109408033B (en) Jenkins-based mirror image file construction method and device
CN110324845B (en) Resource allocation method and device
CN107562842A (en) The guard method of resource data and equipment
CN108615196A (en) Declaration form certification generation method and device
CN108959214A (en) It prepares lessons courseware bringing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190712

RJ01 Rejection of invention patent application after publication