CN104281504B - A kind of method and system of the application data backup of storage reduction based on MD5 codes - Google Patents

A kind of method and system of the application data backup of storage reduction based on MD5 codes Download PDF

Info

Publication number
CN104281504B
CN104281504B CN201410607049.3A CN201410607049A CN104281504B CN 104281504 B CN104281504 B CN 104281504B CN 201410607049 A CN201410607049 A CN 201410607049A CN 104281504 B CN104281504 B CN 104281504B
Authority
CN
China
Prior art keywords
data
application
file
application program
values
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
CN201410607049.3A
Other languages
Chinese (zh)
Other versions
CN104281504A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410607049.3A priority Critical patent/CN104281504B/en
Publication of CN104281504A publication Critical patent/CN104281504A/en
Application granted granted Critical
Publication of CN104281504B publication Critical patent/CN104281504B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of method of the application data backup of storage reduction based on MD5 codes, comprise the following steps:S1, application data backup storage, the step calculates the associated documents of application program by MD5 message digest algorithms the MD5 values of each file, then the version number together with application program, related All Files title and it is corresponding existing for directory path backup be stored on cloud server;S2, application data download recover, and for the step when user is when another intelligent mobile terminal is opened and the information registration that accesses to your account enters this application program, recovery is downloaded in the renewal and application data for carrying out application program.This method can accurately calculate difference between data file, when carrying out backup and reduction, can save the flow uploaded with downloading data file, service speed when lifting is backed up and recovered;When the version number of application program is inconsistent, a kind of reduction approach of application program to previous version can be provided.

Description

