CN105320577B - A kind of data backup and resume method, system and device - Google Patents

A kind of data backup and resume method, system and device Download PDF

Info

Publication number
CN105320577B
CN105320577B CN201410258408.9A CN201410258408A CN105320577B CN 105320577 B CN105320577 B CN 105320577B CN 201410258408 A CN201410258408 A CN 201410258408A CN 105320577 B CN105320577 B CN 105320577B
Authority
CN
China
Prior art keywords
file
data file
data
user terminal
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410258408.9A
Other languages
Chinese (zh)
Other versions
CN105320577A (en
Inventor
翁玮文
焦伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201410258408.9A priority Critical patent/CN105320577B/en
Publication of CN105320577A publication Critical patent/CN105320577A/en
Application granted granted Critical
Publication of CN105320577B publication Critical patent/CN105320577B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to field of communication technology more particularly to a kind of data backup and resume method, system and device.The method of the embodiment of the present invention includes:User terminal generates the file operation record corresponding to each data file according to the operation to each data file respectively;Wherein, include the operational order that corresponding operating is executed to corresponding data file in the file operation record;The file operation record of the same data file of correspondence is carried out merging by the user terminal;The file operation record of each data file is uploaded to server by the user terminal.Since user terminal is backed up to server to the operation note of data file, server understand which kind of operation user terminal carried out to data file, to user terminal be instructed to carry out intelligent restoration when user terminal carries out data recovery, and can avoid backing up the data that user terminal no longer needs to user terminal again, data backup and resume it is efficient.

Description

A kind of data backup and resume method, system and device
Technical field
The present invention relates to field of communication technology more particularly to a kind of data backup and resume method, system and device.
Background technology
With the development of mobile Internet and becoming increasingly popular for intelligent terminal, the data of user terminal are more and more, more next It is more important, how to ensure that user terminal carries out data backup in time, so that can to carry out data extensive after occurring to lose or damaging Become an increasingly noticeable problem again.
In the prior art, in order to which the data to user terminal back up, all data in user terminal are uploaded to Server, and when needing to restore all data are obtained from server.User terminal is not managed Backup Data, user There may be redundancies to the data of server for terminal backup, and so as to cause the later stage when carrying out data recovery, server is by user The data that terminal no longer needs are backed up again to user terminal, data backup and resume it is less efficient.
Invention content
An embodiment of the present invention provides a kind of data backup and resume method, system and device, to solve the prior art Present in data backup and resume the low problem of efficiency.
The embodiment of the present invention provides a kind of data back up method, the method includes:
User terminal generates the file operation record corresponding to each data file according to the operation to each data file respectively; Wherein, include the operational order that corresponding operating is executed to corresponding data file in the file operation record;
The file operation record of the same data file of correspondence is carried out merging by the user terminal;
The file operation record of each data file is uploaded to server by the user terminal.
Using the above scheme, since user terminal is backed up to server, server energy to the operation note of data file Enough know which kind of operation user terminal carried out to data file, to instruct to use when user terminal carries out data recovery Family terminal carries out intelligent restoration, and can avoid backing up the data that user terminal no longer needs to user terminal, data again It backs up and restores efficient.
Optionally, the file operation record of the same data file of correspondence is carried out merging by the user terminal, specifically Including:
For a data file, if the data file is application program installation kit, and the data file is corresponding It deletes the data file comprising installation operation instruction and unloading operation instruction, the user terminal in file operation record and corresponds to Each file operation record.
In this way, the data that user terminal no longer needs can be deleted.
Optionally, the file operation record of the same data file of correspondence is carried out merging by the user terminal, specifically Including:
For a data file, if the data file is general data file, and the corresponding text of the data file Comprising operational order and delete operation instruction is created in part operation note, it is corresponding that the user terminal deletes the data file Each file operation record.
In this way, the data that user terminal no longer needs can be deleted.
Optionally, the method further includes:
For a file operation note, if the file operation record corresponding data file be the user terminal from The data file that network side is downloaded, the user terminal generate the file download record of the data file;Wherein, the file Include the download address of the data file in Download History;
File download record is uploaded to the server by the user terminal, so that the server is according to Download address in file download record downloads corresponding data file from network side.
In this way, the entire data file downloaded from network side need not be uploaded to server by user terminal, can subtract significantly The time of few data backup, realize the data of user terminal to the quick backup of server.
Optionally, the method further includes:
The user terminal is when receiving the failed list that the server is sent, by the server failed download Data file is uploaded to the server.
In this way, can guarantee the full backup of data file.
The embodiment of the present invention provides a kind of data back up method, the method includes:
Server receives the file operation record of each data file of user terminal uploads;Wherein, the file operation note Include the operational order that corresponding operating is executed to corresponding data file in record;
The file operation is recorded storage corresponding with corresponding data file by the server.
Using the above scheme, since server understand which kind of operation user terminal carried out to data file, to User terminal can be instructed to carry out intelligent restoration when user terminal carries out data recovery, and can avoid user terminal no longer The data needed are backed up again to user terminal, data backup and resume it is efficient.
Optionally, the method further includes:
Server receives the file download record of the user terminal uploads;Wherein, include in the file download record The download address of corresponding data file;
Download address during the server is recorded according to the file download downloads corresponding data file from network side.
In this way, can avoid user terminal is uploaded to server by the entire data file downloaded from network side, it can be significantly The time for reducing data backup, realize the data of user terminal to the quick backup of server.
Optionally, the data volume and check value of corresponding data file, the clothes are also included in the file download record Before business device downloads corresponding data file according to the download address from network side, further include:
The server, which determines, is not present the data file consistent with the data volume and check value in database.
In this way, server can be reduced from network side downloading data file.
Optionally, the method further includes:
The server sends failed list when failing from network side downloading data file, to the user terminal, with Make the user terminal that the data file of the server failed download is uploaded to the server.
In this way, can guarantee the full backup of data file.
The embodiment of the present invention provides a kind of data reconstruction method, the method includes:
User terminal is when needing to carry out data recovery, to server transmission data recovery request;
The user terminal receives each data file that the server is sent and corresponding file operation record;Its In, include the operational order that corresponding operating is executed to corresponding data file in the file operation record;
Operational order during the user terminal is recorded according to the file operation executes accordingly corresponding data file Operation.
Using the above scheme, since user terminal receives the file operation record that server is sent, so as to according to file The content of operation note carries out intelligent restoration to data file.
The embodiment of the present invention provides a kind of data reconstruction method, the method includes:
Server receives the data recovery request that user terminal is sent;
The file operation of the same data file of correspondence that the server uploads the user terminal history record and Corresponding data file carries out merging;Wherein, comprising to corresponding data file execution phase in the file operation record The operational order that should be operated;
The server sends each data file and the corresponding file behaviour of the user terminal to the user terminal It notes down, so that the user terminal is recorded according to the file operation executes corresponding operation to corresponding data file.
Using the above scheme, the file operation of the same data file of correspondence uploaded user terminal history due to server Record and corresponding data file carry out merging, to avoid the data for no longer needing user terminal back up again to User terminal;And the corresponding file operation record of data file is sent to user terminal, user terminal can be instructed to carry out intelligence It can restore.
Optionally, the file operation for the same data file of correspondence that the server uploads the user terminal history is remembered Record and corresponding data file carry out merging, specifically include:
For a data file, if the data file is application program installation kit, and the data file is corresponding In file operation record the data file and institute are deleted comprising installation operation instruction and unloading operation instruction, the server State the corresponding each file operation record of data file.
In this way, the data that user terminal no longer needs can be deleted.
Optionally, the file operation for the same data file of correspondence that the server uploads the user terminal history is remembered Record and corresponding data file carry out merging, specifically include:
For a data file, if the data file is general data file, and the corresponding text of the data file Comprising creating operational order and delete operation instruction in part operation note, the server deletes the data file and described The corresponding each file operation record of data file.
In this way, the data that user terminal no longer needs can be deleted.
The embodiment of the present invention provides a kind of user terminal, and the user terminal includes:
Generation module, for generating the file operation corresponding to each data file respectively according to the operation to each data file Record;Wherein, include the operational order that corresponding operating is executed to corresponding data file in the file operation record;
Sorting module, the file operation for that will correspond to same data file, which records, carries out merging;
Uploading module, for the file operation record of each data file to be uploaded to server.
Due to will back up to server to the operation note of data file, server understand that user terminal to data text Which kind of operation part carried out, to which user terminal can be instructed to carry out intelligent restoration when user terminal carries out data recovery, and And can avoid backing up the data that user terminal no longer needs to user terminal again, data backup and resume it is efficient.
Optionally, the sorting module is specifically used for:
For a data file, if the data file is application program installation kit, and the data file is corresponding Comprising installation operation instruction and unloading operation instruction in file operation record, the corresponding each file operation of the data file is deleted Record.
In this way, the data that user terminal no longer needs can be deleted.
Optionally, the sorting module is specifically used for:
For a data file, if the data file is general data file, and the corresponding text of the data file Comprising operational order and delete operation instruction is created in part operation note, the corresponding each file operation note of the data file is deleted Record.
In this way, the data that user terminal no longer needs can be deleted.
Optionally,
The generation module is additionally operable to:
For a file operation note, if the file operation record corresponding data file be the user terminal from The data file that network side is downloaded generates the file download record of the data file;Wherein, it is wrapped in the file download record Download address containing the data file;
The uploading module is additionally operable to:
File download record is uploaded to the server, so that the server is recorded according to the file download In download address download corresponding data file from network side.
In this way, the entire data file downloaded from network side need not be uploaded to server by user terminal, can subtract significantly The time of few data backup, realize the data of user terminal to the quick backup of server.
Optionally, the uploading module is additionally operable to:
When receiving the failed list that the server is sent, the data file of the server failed download is uploaded To the server.
In this way, can guarantee the full backup of data file.
The embodiment of the present invention provides a kind of server, and the server includes:
Receiving module, the file operation record of each data file for receiving user terminal uploads;Wherein, the file Include the operational order that corresponding operating is executed to corresponding data file in operation note;
Memory module, for the file operation to be recorded storage corresponding with corresponding data file.
Since server understand which kind of operation user terminal carried out to data file, to be carried out in user terminal Data can instruct user terminal to carry out intelligent restoration when restoring, and can avoid the data for no longer needing user terminal again Back up to user terminal, data backup and resume it is efficient.
Optionally, the receiving module is additionally operable to:
Receive the file download record of the user terminal uploads;Wherein, comprising corresponding in the file download record The download address of data file;The server further includes:
Download module downloads corresponding data text for the download address in being recorded according to the file download from network side Part.
In this way, can avoid user terminal is uploaded to server by the entire data file downloaded from network side, it can be significantly The time for reducing data backup, realize the data of user terminal to the quick backup of server.
Optionally, the data volume and check value that corresponding data file is also included in the file download record, under described Module is carried to be additionally operable to:
Before downloading corresponding data file from network side according to the download address, determines in database and be not present and institute State the data volume data file consistent with check value.
In this way, server can be reduced from network side downloading data file.
Optionally, the download module is additionally operable to:
When failing from network side downloading data file, failed list is sent to the user terminal, so that the user The data file of the server failed download is uploaded to the server by terminal.
In this way, can guarantee the full backup of data file.
The embodiment of the present invention provides a kind of user terminal, and the user terminal includes:
Sending module, for when needing to carry out data recovery to server transmission data recovery request;
Receiving module, for receiving each data file and corresponding file operation record that the server is sent;Its In, include the operational order that corresponding operating is executed to corresponding data file in the file operation record;
Operation module executes corresponding data file for the operational order in being recorded according to the file operation corresponding Operation.
Since user terminal receives the file operation record that server is sent, so as to the content recorded according to file operation Intelligent restoration is carried out to data file.
The embodiment of the present invention provides a kind of server, and the server includes:
Receiving module, the data recovery request for receiving user terminal transmission;
Sorting module, for the same data file of correspondence that the user terminal history is uploaded file operation record with And corresponding data file carries out merging;Wherein, comprising to the execution of corresponding data file in the file operation record The operational order of corresponding operating;
Sending module, for sending each data file of the user terminal and corresponding file to the user terminal Operation note, so that the user terminal is recorded according to the file operation executes corresponding operation to corresponding data file.
Due to the file operation record and correspondence of the same data file of correspondence that server uploads user terminal history Data file carry out merging, to avoid backing up the data that user terminal no longer needs to user terminal again;And And the corresponding file operation record of data file is sent to user terminal, user terminal can be instructed to carry out intelligent restoration.
Optionally, the sorting module is specifically used for:
For a data file, if the data file is application program installation kit, and the data file is corresponding Comprising installation operation instruction and unloading operation instruction in file operation record, the data file and the data file are deleted Corresponding each file operation record.
In this way, the data that user terminal no longer needs can be deleted.
Optionally, the sorting module is specifically used for:
For a data file, if the data file is general data file, and the corresponding text of the data file Comprising creating operational order and delete operation instruction in part operation note, the server deletes the data file and described The corresponding each file operation record of data file.
In this way, the data that user terminal no longer needs can be deleted.
The embodiment of the present invention provides a kind of data backup system, and the system comprises user terminals and server, wherein:
The user terminal, for generating the file corresponding to each data file respectively according to the operation to each data file Operation note;The file operation record of the same data file of correspondence is subjected to merging;By the file operation of each data file Record is uploaded to the server;
The server, the file operation record of each data file for receiving the user terminal uploads;It will be described The storage corresponding with corresponding data file of file operation record;
Wherein, include the operational order that corresponding operating is executed to corresponding data file in the file operation record.
Optionally, the user terminal is specifically used for:For a data file, if the data file is application program Installation kit, and deleted comprising installation operation instruction and unloading operation instruction in the corresponding file operation record of the data file The corresponding each file operation record of the data file.
Optionally, the user terminal is specifically used for:For a data file, if the data file is general data File, and in the corresponding file operation record of the data file institute is deleted comprising operational order and delete operation instruction is created State the corresponding each file operation record of data file.
Optionally, the user terminal is additionally operable to:For a file operation note, if file operation record corresponds to Data file be the data file downloaded from network side, generate the file download record of the data file, and by the text Part Download History is uploaded to server;Wherein, the download address of the data file is included in the file download record.
Optionally, the server is additionally operable to:The file download record of the user terminal uploads is received, and according to described Download address in file download record downloads corresponding data file from network side.
Optionally, the data volume and check value of corresponding data file, the clothes are also included in the file download record Business device is additionally operable to:Before downloading corresponding data file from network side according to the download address, determines in database and be not present The data file consistent with the data volume and check value.
Optionally, the server is additionally operable to:When failing from network side downloading data file, sent out to the user terminal Send failed list.
Optionally, the user terminal is additionally operable to:When receiving the failed list that the server is sent, by the clothes The data file of business device failed download is uploaded to the server.
Optionally, the user terminal is additionally operable to:When needing to carry out data recovery, asked to the recovery of server transmission data It asks;Receive each data file and corresponding file operation record that the server is sent;It is recorded according to the file operation In operational order corresponding operation is executed to corresponding data file.
Optionally, the server is additionally operable to:Receive the data recovery request that user terminal is sent;By the user terminal The file operation record for the same data file of correspondence that history uploads and corresponding data file carry out merging;To described User terminal sends each data file and corresponding file operation record of the user terminal.
Optionally, the server is specifically used for:For a data file, if the data file is pacified for application program Dress packet, and in the corresponding file operation record of the data file institute is deleted comprising installation operation instruction and unloading operation instruction State data file and the corresponding each file operation record of the data file.
Optionally, the server is specifically used for:For a data file, if the data file is general data text Part, and instructed comprising establishment operational order and delete operation in the corresponding file operation record of the data file, described in deletion Data file and the corresponding each file operation record of the data file.
The embodiment of the present invention provides a kind of data recovery system, and the system comprises user terminals and server, wherein:
The user terminal, for when needing to carry out data recovery to the server transmission data recovery request;It connects Receive each data file and corresponding file operation record that the server is sent;Behaviour in being recorded according to the file operation It instructs and corresponding operation is executed to corresponding data file;
The server, the data recovery request sent for receiving the user terminal;By the user terminal history The file operation of the same data file of correspondence of upload records and corresponding data file carries out merging;To the user Terminal sends each data file and corresponding file operation record of the user terminal;
Wherein, include the operational order that corresponding operating is executed to corresponding data file in the file operation record.
Optionally, the server is specifically used for:For a data file, if the data file is pacified for application program Dress packet, and in the corresponding file operation record of the data file institute is deleted comprising installation operation instruction and unloading operation instruction State data file and the corresponding each file operation record of the data file.
Optionally, the server is specifically used for:For a data file, if the data file is general data text Part, and instructed comprising establishment operational order and delete operation in the corresponding file operation record of the data file, described in deletion Data file and the corresponding each file operation record of the data file.
Description of the drawings
Fig. 1 is the step schematic diagram of data back up method in the embodiment of the present invention one;
Fig. 2 is the structural schematic diagram of user terminal in the embodiment of the present invention two;
Fig. 3 is the step schematic diagram of data back up method in the embodiment of the present invention three;
Fig. 4 is the structural schematic diagram of server in the embodiment of the present invention four;
Fig. 5 is the step schematic diagram of data reconstruction method in the embodiment of the present invention five;
Fig. 6 is the structural schematic diagram of user terminal in the embodiment of the present invention six;
Fig. 7 is the step schematic diagram of data reconstruction method in the embodiment of the present invention seven;
Fig. 8 is the structural schematic diagram of server in the embodiment of the present invention eight;
Fig. 9 is the structural schematic diagram of data backup system in the embodiment of the present invention nine;
Figure 10 is the structural schematic diagram of data recovery system in the embodiment of the present invention ten.
Specific implementation mode
In practical application scene, user terminal may hold the data file in user terminal under the instruction of user The corresponding operation of row (such as peace loading, unloading, establishment, modification or deletion), therefore, can for the ease of being managed to data file The operation of each data file will be recorded, and backs up newest data file.
The scheme of the embodiment of the present invention records the operation of data file user terminal, by the same data text of correspondence Part file operation record carry out merging, and by the file operation of each data file record be uploaded to server carry out it is standby Part, to which server understand which kind of operation user terminal carried out to data file, and it is extensive in user terminal progress data User terminal is instructed to carry out intelligent restoration when multiple.
Embodiments of the present invention is further illustrated with reference to the accompanying drawings of the specification, but the present invention is not limited to following reality Apply example.
Embodiment one:
As shown in Figure 1, data back up method includes the following steps in the embodiment of the present invention one:
Step 101:User terminal generates the file corresponding to each data file according to the operation to each data file respectively Operation note;
Step 102:The file operation record of the same data file of correspondence is carried out merging by user terminal;
Step 103:The file operation record of each data file is uploaded to server by user terminal.
Wherein, include the operational order that corresponding operating is executed to corresponding data file in file operation record.For example, false If user terminal at a time performs installation operation to a data file, then a provision of the Generating Data File is directed to It is instructed comprising installation operation in part operation note.
Preferably, it is directed to a data file, if the data file is application program installation kit, the data file When may include file name, store path, installation path, operational order and the operation of the data file in file operation record Between;It, should if the data file is general data file (such as text file, video file are not required to data file to be mounted) When may include file name, store path, operational order and the operation of the data file in the file operation record of data file Between.
For example, it is assumed that when 8 days 14 May in 2014 32 divide be mounted in user terminal within 53 seconds a file name be " wechat " Application software, then user terminal for the application software generate a file operation note:
File name:Wechat, store path:/ sdcard/data/app, installation path:/ sdcard/instal/app, Operational order:Installation, operating time:32 divide 53 seconds when 8 days 14 May in 2014.
In another example, it is assumed that when 8 days 14 May in 2014 36 divide created in user terminal within 53 seconds a file name be " meeting The document of view summary ", then user terminal is for the document one file operation note of generation:
File name:Meeting summary, store path:/ sdcard/data/file, operational order:It creates, the operating time: 36 divide 53 seconds when 8 days 14 May in 2014.
For same data file, different operations may be carried out in different moments, therefore, it is necessary to will correspond to same number Merging is carried out according to the file operation record of file.Specifically, for a data file, if the data file is application Program installation kit, and the corresponding file operation record of the data file includes that installation operation instruction and unloading operation instruct, then User terminal deletes the corresponding each file operation record of the data file;If the data file is general data file, and should The corresponding file operation record of data file includes creating operational order and delete operation instruction, then user terminal deletes the number According to the corresponding each file operation record of file.
For example, it is assumed that file name currently stored in user terminal is corresponding two files of application software of " wechat " Operation note is respectively:
File operation record 1:
File name:Wechat, store path:/ sdcard/data/app, installation path:/ sdcard/instal/app, Operational order:Installation, operating time:32 divide 53 seconds when 8 days 14 May in 2014;
File operation record 2:
File name:Wechat, store path:/ sdcard/data/app, installation path:/ sdcard/instal/app, Operational order:Unloading, operating time:35 divide 53 seconds when 8 days 14 May in 2014.
Due to file name be " wechat " the corresponding two file operation notes of application software in contain installation operation Instruction and unloading operation instruction, user terminal delete file operation record 1 and file operation record 2.It should be noted that due to Unloading operation was executed to the application software, therefore, the application software is will be not present in user terminal.
In another example, it is assumed that currently stored file name is corresponding three provision of document of " meeting summary " in user terminal Part operation note is respectively:
File operation record 11:
File name:Meeting summary, store path:/ sdcard/data/file, operational order:It creates, the operating time: 36 divide 53 seconds when 8 days 14 May in 2014;
File operation record 12:
File name:Meeting summary, store path:/ sdcard/data/file, operational order:Modification, operating time: 37 divide 53 seconds when 8 days 14 May in 2014;
File operation record 13:
File name:Meeting summary, store path:/ sdcard/data/file, operational order:It deletes, the operating time: 38 divide 53 seconds when 8 days 14 May in 2014.
Since file name operates to contain establishment in the corresponding three file operation notes of document of " meeting summary " Instruction and delete operation instruction, user terminal delete file operation record 11~13.It should be noted that due to being held to the document Therefore delete operation of going will be not present the document in user terminal.
User terminal, can be by remaining text after the file operation record that will correspond to same data file carries out merging Part operation note is uploaded to server.During specific implementation, user terminal can record file operation and corresponding data File is uploaded to server together, if being stored with the data file in server, user terminal does not upload.
Distinguishingly, for a file operation note, if the corresponding data file of this document operation note is user terminal The data file downloaded from network side, then user terminal generates the file download record of the data file, and this document is downloaded Record is uploaded to server.
Wherein, the download address of corresponding data file is included in file download record, then server is receiving user After the file download record that terminal uploads, it can be downloaded and be corresponded to from network side according to the download address for including in this document Download History Data file.Wherein, download address is specifically as follows uniform resource locator (URL, Uniform Resource Locator it) links.
Preferably, also may include the downloading mode of corresponding data file in file download record, for example, Hyper text transfer Agreement (HTTP, Hypertext Transfer Protocol) downloading mode and text transfer protocol (FTP, File Transfer Protocol) downloading mode, then server, can root after the file download record for receiving user terminal uploads According to the download address and downloading mode for including in this document Download History corresponding data file is downloaded from network side.
Preferably, also may include the data volume and check value of corresponding data file in file download record, then server After the file download record for receiving user terminal uploads, it can first search in the database and include with this document Download History The data volume data file consistent with check value, if can find, by the data file found and the text received Part Download History and file operation record are associated;If do not found, under including in this document Download History Set address downloads corresponding data file from network side, and by the data file downloaded to and the file download received record and File operation record is associated.
Wherein, the data volume of data file is specially the size (such as 5 Mbytes) of data file, the check value of data file The hash value that Hash (Hash) is calculated specially is carried out to the content of data file.If server is remembered according to file download The download address for including in record downloads corresponding data file from network side, then after having downloaded data file, server can also According to the content of the data file generate hash value, and by the hash value of generation it is corresponding with the data file store.
Preferably, also may include the text of corresponding data file in the file download record that user terminal is uploaded to server Part title and store path, in this case, later stage user terminal when carrying out data recovery, data file can be stored in it is extensive Identical position before multiple.For example, it is assumed that before data are restored, user terminal has downloaded a file name from network side and has been The video file of " XX concerts ", and store it in/sdcard/data/video, then it is needed when user terminal breaks down When restoring data, also the video file that file name is " XX concerts " can be stored in/sdcard/data/video.
Preferably, if server is corresponding from network side download according to the download address for including in this document Download History Data file fails, then sends failed list to user terminal.User terminal receive server transmission failed list when, The data file of server failed download is uploaded to server.Specifically, server can will be from the number of network side failed download User terminal is sent in failed list according to file name and the store path carrying of file, then user terminal is by failed list In include file name and the corresponding data file of store path be uploaded to server.
Since the download address for the data file downloaded from network side in user terminal is uploaded to server, by server Download corresponding data file from network side according to the download address of user terminal uploads, to user terminal does not need will be from net The entire data file that network side is downloaded is uploaded to server, can greatly reduce the time of data backup, realize the number of user terminal According to the quick backup to server.
It is described above the process that the data file downloaded from network side in user terminal is backed up to server, for It is not the data file downloaded from network side, such as the data file that user terminal is obtained from other users terminal, due to service Device can not obtain the data file, which need to be directly uploaded to server and backed up by user terminal.
It should be noted that during specific implementation, in order to reduce pressure of the server from network side downloading data file Power, user terminal can be more than preset data amount threshold value (such as 5,000,000 words just for the data volume downloaded from network side in user terminal Section) Generating Data File file download record, and the file download of generation record is uploaded to server, and will be from network side The data volume of download is directly uploaded to server no more than the data file of preset data amount threshold value and is backed up.
Based on foregoing description, in the embodiment of the present invention, it is uploaded to the possibility of server together with file operation record It is to record corresponding data file with file operation, it is also possible to the file download of corresponding data file is recorded with file operation Record.For example, if a data file is the data file that user terminal is downloaded from network side, user terminal is literary by the data The file download record and file operation record of part are uploaded to server together;If a data file is not user terminal from net The data file that network side is downloaded, then user terminal the file operation of the data file is recorded and is uploaded to together with the data file Server.
It should be noted that during specific implementation, user terminal can periodically will be standby (as monthly, weekly or daily) Part data are uploaded to server, the Backup Data that server stores user terminal uploads every time.Wherein, for a data text The Backup Data of part, the data file can be the file download record and file operation record of the data file, or be somebody's turn to do The file operation of data file and the data file records.
Embodiment two:
The present embodiment is second is that belong to a kind of user terminal of same inventive concept with embodiment one, therefore the reality of embodiment two The implementation that may refer to embodiment one is applied, overlaps will not be repeated.
As shown in Fig. 2, the user terminal includes:
Generation module 21, for generation to be grasped corresponding to the file of each data file respectively according to the operation to each data file It notes down;Wherein, include the operational order that corresponding operating is executed to corresponding data file in the file operation record;
Sorting module 22, the file operation for that will correspond to same data file, which records, carries out merging;
Uploading module 23, for the file operation record of each data file to be uploaded to server.
Optionally, the sorting module 22 is specifically used for:
For a data file, if the data file is application program installation kit, and the data file is corresponding Comprising installation operation instruction and unloading operation instruction in file operation record, the corresponding each file operation of the data file is deleted Record.
Optionally, the sorting module 22 is specifically used for:
For a data file, if the data file is general data file, and the corresponding text of the data file Comprising operational order and delete operation instruction is created in part operation note, the corresponding each file operation note of the data file is deleted Record.
Optionally, the generation module 21 is additionally operable to:
For a file operation note, if the file operation record corresponding data file be the user terminal from The data file that network side is downloaded generates the file download record of the data file;Wherein, it is wrapped in the file download record Download address containing the data file;
The uploading module 23 is additionally operable to:
File download record is uploaded to server, so that during the server is recorded according to the file download Download address downloads corresponding data file from network side.
Optionally, the uploading module 23 is additionally operable to:
When receiving the failed list that the server is sent, the data file of the server failed download is uploaded To the server.
It should be noted that being to each composition portion to the description of each component part of user terminal in the embodiment of the present invention two The description of point major function, each component part also has the method step realized described in embodiment one in the embodiment of the present invention two Rapid function, meanwhile, the user terminal in the embodiment of the present invention two also has the logic module for executing one each step of embodiment.
Embodiment three:
The present embodiment three is to belong to a kind of data back up method of same inventive concept with embodiment one, therefore embodiment three Implementation may refer to the implementation of embodiment one, overlaps will not be repeated.
As shown in figure 3, data back up method includes the following steps in the embodiment of the present invention three:
Step 301:Server receives the file operation record of each data file of user terminal uploads;
Step 302:The file operation received is recorded storage corresponding with corresponding data file by server.
Wherein, include the operational order that corresponding operating is executed to corresponding data file in file operation record.Preferably, For a data file, if the data file is application program installation kit, in the file operation record of the data file It may include file name, store path, installation path, operational order and the operating time of the data file;If the data are literary Part is general data file (such as text file, video file are not required to data file to be mounted), the file of the data file It may include file name, store path, operational order and the operating time of the data file in operation note.
Wherein, file operation record can be that user terminal directly uploads with corresponding data file, can also be clothes Business device is pre-stored.Distinguishingly, for a file operation note, if the corresponding data file of this document operation note is to use The data file that family terminal from network side is downloaded, then user terminal generate the file download record of the data file, and by this article Part Download History is uploaded to server.Based on this, during specific implementation, server can receive the file of user terminal uploads Download History, and the download address in being recorded according to file download downloads corresponding data file from network side.
Wherein, the download address of corresponding data file is included in file download record.
Preferably, also may include the downloading mode of corresponding data file in file download record, for example, the download sides HTTP Formula and FTP downloading modes, then server receive user terminal uploads file download record after, can be downloaded according to this document The download address and downloading mode for including in record download corresponding data file from network side.
Preferably, also include the data volume and check value of corresponding data file in file download record, then server root Before download address in being recorded according to file download downloads corresponding data file from network side, it can first determine and not deposited in database In the data file consistent with the data volume of the data file and check value.Specifically, server is on receiving user terminal After the file download record of biography, can first it search in the database and the data volume and check value one that include in this document Download History The data file of cause grasps the data file found and the file download received record and file if can find It notes down associated;If do not found, downloaded from network side according to the download address for including in this document Download History Corresponding data file, and the data file downloaded to is related to the file download record and file operation record received Connection.
Preferably, if server is corresponding from network side download according to the download address for including in this document Download History Data file fails, then sends failed list to user terminal.User terminal receive server transmission failed list when, The data file of server failed download is uploaded to server.Specifically, server can will be from the number of network side failed download User terminal is sent in failed list according to file name and the store path carrying of file, then user terminal is by failed list In include file name and the corresponding data file of store path be uploaded to server.
Example IV:
The present embodiment four is to belong to a kind of server of same inventive concept with embodiment three, therefore the implementation of example IV The implementation of embodiment three is may refer to, overlaps will not be repeated.
As shown in figure 4, the server includes:
Receiving module 41, the file operation record of each data file for receiving user terminal uploads;Wherein, the text Include the operational order that corresponding operating is executed to corresponding data file in part operation note;
Memory module 42, for the file operation to be recorded storage corresponding with corresponding data file.
Optionally, the receiving module 41 is additionally operable to:
Receive the file download record of the user terminal uploads;Wherein, comprising corresponding in the file download record The download address of data file;The server further includes:
Download module 43 downloads corresponding data for the download address in being recorded according to the file download from network side File.
Optionally, the data volume and check value that corresponding data file is also included in the file download record, under described Module 43 is carried to be additionally operable to:
Before downloading corresponding data file from network side according to the download address, determines in database and be not present and institute State the data volume data file consistent with check value.
The download module 43 is additionally operable to:
When failing from network side downloading data file, failed list is sent to the user terminal, so that the user The data file of the server failed download is uploaded to the server by terminal.
It should be noted that being to each component part to the description of each component part of server in the embodiment of the present invention four The description of major function, each component part also has the method and step realized described in embodiment three in the embodiment of the present invention four Function, meanwhile, server in the embodiment of the present invention four also has the logic module for executing three each step of embodiment.
Embodiment five:
The present embodiment five is a kind of data reconstruction method for belonging to same inventive concept with embodiment one.
As shown in figure 5, data reconstruction method includes the following steps in the embodiment of the present invention five:
Step 501:User terminal is when needing to carry out data recovery, to server transmission data recovery request;
Step 502:User terminal receives each data file that server is sent and corresponding file operation record;
Step 503:Operational order during user terminal is recorded according to file operation executes accordingly corresponding data file Operation.
Wherein, user terminal determination, which needs to carry out data recovery to be specifically as follows user terminal, restores because of damage to dispatching from the factory Be arranged, the operational order for executing corresponding operating to corresponding data file is included in file operation record (such as installation creates).
The specific implementation of step 503 can be:For a file operation note, if in this document operation note Operational order is installation, then installs corresponding data file;If the operational order in this document operation note is to create, create Corresponding data file.
Optionally, also include installation path in file operation record, then a file operation note is directed to, if this document is grasped Operational order in noting down is installation, then the corresponding data file of this document operation note is mounted on this document by user terminal The corresponding position of installation path in operation note.
Optionally, also include store path in file operation record, then a file operation note is directed to, if this document is grasped Operational order in noting down is to create, then user terminal creates the corresponding data file of this document operation note in this document The corresponding position of store path in operation note.
For example, it is assumed that a data file is application program installation kit, the corresponding file operation of application program installation kit Operational order in record is installation, then the corresponding position installation of installation path of the user terminal in this document operation note should Application program.In another example, it is assumed that a data file is document, and the operational order in the corresponding file operation record of the document is It creates, then the corresponding position of store path of the user terminal in this document operation note creates the document.
Using the embodiment of the present invention scheme can when data are restored, by data file store or mounted on before recovery Identical position.
Embodiment six:
The present embodiment six is to belong to a kind of user terminal of same inventive concept with embodiment five, therefore the reality of embodiment six The implementation that may refer to embodiment five is applied, overlaps will not be repeated.
As shown in fig. 6, the user terminal includes:
Sending module 61, for when needing to carry out data recovery to server transmission data recovery request;
Receiving module 62, for receiving each data file and corresponding file operation record that the server is sent; Wherein, include the operational order that corresponding operating is executed to corresponding data file in the file operation record;
Operation module 63 executes phase for the operational order in being recorded according to the file operation to corresponding data file The operation answered.
It should be noted that being to each composition portion to the description of each component part of user terminal in the embodiment of the present invention six The description of point major function, each component part also has the method step realized described in embodiment five in the embodiment of the present invention six Rapid function, meanwhile, the user terminal in the embodiment of the present invention six also has the logic module for executing five each step of embodiment.
Embodiment seven:
The present embodiment seven is a kind of data reconstruction method for belonging to same inventive concept with embodiment five.
As shown in fig. 7, data reconstruction method includes the following steps in the embodiment of the present invention seven:
Step 701:Server receives the data recovery request that user terminal is sent;
Step 702:The file operation of the same data file of correspondence that server uploads user terminal history record and Corresponding data file carries out merging;
Step 703:Server sends each data file of the user terminal and corresponding file operation to user terminal Record.
Wherein, the specific implementation of step 702 can be:
For a data file, if the data file is application program installation kit, and the corresponding text of the data file In part operation note the data file and the data file are deleted comprising installation operation instruction and unloading operation instruction, server Corresponding each file operation record;If the data file is general data file, and the corresponding file operation of the data file Comprising operational order and delete operation instruction is created in record, server deletes the data file and the data file is corresponding Each file operation record.
For example, it is assumed that the file name that user terminal history currently stored in server uploads is soft for the application of " wechat " The corresponding two file operation notes of part are respectively:
File operation record 3:
File name:Wechat, store path:/ sdcard/data/app, installation path:/ sdcard/instal/app, Operational order:Installation, operating time:32 divide 53 seconds when 8 days 14 May in 2014;
File operation record 4:
File name:Wechat, store path:/ sdcard/data/app, installation path:/ sdcard/instal/app, Operational order:Unloading, operating time:35 divide 53 seconds when 8 days 14 May in 2014.
Due to file name be " wechat " the corresponding two file operation notes of application software in contain installation operation Instruction and unloading operation instruction, server delete file operation record 3 and file operation record 4, and are " micro- by file name The application software of letter " is deleted.
In another example, it is assumed that the file name that currently stored user terminal history uploads in server is " meeting summary " The corresponding three file operation notes of document are respectively:
File operation record 31:
File name:Meeting summary, store path:/ sdcard/data/file, operational order:It creates, the operating time: 36 divide 53 seconds when 8 days 14 May in 2014;
File operation record 32:
File name:Meeting summary, store path:/ sdcard/data/file, operational order:Modification, operating time: 37 divide 53 seconds when 8 days 14 May in 2014;
File operation record 33:
File name:Meeting summary, store path:/ sdcard/data/file, operational order:It deletes, the operating time: 38 divide 53 seconds when 8 days 14 May in 2014.
Since file name operates to contain establishment in the corresponding three file operation notes of document of " meeting summary " It instructs and delete operation instruction, server deletes file operation record 31~33, and be the text of " meeting summary " by file name Shelves are deleted.
It should be noted that if a data file corresponds to two file operation notes, wherein a file operation note Operational order in record is to create, and the operational order in another file operation note is modification, then server delete operation refers to The file operation record for modification is enabled, and replaces the data file created using modified data file.
It also may include that the time believes during specific implementation, in the data recovery request that user terminal is sent to server Breath, then before the temporal information that server uploads user terminal history the file operation of corresponding same data file record with And corresponding data file carries out merging.For example, it is assumed that user terminal to server ask restore on May 8th, 2014 it Preceding data, then server is by the file operation record of corresponding same data file before on May 8th, 2014 and corresponding number Merging is carried out according to file.
Embodiment eight:
The present embodiment eight is to belong to a kind of server of same inventive concept with embodiment seven, therefore the implementation of embodiment eight The implementation of embodiment seven is may refer to, overlaps will not be repeated.
As shown in figure 8, the server includes:
Receiving module 81, the data recovery request for receiving user terminal transmission;
Sorting module 82, the file operation record of the same data file of correspondence for uploading the user terminal history And corresponding data file carries out merging;Wherein, include to be held to corresponding data file in the file operation record The operational order of row corresponding operating;
Sending module 83, for sending each data file of the user terminal and corresponding text to the user terminal Part operation note, so that the user terminal is recorded according to the file operation executes corresponding behaviour to corresponding data file Make.
Optionally, the sorting module 82 is specifically used for:
For a data file, if the data file is application program installation kit, and the data file is corresponding Comprising installation operation instruction and unloading operation instruction in file operation record, the data file and the data file are deleted Corresponding each file operation record.
Optionally, the sorting module 82 is specifically used for:
For a data file, if the data file is general data file, and the corresponding text of the data file Comprising creating operational order and delete operation instruction in part operation note, the server deletes the data file and described The corresponding each file operation record of data file.
It should be noted that being to each component part to the description of each component part of server in the embodiment of the present invention eight The description of major function, each component part also has the method and step realized described in embodiment seven in the embodiment of the present invention eight Function, meanwhile, server in the embodiment of the present invention eight also has the logic module for executing seven each step of embodiment.
Below with a specific example to the data backup and resume method of user terminal in the embodiment of the present invention It illustrates.
User terminal downloads application software that file name is " wechat " to/sdcard/data/app from network side, And when 8 days 14 May in 2014 32 divide 53 seconds be mounted on/sdcard/instal/app.
User terminal generates the file download record of the application software:
File name:Wechat, store path:/ sdcard/data/app, download address:http:// Weixin.qq.com, downloading mode:HTTP, file size (data volume):36MB (Mbytes), hash value: f65c7bc0bebbb04b173f4cce7cc1dcc4。
The file operation record of the application software is generated simultaneously:
File name:Wechat, store path:/ sdcard/data/app, installation path:/ sdcard/instal/app, Operational order:Installation, operating time:32 divide 53 seconds when 8 days 14 May in 2014.
User terminal is at the data backup moment (such as on every Tuesdays 17:00) check with file name to be " micro- according to historical record Whether the existing file operation comprising installation operation instruction records in the corresponding file operation record of letter ", and has comprising unloading behaviour Make the file operation instructed record, if so, then deleting this two file operation notes;If being no, " micro- by file name The file download record and file operation record of letter " are uploaded to server.
Server is in the file download record and file operation that the file name for receiving user terminal uploads is " wechat " After record, first locating file size is 36MB, hash value is in the database The data file of f65c7bc0bebbb04b173f4cce7cc1dcc4, if do not found, in http:// Weixin.qq.com downloads website the application software, and by the application software of download and the file download received record and text Part operation note is associated.
User terminal is when needing to restore data, to server transmission data recovery request.
Server is after the data recovery request for receiving user terminal transmission, and elder generation is checked according to historical record and filename Referred to as whether the existing file operation comprising installation operation instruction records in " wechat " corresponding file operation record, and has and include The file operation record of unloading operation instruction, if so, being then answering for " wechat " by this two file operation notes and file name It is deleted with software;If application software and corresponding file operation record that file name is " wechat " no, are sent to use Family terminal.
User terminal receive file name be " wechat " application software and corresponding file operation record after, according to The application software is mounted on/sdcard/instal/app by the information in file operation record.
It is to realize the backup and recovery of user terminal data by above procedure.
Embodiment nine:
The present embodiment nine is a kind of data backup system for belonging to same inventive concept with one~embodiment of embodiment eight, because The implementation of this embodiment nine may refer to the implementation of one~embodiment of embodiment eight, and overlaps will not be repeated.
As shown in figure 9, the system comprises user terminals 91 and server 92, wherein:
The user terminal 91, for generating the text corresponding to each data file respectively according to the operation to each data file Part operation note;The file operation record of the same data file of correspondence is subjected to merging;The file of each data file is grasped It notes down and is uploaded to the server 92;
The server 92, the file operation record of each data file for receiving the upload of the user terminal 91;It will The file operation record storage corresponding with corresponding data file;
Wherein, include the operational order that corresponding operating is executed to corresponding data file in the file operation record.
Optionally, the user terminal 91 is specifically used for:For a data file, if the data file is using journey Sequence installation kit, and deleted comprising installation operation instruction and unloading operation instruction in the corresponding file operation record of the data file Except the corresponding each file operation record of the data file.
Optionally, the user terminal 91 is specifically used for:For a data file, if the data file is common number According to file, and deleted in the corresponding file operation record of the data file comprising operational order and delete operation instruction is created The corresponding each file operation record of the data file.
Optionally, the user terminal 91 is additionally operable to:For a file operation note, if file operation record pair The data file answered is the data file downloaded from network side, generates the file download record of the data file, and will be described File download record is uploaded to server 92;Wherein, the download address of the data file is included in the file download record.
Optionally, the server 92 is additionally operable to:The file download for receiving the upload of the user terminal 91 records, and according to Download address in the file download record downloads corresponding data file from network side.
Optionally, the data volume and check value of corresponding data file, the clothes are also included in the file download record Business device 92 is additionally operable to:Before downloading corresponding data file from network side according to the download address, determines in database and do not deposit In the data file consistent with the data volume and check value.
Optionally, the server 92 is additionally operable to:When failing from network side downloading data file, to the user terminal 91 send failed list.
Optionally, the user terminal 91 is additionally operable to:When receiving the failed list of the transmission of the server 92, by institute The data file for stating 92 failed download of server is uploaded to the server 92.
Optionally, the user terminal 91 is additionally operable to:It is extensive to 92 transmission data of server when needing to carry out data recovery Multiple request;Receive each data file and corresponding file operation record of the transmission of the server 92;It is grasped according to the file Operational order in noting down executes corresponding operation to corresponding data file.
Optionally, the server 92 is additionally operable to:Receive the data recovery request that user terminal 91 is sent;By the user The file operation record for the same data file of correspondence that 91 history of terminal uploads and corresponding data file carry out merging; Each data file and corresponding file operation record of the user terminal 91 are sent to the user terminal 91.
Optionally, the server 92 is specifically used for:For a data file, if the data file is application program Installation kit, and deleted comprising installation operation instruction and unloading operation instruction in the corresponding file operation record of the data file The data file and the corresponding each file operation record of the data file.
Optionally, the server 92 is specifically used for:For a data file, if the data file is general data File, and in the corresponding file operation record of the data file institute is deleted comprising operational order and delete operation instruction is created State data file and the corresponding each file operation record of the data file.
Embodiment ten:
The present embodiment ten is a kind of data recovery system for belonging to same inventive concept with five~embodiment of embodiment eight, because The implementation of this embodiment ten may refer to the implementation of five~embodiment of embodiment eight, and overlaps will not be repeated.
Such as Figure 10, the system comprises user terminals 1001 and server 1002, wherein:
The user terminal 1001, for when needing to carry out data recovery, being asked to the recovery of 1002 transmission data of server It asks;Receive each data file and corresponding file operation record of the transmission of the server 1002;According to the file operation Operational order in record executes corresponding operation to corresponding data file;
The server 1002, the data recovery request for receiving the transmission of user terminal 1001;By the user terminal The file operation record for the same data file of correspondence that 1001 history upload and corresponding data file carry out merging;To The user terminal 1001 sends each data file and corresponding file operation record of the user terminal 1001;
Wherein, include the operational order that corresponding operating is executed to corresponding data file in the file operation record.
Optionally, the server 1002 is specifically used for:For a data file, if the data file is using journey Sequence installation kit, and deleted comprising installation operation instruction and unloading operation instruction in the corresponding file operation record of the data file Except the data file and the corresponding each file operation record of the data file.
Optionally, the server 1002 is specifically used for:For a data file, if the data file is common number According to file, and deleted in the corresponding file operation record of the data file comprising operational order and delete operation instruction is created The data file and the corresponding each file operation record of the data file.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (20)

1. a kind of data back up method, which is characterized in that the method includes:
User terminal generates the file operation record corresponding to each data file according to the operation to each data file respectively;Its In, include the operational order that corresponding operating is executed to corresponding data file in the file operation record;
The file operation record of the same data file of correspondence is carried out merging by the user terminal;
The file operation record of each data file is uploaded to server by the user terminal;
Wherein, the file operation record of the same data file of correspondence is carried out merging by the user terminal, is specifically included:
For a data file, if the data file is application program installation kit, and the corresponding file of the data file Comprising installation operation instruction and unloading operation instruction in operation note, it is corresponding each that the user terminal deletes the data file File operation records;Or
For a data file, if the data file is general data file, and the corresponding file behaviour of the data file Comprising operational order and delete operation instruction is created in noting down, the user terminal deletes the corresponding each text of the data file Part operation note.
2. the method as described in claim 1, which is characterized in that the method further includes:
For a file operation note, if it is the user terminal from network that the file operation, which records corresponding data file, The data file that side is downloaded, the user terminal generate the file download record of the data file;Wherein, the file download Include the download address of the data file in record;
File download record is uploaded to the server by the user terminal, so that the server is according to the file Download address in Download History downloads corresponding data file from network side.
3. method as claimed in claim 2, which is characterized in that the method further includes:
The user terminal is when receiving the failed list that the server is sent, by the data of the server failed download File is uploaded to the server.
4. a kind of data back up method, which is characterized in that the method includes:
Server receives the file operation record of each data file of user terminal uploads;Wherein, in the file operation record Including executing the operational order of corresponding operating to corresponding data file;
The file operation is recorded storage corresponding with corresponding data file by the server;
Wherein, described that corresponding operation is executed to corresponding data file, it specifically includes:The user terminal will corresponding same number Merging is carried out according to the file operation record of file, wherein a data file is directed to, if the data file is using journey Sequence installation kit, and include installation operation instruction and unloading operation instruction, institute in the corresponding file operation record of the data file It states user terminal and deletes the corresponding each file operation record of the data file;Or it is directed to a data file, if the number It is general data file according to file, and includes establishment operational order and deletion in the corresponding file operation record of the data file Operational order, the user terminal delete the corresponding each file operation record of the data file.
5. method as claimed in claim 4, which is characterized in that the method further includes:
Server receives the file download record of the user terminal uploads;Wherein, include correspondence in the file download record Data file download address;
Download address during the server is recorded according to the file download downloads corresponding data file from network side.
6. method as claimed in claim 5, which is characterized in that also include corresponding data file in the file download record Data volume and check value, before the server downloads corresponding data file according to the download address from network side, also Including:
The server, which determines, is not present the data file consistent with the data volume and check value in database.
7. method as claimed in claim 5, which is characterized in that the method further includes:
The server sends failed list when failing from network side downloading data file, to the user terminal, so that institute It states user terminal and the data file of the server failed download is uploaded to the server.
8. a kind of data reconstruction method, which is characterized in that the method includes:
User terminal is when needing to carry out data recovery, to server transmission data recovery request;
The user terminal receives each data file that the server is sent and corresponding file operation record;Wherein, institute It states in file operation record comprising the operational order for executing corresponding operating to corresponding data file;
Operational order during the user terminal is recorded according to the file operation executes corresponding behaviour to corresponding data file Make;
Wherein, described that corresponding operation is executed to corresponding data file, it specifically includes:The user terminal will corresponding same number Merging is carried out according to the file operation record of file, wherein a data file is directed to, if the data file is using journey Sequence installation kit, and include installation operation instruction and unloading operation instruction, institute in the corresponding file operation record of the data file It states user terminal and deletes the corresponding each file operation record of the data file;Or it is directed to a data file, if the number It is general data file according to file, and includes establishment operational order and deletion in the corresponding file operation record of the data file Operational order, the user terminal delete the corresponding each file operation record of the data file.
9. a kind of data reconstruction method, which is characterized in that the method includes:
Server receives the data recovery request that user terminal is sent;
The file operation for the same data file of correspondence that the server uploads the user terminal history is recorded and is corresponded to Data file carry out merging;Wherein, comprising to the corresponding behaviour of corresponding data file execution in the file operation record The operational order of work;
The server sends each data file and corresponding file operation note of the user terminal to the user terminal Record, so that the user terminal is recorded according to the file operation executes corresponding operation to corresponding data file;
Wherein, the file operation of the same data file of correspondence that the server uploads the user terminal history record and Corresponding data file carries out merging, specifically includes:
For a data file, if the data file is application program installation kit, and the corresponding file of the data file In operation note the data file and the number are deleted comprising installation operation instruction and unloading operation instruction, the server According to the corresponding each file operation record of file;Or
For a data file, if the data file is general data file, and the corresponding file behaviour of the data file Comprising operational order and delete operation instruction is created in noting down, the server deletes the data file and the data The corresponding each file operation record of file.
10. a kind of user terminal, which is characterized in that the user terminal includes:
Generation module, for generation to be remembered corresponding to the file operation of each data file respectively according to the operation to each data file Record;Wherein, include the operational order that corresponding operating is executed to corresponding data file in the file operation record;
Sorting module, the file operation for that will correspond to same data file, which records, carries out merging;
Uploading module, for the file operation record of each data file to be uploaded to server;
Wherein, the sorting module is specifically used for:
For a data file, if the data file is application program installation kit, and the corresponding file of the data file Comprising installation operation instruction and unloading operation instruction in operation note, the corresponding each file operation note of the data file is deleted Record;Or
For a data file, if the data file is general data file, and the corresponding file behaviour of the data file Comprising operational order and delete operation instruction is created in noting down, the corresponding each file operation record of the data file is deleted.
11. user terminal as claimed in claim 10, which is characterized in that
The generation module is additionally operable to:
For a file operation note, if it is the user terminal from network that the file operation, which records corresponding data file, The data file that side is downloaded generates the file download record of the data file;Wherein, include institute in the file download record State the download address of data file;
The uploading module is additionally operable to:
File download record is uploaded to the server, so that during the server is recorded according to the file download Download address downloads corresponding data file from network side.
12. user terminal as claimed in claim 11, which is characterized in that the uploading module is additionally operable to:
When receiving the failed list that the server is sent, the data file of the server failed download is uploaded to institute State server.
13. a kind of server, which is characterized in that the server includes:
Receiving module, the file operation record of each data file for receiving user terminal uploads;Wherein, the file operation Include the operational order that corresponding operating is executed to corresponding data file in record;
Memory module, for the file operation to be recorded storage corresponding with corresponding data file;
Wherein, described that corresponding operation is executed to corresponding data file, it specifically includes:The user terminal will corresponding same number Merging is carried out according to the file operation record of file, wherein a data file is directed to, if the data file is using journey Sequence installation kit, and include installation operation instruction and unloading operation instruction, institute in the corresponding file operation record of the data file It states user terminal and deletes the corresponding each file operation record of the data file;Or it is directed to a data file, if the number It is general data file according to file, and includes establishment operational order and deletion in the corresponding file operation record of the data file Operational order, the user terminal delete the corresponding each file operation record of the data file.
14. server as claimed in claim 13, which is characterized in that the receiving module is additionally operable to:
Receive the file download record of the user terminal uploads;Wherein, include corresponding data in the file download record The download address of file;The server further includes:
Download module downloads corresponding data file for the download address in being recorded according to the file download from network side.
15. server as claimed in claim 14, which is characterized in that also include corresponding data in the file download record The data volume and check value of file, the download module are additionally operable to:
Before downloading corresponding data file from network side according to the download address, determines in database and be not present and the number According to the amount data file consistent with check value.
16. server as claimed in claim 14, which is characterized in that the download module is additionally operable to:
When failing from network side downloading data file, failed list is sent to the user terminal, so that the user terminal The data file of the server failed download is uploaded to the server.
17. a kind of user terminal, which is characterized in that the user terminal includes:
Sending module, for when needing to carry out data recovery to server transmission data recovery request;
Receiving module, for receiving each data file and corresponding file operation record that the server is sent;Wherein, institute It states in file operation record comprising the operational order for executing corresponding operating to corresponding data file;
Operation module executes corresponding behaviour for the operational order in being recorded according to the file operation to corresponding data file Make;
Wherein, described that corresponding operation is executed to corresponding data file, it specifically includes:The user terminal will corresponding same number Merging is carried out according to the file operation record of file, wherein a data file is directed to, if the data file is using journey Sequence installation kit, and include installation operation instruction and unloading operation instruction, institute in the corresponding file operation record of the data file It states user terminal and deletes the corresponding each file operation record of the data file;Or it is directed to a data file, if the number It is general data file according to file, and includes establishment operational order and deletion in the corresponding file operation record of the data file Operational order, the user terminal delete the corresponding each file operation record of the data file.
18. a kind of server, which is characterized in that the server includes:
Receiving module, the data recovery request for receiving user terminal transmission;
Sorting module, the file operation of the same data file of correspondence for uploading the user terminal history record and right The data file answered carries out merging;Wherein, corresponding comprising being executed to corresponding data file in the file operation record The operational order of operation;
Sending module, for sending each data file of the user terminal and corresponding file operation to the user terminal Record, so that the user terminal is recorded according to the file operation executes corresponding operation to corresponding data file;
Wherein, the sorting module is specifically used for:
For a data file, if the data file is application program installation kit, and the corresponding file of the data file Comprising installation operation instruction and unloading operation instruction in operation note, deletes the data file and the data file corresponds to Each file operation record;Or
For a data file, if the data file is general data file, and the corresponding file behaviour of the data file Comprising operational order and delete operation instruction is created in noting down, the server deletes the data file and the data The corresponding each file operation record of file.
19. a kind of data backup system, which is characterized in that the system comprises user terminals and server, wherein:
The user terminal, for generating the file operation corresponding to each data file respectively according to the operation to each data file Record;The file operation record of the same data file of correspondence is subjected to merging;The file operation of each data file is recorded It is uploaded to the server;
The server, the file operation record of each data file for receiving the user terminal uploads;By the file Operation note storage corresponding with corresponding data file;
Wherein, include the operational order that corresponding operating is executed to corresponding data file in the file operation record;
It is described that the file operation record of the same data file of correspondence is subjected to merging, it specifically includes:
For a data file, if the data file is application program installation kit, and the corresponding file of the data file Comprising installation operation instruction and unloading operation instruction in operation note, it is corresponding each that the user terminal deletes the data file File operation records;Or
For a data file, if the data file is general data file, and the corresponding file behaviour of the data file Comprising operational order and delete operation instruction is created in noting down, the user terminal deletes the corresponding each text of the data file Part operation note.
20. a kind of data recovery system, which is characterized in that the system comprises user terminals and server, wherein:
The user terminal, for when needing to carry out data recovery to the server transmission data recovery request;Receive institute State each data file and corresponding file operation record of server transmission;Operation in being recorded according to the file operation refers to It enables and corresponding operation is executed to corresponding data file;
The server, the data recovery request sent for receiving the user terminal;The user terminal history is uploaded The same data file of correspondence file operation record and corresponding data file carry out merging;To the user terminal Send each data file and corresponding file operation record of the user terminal;
Wherein, include the operational order that corresponding operating is executed to corresponding data file in the file operation record;
Wherein, it is described by the user terminal history upload the same data file of correspondence file operation record and it is corresponding Data file carries out merging, specifically includes:
For a data file, if the data file is application program installation kit, and the corresponding file of the data file In operation note the data file and the number are deleted comprising installation operation instruction and unloading operation instruction, the server According to the corresponding each file operation record of file;Or
For a data file, if the data file is general data file, and the corresponding file behaviour of the data file Comprising operational order and delete operation instruction is created in noting down, the server deletes the data file and the data The corresponding each file operation record of file.
CN201410258408.9A 2014-06-11 2014-06-11 A kind of data backup and resume method, system and device Active CN105320577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410258408.9A CN105320577B (en) 2014-06-11 2014-06-11 A kind of data backup and resume method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410258408.9A CN105320577B (en) 2014-06-11 2014-06-11 A kind of data backup and resume method, system and device

Publications (2)

Publication Number Publication Date
CN105320577A CN105320577A (en) 2016-02-10
CN105320577B true CN105320577B (en) 2018-09-04

Family

ID=55247997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410258408.9A Active CN105320577B (en) 2014-06-11 2014-06-11 A kind of data backup and resume method, system and device

Country Status (1)

Country Link
CN (1) CN105320577B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155841A (en) * 2016-06-24 2016-11-23 乐视控股(北京)有限公司 The method and system of data backup
CN106303609B (en) * 2016-09-29 2019-09-17 聚好看科技股份有限公司 Television applications management method and management server
CN107943562B (en) * 2017-11-14 2020-09-08 Oppo广东移动通信有限公司 Information storage method, information storage device, storage medium and electronic equipment
CN108259613B (en) * 2018-01-24 2019-12-24 平安科技(深圳)有限公司 Disaster recovery data online synchronization device, method and computer readable storage medium
CN110309105B (en) * 2018-03-23 2023-08-11 阿里巴巴(北京)软件服务有限公司 Data processing method, system and equipment
CN108874592B (en) * 2018-06-20 2020-04-10 焦点科技股份有限公司 Data cold standby method and system for Log-structured storage engine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098343A (en) * 2007-06-12 2008-01-02 深圳市融合视讯科技有限公司 Information interchange method for handset and network server
US7631159B1 (en) * 2007-03-30 2009-12-08 Symantec Operating Corporation Faster recovery mechanism of validated continuous data protection (CDP) time image
CN101866305A (en) * 2010-05-21 2010-10-20 武汉大学 Continuous data protection method and system supporting data inquiry and quick recovery
CN102236589A (en) * 2010-05-04 2011-11-09 南京壹进制信息技术有限公司 Data protection method for managing increment file based on digital identifiers

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013091162A1 (en) * 2011-12-19 2013-06-27 华为技术有限公司 Method, device, and system for recovering distributed storage data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7631159B1 (en) * 2007-03-30 2009-12-08 Symantec Operating Corporation Faster recovery mechanism of validated continuous data protection (CDP) time image
CN101098343A (en) * 2007-06-12 2008-01-02 深圳市融合视讯科技有限公司 Information interchange method for handset and network server
CN102236589A (en) * 2010-05-04 2011-11-09 南京壹进制信息技术有限公司 Data protection method for managing increment file based on digital identifiers
CN101866305A (en) * 2010-05-21 2010-10-20 武汉大学 Continuous data protection method and system supporting data inquiry and quick recovery

Also Published As

Publication number Publication date
CN105320577A (en) 2016-02-10

Similar Documents

Publication Publication Date Title
CN105320577B (en) A kind of data backup and resume method, system and device
CN106156359B (en) A kind of data synchronization updating method under cloud computing platform
CN104220987B (en) Using the method and system installed
CN102790760B (en) Data synchronization method based on directory tree in safe network disc system
CN105515872B (en) The update method of configuration information, apparatus and system
CN109144785B (en) Method and apparatus for backing up data
US20100100587A1 (en) Systems and methods for a data management recovery in a peer-to-peer network
CN108322496A (en) Image file distribution method and system, computer readable storage medium, electronic equipment
CN104899049B (en) File deletion method and device
CN102902762B (en) A kind of methods, devices and systems of deleting duplicated data
CN103248711A (en) File uploading method and server
CN104866389A (en) Data recovery method as well as data backup method, device and system based on mobile operating system
CN103002048B (en) Realize the system and method for file synchronization storage
CN103841180B (en) A kind of network data synchronizing method, apparatus, terminal device and server based on operational order
JP2008305404A (en) System, method and program product for backing up data
CN105205154A (en) Data migration method and device
TW201440475A (en) Streaming ZIP
CN108563440A (en) The automatic adding method of List Controller code, device and readable storage medium storing program for executing
CN103220308A (en) Method, device and system for downloading files
CN107391303B (en) Data processing method, device, system, server and computer storage medium
CN106341485A (en) Cloud storage method and device
CN111400105A (en) Database backup method and device
CN105335186A (en) Data downloading management method and system
CN106033335A (en) An installation package generating method and device
CN112131177A (en) Data migration method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant