Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.Conversely, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys 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, mobile terminal (example is applied to
Such as smart mobile phone, panel computer), the method includes:
Step 101, obtains the First Eigenvalue of file to be backed up.
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
It is the First Eigenvalue of file to be backed up so that the First Eigenvalue energy unique mark file to be backed up, consequently facilitating storage service
Device according to the First Eigenvalue for receiving, judge 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, reach the effect of the data upload amount for reducing backup as far as possible.
Step 102, storage server is sent to by the First Eigenvalue.
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 to make storage server according to the First Eigenvalue for receiving, and judges storage
In server whether existing file to be backed up, and then make mobile terminal determine whether to back up file to be backed up, reach
The effect of the data upload amount of backup is reduced as far as possible.
Step 103, receives the first response message that storage server is returned.
Wherein, above-mentioned first response message may indicate that in storage server there is file to be backed up, it is also possible to which instruction is deposited
Do not exist file to be backed up in storage server.
Step 104, if the first response message indicates there is file to be backed up in storage server, deletes text to be backed up
Part.
In the first embodiment of the present invention, when the first response message indicates there is file to be backed up in storage server
When, file to be backed up will be directly deleted, no longer the file to be backed up is backed up, so as to realize that the data for reducing backup are uploaded
The purpose of amount.
Step 105, if the first response message indicates do not exist file to be backed up in 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 of the file to be backed up that will be got
Server, makes storage server return to the first response message according to the First Eigenvalue, and when first response message indicates to deposit
When there is the file to be backed up in storage server, the file to be backed up is directly deleted;When the first response message indicates storage service
In device do not exist the file to be backed up when, just by file backup to be backed up to storage server, solve backup need expend compared with
Many time and flow, and the memory space of storage server the relatively low problem of utilization rate, reached the data for reducing backup
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, mobile terminal (example is applied to
Such as smart mobile phone, panel computer), the method includes:
Step 201, obtains the First Eigenvalue of file to be backed up.
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, storage server is sent to by the First Eigenvalue.
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 to make storage server according to the First Eigenvalue for receiving, and judges storage
In server whether existing file to be backed up, and then make mobile terminal determine whether to back up file to be backed up, reach
The effect of the data upload amount of backup is reduced as far as possible.
Step 203, receives the first response message that storage server is returned.
Wherein, above-mentioned first response message may indicate that in storage server there is file to be backed up, it is also possible to which instruction is deposited
Do not exist file to be backed up in storage server.
Step 204, if the first response message indicates there is file to be backed up in storage server, deletes text to be backed up
Part.
In the second embodiment of the present invention, when the first response message indicates there is file to be backed up in storage server
When, file to be backed up is directly deleted, no longer the file to be backed up is backed up, so as to realize reducing the data upload amount of backup
Purpose.
Step 205, if the first response message indicates do not exist file to be backed up in 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, do not exist file to be backed up in the first response message indicates storage server
When, file to be backed up can be resolved into multiple data blocks, to realize the duplicate removal of block level, reach in the data for reducing backup
The purpose of biography amount.
Step 206, obtains the Second Eigenvalue of each data block, and the multiple Second Eigenvalues that will be got are sent to and deposit
Storage 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 special of data block
Value indicative so that Second Eigenvalue energy unique identification data block, consequently facilitating storage server is according to the Second Eigenvalue for receiving,
Judge in storage server whether existing corresponding data block, and then make mobile terminal determine whether to carry out the data block it is standby
Part, reach the effect of the data upload amount for reducing backup as far as possible.
Step 207, receives the second response message that storage server is returned.
Wherein, above-mentioned second response message may indicate that the first data existed in multiple data blocks in storage server
Block, it is also possible to indicate the second data block not existed in multiple data blocks in storage server.
Step 208, if the second response message indicates the first data block existed in multiple data blocks in storage server,
Delete the first data block.
In the second embodiment of the present invention, if in there are 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 is backed up so that realize reduce backup data
The purpose of upload amount.
Step 209, if the second response message indicates the second data block not existed in multiple data blocks in 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 is:First with the second data block
Second Eigenvalue the second data block is encrypted, the second data block after being encrypted;Then by encryption after 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 the data backed up to storage server requests recovery.Specifically, mobile terminal request recovers the data for having backed up
Mode is comprised the following steps:
The first step, data recovery request is sent to storage server.
Wherein, the identity information of mobile terminal and the identification information of the file of request recovery are carried in data recovery request.
Wherein, the Main Function of above-mentioned identity information is:It is easy to storage server to verify the legitimacy of mobile terminal, identification information (example
Such as title) Main Function be:It is easy to storage server accurately and rapidly to find each data block for the file that request recovers,
And the Second Eigenvalue of each data block.
Second step, after storage server is verified to identity information, receives believing with mark for storage server transmission
The Second Eigenvalue of data block and data block after the corresponding multiple encryptions of breath.
3rd step, using the Second Eigenvalue of each data block for receiving, is carried out to the data block after corresponding encryption
Decryption, obtains the data block after multiple decryption.
4th step, assembles to the data block after multiple decryption, obtains the file that request recovers.
In the second embodiment of the present invention, storage is sent to by the First Eigenvalue of the file to be backed up that will be got
Server, makes storage server return to the first response message according to the First Eigenvalue, and when first response message indicates to deposit
When there is the file to be backed up in storage server, the file to be backed up is directly deleted;When the first response message indicates storage service
When not existing the file to be backed up in device, file to be backed up is resolved into multiple data blocks, realizes the duplicate removal of block level, i.e.
Only non-existent data block in storage server is backed up, the data upload amount of backup that reduces has been reached, has been 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, and the mobile terminal 300 is wrapped
Include:
Acquisition module 301, the First Eigenvalue for obtaining file to be backed up;
First sending module 302, for the First Eigenvalue to be sent into storage server;
First receiver module 303, for receiving the first response message that the storage server is returned;
Removing module 304, if described to be backed up for existing in first response message instruction storage server
File, then delete the file to be backed up;
Backup module 305, if indicating to treat standby in the absence of described 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 mobile phone, panel 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, the Second Eigenvalue for obtaining each data block, and multiple second for getting are special
Value indicative is sent to the storage server;
Receiving submodule 3053, for receiving the second response message that the storage server is returned;
Submodule 3054 is deleted, if the multiple for existing in second response message instruction storage server
The first data block in data block, then delete first data block;
Backup submodule 3055, if described many for not existing in second response message instruction storage server
The second data block in individual data block, then backup to the storage server by second data block.
Optionally, the backup submodule 3055 includes:
Ciphering unit 30551, is carried out for the Second Eigenvalue using second data block to second data block
Encryption, the second data block after being encrypted;
Transmitting element 30552, for special by the second of the second data block after the encryption and second data block
Value indicative is sent to the storage server.
Optionally, the mobile terminal also includes:
Second sending module 306, for sending data recovery request to the storage server;Wherein, the data are extensive
The identity information of the mobile terminal and the identification information of the file of request recovery are carried in multiple request;
Second receiver module 307, for after the storage server is verified to the identity information, receiving described
The Second Eigenvalue of data block and data block after multiple encryptions corresponding with the identification information that storage server sends;
Deciphering module 308, for the Second Eigenvalue using each data block for receiving, to the number after corresponding encryption
It is decrypted according to block, obtains the data block after multiple decryption;
Assembling module 309, for being assembled to the data block after multiple decryption, obtains the file that the request recovers.
In the third embodiment of the present invention, mobile terminal is sent out by the First Eigenvalue of the file to be backed up that will be got
Storage server is given, storage server is returned to the first response message according to the First Eigenvalue, and when first response disappears
When there is 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 is indicated
When not existing the file to be backed up in storage server, just by file backup to be backed up to storage server, solving backup needs
Expend more time and flow, and the memory space of storage server the relatively low problem of utilization rate, reached reduction standby
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 is provided is to be applied to mobile terminal using above-mentioned
The mobile terminal of data back up method, i.e., all embodiments of the above-mentioned data back up method for being applied to mobile terminal are applied to
The mobile terminal, and can reach same or analogous beneficial effect.
Fourth embodiment
As shown in figure 5, the fourth embodiment of the present invention provides a kind of mobile terminal, the mobile terminal 500 includes:At least
One processor 501, memory 502, at least one network interface 504 and other users interface 503.In mobile terminal 500
Each component is coupled by bus system 505.It is understood that bus system 505 is used to realize the company between these components
Connect letter.Bus system 505 in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But
Be for clear explanation for the sake of, various buses are all designated as bus system 505 in Figure 5.
Wherein, user interface 503 can 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,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside height
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(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 be intended to including but not limited to these and it is any its
It is adapted to the memory of type.
In some embodiments, memory 502 stores following element, can perform module or data structure, or
Person their subset, or their superset:Operating system 5021 and application program 5022.
Wherein, operating system 5021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for
Realize various basic businesses and process hardware based task.Application program 5022, comprising 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 for calling memory 502 to store or instruction, specifically, can be application
The program stored in program 5022 or instruction, 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 is returned;If the first response message indicates storage clothes
There is file to be backed up in business device, then delete file to be backed up;If do not exist in the first response message instruction storage server treating
Backup file, then by file backup to be backed up to storage server.
The method that the embodiments of the present invention are disclosed can apply in processor 501, or be realized by processor 501.
Processor 501 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each
Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 501 or software form.Above-mentioned treatment
Device 501 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 502, processor 501 reads the information in memory 502, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (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 performing herein described function or its combination.
Realized for software, can be realized by performing the module (such as process, function etc.) of function described herein herein
Described technology.Software code is storable in memory and by computing device.Memory can within a processor or
Realize processor outside.
Alternatively, processor 501 is additionally operable to:Fixed length piecemeal is carried out to file to be backed up according to default piecemeal length, is obtained
Multiple data blocks;The Second Eigenvalue of each data block is obtained, and the multiple Second Eigenvalues that will be got are sent to storage clothes
Business device;Receive the second response message that storage server is returned;If the second response message indicates there is multiple in storage server
The first data block in data block, then delete the first data block;If in the absence of many in the second response message instruction storage server
The second data block in individual data block, then backup to storage server by the second data block.
Alternatively, processor 501 is additionally operable to:Second Eigenvalue using the second data block is added to the second data block
It is close, the second data block after being encrypted;The Second Eigenvalue of the second data block and the second data block after by encryption sends
To storage server.
Alternatively, processor 501 is additionally operable to:Data recovery request is sent to storage server;Wherein, data recovery request
The identification information of the file that the middle identity information for carrying mobile terminal recovers with request;When storage server is verified to identity information
By rear, the second of the data block after multiple encryptions corresponding with identification information that storage server sends and data block is received
Characteristic value;Using the Second Eigenvalue of each data block for receiving, the data block after corresponding encryption is decrypted, obtained
Data block after multiple decryption;Data block after multiple decryption is assembled, the file that request recovers is obtained.
Mobile terminal 500 can realize each process of mobile terminal realization in previous embodiment, to avoid repeating, here
Repeat no more.
In the fourth embodiment of the present invention, mobile terminal is sent out by the First Eigenvalue of the file to be backed up that will be got
Storage server is given, storage server is returned to the first response message according to the First Eigenvalue, and when first response disappears
When there is 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 is indicated
When not existing the file to be backed up in storage server, just by file backup to be backed up to storage server, solving backup needs
Expend more time and flow, and the memory space of storage server the relatively low problem of utilization rate, reached reduction standby
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, the mobile terminal 600 can be hand
Machine, panel 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 block 630 can be used to receive the numeral or character information of user input, and produce and mobile terminal
600 user is set and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input block 630 can
With including contact panel 631.Contact panel 631, also referred to as touch-screen, can collect user thereon or neighbouring touch operation
(such as user uses the operations of any suitable object or annex on contact panel 631 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment means.Optionally, contact panel 631 may include touch detecting apparatus and touch controller
Two parts.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
Give the processor 660 again, and the order sent of receiving processor 660 and can be performed.Furthermore, it is possible to using resistance-type,
The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 631.Except contact panel 631, input block
630 can also include other input equipments 632, and other input equipments 632 can include but is not limited to physical keyboard, function key
One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 640 can be used for display by the information of user input or be supplied to information and the movement of user
The various menu interfaces of terminal 600.Display unit 640 may include display panel 641, optionally, can use LCD or organic hairs
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 641.
It should be noted that contact panel 631 can cover display panel 641, touch display screen is formed, when touch display screen inspection
Measure thereon or after neighbouring touch operation, processor 660 is sent to determine the type of touch event, with preprocessor
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 conventional control viewing area.The Application Program Interface viewing area
And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
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 element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area be used for show utilization rate control higher, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 660 is the control centre of mobile terminal 600, using various interfaces and connection whole mobile phone
Various pieces, by running or performing software program and/or module of the storage in first memory 621, and call storage
Data in second memory 622, perform the various functions and processing data of mobile terminal 600, so as 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 is 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 is returned;If the first response message indicates storage clothes
There is file to be backed up in business device, then delete file to be backed up;If do not exist in the first response message instruction storage server treating
Backup file, then by file backup to be backed up to storage server.
Alternatively, processor 660 is additionally operable to:Fixed length piecemeal is carried out to file to be backed up according to default piecemeal length, is obtained
Multiple data blocks;The Second Eigenvalue of each data block is obtained, and the multiple Second Eigenvalues that will be got are sent to storage clothes
Business device;Receive the second response message that storage server is returned;If the second response message indicates there is multiple in storage server
The first data block in data block, then delete the first data block;If in the absence of many in the second response message instruction storage server
The second data block in individual data block, then backup to storage server by the second data block.
Alternatively, processor 660 is additionally operable to:Second Eigenvalue using the second data block is added to the second data block
It is close, the second data block after being encrypted;The Second Eigenvalue of the second data block and the second data block after by encryption sends
To storage server.
Alternatively, processor 660 is additionally operable to:Data recovery request is sent to storage server;Wherein, data recovery request
The identification information of the file that the middle identity information for carrying mobile terminal recovers with request;When storage server is verified to identity information
By rear, the second of the data block after multiple encryptions corresponding with identification information that storage server sends and data block is received
Characteristic value;Using the Second Eigenvalue of each data block for receiving, the data block after corresponding encryption is decrypted, obtained
Data block after multiple decryption;Data block after multiple decryption is assembled, the file that request recovers is obtained.
It can be seen that, in the fifth embodiment of the present invention, the first spy of to be backed up file of the mobile terminal by that will get
Value indicative is sent to storage server, make storage server according to the First Eigenvalue return the first response message, and when this first
When there is the file to be backed up in response message instruction storage server, the file to be backed up is directly deleted;When the first response disappears
When in breath instruction storage server in the absence of the file to be backed up, just file backup to be backed up is solved to storage server
Backup needs to expend more time and flow, and the memory space of storage server the relatively low problem of utilization rate, reach
Reduce the data upload amount of backup, save the time and flow backed up, 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, storage server is applied to,
The method includes:
Step 701, receives the First Eigenvalue of the file to be backed up that mobile terminal sends.
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, judges to whether there is the First Eigenvalue in data storage storehouse, if there is fisrt feature in data storage storehouse
Value, then perform step 703, if not existing the First Eigenvalue in data storage storehouse, performs step 704.
Wherein, it is stored with to have backed up in the data storage storehouse of storage server (such as cloud storage service device) and is taken in storage
The characteristic value (i.e. cryptographic Hash) of the file in business device.As long as so there is the First Eigenvalue in data storage storehouse, just show storage
There is file to be backed up in server, if not existing the First Eigenvalue in data storage storehouse certainly, in just showing storage server
In the absence of file to be backed up.
Step 703, to the first response message that there is file to be backed up in mobile terminal transmission instruction storage server.
In the sixth embodiment of the present invention, to ensure that mobile terminal can subsequently ask to recover standby from storage server
The data of part, after execution of step 703, the above method also includes:The step of recording the storage information of file to be backed up, from
And be easy to, when mobile terminal recovers the file for having backed up to storage server requests, accurately and rapidly find mobile terminal
Ask the file for recovering.
Step 704, to the first response message in mobile terminal transmission instruction storage server in the absence of file to be backed up.
In the sixth embodiment of the present invention, after execution of step 704, the above method also comprises the following steps:
The first step, receives the Second Eigenvalue of multiple data blocks that mobile terminal sends.
Wherein, the Second Eigenvalue of above-mentioned data block can be the cryptographic Hash of data block.
Second step, judges to whether there is the Second Eigenvalue for receiving in data storage storehouse, if existing in data storage storehouse
The Second Eigenvalue of the first data block in multiple data blocks, then perform the 3rd step, if not depositing multiple data in data storage storehouse
The Second Eigenvalue of the second data block in block, then perform the 4th step.
Wherein, it is stored with the data storage storehouse of storage server and has backed up the spy of the data block in 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.So just can be true
Identical data block was protected before encrypted backup after encrypted backup to storage server or identical so that mobile terminal does not have
Existing data block in necessary backup storage server again, so as to reach the purpose of the data upload amount for reducing backup.
And in the sixth embodiment of the present invention, as long as there is the first data block in multiple data blocks in data storage storehouse
Second Eigenvalue, just show there is the first data block in storage server, if not existing many numbers in data storage storehouse certainly
According to the Second Eigenvalue of the second data block in block, just show do not exist the second data block in storage server.
3rd step, the of the first data block for indicating have in multiple data blocks in storage server is sent to mobile terminal
Two response messages, and record the storage information of the first data block.
4th step, to the second data block not existed in mobile terminal transmission instruction storage server in multiple data blocks
Second response message.
5th step, distributes storage information, and record to the storage information of the second data block distribution to the second data block.
In the sixth embodiment of the present invention, the purpose of the storage information of the first data block of record and the second data block exists
In, be easy to when mobile terminal to storage server requests recover backed up file when, accurately and rapidly find mobile terminal
Ask each data block of the file of recovery.
6th step, receives the second feature of the second data block and the second data block after the encryption that mobile terminal sends
Value.
7th step, according to the storage information distributed to the second data block, the second data block and second after storage encryption
The Second Eigenvalue of data block.
Wherein, it is 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 the data backed up to storage server requests recovery.Specifically, when mobile terminal request recovers the number that has backed up
According to when, the above method also comprises the following steps:The data recovery request that mobile terminal sends is received first;Wherein, data recovery
The identity information of mobile terminal and the identification information (such as title) of the file of request recovery are carried in request;Then according to identity
Information, legitimate verification is carried out to mobile terminal, when mobile terminal is legal, after the multiple encryptions corresponding with identification information
The Second Eigenvalue of data block and data block is sent to mobile terminal.Specifically, can according to file backup when, the storage of record
Information, quickly finds the Second Eigenvalue of data block and data block after multiple encryptions corresponding with identification information, concurrently
Give mobile terminal.
It is first special with the presence or absence of file to be backed up by judging in data storage storehouse in the sixth embodiment of the present invention
Value indicative, and if there is the First Eigenvalue of file to be backed up, sent to mobile terminal and indicate to exist in storage server to treat standby
First response message of part file, makes mobile terminal delete the file to be backed up;And if in the absence of the first of file to be backed up
Characteristic value, then to the first response message in mobile terminal transmission instruction storage server in the absence of file to be backed up, make movement
The terminal-pair file to be backed up is backed up, data upload amount that backup is reduced so as to reach, the time for saving backup and flow,
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, the storage server 800 includes:
3rd receiver module 801, the First Eigenvalue of the file to be backed up for receiving mobile terminal transmission;
First judge module 802, for judging to whether there is the First Eigenvalue in data storage storehouse, and if data storage storehouse
In there is the First Eigenvalue, then trigger the 3rd sending module 803, and if in data storage storehouse do not exist the First Eigenvalue,
Trigger the 4th sending module 804;
3rd sending module 803, for the triggering according to the first judge module 802, sends to mobile terminal and indicates storage
There is the first response message of file to be backed up in server;
4th sending module 804, for the triggering according to the first judge module 802, sends to mobile terminal and indicates storage
In the absence of the first response message of file to be backed up in server.
Wherein, above-mentioned storage server 800 can be cloud storage service device.
Optionally, storage server also includes:
Logging modle 805, the storage information for recording file to be backed up.
Optionally, storage server also includes:
4th receiver module 806, the Second Eigenvalue of the multiple data blocks for receiving mobile terminal transmission;
Second judge module 807, for judging to whether there is the Second Eigenvalue for receiving in data storage storehouse, and if depositing
There is the Second Eigenvalue 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 data storage storehouse, the 6th sending module 809 is triggered;
5th sending module 808, for the triggering according to the second judge module 807, sends to mobile terminal and indicates storage
There is the second response message 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, for the triggering according to the second judge module 807, sends to mobile terminal and indicates storage
In the absence of the second response message of the second data block in multiple data blocks in server.
Optionally, storage server also includes:
Distribute module 810, for distributing storage information to the second data block, and records to the storage of the second data block distribution
Information;
5th receiver module 811, for the second data block and the second data after the encryption for receiving mobile terminal transmission
The Second Eigenvalue of block;
Memory module 812, for according to the storage information distributed to the second data block, the second data block after storage encryption
And second data block Second Eigenvalue.
Optionally, storage server also includes:
6th receiver module 813, the data recovery request for receiving mobile terminal transmission;Wherein, data recovery request
The identification information of the file that the middle identity information for carrying mobile terminal recovers with request;
Authentication module 814, for according to identity information, legitimate verification being carried out to mobile terminal;
7th sending module 815, for when mobile terminal is legal, by the number after multiple encryptions 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 whether there is text to be backed up by judging in data storage storehouse
The First Eigenvalue of part, and if there is the First Eigenvalue of file to be backed up, sent to mobile terminal and indicate storage server
Middle the first response message that there is file to be backed up, makes mobile terminal delete the file to be backed up;And if in the absence of to be backed up
The First Eigenvalue of file, then send to mobile terminal and indicate the first response for not existing file to be backed up in storage server to disappear
Breath, mobile terminal is backed up the file to be backed up, so as to reach reduce backup data upload amount, save backup when
Between and flow, improve storage server memory space utilization rate effect.
It should be noted that the storage server that seventh embodiment of the invention is provided 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 for being applied to storage server
It is applied to the storage server, and can reaches same or analogous beneficial effect.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application
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, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces
Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.