A kind of method and system of the application data backup of storage reduction based on MD5 codes
Technical field
The present invention relates to the technical field of intelligent mobile terminal program application, more particularly to a kind of application based on MD5 codes The method and system of routine data backup and reduction.
Background technology
With the increasingly innovation of 21st century electronics technology product, intelligent mobile terminal is intelligent all the more, now such as Modern intelligent mobile terminal may be employed the backup, renewal and recovery of program, but the backup of application data, Renewal and recovery are not also much to see, when user uses some application time mistake in some intelligent mobile terminal equipment When long, the setting of some of which data and some hobbies has often formd a kind of custom, when replacing has used one newly Intelligent mobile terminal after, if carry out the setting and data more newly downloaded or other operations of terminal again, Yong Huhui Feel very uncomfortable, there is also some loss of data important informations etc. the such situation that can not find, experience effect sometimes Fruit is very bad.The method of the backup-and-restore of user is provided for herein, and employs a kind of application journey based on MD5 codes The method of sequence backup and reduction, data file difference can be calculated exactly, save the flow uploaded with downloading data file, And the confidence level of verification can be improved using MD5 code checks, improves the security of data backup and resume.
The content of the invention
The shortcomings that first of the present invention aims to overcome that prior art and deficiency, there is provided a kind of answering based on MD5 codes With the method for routine data backup and reduction.Using this invention, user application data can be uploaded onto the server carry out it is standby Part, and what is uploaded is variance data file, saves the data traffic for uploading and downloading, while this backup and recovery are bases MD5 codes improve the validity of application data recovery, facilitate the application data of user as distinguishing rule Synchronized in another intelligent mobile terminal equipment.
It is another object of the present invention to the shortcomings that overcoming prior art and insufficient, there is provided a kind of answering based on MD5 codes With the system of routine data backup and reduction.
First purpose of the present invention is achieved through the following technical solutions:
A kind of method of the application data backup of storage reduction based on MD5 codes, applied to intelligent mobile terminal, including it is following Step:
S1, application data backup storage, the backup of the application data are stored the correlation of application program File calculates the MD5 values of each file by MD5 message digest algorithms, then the version number together with application program, related institute Directory path backup is stored on cloud server existing for documentary title and correspondence;
S2, application data download recover, and the download of the application data recovers when user is at another When intelligent mobile terminal is opened and the information registration that accesses to your account enters this application program, the renewal of application program is carried out and using journey Ordinal number recovers according to download.
Further, also comprise the following steps:
S3, application data backup updating, the backup updating of the application data should using this for user With in program process, situation that the file of application program can change, user's selection carries out application data backup of storage at any time Renewal, the associated documents of application program are calculated to the MD5 values of each file by MD5 message digest algorithms, by backup updating The MD5 values of each file and the MD5 values of each file of last backup storage are contrasted afterwards, and it is different to find out MD5 values File, by catalogue existing for MD5 values corresponding to the title of the set of the different file of all of above MD5 values, file and correspondence Path is recorded, and the version number of all these data and application program constitutes a mapping relations, and data are preserved Beyond the clouds on server.
Further, the step S1 is specially:
S101, the installation directory for obtaining application program and data directory All Files information, by the application program All Files in installation directory and data directory calculates the MD5 values of each file by MD5 message digest algorithms respectively;
S102, by the title of the set of the installation directory of the application program and the All Files of data directory, Ge Gewen Directory path existing for MD5 values corresponding to part and correspondence is preserved as the first data storage bag, and first is deposited The version number of storage packet and application program constitutes a mapping relations;
S103, the first data storage bag is saved on cloud server.
Further, the step S2 is specially:
S201, when user select carry out application program renewal and application data download recover when, contrast apply journey Whether sequence version number is identical, if version number is different, first by application program update to the application version number backed up, if version This number identical, then not more new application;
The installation directory for the application program that S202, acquisition will be updated and the All Files information of data directory, by institute The All Files in the installation directory and data directory for the application program that will be updated is stated respectively by MD5 message digest algorithms Calculate the MD5 values of each file;
S203, each file of application program for storing the MD5 values of each file in the step S202 with backup MD5 Value is contrasted, and finds out the different differential file of MD5 values;
S204, from cloud server download discrepancy data, differential file is decompressed according to the directory path of differential file To corresponding path, the renewal of application data is completed.
Further, the first time backup storage carried out in the step S1 to application data is that application program has just been pacified After complete either application program is installed using operation a period of time.
Further, described intelligent mobile terminal is set including mobile phone, notebook computer, tablet personal computer and palm online It is standby.
Another object of the present invention is achieved through the following technical solutions:
A kind of system of the application data backup of storage reduction based on MD5 codes, applied to intelligent mobile terminal, including it is following Device:
The backup storage device of application data, the backup storage device of the application data is by application program Associated documents calculate the MD5 values of each file by MD5 message digest algorithms, then the version number together with application program, phase Directory path backup existing for the title and correspondence of All Files is closed to be stored on cloud server;
The download recovery device of application data, the download recovery device of the application data is when user is in addition When one intelligent mobile terminal is opened and the information registration that accesses to your account enters this application program, carry out the renewal of application program and answer Downloaded and recovered with routine data.
Further, in addition to following devices:
The backup updating device of application data, the backup updating device of the application data use for user During this application program, situation that the file of application program can change, user is standby using the application data Part updating device selection carries out application data backup of storage renewal at any time, and the associated documents of application program are plucked by MD5 information Want algorithm to calculate the MD5 values of each file, the MD5 values of each file after backup updating and last backup are stored each The MD5 values of file are contrasted, and find out the different file of MD5 values, by the name of the set of the different file of all of above MD5 values Claim, directory path existing for MD5 values corresponding to file and correspondence is recorded, the version of all these data and application program This number constitutes a mapping relations, and saves the data on cloud server.
Further, the backup storage device of the application data includes:
First fileinfo MD5 value computing modules, the first fileinfo MD5 values computing module, which is used to obtain, applies journey The installation directory of sequence and the All Files information of data directory, by the institute in the installation directory and data directory of the application program There are the MD5 values that file calculates each file by MD5 message digest algorithms respectively;
First data acquisition and version mapping block, first data acquisition and version mapping block are used to described to answer The MD5 values and correspondingly corresponding to the title of the set of the installation directory of program and the All Files of data directory, each file Existing directory path preserves as the first data storage bag, and by the first data storage bag and the version of application program This number constitutes a mapping relations;
First data upload preserving module, and first data upload preserving module and are used for the first data acquisition and version The first data storage in mapping block, which is wrapped, to be passed on cloud server.
Further, the download recovery device of the application data includes:
Application version update module, the application version update module select to carry out application program as user It is whether identical for contrasting application version number when renewal and application data download recovery, if version number is different, first Application version number by application program update to backup, if version number is identical, not more new application;
Second fileinfo MD5 value computing modules, the second fileinfo MD5 values computing module is used for acquisition will be by The installation directory of the application program of renewal and the All Files information of data directory, and by the application program that will be updated Installation directory and data directory in All Files the MD5 values of each file are calculated by MD5 message digest algorithms respectively;
Differential file searches comparing module, and the differential file is searched comparing module and is used for second fileinfo The MD5 values of each file and the MD5 values of each file of application program of backup storage are contrasted in MD5 value computing modules, are looked into Find out the different differential file of MD5 values;
Application data download module, the application data download module are used to download difference from cloud server Packet, differential file is unziped to by corresponding path according to the directory path of differential file, completes application data more Newly.
Further, the first time carried out in the backup storage device of the application data to application data is standby Part storage be application program just installed either application program using operation a period of time after.
The present invention is had the following advantages relative to prior art and effect:
1), can be exactly using the method for the application data backup of storage reduction disclosed in this invention based on MD5 codes Difference between data file is calculated, when carrying out the backup and reduction of data, can save and upload and downloading data file Flow, service speed when improving backup and recovering.
2) when the version number of intelligent mobile terminal is inconsistent, the application program number disclosed in this invention based on MD5 codes A kind of reduction approach of application program to previous version can be provided according to the method for backup and reduction.
Brief description of the drawings
Fig. 1 is a kind of method flow diagram of the application data backup of storage reduction based on MD5 codes in the present embodiment one;
Fig. 2 is a kind of block diagram of system of the application data backup of storage reduction based on MD5 codes in the present embodiment two.
Embodiment
To make the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and do not have to It is of the invention in limiting.
Embodiment one
Message Digest Algorithm MD5 (the entitled Message Digest Algorithm 5 of Chinese) are computer security The widely used a kind of hash function in field, to provide the integrity protection of message.The document number of the algorithm is RFC 1321 (R.Rivest,MIT Laboratory for Computer Science and RSA Data Security Inc.April 1992)
MD5 is Message-Digest Algorithm 5 (Message-Digest Algorithm 5), for ensuring that information transfer is complete Unanimously.It is one of widely used hash algorithm of computer (translating digest algorithm, hash algorithm again), main flow programming language is universal There are MD5 realizations.
It is another fixed-length value by data (such as Chinese character) computing, is the basic principle of hash algorithm, MD5 predecessor has MD2, MD3 and MD4.
MD5 effect is to allow Large Copacity information to be protected before private key is signed with digital signature software by " compression " into one kind Close form (being exactly the hexadecimal number word string for the byte serial of a random length being transformed into a fixed length).
Typical case is to produce informative abstract (Message-Digest) to a segment information (Message), to prevent from being usurped Change.For example there are many softwares to have that a filename is identical when downloading under Unix, the entitled .md5 of file extent text Part, generally there was only a line text in this document, general configuration is such as:
MD5 (tanajiya.tar.gz)=0ca175b9c0f726a831d895e269332461
Here it is the digital signature of tanajiya.tar.gz files.MD5 by whole file as a big text message, Scaling method is become by its irreversible character string, generates this unique MD5 informative abstract.In order to which the application to MD5 has more Intuitively recognize, its course of work once is briefly described with an example with an analogy below:
It is known that anyone has oneself unique fingerprint on the earth, this usually turns into judicial authority and differentiated The most trustworthy method of criminal's identity;Similar therewith, MD5 can think any file (no matter its size, form, quantity) production Raw one same unique " digital finger-print ", if anyone has done any change to file, its MD5 value is namely corresponding " digital finger-print " can all change.
Its MD5 value is usually seen in certain software information of some software download sites, its effect is that we can So that after the software is downloaded, a MD5 is with special software (such as Windows MD5 Check) to downloading the file returned Verification, the file provided using the file for ensuring to obtain with the website is identical file.File verification is carried out using MD5 algorithms Scheme is widely applied software download website, forum data storehouse, system file security etc..
MD5 message digest algorithms:MD5 message digest algorithms are converted using the information of random length as input value " finger print information " or " message digest " value into 128 bit length represent this input value, and using the value after conversion as As a result.MD5 algorithms mainly design for digital signature applications program;It is larger in this digital signature applications program File will encryption (ciphering process here be by under a cryptographic system [such as:RSA] public-key cryptography under set it is privately owned Key and complete) before be compressed in a secure manner.
Fig. 1 is referred to, Fig. 1 is the method flow of the application data backup of storage reduction based on MD5 codes in the present embodiment one Figure.The method of the reduction of the application data backup of storage based on MD5 codes shown in Fig. 1 so that user can be by application data Upload onto the server and backed up, and what is uploaded is variance data file, saves the data traffic for uploading and downloading, simultaneously This backup and recovery are to improve the validity of application data recovery as distinguishing rule according to MD5 codes, make answering for user Easily it can be synchronized with routine data in another intelligent mobile terminal equipment.This method be applied to include mobile phone, Intelligent mobile terminal including tablet personal computer, notebook and palm equipment for surfing the net etc., this method specifically include following steps:
The associated documents of application program are passed through MD5 information by ■ steps S1, application data backup storage, the step Digest algorithm calculates the MD5 values of each file, then the version number together with application program, related All Files title and Directory path backup is stored on cloud server existing for corresponding.
After the first installation of application program, some data letter can be produced in the associative directory of/data catalogues and SD card Breath, application developer provides all these data, the corresponding version number of each version and each data directory, by number MD5 values are calculated according to the All Files under catalogue, directory path existing for the title of All Files, MD5 values and correspondence is remembered Record is got off, and all these data and version number constitute a mapping, and data preserve on the server.It should be noted that The first time backup storage carried out to application data can be that application program has just installed either application program use After operation a period of time.
The step is specifically subdivided into following sub-step again:
Step S101, the installation directory of application program and the All Files information of data directory are obtained, by above catalogue All Files the MD5 values of each file are calculated by MD5 message digest algorithms respectively;
Step S102, by the title of the set of the installation directory of the application program and the All Files of data directory, respectively MD5 values corresponding to individual file and it is corresponding existing for directory path preserved as the first data storage bag, and by the The version number of one data storage bag and application program constitutes a mapping relations;
Wherein described mapping relations are a kind of corresponding relations, the structure that can enter these relation records in program In.Such as:Version A is corresponding:Each text in md5 corresponding to each file in filename set aa (many filenames), aa, aa Storage catalogue corresponding to part.
Step S103, the first data storage bag is saved on cloud server.
■ steps S2, application data download recover, and the step is beaten as user in another intelligent mobile terminal Open and when the information registration that accesses to your account enters this application program, carry out the renewal of application program and application data download it is extensive It is multiple.
It is different herein according to version number, to re-download application version, be for some application versions forward Compatibility do bad, prevent incompatible using the application data on cloud server and the application program that is locally-downloaded And cause to use abnormal problem.Once edition upgrading is to the version uploaded on cloud server, and data are also updated to service Version on device, then the version of the version of subsequent upgrade renewal typically will not be problematic, because most application programs are all It is back compatible.
The step is specifically subdivided into following sub-step again:
S201, when user select carry out application program renewal and application data download recover when, contrast apply journey Whether sequence version number is identical, if version number is different, first by application program update to the application version number backed up, if version This number identical, then not more new application;
The installation directory for the application program that S202, acquisition will be updated and the All Files information of data directory, will be with All Files in upper catalogue calculates the MD5 values of each file by MD5 message digest algorithms respectively;
S203, each file of application program for storing the MD5 values of each file in the step S202 with backup MD5 Value is contrasted, and finds out the different differential file of MD5 values;
S204, from cloud server download discrepancy data, differential file is decompressed according to the directory path of differential file To corresponding path, the renewal of application data is completed.
■ steps S3, the backup updating of application data, should during the step uses this application program for user Situation about can be changed with the file of program, user can select to carry out application data backup of storage renewal at any time, will apply The associated documents of program calculate the MD5 values of each file by MD5 message digest algorithms, by each file after backup updating MD5 values and the MD5 values of each file of last backup storage are contrasted, and the different file of MD5 values are found out, by above institute Have the title of the set of the different file of MD5 values, MD5 values corresponding to file and it is corresponding existing for directory path record, The version number of all these data and application program constitutes a mapping relations, and saves the data in cloud server On.
During user uses this application program, many data directory files of application program can change, and work as user When needing backup, the step of according to MD5 values are recorded in step 1, the MD5 values of new All Files are recorded.By this MD5 values Contrasted with the data in step 1, data difference is recorded out according to file name, MD5 values and directory name, journey will be applied Sequence version number, variance data packing upload onto the server.And by discrepancy data, application version number and the account of user Family information is bound.
Embodiment two
Fig. 2 is referred to, Fig. 2 is the system composition of the application data backup of storage reduction based on MD5 codes in the present embodiment two Block diagram.The present embodiment two discloses a kind of system of the application data backup of storage reduction based on MD5 codes, applied to intelligent mobile In terminal, wherein the intelligent mobile terminal includes mobile phone, tablet personal computer and palm equipment for surfing the net.Understand as shown in Figure 2, this is System includes following devices:
1st, the backup storage device of application data,
The device calculates the associated documents of application program by MD5 message digest algorithms the MD5 values of each file, so Afterwards the version number together with application program, related All Files title and it is corresponding existing for directory path backup storage beyond the clouds On server.
This device can specifically be subdivided into following modules again:
First fileinfo MD5 value computing modules, the module are used for the installation directory and data directory for obtaining application program All Files information, the All Files in above catalogue is calculated into each file by MD5 message digest algorithms respectively MD5 values.
In the device to application data carry out first time backup storage can be application program just installed or Person is after application program uses operation a period of time, can be selected be backed up at any time according to user.
First data acquisition and version mapping block, the module are used for the installation directory of the application program and data mesh Directory path existing for MD5 values corresponding to the title of the set of the All Files of record, each file and correspondence is deposited as first Storage packet data recording is preserved, and the version number of the first data storage bag and application program is constituted into a mapping relations.
First data upload preserving module, and the module is used to deposit first in the first data acquisition and version mapping block Storage packet is uploaded on cloud server.
2nd, the download recovery device of application data,
The device is opened and the information registration that accesses to your account applies journey into this as user in another intelligent mobile terminal During sequence, carry out the renewal of application program and application data is downloaded and recovered.
This device includes following modules again:
Application version update module, the module select to carry out renewal and the application data of application program as user Download when recovering, it is whether identical for contrasting application version number, if version number is different, first by application program update to standby Part application version number, if version number is identical, not more new application.
Second fileinfo MD5 value computing modules, the module are used for the installation mesh for obtaining the application program that will be updated Record and the All Files information of data directory, and the All Files in above catalogue is passed through into MD5 message digest algorithm meters respectively Calculate the MD5 values of each file.
Differential file searches comparing module, and the module is used for will be each in the second fileinfo MD5 value computing modules The MD5 values of file and the MD5 values of each file of application program of backup storage are contrasted, and find out the different difference of MD5 values File.
Application data download module, the module are used to download discrepancy data from cloud server, according to difference text Differential file is unziped to corresponding path by the directory path of part, completes the renewal of application data.
3rd, the backup updating device of application data,
During the device uses this application program for user, situation that the file of application program can change is used Family can use present apparatus selection to carry out application data backup of storage renewal at any time, and the associated documents of application program are passed through into MD5 Message digest algorithm calculates the MD5 values of each file, and the MD5 values of each file after backup updating and last backup are stored The MD5 values of each file contrasted, the different file of MD5 values is found out, by the collection of the different file of all of above MD5 values MD5 values corresponding to the title of conjunction, file and it is corresponding existing for directory path record, all these data and using journey The version number of sequence constitutes a mapping relations, and saves the data on cloud server.
It is worth noting that, in said system embodiment, included each device and module are simply according to function logic Divided, but be not limited to above-mentioned division, as long as corresponding function can be realized;In addition, each device and mould The specific name of block is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
Above-described embodiment is the preferable embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment Limitation, other any Spirit Essences without departing from the present invention with made under principle change, modification, replacement, combine, simplification, Equivalent substitute mode is should be, is included within protection scope of the present invention.

