Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
First embodiment
As shown in Figure 1, the first embodiment of the present invention provides a kind of data back up method, it is applied to mobile terminal (example
Such as smart phone, tablet computer), this method comprises:
Step 101, the First Eigenvalue of file to be backed up is obtained.
Wherein, in the first embodiment of the present invention, the First Eigenvalue of file to be backed up can be file to be backed up
Cryptographic Hash.Specifically, the cryptographic Hash of file to be backed up can be calculated by hash algorithm.The cryptographic Hash of file to be backed up is made herein
For the First Eigenvalue of file to be backed up, enable the First Eigenvalue unique identification file to be backed up, consequently facilitating storage service
Device according to the First Eigenvalue received, determine in storage server whether existing file to be backed up, and then make mobile terminal
Determine whether to back up file to be backed up, achievees the effect that the data upload amount for reducing backup to the greatest extent.
Step 102, the First Eigenvalue is sent to storage server.
Wherein, above-mentioned storage server can be cloud storage service device.And in the first embodiment of the present invention, by first
The purpose that characteristic value is sent to storage server is, makes storage server according to the First Eigenvalue received, determines storage
In server whether existing file to be backed up, and then mobile terminal is made to determine whether to back up file to be backed up, reached
Reduce the effect of the data upload amount of backup to the greatest extent.
Step 103, the first response message that storage server returns is received.
Wherein, above-mentioned first response message may indicate that there are files to be backed up in storage server, it is also possible to which instruction is deposited
It stores up and file to be backed up is not present in server.
Step 104, if there are files to be backed up in the first response message instruction storage server, text to be backed up is deleted
Part.
In the first embodiment of the present invention, when there are files to be backed up in the first response message instruction storage server
When, file to be backed up will be directly deleted, no longer the file to be backed up will be backed up, to realize that the data for reducing backup upload
The purpose of amount.
Step 105, if file to be backed up is not present in the first response message instruction storage server, by file to be backed up
Backup to storage server.
In the first embodiment of the present invention, storage is sent to by the First Eigenvalue for the file to be backed up that will acquire
Server makes storage server return to the first response message according to the First Eigenvalue, and when first response message instruction is deposited
It stores up in server there are when the file to be backed up, directly deletes the file to be backed up;When the first response message indicates storage service
When the file to be backed up being not present in device, just by file backup to be backed up to storage server, solve backup need to expend compared with
More time and flow, and the lower problem of utilization rate of the memory space of storage server, the data for reducing backup are reached
Upload amount, the time for saving backup and flow, improve the effect of the utilization rate of the memory space of storage server.
Second embodiment
As shown in Fig. 2, the second embodiment of the present invention provides a kind of data back up method, it is applied to mobile terminal (example
Such as smart phone, tablet computer), this method comprises:
Step 201, the First Eigenvalue of file to be backed up is obtained.
Wherein, the First Eigenvalue of above-mentioned file to be backed up can be the cryptographic Hash of file to be backed up.
Step 202, the First Eigenvalue is sent to storage server.
Wherein, above-mentioned storage server can be cloud storage service device.And in the second embodiment of the present invention, by first
The purpose that characteristic value is sent to storage server is, makes storage server according to the First Eigenvalue received, determines storage
In server whether existing file to be backed up, and then mobile terminal is made to determine whether to back up file to be backed up, reached
Reduce the effect of the data upload amount of backup to the greatest extent.
Step 203, the first response message that storage server returns is received.
Wherein, above-mentioned first response message may indicate that there are files to be backed up in storage server, it is also possible to which instruction is deposited
It stores up and file to be backed up is not present in server.
Step 204, if there are files to be backed up in the first response message instruction storage server, text to be backed up is deleted
Part.
In the second embodiment of the present invention, when there are files to be backed up in the first response message instruction storage server
When, file to be backed up is directly deleted, no longer the file to be backed up is backed up, to realize the data upload amount for reducing backup
Purpose.
Step 205, if file to be backed up is not present in the first response message instruction storage server, according to default piecemeal
Length carries out fixed length piecemeal to file to be backed up, obtains multiple data blocks.
In the second embodiment of the present invention, when there is no files to be backed up in the first response message instruction storage server
When, file to be backed up can be resolved into multiple data blocks, to realize the duplicate removal of block level, reached in the data for reducing backup
The purpose of biography amount.
Step 206, the multiple Second Eigenvalues that obtains the Second Eigenvalue of each data block, and will acquire, which are sent to, to be deposited
Store up server.
Wherein, in the second embodiment of the present invention, the Second Eigenvalue of data block can be the cryptographic Hash of data block.Tool
Body, the cryptographic Hash of data block can be calculated by hash algorithm.Herein using the cryptographic Hash of data block as the second spy of data block
Value indicative, enables Second Eigenvalue unique identification data block, consequently facilitating storage server is according to the Second Eigenvalue received,
Determine storage server in whether existing corresponding data block, and then make mobile terminal determine whether to the data block carry out it is standby
Part, achieve the effect that the data upload amount for reducing backup to the greatest extent.
Step 207, the second response message that storage server returns is received.
Wherein, above-mentioned second response message may indicate that there are the first data in multiple data blocks in storage server
Block, it is also possible to indicate that there is no the second data blocks in multiple data blocks in storage server.
Step 208, if there are the first data block in multiple data blocks in the second response message instruction storage server,
Delete the first data block.
In the second embodiment of the present invention, if there are in multiple data blocks in the second response message instruction storage server
The first data block when, will directly delete first data block, no longer it will be backed up, thus realize reduce backup data
The purpose of upload amount.
Step 209, if the second data block in multiple data blocks is not present in the second response message instruction storage server,
The second data block is then backuped into storage server.
In the second embodiment of the present invention, the specific implementation of above-mentioned steps 209 are as follows: first with the second data block
Second Eigenvalue the second data block is encrypted, obtain encrypted second data block;Then by encrypted second number
Storage server is sent to according to the Second Eigenvalue of block and the second data block.
And in the second embodiment of the present invention, after mobile terminal is by data backup to storage server, mobile terminal
It is also possible to restore the data backed up to storage server requests.Specifically, mobile terminal request restores the data backed up
Mode the following steps are included:
The first step sends data recovery request to storage server.
Wherein, the identification information for the file that the identity information and request that mobile terminal is carried in data recovery request restore.
Wherein, the main function of above-mentioned identity information are as follows: convenient for the legitimacy of storage server verifying mobile terminal, identification information (example
Such as title) main function are as follows: convenient for storage server accurately and rapidly find request restore file each data block,
And the Second Eigenvalue of each data block.
Second step receives believing with mark for storage server transmission after storage server is verified identity information
Cease the Second Eigenvalue of corresponding multiple encrypted data blocks and data block.
Third step carries out corresponding encrypted data block using the Second Eigenvalue of each data block received
Decryption, the data block after obtaining multiple decryption.
4th step assembles the data block after multiple decryption, obtains the file that request restores.
In the second embodiment of the present invention, storage is sent to by the First Eigenvalue for the file to be backed up that will acquire
Server makes storage server return to the first response message according to the First Eigenvalue, and when first response message instruction is deposited
It stores up in server there are when the file to be backed up, directly deletes the file to be backed up;When the first response message indicates storage service
When the file to be backed up being not present in device, file to be backed up is resolved into multiple data blocks, realizes the duplicate removal of block level, that is,
Only the data block being not present in storage server is backed up, reached the data upload amount of backup that reduces, saved backup
Time and flow improve the effect of the utilization rate of the memory space of storage server.
3rd embodiment
As shown in Figure 3 to Figure 4, the third embodiment of the present invention provides a kind of mobile terminal, the mobile terminal 300 packet
It includes:
Module 301 is obtained, for obtaining the First Eigenvalue of file to be backed up;
First sending module 302, for the First Eigenvalue to be sent to storage server;
First receiving module 303, the first response message returned for receiving the storage server;
Removing module 304, if indicating that there are described to be backed up in the storage server for first response message
File then deletes the file to be backed up;
Backup module 305, if indicating that there is no described to standby in the storage server for first response message
Part file, then by the file backup to be backed up to the storage server.
Wherein, above-mentioned mobile terminal 300 can be smart phone, tablet computer etc..
Optionally, the backup module 305 includes:
Submodule 3051 is decomposed, for carrying out fixed length piecemeal to the file to be backed up according to default piecemeal length, is obtained
Multiple data blocks;
Acquisition submodule 3052, for obtaining the Second Eigenvalue of each data block, and will acquire multiple second are special
Value indicative is sent to the storage server;
Receiving submodule 3053, the second response message returned for receiving the storage server;
Submodule 3054 is deleted, if indicating that there are the multiple in the storage server for second response message
The first data block in data block then deletes first data block;
Backup submodule 3055, if indicating that there is no described more in the storage server for second response message
Second data block is then backuped to the storage server by the second data block in a data block.
Optionally, the backup submodule 3055 includes:
Encryption unit 30551 carries out second data block for the Second Eigenvalue using second data block
Encryption, obtains encrypted second data block;
Transmission unit 30552, for special by the second of encrypted second data block and second data block
Value indicative is sent to the storage server.
Optionally, the mobile terminal further include:
Second sending module 306, for sending data recovery request to the storage server;Wherein, the data are extensive
The identification information for the file that the identity information and request that the mobile terminal is carried in multiple request restore;
Second receiving module 307, for after the storage server is verified the identity information, described in reception
The Second Eigenvalue of multiple encrypted data blocks corresponding with the identification information and data block that storage server is sent;
Deciphering module 308, for using the Second Eigenvalue of each data block received, to corresponding encrypted number
It is decrypted according to block, the data block after obtaining multiple decryption;
Module 309 is assembled, for assembling to the data block after multiple decryption, obtains the file that the request restores.
In the third embodiment of the present invention, mobile terminal passes through the First Eigenvalue hair for the file to be backed up that will acquire
Storage server is given, so that storage server is returned to the first response message according to the First Eigenvalue, and when first response disappears
There are when the file to be backed up in breath instruction storage server, the file to be backed up is directly deleted;When the first response message indicates
When the file to be backed up being not present in storage server, just by file backup to be backed up to storage server, solving backup is needed
More time and flow are expended, and the lower problem of utilization rate of the memory space of storage server, it is standby to have reached reduction
The data upload amount of part, the time for saving backup and flow, improve the effect of the utilization rate of the memory space of storage server.
It should be noted that the mobile terminal that third embodiment of the invention provides is applied to mobile terminal using above-mentioned
All embodiments of the mobile terminal of data back up method, i.e., the above-mentioned data back up method applied to mobile terminal are suitable for
The mobile terminal, and can reach the same or similar beneficial effect.
Fourth embodiment
As shown in figure 5, the fourth embodiment of the present invention provides a kind of mobile terminal, which includes: at least
One processor 501, memory 502, at least one network interface 504 and other users interface 503.In mobile terminal 500
Various components are coupled by bus system 505.It is understood that bus system 505 is for realizing the company between these components
Connect letter.Bus system 505 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But
It is that various buses are all designated as bus system 505 in Fig. 5 for the sake of clear explanation.
Wherein, user interface 503 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 502 of system and method described herein is intended to include but is not limited to these and arbitrarily its
It is suitble to the memory of type.
In some embodiments, memory 502 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 5021 and application program 5022.
Wherein, operating system 5021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 5022 includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 5022.
In embodiments of the present invention, by the program or instruction of calling memory 502 to store, specifically, can be application
The program or instruction stored in program 5022, processor 501 are used to obtain the First Eigenvalue of file to be backed up;By fisrt feature
Value is sent to storage server;Receive the first response message that storage server returns;If the first response message instruction storage clothes
Being engaged in device, there are files to be backed up, then delete file to be backed up;If the first response message indicate storage server in there is no to
Backup file, then by file backup to be backed up to storage server.
The method that the embodiments of the present invention disclose can be applied in processor 501, or be realized by processor 501.
Processor 501 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 501 or the instruction of software form.Above-mentioned processing
Device 501 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 502, processor 501 reads the information in memory 502, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Optionally, processor 501 is also used to: being carried out fixed length piecemeal to file to be backed up according to default piecemeal length, is obtained
Multiple data blocks;The multiple Second Eigenvalues that obtains the Second Eigenvalue of each data block, and will acquire are sent to storage clothes
Business device;Receive the second response message that storage server returns;If the second response message indicates that there are multiple in storage server
The first data block in data block, then delete the first data block;If the second response message indicates that there is no more in storage server
The second data block in a data block, then backup to storage server for the second data block.
Optionally, processor 501 is also used to: being added using the Second Eigenvalue of the second data block to the second data block
It is close, obtain encrypted second data block;The Second Eigenvalue of encrypted second data block and the second data block is sent
To storage server.
Optionally, processor 501 is also used to: sending data recovery request to storage server;Wherein, data recovery request
The identification information for the file that the middle identity information for carrying mobile terminal and request restore;When storage server verifies identity information
By rear, the second of multiple encrypted data blocks and data block corresponding with identification information that reception storage server is sent
Characteristic value;Using the Second Eigenvalue of each data block received, corresponding encrypted data block is decrypted, is obtained
Data block after multiple decryption;Data block after multiple decryption is assembled, the file that request restores is obtained.
Mobile terminal 500 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
In the fourth embodiment of the present invention, mobile terminal passes through the First Eigenvalue hair for the file to be backed up that will acquire
Storage server is given, so that storage server is returned to the first response message according to the First Eigenvalue, and when first response disappears
There are when the file to be backed up in breath instruction storage server, the file to be backed up is directly deleted;When the first response message indicates
When the file to be backed up being not present in storage server, just by file backup to be backed up to storage server, solving backup is needed
More time and flow are expended, and the lower problem of utilization rate of the memory space of storage server, it is standby to have reached reduction
The data upload amount of part, the time for saving backup and flow, improve the effect of the utilization rate of the memory space of storage server.
5th embodiment
As shown in fig. 6, the fifth embodiment of the present invention provides a kind of mobile terminal, which can be hand
Machine, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer etc..
Mobile terminal 600 in Fig. 6 includes radio frequency (Radio Frequency, RF) circuit 610, memory 620, input
Unit 630, display unit 640, processor 660, voicefrequency circuit 670, WiFi (Wireless Fidelity) module 680 and electricity
Source 690.
Wherein, input unit 630 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 600 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 631.Touch panel 631, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 631 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.Optionally, touch panel 631 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 660 is given again, and can be received order that processor 660 is sent and be executed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 631.In addition to touch panel 631, input unit
630 can also include other input equipments 632, other input equipments 632 can include but is not limited to physical keyboard, function key
One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 640 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 600.Display unit 640 may include display panel 641, optionally, can use LCD or organic hair
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 641.
It should be noted that touch panel 631 can cover display panel 641, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 660 is sent to determine the type of touch event, is followed by subsequent processing device
660 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 660 is the control centre of mobile terminal 600, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 621, and calling storage
Data in second memory 622 execute the various functions and processing data of mobile terminal 600, thus to mobile terminal 600
Carry out integral monitoring.Optionally, processor 660 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 621 in software program and/or module and/
Or the data in the second memory 622, processor 660 are used to obtain the First Eigenvalue of file to be backed up;By fisrt feature
Value is sent to storage server;Receive the first response message that storage server returns;If the first response message instruction storage clothes
Being engaged in device, there are files to be backed up, then delete file to be backed up;If the first response message indicate storage server in there is no to
Backup file, then by file backup to be backed up to storage server.
Optionally, processor 660 is also used to: being carried out fixed length piecemeal to file to be backed up according to default piecemeal length, is obtained
Multiple data blocks;The multiple Second Eigenvalues that obtains the Second Eigenvalue of each data block, and will acquire are sent to storage clothes
Business device;Receive the second response message that storage server returns;If the second response message indicates that there are multiple in storage server
The first data block in data block, then delete the first data block;If the second response message indicates that there is no more in storage server
The second data block in a data block, then backup to storage server for the second data block.
Optionally, processor 660 is also used to: being added using the Second Eigenvalue of the second data block to the second data block
It is close, obtain encrypted second data block;The Second Eigenvalue of encrypted second data block and the second data block is sent
To storage server.
Optionally, processor 660 is also used to: sending data recovery request to storage server;Wherein, data recovery request
The identification information for the file that the middle identity information for carrying mobile terminal and request restore;When storage server verifies identity information
By rear, the second of multiple encrypted data blocks and data block corresponding with identification information that reception storage server is sent
Characteristic value;Using the Second Eigenvalue of each data block received, corresponding encrypted data block is decrypted, is obtained
Data block after multiple decryption;Data block after multiple decryption is assembled, the file that request restores is obtained.
As it can be seen that mobile terminal passes through the first spy of the file to be backed up that will acquire in the fifth embodiment of the present invention
Value indicative is sent to storage server, make storage server according to the First Eigenvalue return the first response message, and when this first
Response message indicates directly to delete the file to be backed up there are when the file to be backed up in storage server;When the first response disappears
When the file to be backed up is not present in breath instruction storage server, just by file backup to be backed up to storage server, solve
Backup needs to expend more time and flow, and the lower problem of utilization rate of the memory space of storage server, reaches
Data upload amount, the time for saving backup and the flow for reducing backup, improve the utilization rate of the memory space of storage server
Effect.
Sixth embodiment
As shown in fig. 7, the sixth embodiment of the present invention provides a kind of data back up method, it is applied to storage server,
This method comprises:
Step 701, the First Eigenvalue for the file to be backed up that mobile terminal is sent is received.
Wherein, the First Eigenvalue of above-mentioned file to be backed up can be the cryptographic Hash of file to be backed up.
Step 702, judge with the presence or absence of the First Eigenvalue in storing data library, if there are fisrt feature in storing data library
Value, thens follow the steps 703, if the First Eigenvalue is not present in storing data library, thens follow the steps 704.
Wherein, it is stored with to have backed up in the storing data library of storage server (such as cloud storage service device) and be taken in storage
The characteristic value (i.e. cryptographic Hash) for the file being engaged in device.As long as just showing to store there are the First Eigenvalue in storing data library in this way
There are files to be backed up in server, if the First Eigenvalue is not present in storing data library certainly, just show in storage server
There is no files to be backed up.
Step 703, it is sent to mobile terminal and indicates that there are the first response messages of file to be backed up in storage server.
In the sixth embodiment of the present invention, it can request to restore standby from storage server to ensure that mobile terminal is subsequent
The data of part, after executing the step 703, the above method further include: the step of recording the storage information of file to be backed up, from
And convenient for accurately and rapidly finding mobile terminal when mobile terminal restores the file backed up to storage server requests
Request the file restored.
Step 704, the first response message that file to be backed up is not present in instruction storage server is sent to mobile terminal.
In the sixth embodiment of the present invention, after executing the step 704, the above method further includes following steps:
The first step receives the Second Eigenvalue for multiple data blocks that mobile terminal is sent.
Wherein, the Second Eigenvalue of above-mentioned data block can be the cryptographic Hash of data block.
Second step judges with the presence or absence of the Second Eigenvalue received in storing data library, if existing in storing data library
The Second Eigenvalue of the first data block in multiple data blocks, then execute third step, if not depositing multiple data in storing data library
The Second Eigenvalue of the second data block in block then executes the 4th step.
Wherein, the spy for having backed up the data block in storage server is stored in the storing data library of storage server
Value indicative (i.e. cryptographic Hash), and for data block, the characteristic value of data block is the encryption key of data block.It so just can be true
It is after encrypted backup to storage server or identical to protect the identical data block before encrypted backup, so that mobile terminal does not have
Existing data block in necessary backup storage server again, to achieve the purpose that the data upload amount for reducing backup.
And in the sixth embodiment of the present invention, as long as there are the first data blocks in multiple data blocks in storing data library
Second Eigenvalue, just show that there are the first data blocks in storage server, if multiple numbers are not present in storing data library certainly
According to the Second Eigenvalue of the second data block in block, just show that there is no the second data blocks in storage server.
Third step, sends in instruction storage server that there are the of the first data block in multiple data blocks to mobile terminal
Two response messages, and record the storage information of the first data block.
4th step sends the second data block being not present in multiple data blocks in instruction storage server to mobile terminal
Second response message.
5th step gives the second data block distribution storage information, and records the storage information distributed to the second data block.
In the sixth embodiment of the present invention, the purpose for recording the storage information of the first data block and the second data block exists
In convenient for accurately and rapidly finding mobile terminal when mobile terminal restores the file backed up to storage server requests
Request each data block of the file restored.
6th step receives the second feature of encrypted second data block and the second data block that mobile terminal is sent
Value.
7th step stores encrypted second data block and second according to the storage information distributed to the second data block
The Second Eigenvalue of data block.
Wherein, mobile whole after mobile terminal is by data backup to storage server in the sixth embodiment of the present invention
End is also possible to restore the data backed up to storage server requests.Specifically, when mobile terminal request restores the number backed up
According to when, the above method further includes following steps: first reception mobile terminal send data recovery request;Wherein, data are restored
The identification information (such as title) for the file that the identity information and request that mobile terminal is carried in request restore;Then according to identity
Information, carrying out legitimate verification to mobile terminal will be corresponding with identification information multiple encrypted when mobile terminal is legal
The Second Eigenvalue of data block and data block is sent to mobile terminal.Specifically, can be according to file backup when, the storage of record
Information quickly finds the Second Eigenvalue of multiple encrypted data blocks and data block corresponding with identification information, concurrently
Give mobile terminal.
In the sixth embodiment of the present invention, by judging the first spy in storing data library with the presence or absence of file to be backed up
Value indicative, and the First Eigenvalue of file to be backed up if it exists then send in instruction storage server to mobile terminal and exist to standby
First response message of part file, makes mobile terminal delete the file to be backed up;And the first of file to be backed up if it does not exist
Characteristic value then sends the first response message that file to be backed up is not present in instruction storage server to mobile terminal, makes to move
Terminal backs up the file to be backed up, thus reach data upload amount, the time for saving backup and the flow for reducing backup,
Improve the effect of the utilization rate of the memory space of storage server.
7th embodiment
As shown in figure 8, the seventh embodiment of the present invention provides a kind of storage server, which includes:
Third receiving module 801, the First Eigenvalue of the file to be backed up for receiving mobile terminal transmission;
First judgment module 802, for judging with the presence or absence of the First Eigenvalue in storing data library, and if storing data library
In there are the First Eigenvalues, then trigger third sending module 803, and if in storing data library be not present the First Eigenvalue,
Trigger the 4th sending module 804;
Third sending module 803 sends instruction storage to mobile terminal for the triggering according to first judgment module 802
There are the first response messages of file to be backed up in server;
4th sending module 804 sends instruction storage to mobile terminal for the triggering according to first judgment module 802
The first response message of file to be backed up is not present in server.
Wherein, above-mentioned storage server 800 can be cloud storage service device.
Optionally, storage server further include:
Logging modle 805, for recording the storage information of file to be backed up.
Optionally, storage server further include:
4th receiving module 806, the Second Eigenvalue of multiple data blocks for receiving mobile terminal transmission;
Second judgment module 807, for judging with the presence or absence of the Second Eigenvalue received in storing data library, and if depositing
There are the Second Eigenvalues of the first data block in multiple data blocks in storage database, then trigger the 5th sending module 808, and
If not depositing the Second Eigenvalue of the second data block in multiple data blocks in storing data library, the 6th sending module 809 is triggered;
5th sending module 808 sends instruction storage to mobile terminal for the triggering according to the second judgment module 807
There are the second response messages of the first data block in multiple data blocks in server, and record the storage letter of the first data block
Breath;
6th sending module 809 sends instruction storage to mobile terminal for the triggering according to the second judgment module 807
There is no the second response messages of the second data block in multiple data blocks in server.
Optionally, storage server further include:
Distribution module 810 for distributing storage information to the second data block, and records the storage distributed to the second data block
Information;
5th receiving module 811, for receiving encrypted second data block and the second data of mobile terminal transmission
The Second Eigenvalue of block;
Memory module 812, for storing encrypted second data block according to the storage information distributed to the second data block
And second data block Second Eigenvalue.
Optionally, storage server further include:
6th receiving module 813, for receiving the data recovery request of mobile terminal transmission;Wherein, data recovery request
The identification information for the file that the middle identity information for carrying mobile terminal and request restore;
Authentication module 814, for carrying out legitimate verification to mobile terminal according to identity information;
7th sending module 815 is used for when mobile terminal is legal, by multiple encrypted numbers corresponding with identification information
Mobile terminal is sent to according to the Second Eigenvalue of block and data block.
In the seventh embodiment of the present invention, storage server is by judging in storing data library with the presence or absence of text to be backed up
The First Eigenvalue of part, and the First Eigenvalue of file to be backed up if it exists then send instruction storage server to mobile terminal
Middle there are the first response messages of file to be backed up, and mobile terminal is made to delete the file to be backed up;And it is to be backed up if it does not exist
The First Eigenvalue of file then disappears to the first response that mobile terminal is sent in instruction storage server there is no file to be backed up
Breath, back up mobile terminal to the file to be backed up, thus reach reduce backup data upload amount, save backup when
Between and flow, improve the effect of the utilization rate of the memory space of storage server.
It should be noted that the storage server that seventh embodiment of the invention provides is to be applied to storage service using above-mentioned
The storage server of the data back up method of device, i.e., all embodiments of the above-mentioned data back up method applied to storage server
It is suitable for the storage server, and can reaches the same or similar beneficial effect.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.