CN109271283A - A kind of data back up method based on block chain - Google Patents
A kind of data back up method based on block chain Download PDFInfo
- Publication number
- CN109271283A CN109271283A CN201811038387.4A CN201811038387A CN109271283A CN 109271283 A CN109271283 A CN 109271283A CN 201811038387 A CN201811038387 A CN 201811038387A CN 109271283 A CN109271283 A CN 109271283A
- Authority
- CN
- China
- Prior art keywords
- data
- block chain
- backed
- node
- sent
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1435—Saving, restoring, recovering or retrying at system level using file system or storage system metadata
Abstract
The invention discloses a kind of data back up method based on block chain, limited with the number of nodes for solving distributed cluster file system in the prior art, so as to cause the bottleneck problem of system storage performance.Method includes: the data backup requests for receiving source device and sending, and data backup requests are treated Backup Data for request and backed up;Data to be backed up are sent to the node in block chain network, are stored with requesting the node in block chain network to treat Backup Data;Storage location of the data to be backed up in block chain network is sent to record node, to record the storage location of nodes records data to be backed up.Using this method, the node in block chain network can solve prior art problem with infinite expanding.Invention additionally discloses a kind of data backup device based on block chain, smart machine and computer readable storage mediums.
Description
Technical field
The present invention relates to block chain technical field more particularly to a kind of data back up method based on block chain, device, intelligence
It can equipment and a kind of computer readable storage medium.
Background technique
Operation error or the system failure occur for anti-locking system leads to loss of data, can by data backup will all or
Partial data set copies in other storage mediums from the hard disk or array of applied host machine.
In the prior art, distributed storage solves, once storage medium goes wrong, to be easy for since data are centrally stored
The risk problem for causing Backup Data to be lost;But the number of nodes of distributed cluster file system becomes system storage
The bottleneck of energy, currently, extended node number known to distribution is 10k.
Summary of the invention
The embodiment of the present invention provides a kind of data back up method based on block chain, distributed in the prior art to solve
The number of nodes of cluster file system is limited, so as to cause the bottleneck problem of system storage performance.
The embodiment of the present invention also provides a kind of data backup device based on block chain, a kind of smart machine, and one kind
Computer readable storage medium.
The embodiment of the present invention adopts the following technical solutions:
A kind of data back up method based on block chain, comprising:
The data backup requests that source device is sent are received, the data backup requests treat Backup Data progress for requesting
Backup;
The data to be backed up are sent to the node in block chain network, to request the node in block chain network to institute
Data to be backed up are stated to be stored;
Storage location of the data to be backed up in block chain network is sent to record node, so as to record section
Point records the storage location of the data to be backed up.
A kind of data backup device based on block chain, including receiving module, data transmission blocks, position sending module,
Wherein:
Receiving module, for receiving the data backup requests of source device transmission, the data backup requests are for request pair
Data to be backed up are backed up;
Data transmission blocks, for the data to be backed up to be sent to the node in block chain network, to request block
Node in chain network stores the data to be backed up;
Position sending module, it is to be backed up described in nodes records to record for storage location to be sent to record node
The storage location of data.
A kind of smart machine, comprising: memory, processor and be stored on the memory and can be on the processor
The computer program of operation realizes the number as described above based on block chain when the computer program is executed by the processor
The step of according to backup method.
A kind of computer readable storage medium, which is characterized in that calculating is stored on the computer readable storage medium
Machine program realizes the step of the data back up method as described above based on block chain when the computer program is executed by processor
Suddenly.
At least one above-mentioned technical solution used in the embodiment of the present invention can reach it is following the utility model has the advantages that
Using method provided in an embodiment of the present invention, since the node in block chain network can be solved with infinite expanding
The prior art is since the number of nodes of distributed cluster file system is limited, so as to cause the bottleneck problem of system storage performance.
In addition, the memory node scale in storing process that can also solve increases bring pressure using scheme provided in an embodiment of the present invention
Power problem.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of implementation process schematic diagram of the data back up method based on block chain provided in an embodiment of the present invention;
Fig. 1 a is a kind of data backup implementation process without proxy mode based on block chain provided in an embodiment of the present invention
Schematic diagram;
Fig. 1 b is a kind of data backup implementation process for having proxy mode based on block chain provided in an embodiment of the present invention
Schematic diagram;
Fig. 2 is a kind of concrete structure schematic diagram of the data backup device based on block chain provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of smart machine provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the specific embodiment of the invention and
Technical solution of the present invention is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
The technical solution provided below in conjunction with attached drawing, each embodiment that the present invention will be described in detail.
To solve in the prior art since the number of nodes of distributed cluster file system is limited, so as to cause system storage
There is bottleneck in performance, the embodiment of the present invention provides a kind of data back up method based on block chain.
The executing subject of this method can be various types of calculating equipment, alternatively, can be mounted to calculate in equipment
Application program or apply (Application, APP).The calculating equipment, for example can be server etc..
For ease of description, the executing subject of the embodiment of the present invention in this way be server for, be situated between to this method
It continues.It will be understood by those skilled in the art that the embodiment of the present invention is introduced method so that executing subject is server as an example, only
It is a kind of exemplary illustration, the corresponding claims of this programme is not construed as limiting.
Specifically, the implementation process of this method provided in an embodiment of the present invention is as shown in Figure 1, include the following steps:
Step 11, the data backup requests that source device is sent are received, data backup requests treat Backup Data for requesting
It is backed up;
The equipment that source device mentioned here can be data backup demand.Data to be backed up, can be in database
Data of storage, and type of database is without limitation, data block concrete type such as can be mysql, mssql, oracle,
Mongodb, DB2 etc.;Equally, the data to be backed up, are also possible to file;Wherein, it should be noted that the data to be backed up
It is not limited to database or file, and database and file type are not construed as limiting.
Step 12, the data to be backed up are sent to the node in block chain network, to request in block chain network
Node stores the data to be backed up;
Step 13, storage location of the data to be backed up in block chain network is sent to record node, with toilet
State the storage location of data to be backed up described in record nodes records.
Wherein, storage location of the data to be backed up in block chain network is sent to mode there are many record nodes, for example,
After data to be backed up store on the node in block chain network, storage location can be sent to record node by node, to remember
Record the storage location of nodes records data to be backed up.In addition, the data tight for rights management, can first pass through transfer machine and obtain
Storage location of the data to be backed up in block chain network is taken, is then sent to again by the storage location that transfer machine will acquire
Record node.Wherein, storage location of the data to be backed up in block chain network is sent to record node, be not limited to above-mentioned
Two ways.
Using this method provided in an embodiment of the present invention, even if the amount of data to be backed up is sufficiently large, implemented using the present invention
The method that example provides, node in block chain network can with infinite expanding, thus solve the prior art in this case due to
The number of nodes of distributed cluster file system is limited, so as to cause the bottleneck problem of system storage performance.In addition, using this hair
The scheme that bright embodiment provides, the scale in storing process that can also solve increase bring stress problems.
Meanwhile method provided in an embodiment of the present invention, it the pretreatment such as can also be encrypted, be compressed to Backup Data, it is full
The demand for security of sufficient backup data store process, to further improve data storage safety.It is specifically described below.
In one or more embodiment provided by the invention, it is contemplated that the safety of data transmission, usually will it is described to
Before Backup Data is sent to the node in block chain network, the data to be backed up can also be pre-processed.The pretreatment
E.g.: encryption, compression, wherein encryption, compress mode are not construed as limiting, such as can be using AES-256 to the number to be backed up
According to encryption.
In one or more embodiment provided by the invention, the data to be backed up are stored with the format of (backup),
It can be configured in advance depending on demand by the technological development personnel of server.For example, which such as can be vmdk lattice
Formula, mirror-image format, iso format.Under these types of format, it is ensured that the Backup Data later period is in Keyboard Video
It can directly pull-up operation in Mouse, vmware and virtualbox.
In one or more embodiment provided by the invention, the frequency of (backup) is stored not to the data to be backed up
It limits, for example, can be timed backup, is also possible to back up in realtime.For example, consider storage performance and Information Security,
It usually can choose and back up in realtime, once data to be backed up change, then changed data to be backed up are backed up.
In addition to the data or file that store in above-mentioned database, data to be backed up can also be the full dose number in source device
According to, incremental data or variance data;
Wherein, full dose data are all data in source device;
Incremental data, for the data increased newly after Last Backup;
Such as, it is assumed that D disk to be backed up has file 1.tex, file size 5GB, file 2.tex, file size 10GB;
A full backup is carried out to D disk to be backed up now, generates the image file 1.adb that a size is 15GB, this mirror image text
It include file 1.tex and file 2.tex in part.Then two file 3.tex and file 4.tex are newly added into D disk to be backed up,
File 3.tex and file 4.tex is the incremental data at this time.
Variance data refers to the data distinct with Last Backup data.
Such as, it is assumed that D disk to be backed up has file 1.tex, file size 5GB, file 2.tex, file size 10GB,
If deleting file 1.tex now, a file 3.tex is then newly added, at this point, file 1.tex, file 3.tex belong to difference
Data, specifically, if in storing data on the node in block chain network, only to file on the node in block chain network
3.tex is stored, but is not deleted and had stored in file 1.tex on the node in block chain network.
In one or more embodiment provided by the invention, the mode of (backup) is stored not to the data to be backed up
It limits, for example, can be no proxy mode, is also possible to have proxy mode.Wherein, as shown in Figure 1a, no proxy mode is
Refer to and increase a transfer machine between server and block chain network node, record node, server is realized by transfer machine
With record node, connection between server and block chain network node carries out data backup.As shown in Figure 1 b, there is proxy mode
Refer to server and transfer machine one, is directly connect with record node, block chain network node by server, it is standby to carry out data
Part.
In one or more embodiment provided by the invention, usually it is sent in block chain network by data to be backed up
Before node, data to be backed up can also be subjected to piecemeal by preset condition and obtain multiple block datas, block data is distinguished
It is sent to different block chain nodes;After receiving block data so as to block chain node, the cryptographic Hash of the data is calculated, and by institute
Cryptographic Hash is stated to store to the block of block chain.
Wherein, data to be backed up are subjected to piecemeal by preset condition, preset condition can regard demand by the technology of client
Developer is configured in advance.For example, the condition can be evenly distributed, load balancing, dilatation capacity reducing when the data that generate
It migrates few as far as possible.Wherein, it is evenly distributed and refers to that each data slice content after dividing is as close as possible;Load balancing refers to
The data volume of each data slice is as close as possible.
For example, it is assumed that the Data Migration generated to be evenly distributed, when load balancing, dilatation capacity reducing is few for item as far as possible
Part treats Backup Data by preset condition and carries out piecemeal, then division mode such as can be following several:
Mode one: it is divided according to data number section to be backed up;
Specifically, for example the number section that same size is stored on each block chain node can be made according to number section interval division
Section, for example can be that [1,1000] is divided into one piece key value, it is that [1001,2000] are divided into one piece key value, with this
Analogize.
Mode two: it is divided according to the cryptographic Hash of the keyword of data to be backed up;
Specifically, for example, predefine piecemeal quantity (assuming that data to be backed up are divided into 5 pieces), then calculate to standby
The cryptographic Hash of the keyword of part data, by taking the remainder calculating to cryptographic Hash, i.e. Hash (key) %5 obtains one as a result, handle
As a result identical data assign to same, it is assumed that it is obtained by calculation one group of numerical value 1,2,1,3,2,1,2,3,5,4, then and numerical value
One piece is divided into for 1, numerical value is 2 to be divided into one piece, numerical value is 3 to be divided into one piece, and numerical value is 4 to be divided into one piece,
Numerical value is 5 to be divided into one piece.
Mode three: it is divided according to the ID feature of data to be backed up.
Specifically, the identical data to be backed up of result are divided into a piece of by the ID modulus for treating Backup Data.
In addition to this it is possible to be divided according to features such as time range, retrieval tables, it should be noted that recited above
Several division modes are intended merely to the more convenient several division methods for understanding the embodiment of the present invention and choosing, and do not make to the present invention
At restriction.
In general, a variety of sides can be passed through after data to be backed up are obtained multiple block datas by preset condition progress piecemeal
Block data is sent respectively to different block chain nodes by formula, for example, can be determined according to the cryptographic Hash of block data will divide
Block number is according to the position for being sent to block chain node, specifically, it is assumed that there are 4 block datas, then it can be according to block data Hash
Rear two bit numbers of value determine that block data is sent to the position of block chain node, for example, the wherein Kazakhstan of some block data
Two are 10 after uncommon value, then send the block data on the node 3 of the block chain network (value 00,01 of two bits,
10,11 correspond respectively to block chain network node 1,2,3,4).
Similarly, it is assumed that have 7 block datas, then piecemeal can be determined according to rear three bit numbers of block data cryptographic Hash
Data are sent to the position of block chain node, for example, wherein after the cryptographic Hash of certain three block data three be 101 respectively,
000,011, then divide and send these three block datas on the node 3 of block chain network (value 000,001 of three bits,
010,011,100,101,110,111 corresponds respectively to block chain network node 1,2,3,4,5,6,7,8).
Wherein, the method for the position that block data is sent to block chain is not limited to according to block data by specific determination
This determining method of cryptographic Hash.
After block chain node receives block data, the cryptographic Hash of the data is calculated, and the cryptographic Hash being calculated is stored
To the block of block chain, it should be noted that for example, can ensure that the data on block chain are same by the intelligent contract write
Step, and the cryptographic Hash of synchrodata is only needed when data synchronization.Wherein, the method that specific implementation data synchronize is without limitation.Cause
For block chain network node will not focused data content itself, so when synchrodata can synchrodata Hash
Value, it is such that the data method of synchronization can be made convenient, fast.
Using this method provided in an embodiment of the present invention, even if the amount of data to be backed up is sufficiently large, due to block chain network
In node between communicated by P2P mode, can with infinite expanding, thus solve the prior art in this case due to distribution
The number of nodes of formula cluster file system is limited, leads to the bottleneck problem of system storage performance.
It is provided by the invention one or more embodiment in, usually can also by data to be backed up in block chain network
Storage location be sent to record node before, obtain block chain in intelligent contract send data indexing information.
Wherein, data directory is used to determine filename, the size, md5 value, the Merkel in block chain of data to be backed up
Root vertex.
Restored and searched in general, Backup Data can also be treated according to data directory.
For example, can be searched according to the data directory of acquisition the data after the completion of backup, specifically, for example, can
To be searched according to the file in data directory the data after the completion of backup.Wherein, lookup mode is not construed as limiting, and is not limited
According to filename lookup.
The embodiment of the present invention, the data that can also be completed to backup are restored, wherein restoring the method for Backup Data not
It limits, such as, it is possible to specify the data that timing node completes backup are restored, and also can specify file or specified mesh
It records the data for completing backup to restore, wherein the version restored can according to need and preset, for example, can choose extensive
Multiple latest edition, also can choose recovery indicated release.In addition, restoring the position of Backup Data can also be configured, for example,
Setting is restored to source directory.
It should be noted that the storage location of the mode and recovery restored all is not construed as limiting.
Using this method provided in an embodiment of the present invention, even if the amount of data to be backed up is sufficiently large, implemented using the present invention
The method that example provides, node in block chain network can with infinite expanding, thus solve the prior art in this case due to
The number of nodes of distributed cluster file system is limited, so as to cause the bottleneck problem of system storage performance.
For solve in the prior art the prior art in this case since the number of nodes of distributed cluster file system has
Limit, so as to cause the bottleneck problem of system storage performance, the embodiment of the present invention provides a kind of data backup dress based on block chain
It sets, the concrete structure schematic diagram of the device is as shown in Fig. 2, include receiving module 21, data transmission blocks 22, position sending module
23, in which:
Receiving module 21, for receiving the data backup requests of source device transmission, the data backup requests are for requesting
Backup Data is treated to be backed up;
Data transmission blocks 22, for the data to be backed up to be sent to the node in block chain network, to request area
Node in block chain network stores the data to be backed up;
Position sending module 23, for storage location to be sent to record node, to record described in nodes records to standby
The storage location of part data.
Piecemeal is carried out in order to treat Backup Data, the device provided in an embodiment of the present invention can also include: piecemeal module
24, it, will be described for before the node that the data to be backed up are sent in block chain network by the data transmission blocks
Data to be backed up carry out piecemeal by preset condition and obtain multiple block datas, and the block data is sent respectively to different areas
Block chain node.
The data to be backed up are full dose data, incremental data or the variance data in the source device;
Wherein, the full dose data are all data in source device;
The incremental data, for the data increased newly after Last Backup;
The variance data is the data distinct with the data of Last Backup.
Described device further include:
Module 25 is obtained, for obtaining the intelligent contract in block chain before storage location to be sent to record node
The data indexing information of transmission, the data directory be used to determine the filenames of the data to be backed up, size, md5 value, in area
Merkel's root vertex in block chain.
Device provided in an embodiment of the present invention, even if the amount of data to be backed up is sufficiently large, due to the section in block chain network
Point can be with infinite expanding, to solve the prior art in this case since the number of nodes of distributed cluster file system has
Limit, leads to system storage performance bottleneck problem.
A kind of hardware structural diagram of Fig. 3 smart machine of each embodiment to realize the present invention, the smart machine 300
Including but not limited to: radio frequency unit 301, audio output unit 303, input unit 304, sensor 305, is shown network module 302
Show the components such as unit 306, user input unit 307, interface unit 308, memory 309, processor 310 and power supply 311.
It will be understood by those skilled in the art that smart machine structure shown in Fig. 3 does not constitute the restriction to smart machine, intelligently set
Standby may include perhaps combining certain components or different component layouts than illustrating more or fewer components.In the present invention
In embodiment, smart machine includes but is not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, can wear
Wear equipment and pedometer etc..
Wherein, processor 310, for receiving the data backup requests of source device transmission, the data backup requests are used for
Request is treated Backup Data and is backed up;The data to be backed up are sent to the node in block chain network, to request block
Node in chain network stores the data to be backed up;By storage position of the data to be backed up in block chain network
It sets and is sent to record node, so as to the storage location of data to be backed up described in the record nodes records.
Memory 309, for storing the computer program that can be run on processor 310, the computer program is processed
When device 310 executes, the above-mentioned function that processor 310 is realized is realized.
It should be understood that the embodiment of the present invention in, radio frequency unit 301 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 310 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 301 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 301 can also by wireless communication system and network and other set
Standby communication.
Smart machine provides wireless broadband internet by network module 302 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 303 can be received by radio frequency unit 301 or network module 302 or in memory 309
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 303 can also provide and intelligence
The relevant audio output of specific function that energy equipment 300 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 303 includes loudspeaker, buzzer and receiver etc..
Input unit 304 is for receiving audio or video signal.Input unit 304 may include graphics processor
(Graphics Processing Unit, GPU) 3041 and microphone 3042, graphics processor 3041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 306.Through graphics processor 3041, treated that picture frame can be deposited
Storage is sent in memory 309 (or other storage mediums) or via radio frequency unit 301 or network module 302.Mike
Wind 3042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output that mobile communication base station can be sent to via radio frequency unit 301 is converted in the case where telephone calling model.
Smart machine 300 further includes at least one sensor 305, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 3061, and proximity sensor can close when smart machine 300 is moved in one's ear
Display panel 3061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify smart machine posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 305 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 306 is for showing information input by user or being supplied to the information of user.Display unit 306 can wrap
Display panel 3061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 3061.
User input unit 307 can be used for receiving the number or character information of input, and generate the use with smart machine
Family setting and the related key signals input of function control.Specifically, user input unit 307 include touch panel 3071 and
Other input equipments 3072.Touch panel 3071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 3071 or in touch panel 3071
Neighbouring operation).Touch panel 3071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 310, receiving area
It manages the order that device 310 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Seed type realizes touch panel 3071.In addition to touch panel 3071, user input unit 307 can also include other input equipments
3072.Specifically, other input equipments 3072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 3071 can be covered on display panel 3061, when touch panel 3071 is detected at it
On or near touch operation after, send processor 310 to determine the type of touch event, be followed by subsequent processing device 310 according to touching
The type for touching event provides corresponding visual output on display panel 3061.Although in Fig. 3, touch panel 3071 and display
Panel 3061 is the function that outputs and inputs of realizing smart machine as two independent components, but in some embodiments
In, can be integrated by touch panel 3071 and display panel 3061 and realize the function that outputs and inputs of smart machine, it is specific this
Place is without limitation.
Interface unit 308 is the interface that external device (ED) is connect with smart machine 300.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 308 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
It inputs one or more elements for being transferred in smart machine 300 by received or can be used in smart machine 300 and outer
Data are transmitted between part device.
Memory 309 can be used for storing software program and various data.Memory 309 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 309 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 310 is the control centre of smart machine, utilizes each of various interfaces and the entire smart machine of connection
A part by running or execute the software program and/or module that are stored in memory 309, and calls and is stored in storage
Data in device 309 execute the various functions and processing data of smart machine, to carry out integral monitoring to smart machine.Place
Managing device 310 may include one or more processing units;Preferably, processor 310 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 310.
Smart machine 300 can also include the power supply 311 (such as battery) powered to all parts, it is preferred that power supply 311
Can be logically contiguous by power-supply management system and processor 310, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, smart machine 300 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of smart machine, including processor 310, and memory 309 is stored in
On memory 309 and the computer program that can run on the processor 310, the computer program are executed by processor 310
Each process of the above-mentioned data back up method embodiment based on block chain of Shi Shixian, and identical technical effect can be reached, it is
It avoids repeating, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each of the above-mentioned data back up method embodiment based on block chain when being executed by processor
A process, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, described computer-readable to deposit
Storage media, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic or disk etc..
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
The above description is only an embodiment of the present invention, is not intended to restrict the invention.For those skilled in the art
For, the invention may be variously modified and varied.All any modifications made within the spirit and principles of the present invention are equal
Replacement, improvement etc., should be included within scope of the presently claimed invention.
Claims (10)
1. a kind of data back up method based on block chain characterized by comprising
The data backup requests that source device is sent are received, the data backup requests are used to request to treat Backup Data progress standby
Part;
The data to be backed up are sent to the node in block chain network, with request the node in block chain network to it is described to
Backup Data is stored;
Storage location of the data to be backed up in block chain network is sent to record node, so as to record node note
Record the storage location of the data to be backed up.
2. the method as described in claim 1, which is characterized in that be sent in block chain network by the data to be backed up
Before node, the method also includes:
The data to be backed up are subjected to piecemeal by preset condition and obtain multiple block datas, the block data is sent respectively
To different block chain nodes;After receiving block data so as to the block chain node, the cryptographic Hash of the data is calculated, and by institute
Cryptographic Hash is stated to store to the block of block chain.
3. the method as described in claim 1, which is characterized in that the data to be backed up are the full dose number in the source device
According to, incremental data or variance data;
Wherein, the full dose data are all data in source device;
The incremental data, for the data increased newly after Last Backup;
The variance data is the data distinct with the data of Last Backup.
4. the method as described in claim 1, which is characterized in that in the storage by the data to be backed up in block chain network
Position is sent to before record node, the method also includes:
The data indexing information that the intelligent contract in block chain is sent is obtained, the data directory is for determining the number to be backed up
According to filename, size, md5 value, Merkel's root vertex in block chain.
5. a kind of data backup device based on block chain characterized by comprising
Receiving module, for receiving the data backup requests of source device transmission, the data backup requests are standby for requesting to treat
Part data are backed up;
Data transmission blocks, for the data to be backed up to be sent to the node in block chain network, to request block link network
Node in network stores the data to be backed up;
Position sending module, for storage location to be sent to record node, to record data to be backed up described in nodes records
Storage location.
6. device as claimed in claim 5, which is characterized in that described device further include:
Piecemeal module, for the data transmission blocks by the data to be backed up be sent to the node in block chain network it
Before, the data to be backed up are subjected to piecemeal by preset condition and obtain multiple block datas, the block data is sent respectively
To different block chain nodes.
7. device as claimed in claim 5, which is characterized in that the data to be backed up are the full dose number in the source device
According to, incremental data or variance data;
Wherein, the full dose data are all data in source device;
The incremental data, for the data increased newly after Last Backup;
The variance data is the data distinct with the data of Last Backup.
8. device as claimed in claim 5, which is characterized in that described device further include:
Module is obtained, for before storage location to be sent to record node, obtaining what the intelligent contract in block chain was sent
Data indexing information, the data directory be used to determine the filenames of the data to be backed up, size, md5 value, in block chain
Merkel's root vertex.
9. a kind of smart machine characterized by comprising memory, processor and be stored on the memory and can be in institute
The computer program run on processor is stated, such as Claims 1 to 4 is realized when the computer program is executed by the processor
Any one of the method the step of.
10. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium
Sequence is realized when the computer program is executed by processor such as the step of any one of Claims 1 to 4 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811038387.4A CN109271283A (en) | 2018-09-06 | 2018-09-06 | A kind of data back up method based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811038387.4A CN109271283A (en) | 2018-09-06 | 2018-09-06 | A kind of data back up method based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109271283A true CN109271283A (en) | 2019-01-25 |
Family
ID=65187431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811038387.4A Pending CN109271283A (en) | 2018-09-06 | 2018-09-06 | A kind of data back up method based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109271283A (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109918925A (en) * | 2019-02-19 | 2019-06-21 | 上海泉坤信息科技有限公司 | Date storage method, back end and storage medium |
CN110096476A (en) * | 2019-04-08 | 2019-08-06 | 平安科技(深圳)有限公司 | Data back up method, device and computer readable storage medium |
CN110351363A (en) * | 2019-07-12 | 2019-10-18 | 全链通有限公司 | Data back up method, equipment and computer readable storage medium |
CN110457318A (en) * | 2019-07-24 | 2019-11-15 | 深圳壹账通智能科技有限公司 | The update method of data field, device, medium, electronic equipment in block chain |
CN110855761A (en) * | 2019-10-29 | 2020-02-28 | 深圳前海微众银行股份有限公司 | Data processing method and device based on block chain system |
CN110989994A (en) * | 2019-11-18 | 2020-04-10 | 腾讯科技(深圳)有限公司 | Block chain-based code version management method and device, terminal and storage medium |
CN111026767A (en) * | 2020-01-04 | 2020-04-17 | 天津金农企业管理咨询合伙企业(有限合伙) | Data storage method and device of block chain and hardware equipment |
CN111414426A (en) * | 2020-03-26 | 2020-07-14 | 北京云图科瑞科技有限公司 | Data processing method and system based on block chain |
CN111444043A (en) * | 2020-03-27 | 2020-07-24 | 中移雄安信息通信科技有限公司 | Data backup method, device, node, system and medium |
WO2020211078A1 (en) * | 2019-04-19 | 2020-10-22 | Nokia Technologies Oy | Distributed storage of blocks in blockchains |
CN112269690A (en) * | 2020-11-17 | 2021-01-26 | 珠海大横琴科技发展有限公司 | Data backup method and device |
WO2021074719A1 (en) * | 2019-10-16 | 2021-04-22 | International Business Machines Corporation | Database snapshot for managing state synchronization |
CN112732484A (en) * | 2020-12-30 | 2021-04-30 | 普华云创科技(北京)有限公司 | Data backup system based on end-to-end node |
CN113254264A (en) * | 2021-04-14 | 2021-08-13 | 卓尔智联(武汉)研究院有限公司 | Data backup method and device of block chain and storage medium |
CN113568785A (en) * | 2021-09-23 | 2021-10-29 | 四川大学 | Block chain-based data backup method, device, equipment and storage medium |
WO2022078012A1 (en) * | 2020-10-16 | 2022-04-21 | 苏州浪潮智能科技有限公司 | Method and system for continuously storing data stored in blockchain, device and medium |
CN110989994B (en) * | 2019-11-18 | 2024-04-26 | 腾讯科技(深圳)有限公司 | Code version management method, device, terminal and storage medium based on block chain |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106383754A (en) * | 2016-09-19 | 2017-02-08 | 北京众享比特科技有限公司 | Database backup and recovery system based on block chain technology, and database backup method based on block chain technology, and database recovery method based on block chain technology |
CN106534317A (en) * | 2016-11-17 | 2017-03-22 | 杭州云象网络技术有限公司 | Disaster recovery cloud storage system construction method based on block chain technology |
US20170103167A1 (en) * | 2012-04-27 | 2017-04-13 | Netspective Communications Llc | Blockchain system for natural language processing |
CN106775497A (en) * | 2017-01-19 | 2017-05-31 | 郑志超 | Distributed storage method and equipment based on block chain |
CN106843750A (en) * | 2016-12-20 | 2017-06-13 | 中国科学院苏州生物医学工程技术研究所 | Distributed memory system |
CN106919476A (en) * | 2017-02-24 | 2017-07-04 | 中国科学院软件研究所 | Data safety backup method, client and cloud server terminal based on alliance's chain |
-
2018
- 2018-09-06 CN CN201811038387.4A patent/CN109271283A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170103167A1 (en) * | 2012-04-27 | 2017-04-13 | Netspective Communications Llc | Blockchain system for natural language processing |
CN106383754A (en) * | 2016-09-19 | 2017-02-08 | 北京众享比特科技有限公司 | Database backup and recovery system based on block chain technology, and database backup method based on block chain technology, and database recovery method based on block chain technology |
CN106534317A (en) * | 2016-11-17 | 2017-03-22 | 杭州云象网络技术有限公司 | Disaster recovery cloud storage system construction method based on block chain technology |
CN106843750A (en) * | 2016-12-20 | 2017-06-13 | 中国科学院苏州生物医学工程技术研究所 | Distributed memory system |
CN106775497A (en) * | 2017-01-19 | 2017-05-31 | 郑志超 | Distributed storage method and equipment based on block chain |
CN106919476A (en) * | 2017-02-24 | 2017-07-04 | 中国科学院软件研究所 | Data safety backup method, client and cloud server terminal based on alliance's chain |
Non-Patent Citations (3)
Title |
---|
ALEX HOMER等: "《云计算架构设计模式》", 31 October 2017 * |
DINKAR SITARAM等: "《迁移到云端——在云计算的新世界中开发应用》", 30 June 2015 * |
沈钧毅等: "《数据库系统原理》", 28 February 2014 * |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109918925A (en) * | 2019-02-19 | 2019-06-21 | 上海泉坤信息科技有限公司 | Date storage method, back end and storage medium |
CN110096476A (en) * | 2019-04-08 | 2019-08-06 | 平安科技(深圳)有限公司 | Data back up method, device and computer readable storage medium |
CN110096476B (en) * | 2019-04-08 | 2023-06-09 | 平安科技(深圳)有限公司 | Data backup method, device and computer readable storage medium |
WO2020211078A1 (en) * | 2019-04-19 | 2020-10-22 | Nokia Technologies Oy | Distributed storage of blocks in blockchains |
CN110351363A (en) * | 2019-07-12 | 2019-10-18 | 全链通有限公司 | Data back up method, equipment and computer readable storage medium |
CN110457318A (en) * | 2019-07-24 | 2019-11-15 | 深圳壹账通智能科技有限公司 | The update method of data field, device, medium, electronic equipment in block chain |
WO2021012554A1 (en) * | 2019-07-24 | 2021-01-28 | 深圳壹账通智能科技有限公司 | Method and apparatus for updating data field in block chain, medium, and electronic device |
US11593316B2 (en) | 2019-10-16 | 2023-02-28 | International Business Machines Corporation | Database snapshot for managing state synchronization |
WO2021074719A1 (en) * | 2019-10-16 | 2021-04-22 | International Business Machines Corporation | Database snapshot for managing state synchronization |
CN110855761A (en) * | 2019-10-29 | 2020-02-28 | 深圳前海微众银行股份有限公司 | Data processing method and device based on block chain system |
CN110989994B (en) * | 2019-11-18 | 2024-04-26 | 腾讯科技(深圳)有限公司 | Code version management method, device, terminal and storage medium based on block chain |
CN110989994A (en) * | 2019-11-18 | 2020-04-10 | 腾讯科技(深圳)有限公司 | Block chain-based code version management method and device, terminal and storage medium |
CN111026767A (en) * | 2020-01-04 | 2020-04-17 | 天津金农企业管理咨询合伙企业(有限合伙) | Data storage method and device of block chain and hardware equipment |
CN111026767B (en) * | 2020-01-04 | 2023-05-26 | 天津金农企业管理咨询合伙企业(有限合伙) | Block chain data storage method and device and hardware equipment |
CN111414426A (en) * | 2020-03-26 | 2020-07-14 | 北京云图科瑞科技有限公司 | Data processing method and system based on block chain |
CN111444043A (en) * | 2020-03-27 | 2020-07-24 | 中移雄安信息通信科技有限公司 | Data backup method, device, node, system and medium |
WO2022078012A1 (en) * | 2020-10-16 | 2022-04-21 | 苏州浪潮智能科技有限公司 | Method and system for continuously storing data stored in blockchain, device and medium |
CN112269690A (en) * | 2020-11-17 | 2021-01-26 | 珠海大横琴科技发展有限公司 | Data backup method and device |
CN112732484A (en) * | 2020-12-30 | 2021-04-30 | 普华云创科技(北京)有限公司 | Data backup system based on end-to-end node |
CN113254264A (en) * | 2021-04-14 | 2021-08-13 | 卓尔智联(武汉)研究院有限公司 | Data backup method and device of block chain and storage medium |
CN113568785B (en) * | 2021-09-23 | 2021-12-31 | 四川大学 | Block chain-based data backup method, device, equipment and storage medium |
CN113568785A (en) * | 2021-09-23 | 2021-10-29 | 四川大学 | Block chain-based data backup method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109271283A (en) | A kind of data back up method based on block chain | |
CN110232048B (en) | Log file acquisition method, device and storage medium | |
CN112035410B (en) | Log storage method, device, node equipment and storage medium | |
CN103345602B (en) | A kind of client-side code integrality detection, device and system | |
CN106357808B (en) | A kind of method of data synchronization and device | |
EP3937016A1 (en) | Memory management method and apparatus | |
EP3451193B1 (en) | Electronic device and file data journaling method of electronic device | |
CN107943562B (en) | Information storage method, information storage device, storage medium and electronic equipment | |
CN109814930A (en) | A kind of application loading method, device and mobile terminal | |
CN109885257A (en) | A kind of disk file reading/writing method and device | |
CN104980455A (en) | Multi-terminal data synchronization method based on cloud storage, device and system thereof | |
US10922193B2 (en) | Data backup method, storage medium, and terminal | |
CN104123120A (en) | Method, device and system for filtering page data of browser | |
CN103269374A (en) | Method, device and equipment for recording synchronization | |
US20140337296A1 (en) | Techniques to recover files in a storage network | |
WO2020088681A1 (en) | Management method for model files and terminal device | |
CN106657254A (en) | Synchronization method, device and system for contact information | |
KR20160012572A (en) | Method and Electronic Device for operating data | |
CN112084157A (en) | File recovery method and device, computer equipment and storage medium | |
KR20150141073A (en) | Method and Electronic Device for operating screen | |
CN104134044B (en) | A kind of detection method, device and system of Information Security | |
CN104156227B (en) | Call the method and device in bottom library | |
CN109471708B (en) | Task processing method, device and system | |
CN112711636A (en) | Data synchronization method, device, equipment and medium | |
CN110659329A (en) | Data processing method and device and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190125 |