Claims (5)

1. a kind of method of the application data backup of storage reduction based on MD5 codes, applied to intelligent mobile terminal, its feature exists In comprising the following steps:
S1, application data backup storage, the backup storage intelligent mobile terminal of the application data will apply journey The associated documents of sequence calculate the MD5 values of each file by MD5 message digest algorithms, then together with the version of application program Number, the title of related All Files and it is corresponding existing for directory path backup be stored on cloud server;
The step S1 is specially:
S101, the installation directory for obtaining application program and data directory All Files information, by the installation of the application program All Files in catalogue and data directory calculates the MD5 values of each file by MD5 message digest algorithms respectively;
S102, by the title of the set of the installation directory of the application program and the All Files of data directory, each file pair Directory path existing for the MD5 values and correspondence answered preserves as the first data storage bag, and stores number by first A mapping relations are constituted according to the version number of bag and application program;
S103, the first data storage bag is saved on cloud server;
S2, application data download recover, and the download of the application data recovers when user is in another intelligence When mobile terminal is opened and the information registration that accesses to your account enters this application program, renewal and the application program number of application program are carried out Recover according to downloading;
The step S2 is specially:
S201, when user select carry out application program renewal and application data download recover when, contrast application program version Whether this number identical, if version number is different, first by application program update to the application version number backed up, if version number It is identical, then not more new application;
The installation directory for the application program that S202, acquisition will be resumed and the All Files information of data directory, will described be All Files in the installation directory and data directory of the application program being resumed is calculated by MD5 message digest algorithms respectively Go out the MD5 values of each file;
S203, the MD5 values for each file of application program for storing the MD5 values of each file in the step S202 and backup are entered Row contrast, finds out the different differential file of MD5 values;
S204, from cloud server download discrepancy data, differential file is unziped to by phase according to the directory path of differential file The path answered, complete the recovery of application data;
S3, application data backup updating, the backup updating of the application data apply journey for user using this In program process, situation that the file of application program can change, user's selection carries out application data backup of storage renewal at any time, The associated documents of application program are calculated to the MD5 values of each file by MD5 message digest algorithms, will be each after backup updating The MD5 values of file and the MD5 values of each file of last backup storage are contrasted, and find out the different file of MD5 values, will MD5 values corresponding to the title of the set of the different file of all of above MD5 values, file and it is corresponding existing for directory path record Get off, the version number of all these data and application program constitutes a mapping relations, according to file name, MD5 values with And directory name records out data difference, application version number, variance data packing are uploaded to cloud server, and will Discrepancy data, application version number and the accounts information of user are bound.
2. a kind of method of application data backup of storage reduction based on MD5 codes according to claim 1, its feature exist In:
The first time backup storage carried out in the step S1 to application data is that application program has just installed either After application program is using operation a period of time.
3. a kind of method of application data backup of storage reduction based on MD5 codes according to claim 1 or 2, its feature It is:
Described intelligent mobile terminal includes mobile phone, notebook computer, tablet personal computer and palm equipment for surfing the net.
4. a kind of system of the application data backup of storage reduction based on MD5 codes, applied to intelligent mobile terminal, its feature exists In, including following devices:
The backup storage device of application data, the backup storage device of the application data is by the correlation of application program File calculates the MD5 values of each file by MD5 message digest algorithms, then the version number together with application program, related institute Directory path backup is stored on cloud server existing for documentary title and correspondence;
The backup storage device of the application data includes:
First fileinfo MD5 value computing modules, the first fileinfo MD5 values computing module are used to obtain application program The All Files information of installation directory and data directory, by all texts in the installation directory and data directory of the application program Part calculates the MD5 values of each file by MD5 message digest algorithms respectively;
First data acquisition and version mapping block, first data acquisition and version mapping block are used to apply journey by described MD5 values corresponding to the title of the set of the installation directory of sequence and the All Files of data directory, each file and correspondingly exist Directory path preserved as the first data storage bag, and by the first data storage bag and the version number of application program Constitute a mapping relations;
First data upload preserving module, and first data upload preserving module and are used to map the first data acquisition and version The first data storage in module, which is wrapped, to be passed on cloud server;
The download recovery device of application data, the download recovery device of the application data is when user is at another When intelligent mobile terminal is opened and the information registration that accesses to your account enters this application program, the renewal of application program is carried out and using journey Ordinal number recovers according to download;
The download recovery device of the application data includes:
Application version update module, the application version update module select to carry out the renewal of application program as user It is whether identical for contrasting application version number when downloading recovery with application data, if version number is different, first should With the application version number of program renewal to backup, if version number is identical, not more new application;
Second fileinfo MD5 value computing modules, the second fileinfo MD5 values computing module, which is used for acquisition, to be resumed The installation directory of application program and the All Files information of data directory, and by the peace of the application program that will be resumed All Files in dress catalogue and data directory calculates the MD5 values of each file by MD5 message digest algorithms respectively;
Differential file searches comparing module, and the differential file is searched comparing module and is used for the second fileinfo MD5 values The MD5 values of each file and the MD5 values of each file of application program of backup storage are contrasted in computing module, are found out The different differential file of MD5 values;
Application data download module, the application data download module are used to download variance data from cloud server Bag, unzips to corresponding path by differential file according to the directory path of differential file, completes the recovery of application data;
The backup updating device of application data, the backup updating device of the application data should using this for user With in program process, situation that the file of application program can change, user using the application data backup more New equipment selection carries out application data backup of storage renewal at any time, and the associated documents of application program are calculated by MD5 informative abstracts Method calculates the MD5 values of each file, by the MD5 values of each file after backup updating and the last each file for backing up storage MD5 values contrasted, find out the different file of MD5 values, by the title of the set of the different file of all of above MD5 values, Directory path existing for MD5 values corresponding to file and correspondence is recorded, the version of all these data and application program Number a mapping relations are constituted, data difference is recorded out according to file name, MD5 values and directory name, by application program Version number, variance data packing are uploaded to cloud server, and by discrepancy data, application version number and user Accounts information is bound.
5. a kind of system of application data backup of storage reduction based on MD5 codes according to claim 4, its feature exist In:
The first time backup storage carried out in the backup storage device of the application data to application data is application Program was just installed after either application program use operation a period of time.
CN201410607049.3A 2014-10-30 2014-10-30 A kind of method and system of the application data backup of storage reduction based on MD5 codes Active CN104281504B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410607049.3A CN104281504B (en) 2014-10-30 2014-10-30 A kind of method and system of the application data backup of storage reduction based on MD5 codes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410607049.3A CN104281504B (en) 2014-10-30 2014-10-30 A kind of method and system of the application data backup of storage reduction based on MD5 codes

Publications (2)

Publication Number Publication Date
CN104281504A CN104281504A (en) 2015-01-14
CN104281504B true CN104281504B (en) 2018-03-27

Family

ID=52256405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410607049.3A Active CN104281504B (en) 2014-10-30 2014-10-30 A kind of method and system of the application data backup of storage reduction based on MD5 codes

Country Status (1)

Country Link
CN (1) CN104281504B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522160A (en) * 2018-11-29 2019-03-26 上海英方软件股份有限公司 Compare backup method and system by saving the file information abstract progress file directory

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794400A (en) * 2015-01-30 2015-07-22 深圳市金立通信设备有限公司 Application program restoration method
CN104850472B (en) * 2015-05-18 2018-07-20 西安诺瓦电子科技有限公司 System software backup and reduction method and apparatus
CN104866394B (en) * 2015-06-08 2018-03-09 肖选文 A kind of distributed document backup method and system
CN105827683B (en) * 2015-09-29 2019-01-11 维沃移动通信有限公司 A kind of method, server and electronic equipment that data are synchronous
CN105512014B (en) * 2015-12-10 2018-09-25 北京金山安全管理系统技术有限公司 A kind of method and apparatus of application program service condition data acquisition
CN105653399B (en) * 2015-12-23 2019-07-23 北京奇虎科技有限公司 Using backup and reduction method, apparatus and system
CN105825066B (en) * 2016-03-25 2019-04-19 东华软件股份公司 A kind of electronic health record generation method and device
CN106095500A (en) * 2016-06-08 2016-11-09 江苏中威科技软件系统有限公司 A kind of method and system of automatic software updating
CN106502883B (en) * 2016-10-09 2019-03-15 武汉斗鱼网络科技有限公司 The database synchronization method and system of client and server-side when automatic test
CN106446715A (en) * 2016-10-11 2017-02-22 武汉斗鱼网络科技有限公司 File encryption method and device
CN106528145A (en) * 2016-10-28 2017-03-22 北京海誉动想科技股份有限公司 Instance system and version management method for agent in instance system
CN106528677A (en) * 2016-10-31 2017-03-22 努比亚技术有限公司 Data comparison method and device
CN106790581B (en) * 2016-12-28 2020-12-22 深圳天珑无线科技有限公司 Application data processing method and device and terminal
CN108667881B (en) * 2017-03-31 2020-08-18 中国科学院声学研究所 Service data synchronization method for intelligent terminal and cloud server
CN108933681B (en) * 2017-05-22 2021-12-14 贵州白山云科技股份有限公司 Configuration updating method of cloud computing system, control center and cloud computing node
CN107315658A (en) * 2017-06-26 2017-11-03 珠海市魅族科技有限公司 A kind of data back up method and device, computer installation and readable storage medium storing program for executing
CN107741889A (en) * 2017-09-01 2018-02-27 广州视源电子科技股份有限公司 Document recovery method, system, readable storage medium storing program for executing and terminal
CN107678882A (en) * 2017-09-14 2018-02-09 北京春鸿科技有限公司 A kind of method and system of data backup
CN108011882B (en) * 2017-12-05 2020-11-27 北京小米移动软件有限公司 Method, device and system for data synchronization
CN110365627B (en) * 2018-04-11 2021-10-29 腾讯科技(深圳)有限公司 Application program synchronization method and device, computing equipment and storage medium
CN111553139B (en) * 2019-01-23 2022-06-14 北大方正集团有限公司 Picture typesetting method and equipment
CN110209423A (en) * 2019-04-24 2019-09-06 深圳点猫科技有限公司 A kind of programming works synchronous method and system based on artificial intelligence
CN110417785A (en) * 2019-07-31 2019-11-05 湖南微算互联信息技术有限公司 A kind of installation method, system and the storage medium of cloud mobile phone games
CN112926063A (en) * 2020-11-25 2021-06-08 杭州视洞科技有限公司 Embedded equipment information acquisition method based on SD card authentication
CN112328295A (en) * 2020-11-25 2021-02-05 昆山丘钛光电科技有限公司 Software updating method and device
CN112558994A (en) * 2020-12-23 2021-03-26 上海眼控科技股份有限公司 Application software upgrading method, device, equipment and storage medium
CN112929423A (en) * 2021-01-25 2021-06-08 上海契云科技有限公司 Method and device for data packaging of terminal equipment
CN113672950B (en) * 2021-08-03 2024-04-05 苏州优炫智能科技有限公司 Electronic file circulation tamper-proof method and device
CN117827545A (en) * 2024-03-05 2024-04-05 成都金海境科技有限公司 Data backup method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523268A (en) * 2011-12-08 2012-06-27 北京新媒传信科技有限公司 Client side upgrading method and system
CN102857570A (en) * 2012-09-13 2013-01-02 清华大学 Cloud synchronized method of files and cloud storage server
CN103037076A (en) * 2012-11-28 2013-04-10 广东欧珀移动通信有限公司 State backup reduction method and device of mobile terminal
CN103713928A (en) * 2013-12-31 2014-04-09 优视科技有限公司 Incremental file generating method, and application program installing file updating method and device
CN103825925A (en) * 2012-11-19 2014-05-28 腾讯科技(深圳)有限公司 Application program upgrading method and system, and application program upgrading client terminal
CN103838645A (en) * 2014-01-02 2014-06-04 上海爱数软件有限公司 Remote difference synthesis backup method based on Hash

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523268A (en) * 2011-12-08 2012-06-27 北京新媒传信科技有限公司 Client side upgrading method and system
CN102857570A (en) * 2012-09-13 2013-01-02 清华大学 Cloud synchronized method of files and cloud storage server
CN103825925A (en) * 2012-11-19 2014-05-28 腾讯科技(深圳)有限公司 Application program upgrading method and system, and application program upgrading client terminal
CN103037076A (en) * 2012-11-28 2013-04-10 广东欧珀移动通信有限公司 State backup reduction method and device of mobile terminal
CN103713928A (en) * 2013-12-31 2014-04-09 优视科技有限公司 Incremental file generating method, and application program installing file updating method and device
CN103838645A (en) * 2014-01-02 2014-06-04 上海爱数软件有限公司 Remote difference synthesis backup method based on Hash

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522160A (en) * 2018-11-29 2019-03-26 上海英方软件股份有限公司 Compare backup method and system by saving the file information abstract progress file directory
CN109522160B (en) * 2018-11-29 2020-05-05 上海英方软件股份有限公司 Method and system for comparing and backing up file directory by saving file information abstract

Also Published As

Publication number Publication date
CN104281504A (en) 2015-01-14

Similar Documents

Publication Publication Date Title
CN104281504B (en) A kind of method and system of the application data backup of storage reduction based on MD5 codes
TWI763710B (en) Nuts: encrypted userdata transit and storage
CN109257340B (en) Website tamper-proof system and method based on block chain
CN109791594B (en) Method and readable medium for performing write and store operations on a relational database
US20190087432A1 (en) Secure searchable and shareable remote storage system and method
CN103023875B (en) A kind of account management system and method
US20170277773A1 (en) Systems and methods for secure storage of user information in a user profile
US20170277774A1 (en) Systems and methods for secure storage of user information in a user profile
AU2013100802A4 (en) Device authentication using inter-person message metadata
CN103442061A (en) Method and system for encrypting cloud server files and cloud server
CN111201519A (en) Immutable data storage for low latency reading and writing of large data sets
CN109639819B (en) File transmission method, client, server and system
CN101847150A (en) Browser status synchronization method and device
CA3020743A1 (en) Systems and methods for secure storage of user information in a user profile
CN105706099A (en) Software update device, and software update program
US11361110B2 (en) File verification method, file verification system and file verification server
CN109815051A (en) The data processing method and system of block chain
US11240023B1 (en) Key management for expiring ciphertexts
Tamma et al. Practical Mobile Forensics: Forensically investigate and analyze iOS, Android, and Windows 10 devices
CN102821110B (en) A kind of password method for retrieving for audio/video storage device
CN107819748A (en) A kind of anti-identifying code implementation method cracked and device
CN107612969A (en) Cloud storage data integrity auditing method based on B Tree Bloom filters
CN112307503A (en) Signature management method and device and electronic equipment
CN110046510B (en) Cross-cloud data migration method, device and system
CN115659378A (en) Case record information evidence storing method and related 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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.