CN105607971A - Data backup device and method - Google Patents

Data backup device and method Download PDF

Info

Publication number
CN105607971A
CN105607971A CN201510989643.8A CN201510989643A CN105607971A CN 105607971 A CN105607971 A CN 105607971A CN 201510989643 A CN201510989643 A CN 201510989643A CN 105607971 A CN105607971 A CN 105607971A
Authority
CN
China
Prior art keywords
data
application
file path
mapping table
application software
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510989643.8A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510989643.8A priority Critical patent/CN105607971A/en
Publication of CN105607971A publication Critical patent/CN105607971A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Abstract

The invention discloses a data backup device. The data backup device comprises an obtaining module for obtaining an input backup instruction, a path obtaining module for obtaining file paths of application data in an external storage device of a mobile terminal according to the backup instruction and a pre-configured mapping table, and a backup module for obtaining and backup of the application data in the external storage device according to the file paths. The invention further discloses a data backup method. The backup of the application data in the external storage device of the mobile terminal is achieved, and the integrity of the application data backup of the mobile terminal is improved.

Description

Data backup device and method
Technical field
The present invention relates to communication technical field, relate in particular to a kind of data backup device and method.
Background technology
Along with the development of the mobile terminal such as mobile phone, PAD, bring greatly just to daily lifeProfit. People can install types of applications software conventionally in mobile terminal, for work, social activity and amusement etc.,Such as office software, social software, Games Software etc.
In use, the application software of installing in mobile terminal can produce in storage running process peopleApplication data, for example cache file, account number cipher information, the configuration information of software and the file of downloadDeng. According to user's setting or demand, application software can be by application data store in mobile terminalIn depositing, also can be by application data store in External memory equipment. Because application data has been preserved in a large numberInformation, when user need to change mobile phone or brush when machine, whole application datas can be carried outBackup, for the recovery of data.
At present, the backup of application data is mainly for the application data in mobile terminal internal memory, if applicationSoftware application external storage device stores application data, cannot back up. Therefore, cause backing up movement eventuallyWhen end application data, the application data of storing on External memory equipment is lost, and finally obtains incomplete standbyPiece of data, is unfavorable for data recovery.
Summary of the invention
Main purpose of the present invention is to provide a kind of data backup device and method, is intended to solve eventually mobileThe technical problem that application data in end External memory equipment cannot back up.
For achieving the above object, the invention provides a kind of data backup device, described data backup device bagDraw together:
Acquisition module, for obtaining the backup instruction of input;
Path module, for according to described backup instruction and pre-configured mapping table, obtains mobile terminalThe file path of application data in External memory equipment;
Backup module, for according to described file path, obtains the application number in described External memory equipmentAccording to also backup.
In one embodiment, the application data that described application data is application software, described data backupDevice also comprises:
Mapping block, for obtaining the identifying information of described application software and described application software outside describedApplication data file path in portion's memory device, configures described mapping table.
In one embodiment, described mapping block comprises:
Set up unit, for setting up mapping table, described mapping table comprises major key and value;
Major key unit, for obtaining the identifying information of described application software, fills described mapping as major keyTable;
Value cell, for obtaining the application data file of described application software at described External memory equipmentPath, fills described mapping table as the value corresponding with described major key.
In one embodiment, described data backup device also comprises:
More new module, if upgrade application data for described application software, obtains described renewal application numberAccording to file path; Judge the file path of described renewal application data, whether exist with described application softwareApplication data file path in described External memory equipment repeats; If do not repeat, by described renewal numberAccording to file path fill described mapping table as the value corresponding with described major key, and upgrade described mapping table.
In one embodiment, described data backup device also comprises:
Memory modules, for according to described backup instruction, backs up the application number in described mobile terminal internal memoryAccording to.
In addition, for achieving the above object, the present invention also provides a kind of data back up method, and described data are standbyPart method comprises the following steps:
Obtain the backup instruction of input;
According to described backup instruction and pre-configured mapping table, obtain in mobile terminal External memory equipmentThe file path of application data;
According to described file path, obtain application data backup in described External memory equipment.
In one embodiment, the application data that described application data is application software, described in obtain inputThe step of backup instruction before, also comprise:
Obtain the identifying information of described application software and described application software in described External memory equipmentApplication data file path, configures described mapping table.
In one embodiment, identifying information and the described application software of described in, obtaining described application software existApplication data file path in described External memory equipment, the step that configures described mapping table comprises:
Set up mapping table, described mapping table comprises major key and value;
Obtain the identifying information of described application software, fill described mapping table as major key;
Obtain the application data file path of described application software in described External memory equipment, as withThe value that described major key is corresponding is filled described mapping table.
In one embodiment, described in, obtain the application of described application software in described External memory equipmentData file path, fill the step of described mapping table as the value corresponding with described major key after, also bagDraw together:
If described application software is upgraded application data, obtain the file path of described renewal application data;
Judge the file path of described renewal application data, whether deposit in described outside with described application softwareApplication data file path in storage equipment repeats;
If do not repeat, the file path of described more new data is filled as the value corresponding with described major keyDescribed mapping table, and upgrade described mapping table.
In one embodiment, described in obtain the step of backup instruction of input after, also comprise:
According to described backup instruction, back up the application data in described mobile terminal internal memory.
A kind of data backup device and method that the embodiment of the present invention proposes, obtain input by acquisition moduleBackup instruction, then, path module, according to backup instruction and pre-configured mapping table, is obtained movementThe file path of application data in exterior of terminal memory device; Thereby backup module is according to file path,Obtain application data backup in External memory equipment. The embodiment of the present invention is passed through pre-configured mapping table,The file path of application data in record move exterior of terminal memory device, thus can be according to mapping relationsObtain application data and back up, realized the backup to application data in mobile terminal External memory equipment,Improve the integrality of mobile terminal application data backup.
Brief description of the drawings
Fig. 1 is the hardware configuration schematic diagram of realizing the optional mobile terminal of each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the high-level schematic functional block diagram of data backup device the first embodiment of the present invention;
Fig. 4 is the high-level schematic functional block diagram of data backup device the second embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram of data backup device of the present invention the 3rd embodiment;
Fig. 6 is the high-level schematic functional block diagram of data backup device of the present invention the 4th embodiment;
Fig. 7 is the high-level schematic functional block diagram of data backup device of the present invention the 5th embodiment;
Fig. 8 is the schematic flow sheet of data back up method the first embodiment of the present invention;
Fig. 9 is the schematic flow sheet of data back up method the second embodiment of the present invention;
Figure 10 is the schematic flow sheet of data back up method of the present invention the 3rd embodiment;
Figure 11 is the schematic flow sheet of data back up method of the present invention the 4th embodiment;
Figure 12 is the schematic flow sheet of data back up method of the present invention the 5th embodiment.
Realization, functional characteristics and the advantage of the object of the invention, in connection with embodiment, are done further with reference to accompanying drawingExplanation.
Detailed description of the invention
Should be appreciated that specific embodiment described herein is only in order to explain the present invention, and be not used in limitDetermine the present invention.
The main solution of the embodiment of the present invention is: provide a kind of data backup device, this data backupDevice comprises: acquisition module, for obtaining the backup instruction of input; Path module, described in basisBackup instruction and pre-configured mapping table, obtain the literary composition of application data in mobile terminal External memory equipmentPart path; Backup module, for according to described file path, obtains answering in described External memory equipmentWith data backup.
While carrying out the application data backup of mobile terminal due to prior art, only can back up mobile terminal internal memoryIn application data, can not back up the application data in mobile terminal exterior storage, cause the backup obtainingData are imperfect.
The invention provides a solution, realized application data in mobile terminal External memory equipmentBackup, has ensured the integrality that application data backs up.
The mobile terminal of realizing each embodiment of the present invention is described referring now to accompanying drawing. In follow-up descriptionIn, use the suffix such as " module ", " parts " or " unit " that is used for representing element only in order to haveBe beneficial to explanation of the present invention, itself do not have specific meaning. Therefore, " module " can mix with " parts "Close and use.
Mobile terminal can be implemented with various forms. For example, the terminal of describing in the present invention can compriseSuch as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA, (individual digital helpsReason), PAD (panel computer), PMP (portable media player), guider etc. eventually mobileEnd and such as the fixed terminal of digital TV, desktop computer etc. Suppose that terminal is eventually mobile below,End. But, it will be appreciated by those skilled in the art that the element except being used in particular for mobile object,Structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is an optional mobile terminal hardware configuration signal that realizes each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input block 120,User input unit 130, sensing cell 140, output unit 150, memory 160, interface unit 170,Controller 180 and power subsystem 190 etc. Fig. 1 shows the mobile terminal with various assemblies, but shouldUnderstand, and do not require all assemblies that illustrate of enforcement. Can alternatively implement more or less groupPart. Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 100 with wirelessRadio communication between communication system or network. For example, wireless communication unit can comprise mobile communicationAt least one in module 111, wireless Internet module 112 and positional information module 113.
Mobile communication module 111 by radio signal send to base station (for example, access point, Node B etc.),At least one in exterior terminal and server and/or receive radio signals from it. Such radioSignal can comprise voice call signal, video calling signal or according to text and/or Multimedia MessageThe various types of data that send and/or receive.
Wireless Internet module 112 is supported the Wi-Fi (Wireless Internet Access) of mobile terminal. This module can be inner orExternally be couple to terminal. The related Wi-Fi (Wireless Internet Access) technology of this module can comprise WLAN (nothingLine LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (at a high speedDownlink packets access) etc.
Positional information module 113 is the modules for checking or obtain the positional information of mobile terminal. Position letterThe typical case of breath module is GPS (global positioning system). According to current technology, positional information module 113Calculate from the range information of three or more satellites and correct time information and for the information of calculatingApplication triangulation, thus according to longitude, latitude and pin-point accuracy calculate three-dimensional current location information.Current, use three satellites and by using other one for the method for calculating location and temporal informationThe error of the position that satellite correction calculation goes out and temporal information. In addition, positional information module 113 can be led toCarry out computational speed information after calculating continuously current location information in real time.
A/V input block 120 is for audio reception or vision signal. A/V input block 120 can comprise phaseMachine 121 and microphone 122, camera 121 in Video Capture pattern or image capture mode by image captureThe static images that device obtains or the view data of video are processed. Picture frame after treatment can showOn display unit 151. (or other is deposited can be stored in memory 160 through camera 121 picture frame after treatmentStorage media) in or send via wireless communication unit 110, can provide according to the structure of mobile terminalTwo or more cameras 121. Microphone 122 can be in telephone relation pattern, logging mode, speech recognitionIn pattern etc. operational mode, receive sound (voice data) via microphone, and can be by such soundBe treated to voice data. Audio frequency after treatment (voice) data can be changed the in the situation that of telephone relation patternFor sending to via mobile communication module 111 formatted output of mobile communication base station. Microphone 122 canImplement various types of noises and eliminate (or inhibition) algorithm to eliminate (or inhibition) in reception and to send audio signalProcess in the noise or the interference that produce.
User input unit 130 can generate key input data to control movement according to the order of user's inputThe various operations of terminal. User input unit 130 allows user to input various types of information, and canComprise that keyboard, the young sheet of pot, touch pad (for example, detect owing to being touched the resistance, pressure, the electricity that causeThe touch-sensitive assembly of variation holding etc.), roller, rocking bar etc. Especially, when touch pad is with the form of layerWhile being superimposed upon on display unit 151, can form touch-screen.
Sensing cell 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 open orClosed condition), the position of mobile terminal 100, user be for the contact (, touching input) of mobile terminal 100Have or not, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc.,And generate order or the signal of the operation for controlling mobile terminal 100.
Output unit 150 can comprise display unit 151 and audio frequency output module 152 etc.
Display unit 151 may be displayed on the information of processing in mobile terminal 100. For example, work as mobile terminal100 in the time of telephone relation pattern, and display unit 151 can show and call or other (for example, literary composition of communicating by letterThis information receiving and transmitting, multimedia file are downloaded etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is during in video calling pattern or image capture mode, display unit 151 can showShow the image of catching and/or reception image, UI or the GUI etc. of video or image and correlation function are shownDeng.
Meanwhile, in the time that display unit 151 and touch pad superpose to form touch-screen with the form of layer each other, aobviousShow that unit 151 can be used as input unit and output device. Display unit 151 can comprise liquid crystal display(LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible aobviousShow at least one in device, three-dimensional (3D) display etc. Some in these displays can be constructed toTransparence is to allow user to watch from outside, and this can be called transparent display, typical transparent displayIt can be for example TOLED (transparent organic light emitting diode) display etc. According to the specific enforcement of wantingMode, mobile terminal 100 can comprise two or more display units (or other display unit), for example,Mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown). Touch-screen canFor detection of touching input pressure and touch input position and touch input area.
Audio frequency output module 152 can be at mobile terminal in call signal receiving mode, call mode, noteIn the isotype such as record pattern, speech recognition mode lower time,, by that receive wireless communication unit 110 or in storageIn device 160 storage voice data convert audio signals and be output as sound. And, audio frequency output module152 can provide the specific function of carrying out to mobile terminal 100 relevant audio frequency output (for example, call signalReceive sound, message sink sound etc.). Audio frequency output module 152 can comprise loudspeaker, buzzer etc.Deng.
Memory 160 can be stored the processing carried out by controller 180 and software program of control operation etc.,Or can temporarily store data (for example, telephone directory, message, the static state that oneself maybe will export through outputImage, video etc.). And memory 160 can be stored about exporting in the time that touch is applied to touch-screenThe vibration of variety of way and the data of audio signal.
Memory 160 can comprise the storage medium of at least one type, described storage medium comprise flash memory,Hard disk, multimedia card, card type memory (for example, SD or DX memory etc.), random access storage device(RAM), static random-access memory (SRAM), read-only storage (ROM), electrically erasableRead-only storage (EEPROM), programmable read only memory (PROM), magnetic storage, disk, lightDish etc. And, mobile terminal 100 can with the memory function that is connected execute store 160 by networkNetwork storage device cooperation.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery chargingDevice) port, wired or wireless FPDP, memory card port, for connecting the device with identification modulePort, audio frequency I/O (I/O) port, video i/o port, ear port etc. Identification module canBe storage for authentication of users use mobile terminal 100 various information and can comprise that user identifiesModule (UIM), client identification module (SIM), general client identification module (USIM) etc. In addition, toolThere is the device (being called " recognition device " below) of identification module can take the form of smart card, therefore, identificationDevice can be connected with mobile terminal 100 via port or other jockey. Interface unit 170 can be usedIn receiving for example, from the input (, data message, electric power etc.) of external device (ED) and by the input receivingBe transferred to one or more elements in mobile terminal 100 or can be at mobile terminal and outside dressBetween putting, transmit data.
Controller 180 is controlled the overall operation of mobile terminal conventionally. For example, controller 180 is carried out and voiceThe control that call, data communication, video calling etc. are relevant and processing. In addition, controller 180 can wrapDraw together the multi-media module 181 for reproducing (or playback) multi-medium data, multi-media module 181 can be configured inIn controller 180, or can be configured to separate with controller 180.
Power subsystem 190 receives external power or internal power and behaviour is provided under the control of controller 180Make the required suitable electric power of each element and assembly.
Various embodiment described herein can be for example to use computer software, hardware or its any groupThe computer-readable medium closing is implemented. For hardware implementation, embodiment described herein can pass throughUse application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device(DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controlDevice, microcontroller, microprocessor, be designed to carry out in the electronic unit of function described herein extremelyFew one is implemented, and in some cases, such embodiment can be implemented in controller 180. RightIn implement software, can carry out at least one function or behaviour with permission such as the embodiment of process or functionThe independent software module of doing is implemented. Software code can be by writing with any suitable programming languageSoftware application (or program) is implemented, and software code can be stored in memory 160 and by controllingDevice 180 is carried out.
So far, oneself through according to its functional description mobile terminal. Below, for the sake of brevity, will describeSuch as various types of mobile terminals of folded form, board-type, oscillating-type, slide type mobile terminal etc.In slide type mobile terminal as example. Therefore, the present invention can be applied to the eventually mobile of any typeEnd, and be not limited to slide type mobile terminal.
Mobile terminal 100 can be constructed to utilize via frame or grouping and send data as shown in Figure 1Operate with wireless communication system and satellite-based communication system such as wired.
The communication system that wherein can operate according to mobile terminal of the present invention is described referring now to Fig. 2.
Such communication system can be used different air interfaces and/or physical layer. For example,, by communication systemThe air interface that system uses comprises for example frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA(CDMA) and UMTS (UMTS) (Long Term Evolution (LTE) especially), the whole world mobile logicalCommunication system (GSM) etc. As non-limiting example, description below relates to cdma communication system, butIt is the system that such instruction is equally applicable to other type.
With reference to figure 2, cdma wireless communication system can comprise multiple mobile terminals 100, multiple base station(BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280. MSC280 is constructed toForm interface with Public Switched Telephony Network (PSTN) 290. MSC280 be also constructed to can via returnThe BSC275 that journey circuit is couple to base station 270 forms interface. Back haul link can be according to some interfaces that oneself knowsIn any construct, described interface comprises for example E1/T1, ATM, IP, PPP, frame relay, HDSL,ADSL or xDSL. Will be appreciated that system can comprise multiple BSC275 as shown in Figure 2.
Each BS270 can serve one or more subregions (or region), by multidirectional antenna or sensing certain partyTo each subregion of antenna cover radially away from BS270. Or, each subregion can by for pointTwo or more antenna covers that collection receives. Each BS270 can be constructed to support multiple frequencies to distribute,And each frequency distribution has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of frequency distribution. BS270 also can be called as base stationTransceiver subsystem (BTS) or other equivalent terms. Under these circumstances, term " base station " can be usedIn broadly representing single BSC275 and at least one BS270. Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular stations.
In Fig. 2, show several global positioning systems (GPS) satellite 300. Satellite 300 helps location manyAt least one in individual mobile terminal 100.
In Fig. 2, describe multiple satellites 300, but it will be appreciated that, can utilize any numberSatellite obtain useful locating information. Positional information module 113 is constructed to conventionally as shown in Figure 1Coordinate to obtain with satellite 300 locating information of wanting. Substitute GPS tracking technique or follow the tracks of skill at GPSOutside art, can use other technology of position that can tracking mobile terminal. In addition, at least one GPSSatellite 300 can optionally or extraly be processed satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives from various mobile terminals 100Reverse link signal. Mobile terminal 100 participates in communicating by letter of call, information receiving and transmitting and other type conventionally. SpecialDetermine each reverse link signal that base station 270 receives is processed in particular B S270. The data that obtainBe forwarded to relevant BSC275. BSC provides call resource to distribute and comprise the soft handover between BS270The mobile management function of the coordination of process. BSC275 is also routed to MSC280 by the data that receive, itsBe provided for forming with PSTN290 the extra route service of interface. Similarly, PSTN290 withMSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270Forward link signals is sent to mobile terminal 100.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variantBe intended to contain comprising of nonexcludability, thus make to comprise a series of key elements process, method, article orPerson's device not only comprises those key elements, but also comprises other key elements of clearly not listing, or alsoBe included as the intrinsic key element of this process, method, article or device. There is no the feelings of more restrictionsUnder condition, by statement " comprising ... " limit key element, and be not precluded within comprise this key element process,In method, article or device, also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
With reference to Fig. 3, data backup device the first embodiment of the present invention provides a kind of data backup device, described inData backup device comprises:
Acquisition module 10, for obtaining the backup instruction of input.
The embodiment of the present invention is illustrated with the application data backup of application software.
Application software is installed in mobile terminal, the various data record that can storage running produce in process andThe file of downloading etc. For example, audio frequency and video software is by mobile networking or wireless internet network buffer memory or downloadAudio-video document, multimedia player download multimedia file, beautiful figure software control camera 121 is clappedThe photo of taking the photograph, the audio file of voice call software control microphone 122 typings, navigation software control bitPut positional information that information module 113 obtains etc.
Application software can be according to user's user demand or the initial setting up of self, by application data storeIn the External memory equipment of installing at mobile terminal. In the present embodiment, the External memory equipment of indication canTo be storage card, access mobile terminal by interface unit 170; Certainly, External memory equipment also canBe other can with the External memory equipment of communication of mobile terminal, can arrange flexibly according to actual needs.
In the time that user need to back up the application data of application software, input backup instruction, data are standbyPart device obtains the backup instruction of user's input.
Concrete, as a kind of embodiment, user is select target application software according to actual needs,Input backup instruction.
The backup instruction of user's input carries the identifying information of intended application software, standby for characterizing thisApplication software under the application data of part. Application software identifying information has uniqueness, different applicationSoftware identifying information does not repeat, and same application software identifying information only can be identified the application software of unique correspondence.For example, the bag name of application software (being called for short application bag name), owing to not allowing two and above different applicationThe application bag name that software application is identical, therefore can be used the identifying information of application bag name as application software.Certainly, also can use other marks with uniqueness as application software identifying information.
Acquisition module 10 detects active user's operation in real time, in the time that user inputs backup instruction, obtains useThe backup instruction of family input.
Certainly, user also can pre-configured data backup device automated back-up application data. For example, existWhen user arrives the pre-configured time, the backup instruction that acquisition module 10 active obtaining users pre-enter.
It should be noted that, the backup instruction of user input can be phonetic entry, action input or to touchingThe length of touching screen by etc., can arrange flexibly according to actual needs. User can select one or more orders simultaneouslyMark application software, carries out the backup of application data.
Path module 20, for according to described backup instruction and pre-configured mapping table, obtains eventually mobileThe file path of application data in end External memory equipment.
Obtaining after the backup instruction of user's input, path module 20 is according to backup instruction and pre-configuredMapping table, obtains the file path of application data in mobile terminal afterbody memory device.
Concrete, as a kind of embodiment, first, path module 20, according to backup instruction, is obtained standbyThe application software identifying information that part instruction is carried.
Then, path module 20, according to application software identifying information, is searched pre-configured mapping table. In advanceFirst the mapping table of configuration has recorded application software storing applied data in the mobile terminal External memory equipmentFile path. Mapping table, using application software identifying information as major key, is also Key, exists with application softwareIn mobile terminal External memory equipment, the file path of storing applied data, as value, is also Value, sets upThe corresponding relation of Key-Value, thus can obtain corresponding file path according to application software identifying information.
Thus, path module 20 is obtained corresponding file path according to application software identifying information, obtainsFile path is current goal application software storing applied data in the mobile terminal External memory equipmentFile path.
Backup module 30, for according to described file path, obtains the application in described External memory equipmentData backup.
Obtaining after file path, backup module 30 is according to the file path obtaining, in mobile terminal outsideIn memory device, search file corresponding to this path, the file obtaining is current goal application softwareThe file of storing applied data in External memory equipment.
Then, backup module 30 obtains the whole application datas under this file, applies as current goalThe application data of software, backups in default destination folder. The application number that data backup device obtainsAccording to the cache file, the temporary file that comprise intended application software, the matchmakers such as the video of download, audio frequency, booksBody file etc.
It should be noted that, default destination folder can be the file in mobile terminal internal memory, alsoCan be the file in External memory equipment, can also be the file in server, can be according to realityBorder needs to arrange flexibly.
Follow-up, in the time that user need to recover application data, can from destination folder, obtain application data,Recover for data.
In the present embodiment, acquisition module 10 obtains the backup instruction of input, then, and path module 20According to backup instruction and pre-configured mapping table, obtain application data in mobile terminal External memory equipmentFile path; Thereby backup module 30, according to file path, obtains the application in External memory equipmentData backup. The present embodiment is by pre-configured mapping table, in record move exterior of terminal memory deviceThe file path of application data, backs up thereby can obtain application data according to mapping relations, realizesBackup to application data in mobile terminal External memory equipment, improved mobile terminal application data standbyThe integrality of part.
Further, with reference to Fig. 4, data backup device the second embodiment of the present invention provides a kind of data backupDevice, based on the embodiment shown in above-mentioned Fig. 3, the application data that described application data is application software,Described data backup device also comprises:
Mapping block 40, for obtaining the identifying information of described application software and described application software describedApplication data file path in External memory equipment, configures described mapping table.
In the present embodiment, application data comprises the every data that produce in application software running. ReflectPenetrate identifying information and the application data of application software in External memory equipment that module 40 is obtained application softwareFile path, pre-configured mapping table.
Concrete, as a kind of embodiment, first, mapping block 40 obtains in current mobile terminal,All identifying informations of application software. The identifying information of application software can be application bag name, can be alsoOther have the identification information of uniqueness, can arrange flexibly according to actual needs.
Then, mapping block 40, according to the identifying information of application software, is searched this application software eventually mobileThe main folder creating in end External memory equipment, and the path that obtains main folder is as this application softwareApplication data file path in External memory equipment.
It should be noted that, application software, in the time installing or move first, initiatively creates main folder and is used forDeposit the application data producing in running. The main folder difference that different application software creates, alsoBe that different application software does not share main folder.
Thus, mapping block 40 is applied the identifying information of software and application software at External memory equipmentIn application data file path.
Then, mapping block 40 is deposited in outside according to identifying information and the application software of the application software obtainingApplication data file path in storage equipment is set up corresponding relation, and is filled in the mapping table of setting up in advance,Complete the configuration of mapping table. Follow-up, path module 20 can, according to the identifying information of application software, reflectedIn firing table, inquire corresponding file path, the file path obtaining is application software and establishes in exterior storageApplication data file path in standby.
In the present embodiment, the application data that application data is application software, mapping block 40 obtains applicationThe identifying information of software and the application software application data file path in External memory equipment, configuration is reflectedFiring table. The present embodiment is established in exterior storage by identifying information and the application software of obtaining in advance application softwareApplication data file path in standby, configuration mapping table, has realized while carrying out data backup, can be directSearch mapping table, obtain file path, promoted the efficiency of data backup.
Further, with reference to Fig. 5, data backup device of the present invention the 3rd embodiment provide a kind of data backupDevice, based on the embodiment shown in above-mentioned Fig. 4, described mapping block 40 comprises:
Set up unit 41, for setting up mapping table, described mapping table comprises major key and value.
In the present embodiment, set up unit 41 and set up in advance mapping table, mapping table comprises major key (Key)And value (Value).
Wherein, mapping table can comprise a major key, also can comprise major key, according to actual needs spiritLive and arrange. And major key has uniqueness, the major key in mapping table does not repeat. A major key can be rightShould one or more values. Thus, path module 20 can obtain major key correspondence according to major key query mappings tableValue.
Major key unit 42, for obtaining the identifying information of described application software, reflects described in filling as major keyFiring table.
Concrete, as a kind of embodiment, first, major key unit 42 obtains institute in current mobile terminalSome application software, and configure the priority of application software in current mobile terminal.
The priority of application software can arrange according to user's frequency of utilization, in Preset Time, and shouldHigher by the frequency of utilization of software, priority is higher; The priority of application software also can be soft according to applicationThe customer volume of part arranges, and in Preset Time, the customer volume of application software is larger, and priority is higher;The priority of application software also can be configured according to other preset standard, can be flexible according to actual needsArrange.
Then, one or more application software that priority is higher are chosen in major key unit 42, and obtain selectedThe identifying information of application software. The identifying information of application software can be application bag name, can be also otherThere is the identification information of uniqueness, can arrange flexibly according to actual needs.
Then, major key unit 42, using the application software identifying information obtaining as major key, is filled into mapping tableIn.
Value cell 43, for obtaining the application data literary composition of described application software at described External memory equipmentPart path, fills described mapping table as the value corresponding with described major key.
Value cell 43 obtains the application data file path of application software in External memory equipment, as masterThe value that key is corresponding is filled mapping table.
Concrete, as a kind of embodiment, first, value cell 43 obtains application software and is installing or headWhen inferior operation, the main folder creating in External memory equipment.
Then the path that, value cell 43 obtains main folder as this application software in External memory equipmentApplication data file path.
Then, value cell 43 is using the file path obtaining as the value corresponding with application software identifying information,Be filled in mapping table, obtain a pair of major key and value.
It should be noted that, major key and the value of in mapping table, filling have mapping relations, can be according to major keyInquire corresponding value.
Thus, value cell 43 completes the configuration of mapping table.
Wrap name taking the identifying information of application software as application and be illustrated, as shown in table 1 below, obtainMapping table comprise major key (Key) and value (Value).
Table 1
Wherein, major key is application bag name, and application bag is by name unique, unduplicated; Value is file path.In mapping table, can comprise multipair major key and value, for example, micro-letter and micro-letter are established in mobile terminal exterior storageApplication data file path in standby is a pair of major key and value, and QQ and QQ establish in mobile terminal exterior storageApplication data file path in standby is a pair of major key and value.
In the present embodiment, set up unit 41 and set up mapping table, mapping table comprises major key and value; Then,Major key unit 42 obtains the identifying information of application software, fills mapping table as major key; Value cell 43 obtainsGet the application data file path of application software in External memory equipment, fill as the value that major key is correspondingMapping table, realizes the configuration of mapping table. The present embodiment, by the filling of major key in mapping table and value, carries outThe configuration of mapping table, has not only realized the application data file in External memory equipment according to application softwareThe fast finding in path has improved the accuracy of file path simultaneously.
Further, with reference to Fig. 6, data backup device of the present invention the 4th embodiment provide a kind of data backupDevice, based on the embodiment shown in above-mentioned Fig. 5, described data backup device also comprises:
More new module 50, if upgrade application data for described application software, obtains described renewal applicationThe file path of data; Judge the file path of described renewal application data, whether with described application softwareApplication data file path in described External memory equipment repeats; If do not repeat, by described renewalThe file path of data is filled described mapping table as the value corresponding with described major key, and upgrades described mappingTable.
After the configuration that completes mapping table, more new module 50 is monitored application software in External memory equipmentThe renewal of application data.
Concrete, as a kind of embodiment, more new module 50 is monitored application data in External memory equipmentRenewal.
Owing to conventionally only there being the application software that creates main folder to have the application data of storing in main folderAmendment authority, therefore, in the time that application data occurs to upgrade, the application software of current stack top operation is to be worked asApplication software under front renewal application data.
Therefore, more new module 50 is monitored the renewal of application data in External memory equipment, can realize correspondenceWith the monitoring of software upgrading application data. If application data is upgraded, for example, increase, revise or deleteData, more new module 50 is obtained the application software of current stack top operation, is current renewal application dataAffiliated application software. Thereby more new module 50 has realized the monitoring to application software upgrading application data.
Then, more new module 50 is obtained the file path of current generation Data Update.
Obtaining after the file path and affiliated application software of current renewal application data more new module 50According to the identifying information of current application software and mapping table, obtain current application software at External memory equipmentIn application data file path.
Then, more new module 50 judges that whether the file path of current renewal application data is soft with current applicationThe application data file path of part in External memory equipment repeats.
If the file path of current renewal application data and current application software answering in External memory equipmentIdentical by data file path, or the file path of current renewal application data is that current application software existsThe subdirectory of the application data file path in External memory equipment, more new module 50 is judged current renewalThe file path of application data and the current application software application data file path in External memory equipmentRepeat; Otherwise more new module 50 is judged file path and the current application software of current renewal application dataApplication data file path in External memory equipment does not repeat.
Be illustrated taking current application software as myapp.
The identifying information of getting myapp is com.example.myapp.
First,, according to the identifying information of myapp and mapping table, obtain myapp and deposit in mobile terminal outsideIn storage equipment, the file path of storing applied data is storage/emulated/0/myapp.
The file path that obtains upgrading application data if monitor is /storage/emulated/0/myapp/music,For the subdirectory of storage/emulated/0/myapp, judge the file path of current renewal application dataApplication data file path with current application software in External memory equipment repeats;
The file path that obtains upgrading application data if monitor is /storage/emulated/0/myapp, withThe file path of myapp storing applied data in mobile terminal External memory equipmentStorage/emulated/0/myapp is identical, judges file path and current the answering of current renewal application dataApplication data file path with software in External memory equipment repeats;
The file path that obtains upgrading application data if monitor is /storage/emulated/0/app01, with/ storage/emulated/0/myapp is not identical, judges the file path of current renewal application data and works asThe application data file path of front application software in External memory equipment do not repeat.
Thus, more new module 50 obtains result of determination.
Obtaining after result of determination, if the file path of current renewal application data and current application software existApplication data file path in External memory equipment does not repeat, and more new module 50 is applied current renewalThe file path of data as with the value that in mapping table, current application software identifying information is corresponding, be filled into and reflectIn firing table, and upgrade mapping table.
Follow-up, when the application data to application software in mobile terminal External memory equipment backs up,According to the identifying information of application software and mapping table, obtain whole values that major key is corresponding, obtain file path,Thereby carry out the backup of application data.
It should be noted that, if the file path of current renewal application data and current application software are in outsideApplication data file path in memory device repeats, and more new module 50 is not upgraded mapping table.
In the present embodiment, if application software is upgraded application data, more new module 50 is obtained renewal applicationThe file path of data; Then, whether the file path of application data is upgraded in judgement, exist with application softwareApplication data file path in External memory equipment repeats; If do not repeat, by the file road of new data moreMapping table is filled as the value corresponding with major key in footpath, and upgrades mapping table. The present embodiment is by soft to applyingPart upgrades the monitoring of application data, has realized the upgrading in time of mapping table, thereby has carried out application dataWhen backup, can not omit application data.
Further, with reference to Fig. 7, data backup device of the present invention the 5th embodiment provide a kind of data backupDevice, the embodiment (the present embodiment is taking Fig. 3 as example) based on shown in above-mentioned Fig. 3 to Fig. 6 any one, instituteStating data backup device also comprises:
Memory modules 60, for according to described backup instruction, backs up the application in described mobile terminal internal memoryData.
Arrange according to user's needs or self, application software can be simultaneously the internal memory of mobile terminal and outsideStoring applied data in portion's storage. For example, according to user's setting, application software by cache file, faceTime the application data store such as file in the internal memory of mobile terminal, by the video of downloading, audio frequency, picture etc.File is stored in External memory equipment.
Obtaining after the backup instruction of user's input, memory modules 60 back-up application software are in mobile terminalDeposit the application data of middle storage. In the present embodiment, the mobile terminal internal memory of indication is mobile terminal insideMemory, memory 160 as shown in Figure 1 of example.
Concrete, as a kind of embodiment, that memory modules 60 obtains is that backup instruction carries, this is standbyThe intended application software identifying information of part, for example application bag name.
Then, memory modules 60 is searched intended application software according to application bag name and is created in mobile terminal internal memoryThe main folder of building, and obtain the application data of storing in file, comprise APK (AndroidPackage,Android installation kit) file, cache file, temporary file that intended application software produces in running,The file of downloading etc., thus the application data of intended application software in mobile terminal obtained.
Meanwhile, path module 20, according to application bag name, is searched mapping table, obtains corresponding file path.Then, backup module 30 obtains intended application software at mobile terminal External memory equipment according to file pathThe application data of middle storage.
Thus, backup module 30 and memory modules 60 obtain intended application software and store in mobile terminalWhole application datas.
Then, backup module 30 and memory modules 60 backup to default by the application data obtaining respectivelyIn file destination man, realize simultaneously intended application software at mobile terminal internal memory and External memory equipmentThe backup of middle application data.
In the present embodiment, memory modules 60, according to backup instruction, backs up the application in mobile terminal internal memoryData. This enforcement has realized simultaneously application software has been applied in mobile terminal internal memory and External memory equipmentThe backup of data, has ensured the integrality that application data backs up.
With reference to Fig. 8, data back up method the first embodiment of the present invention provides a kind of data back up method, described inData back up method comprises:
Step S10, obtain the backup instruction of input.
The embodiment of the present invention is illustrated with the application data backup of application software.
Application software is installed in mobile terminal, the various data record that can storage running produce in process andThe file of downloading etc. For example, the cache file of application software generation in service, user is when in useThe account number cipher information of preserving, audio frequency and video software is by mobile networking or wireless internet network buffer memory or downloadMultimedia file, multimedia player download multimedia file, beautiful figure software control camera 121 is clappedThe photo of taking the photograph, the audio file of voice call software control microphone 122 typings, navigation software control bitPut positional information that information module 113 obtains etc.
Application software can be according to user's user demand or the initial setting up of self, by application data storeIn the External memory equipment of installing at mobile terminal. In the present embodiment, the External memory equipment of indication canTo be storage card, access mobile terminal by interface unit 170; Certainly, External memory equipment also canBe other can with the External memory equipment of communication of mobile terminal, can arrange flexibly according to actual needs.
In the time that user need to back up the application data of application software, input backup instruction, data are standbyPart device obtains the backup instruction of user's input.
Concrete, as a kind of embodiment, user is select target application software according to actual needs,Input backup instruction.
The backup instruction of user's input carries the identifying information of intended application software, standby for characterizing thisApplication software under the application data of part. Application software identifying information has uniqueness, different applicationSoftware identifying information does not repeat, and same application software identifying information only can be identified the application software of unique correspondence.For example, the bag name of application software (being called for short application bag name), owing to not allowing two and above different applicationThe application bag name that software application is identical, therefore can be used the identifying information of application bag name as application software.Certainly, also can use other marks with uniqueness as application software identifying information.
Data backup device detects active user's operation in real time, in the time that user inputs backup instruction, obtainsThe backup instruction of user's input.
Certainly, user also can pre-configured data backup device automated back-up application data. For example, existWhen user arrives the pre-configured time, the backup that data backup device active obtaining user pre-enters refers toOrder.
It should be noted that, the backup instruction of user input can be phonetic entry, action input or to touchingThe length of touching screen by etc., can arrange flexibly according to actual needs. User can select one or more orders simultaneouslyMark application software, carries out the backup of application data.
Step S20, according to described backup instruction and pre-configured mapping table, obtain mobile terminal outside and depositThe file path of application data in storage equipment.
Obtaining after the backup instruction of user's input, data backup device is according to backup instruction and pre-configuredMapping table, obtain the file path of application data in mobile terminal afterbody memory device.
Concrete, as a kind of embodiment, first, data backup device, according to backup instruction, obtainsThe application software identifying information that backup instruction carries.
Then, data backup device, according to application software identifying information, is searched pre-configured mapping table.Pre-configured mapping table has recorded application software storing applied data in mobile terminal External memory equipmentFile path. Mapping table, using application software identifying information as major key, is also Key, with application softwareIn mobile terminal External memory equipment, the file path of storing applied data, as value, is also Value, buildsThe corresponding relation of vertical Key-Value, thus can obtain corresponding file road according to application software identifying informationFootpath.
Thus, data backup device obtains corresponding file path according to application software identifying information, obtainsFile path be current goal application software storing applied data in mobile terminal External memory equipmentFile path.
Step S30, according to described file path, obtain application data in described External memory equipment standbyPart.
Obtaining after file path, data backup device is according to the file path obtaining, outside mobile terminalIn portion's memory device, search file corresponding to this path, it is soft that the file obtaining is current goal applicationThe file of part storing applied data in External memory equipment.
Then, data backup device obtains the whole application datas under this file, should as current goalBy the application data of software, backup in default destination folder. The application that data backup device obtainsData comprise cache file, the temporary file of intended application software, the video of download, audio frequency, books etc.Media file etc.
It should be noted that, default destination folder can be the file in mobile terminal internal memory, alsoCan be the file in External memory equipment, can also be the file in server, can be according to realityBorder needs to arrange flexibly.
Follow-up, in the time that user need to recover application data, can from destination folder, obtain application data,Recover for data.
In the present embodiment, by obtaining the backup instruction of input, then according to backup instruction with join in advanceThe mapping table of putting, obtains the file path of application data in mobile terminal External memory equipment; Thereby according toFile path, obtains application data backup in External memory equipment. The present embodiment is by pre-configuredMapping table, the file path of application data in record move exterior of terminal memory device, thus can basisMapping relations are obtained application data and are backed up, and have realized applying number in mobile terminal External memory equipmentAccording to backup, improved the integrality of mobile terminal application data backup.
Further, with reference to Fig. 9, data back up method the second embodiment of the present invention provides a kind of data backupMethod, based on the embodiment shown in above-mentioned Fig. 8, the application data that described application data is application software,Before described step S10, also comprise:
Step S40, the identifying information that obtains described application software and described application software are in described exterior storageApplication data file path in equipment, configures described mapping table.
In the present embodiment, application data comprises the every data that produce in application software running. NumberObtain identifying information and the application number of application software in External memory equipment of application software according to back-up deviceAccording to file path, pre-configured mapping table.
Concrete, as a kind of embodiment, first, data backup device obtains in current mobile terminal,All identifying informations of application software. The identifying information of application software can be application bag name, can be alsoOther have the identification information of uniqueness, can arrange flexibly according to actual needs.
Then,, according to the identifying information of application software, search this application software in mobile terminal exterior storageThe main folder creating in equipment, and the path that obtains main folder as this application software in exterior storageApplication data file path in equipment.
It should be noted that, application software, in the time installing or move first, initiatively creates main folder and is used forDeposit the application data producing in running. The main folder difference that different application software creates, alsoBe that different application software does not share main folder.
Thus, be applied identifying information and the application software of software of data backup device established in exterior storageApplication data file path in standby.
The identifying information of the application software that then, data backup device basis obtains and application software are in outsideApplication data file path in memory device is set up corresponding relation, and is filled into the mapping table of setting up in advanceIn, complete the configuration of mapping table. Follow-up, data backup device can be according to the identifying information of application software,In mapping table, inquire corresponding file path, the file path obtaining is application software and deposits in outsideApplication data file path in storage equipment.
In the present embodiment, the application data that application data is application software, the identification of obtaining application softwareInformation and the application software application data file path in External memory equipment, configuration mapping table. This realityExecute example by obtaining in advance identifying information and the application of application software in External memory equipment of application softwareData file path, configuration mapping table, has realized while carrying out data backup, can directly search mapping table,Obtain file path, promoted the efficiency of data backup.
Further, with reference to Figure 10, data back up method of the present invention the 3rd embodiment provides a kind of data standbyPart method, based on the embodiment shown in above-mentioned Fig. 9, described step S40 comprises:
Step S41, set up mapping table, described mapping table comprises major key and value.
In the present embodiment, data backup device is set up mapping table in advance, and mapping table comprises major key (Key)And value (Value).
Wherein, mapping table can comprise a major key, also can comprise major key, according to actual needs spiritLive and arrange. And major key has uniqueness, the major key in mapping table does not repeat. A major key can be rightShould one or more values. Thus, data backup device can obtain major key pair according to major key query mappings tableThe value of answering.
Step S42, obtain the identifying information of described application software, fill described mapping table as major key.
Concrete, as a kind of embodiment, first, data backup device obtains in current mobile terminalAll application software, and configure the priority of application software in current mobile terminal.
The priority of application software can arrange according to user's frequency of utilization, in Preset Time, and shouldHigher by the frequency of utilization of software, priority is higher; The priority of application software also can be soft according to applicationThe customer volume of part arranges, and in Preset Time, the customer volume of application software is larger, and priority is higher;The priority of application software also can be configured according to other preset standard, can be flexible according to actual needsArrange.
Then, data backup device is chosen one or more application software that priority is higher, and obtain bySelect the identifying information of application software. The identifying information of application software can be application bag name, can be also itHe has the identification information of uniqueness, can arrange flexibly according to actual needs.
Then, data backup device, using the application software identifying information obtaining as major key, is filled into mappingIn table.
Step S43, obtain the application data file path of described application software in described External memory equipment,Fill described mapping table as the value corresponding with described major key.
Data backup device obtains the application data file path of application software in External memory equipment, doesFor the value that major key is corresponding is filled mapping table.
Concrete, as a kind of embodiment, first, data backup device obtains application software and is installingOr while moving first, the main folder creating in External memory equipment.
Then establish in exterior storage as this application software in the path that, data backup device obtains main folderApplication data file path in standby.
Then, data backup device is using the file path obtaining as corresponding with application software identifying informationValue, is filled in mapping table, obtains a pair of major key and value.
It should be noted that, major key and the value of in mapping table, filling have mapping relations, can be according to major keyInquire corresponding value.
Thus, complete the configuration of mapping table.
Wrap name taking the identifying information of application software as application and be illustrated, as shown in Table 1 above,To mapping table comprise major key (Key) and value (Value).
Wherein, major key is application bag name, and application bag is by name unique, unduplicated; Value is file path.In mapping table, can comprise multipair major key and value, for example, micro-letter and micro-letter are established in mobile terminal exterior storageApplication data file path in standby is a pair of major key and value, and QQ and QQ establish in mobile terminal exterior storageApplication data file path in standby is a pair of major key and value.
In the present embodiment, set up mapping table, mapping table comprises major key and value; Then, obtain application softThe identifying information of part, fills mapping table as major key; And obtain application software in the External memory equipmentApplication data file path, fills mapping table as the value that major key is corresponding, realizes the configuration of mapping table. ThisEmbodiment, by the filling of major key in mapping table and value, carries out the configuration of mapping table, has not only realized basisThe fast finding of the application data file path of application software in External memory equipment has improved literary composition simultaneouslyThe accuracy in part path.
Further, with reference to Figure 11, data back up method of the present invention the 4th embodiment provides a kind of data standbyPart method, based on the embodiment shown in above-mentioned Figure 10, after described step S43, also comprises:
If the described application software of step S50 is upgraded application data, obtain the literary composition of described renewal application dataPart path.
After the configuration that completes mapping table, data backup device is monitored application software in External memory equipmentThe renewal of application data.
Concrete, as a kind of embodiment, data backup device is monitored in External memory equipment and is applied numberAccording to renewal.
Owing to conventionally only there being the application software that creates main folder to have the application data of storing in main folderAmendment authority, therefore, in the time that application data occurs to upgrade, the application software of current stack top operation is to be worked asApplication software under front renewal application data.
Therefore, data backup device is monitored the renewal of application data in External memory equipment, and it is right to realizeApplication software is upgraded the monitoring of application data. If application data is upgraded, for example, increase, revise or deleteExcept data, data backup device obtains the application software of current stack top operation, is current renewal applicationApplication software under data. Thereby data backup device has been realized application software upgrading application dataMonitoring.
Then, data backup device obtains the file path of current generation Data Update.
Step S60, judge the file path of described renewal application data, whether with described application software in instituteThe application data file path of stating in External memory equipment repeats.
Obtaining after the file path and affiliated application software of current renewal application data, first, dataBack-up device, according to the identifying information of current application software and mapping table, obtains current application software in outsideApplication data file path in memory device.
Whether the file path that then, judges current renewal application data is deposited in outside with current application softwareApplication data file path in storage equipment repeats.
If the file path of current renewal application data and current application software answering in External memory equipmentIdentical by data file path, or the file path of current renewal application data is that current application software existsThe subdirectory of the application data file path in External memory equipment, judges current renewal application dataFile path and the current application software application data file path in External memory equipment repeats; Otherwise,Judge file path and the application of current application software in External memory equipment of current renewal application dataData file path does not repeat.
Be illustrated taking current application software as myapp.
The identifying information of getting myapp is com.example.myapp.
First,, according to the identifying information of myapp and mapping table, obtain myapp and deposit in mobile terminal outsideIn storage equipment, the file path of storing applied data is storage/emulated/0/myapp.
The file path that obtains upgrading application data if monitor is /storage/emulated/0/myapp/music,For the subdirectory of storage/emulated/0/myapp, judge the file path of current renewal application dataApplication data file path with current application software in External memory equipment repeats;
The file path that obtains upgrading application data if monitor is /storage/emulated/0/myapp, withThe file path of myapp storing applied data in mobile terminal External memory equipmentStorage/emulated/0/myapp is identical, judges file path and current the answering of current renewal application dataApplication data file path with software in External memory equipment repeats;
The file path that obtains upgrading application data if monitor is /storage/emulated/0/app01, with/ storage/emulated/0/myapp is not identical, judges the file path of current renewal application data and works asThe application data file path of front application software in External memory equipment do not repeat.
Thus, data backup device obtains result of determination.
If step S70 does not repeat, using the file path of described more new data as corresponding with described major keyValue is filled described mapping table, and upgrades described mapping table.
Obtaining after result of determination, if the file path of current renewal application data and current application software existApplication data file path in External memory equipment does not repeat, by the file of current renewal application dataPath as with the value that in mapping table, current application software identifying information is corresponding, be filled in mapping table, andUpgrade mapping table.
Follow-up, when the application data to application software in mobile terminal External memory equipment backs up,According to the identifying information of application software and mapping table, obtain whole values that major key is corresponding, obtain file path,Thereby carry out the backup of application data.
It should be noted that, if the file path of current renewal application data and current application software are in outsideApplication data file path in memory device repeats, and does not upgrade mapping table.
In the present embodiment, if application software is upgraded application data, obtain the file that upgrades application dataPath; Then, whether the file path of application data is upgraded in judgement, establish with application software in exterior storageApplication data file path in standby repeats; If do not repeat, using the file path of new data more as with masterThe value that key is corresponding is filled mapping table, and upgrades mapping table. The present embodiment is by applying application software upgradingThe monitoring of data, has realized the upgrading in time of mapping table, thereby in the time carrying out application data backup, noCan omit application data.
Further, with reference to Figure 12, data back up method of the present invention the 5th embodiment provides a kind of data standbyPart method, the embodiment (the present embodiment is taking Fig. 8 as example) based on shown in above-mentioned Fig. 8 to Figure 11 any one,After described step S10, also comprise:
Step S80, according to described backup instruction, back up the application data in described mobile terminal internal memory.
Arrange according to user's needs or self, application software can be simultaneously the internal memory of mobile terminal and outsideStoring applied data in portion's storage. For example, according to user's setting, application software by cache file, faceTime the application data store such as file in the internal memory of mobile terminal, by the video of downloading, audio frequency, picture etc.File is stored in External memory equipment.
Obtaining after the backup instruction of user's input, data backup device back-up application software is at mobile terminalThe application data of storing in internal memory. In the present embodiment, mobile terminal internal memory is depositing of mobile terminal insideReservoir, example memory 160 as shown in Figure 1.
Concrete, as a kind of embodiment, that data backup device obtains is that backup instruction carries, thisThe intended application software identifying information of backup, for example application bag name.
Then, data backup device is searched intended application software in mobile terminal internal memory according to application bag nameThe main folder creating, and obtain the application data of storing in file, comprise APK (AndroidPackage, Android installation kit) file, cache file that intended application software produces in running,Temporary file, the file of download etc., thus obtain the application data of intended application software in mobile terminal.
Meanwhile, data backup device, according to application bag name, is searched mapping table, obtains corresponding file path.That then, obtains according to file path that intended application software stores in mobile terminal External memory equipment shouldUse data.
Thus, data backup device obtains whole application numbers that intended application software is stored in mobile terminalAccording to.
Then, data backup device backs up the application data obtaining, and having realized simultaneously should to targetWith the backup of software application data in mobile terminal internal memory and External memory equipment.
In the present embodiment, according to backup instruction, the application data in backup mobile terminal internal memory. This realityExecute and realized the backup to application software application data in mobile terminal internal memory and External memory equipment simultaneously,Ensure the integrality of application data backup.
Through the above description of the embodiments, those skilled in the art can be well understood to above-mentionedThe mode that embodiment method can add essential general hardware platform by software realizes, and can certainly lead toCross hardware, but in a lot of situation, the former is better embodiment. Based on such understanding, of the present inventionThe part that technical scheme contributes to prior art in essence in other words can be with the form body of software productReveal to come, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, lightDish) in, (can be mobile phone, computer, serves in order to make a station terminal equipment to comprise some instructionsDevice, air-conditioner, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
These are only optional embodiment of the present invention, not thereby limit the scope of the claims of the present invention, everyUtilize equivalent structure or the conversion of equivalent flow process that description of the present invention and accompanying drawing content do, or directly orConnect and be used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a data backup device, is characterized in that, described data backup device comprises:
Acquisition module, for obtaining the backup instruction of input;
Path module, for according to described backup instruction and pre-configured mapping table, obtains mobile terminalThe file path of application data in External memory equipment;
Backup module, for according to described file path, obtains the application number in described External memory equipmentAccording to also backup.
2. data backup device as claimed in claim 1, is characterized in that, described application data is for answeringBy the application data of software, described data backup device also comprises:
Mapping block, for obtaining the identifying information of described application software and described application software outside describedApplication data file path in portion's memory device, configures described mapping table.
3. data backup device as claimed in claim 2, is characterized in that, described mapping block comprises:
Set up unit, for setting up mapping table, described mapping table comprises major key and value;
Major key unit, for obtaining the identifying information of described application software, fills described mapping as major keyTable;
Value cell, for obtaining the application data file of described application software at described External memory equipmentPath, fills described mapping table as the value corresponding with described major key.
4. data backup device as claimed in claim 3, is characterized in that, described data backup deviceAlso comprise:
More new module, if upgrade application data for described application software, obtains described renewal application numberAccording to file path; Judge the file path of described renewal application data, whether exist with described application softwareApplication data file path in described External memory equipment repeats; If do not repeat, by described renewal numberAccording to file path fill described mapping table as the value corresponding with described major key, and upgrade described mapping table.
5. the data backup device as described in claim 1-4 any one, is characterized in that described numberAlso comprise according to back-up device:
Memory modules, for according to described backup instruction, backs up the application number in described mobile terminal internal memoryAccording to.
6. a data back up method, is characterized in that, described data back up method comprises the following steps:
Obtain the backup instruction of input;
According to described backup instruction and pre-configured mapping table, obtain in mobile terminal External memory equipmentThe file path of application data;
According to described file path, obtain application data backup in described External memory equipment.
7. data back up method as claimed in claim 6, is characterized in that, described application data is for answeringBy the application data of software, described in obtain the step of backup instruction of input before, also comprise:
Obtain the identifying information of described application software and described application software in described External memory equipmentApplication data file path, configures described mapping table.
8. data back up method as claimed in claim 7, is characterized in that, described in obtain described applicationThe identifying information of software and the described application software application data file path in described External memory equipment,The step that configures described mapping table comprises:
Set up mapping table, described mapping table comprises major key and value;
Obtain the identifying information of described application software, fill described mapping table as major key;
Obtain the application data file path of described application software in described External memory equipment, as withThe value that described major key is corresponding is filled described mapping table.
9. data back up method as claimed in claim 8, is characterized in that, described in obtain described applicationThe application data file path of software in described External memory equipment, as the value corresponding with described major keyAfter filling the step of described mapping table, also comprise:
If described application software is upgraded application data, obtain the file path of described renewal application data;
Judge the file path of described renewal application data, whether deposit in described outside with described application softwareApplication data file path in storage equipment repeats;
If do not repeat, the file path of described more new data is filled as the value corresponding with described major keyDescribed mapping table, and upgrade described mapping table.
10. the data back up method as described in claim 6-9 any one, is characterized in that, described inAfter obtaining the step of backup instruction of input, also comprise:
According to described backup instruction, back up the application data in described mobile terminal internal memory.
CN201510989643.8A 2015-12-24 2015-12-24 Data backup device and method Pending CN105607971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510989643.8A CN105607971A (en) 2015-12-24 2015-12-24 Data backup device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510989643.8A CN105607971A (en) 2015-12-24 2015-12-24 Data backup device and method

Publications (1)

Publication Number Publication Date
CN105607971A true CN105607971A (en) 2016-05-25

Family

ID=55987924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510989643.8A Pending CN105607971A (en) 2015-12-24 2015-12-24 Data backup device and method

Country Status (1)

Country Link
CN (1) CN105607971A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383753A (en) * 2016-09-13 2017-02-08 北京小米移动软件有限公司 Application backup method and device and application restoration method and device
CN106776135A (en) * 2016-12-09 2017-05-31 宇龙计算机通信科技(深圳)有限公司 A kind of data back up method and device
CN111858154A (en) * 2020-06-06 2020-10-30 高榕科技(深圳)有限公司 File backup method based on network system and network system for realizing method
CN111949448A (en) * 2020-08-11 2020-11-17 深圳市前海手绘科技文化有限公司 Android terminal test environment backup and recovery method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080307347A1 (en) * 2007-06-08 2008-12-11 Apple Inc. Application-Based Backup-Restore of Electronic Information
CN103581318A (en) * 2013-10-31 2014-02-12 北京奇虎科技有限公司 Data backup and restoration method and device for mobile device
CN103942125A (en) * 2014-05-06 2014-07-23 南宁博大全讯科技有限公司 Automatic backup method and system
CN104331343A (en) * 2014-11-06 2015-02-04 深圳市中兴移动通信有限公司 File backup method and system
CN104679613A (en) * 2015-03-17 2015-06-03 努比亚技术有限公司 Mobile terminal and method and device for restoring user data of mobile terminal
CN104915299A (en) * 2015-05-28 2015-09-16 努比亚技术有限公司 Data storage method and device for multiple memory cards

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080307347A1 (en) * 2007-06-08 2008-12-11 Apple Inc. Application-Based Backup-Restore of Electronic Information
CN103581318A (en) * 2013-10-31 2014-02-12 北京奇虎科技有限公司 Data backup and restoration method and device for mobile device
CN103942125A (en) * 2014-05-06 2014-07-23 南宁博大全讯科技有限公司 Automatic backup method and system
CN104331343A (en) * 2014-11-06 2015-02-04 深圳市中兴移动通信有限公司 File backup method and system
CN104679613A (en) * 2015-03-17 2015-06-03 努比亚技术有限公司 Mobile terminal and method and device for restoring user data of mobile terminal
CN104915299A (en) * 2015-05-28 2015-09-16 努比亚技术有限公司 Data storage method and device for multiple memory cards

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383753A (en) * 2016-09-13 2017-02-08 北京小米移动软件有限公司 Application backup method and device and application restoration method and device
CN106383753B (en) * 2016-09-13 2019-09-17 北京小米移动软件有限公司 Using backup, restoring method and device
CN106776135A (en) * 2016-12-09 2017-05-31 宇龙计算机通信科技(深圳)有限公司 A kind of data back up method and device
CN111858154A (en) * 2020-06-06 2020-10-30 高榕科技(深圳)有限公司 File backup method based on network system and network system for realizing method
CN111949448A (en) * 2020-08-11 2020-11-17 深圳市前海手绘科技文化有限公司 Android terminal test environment backup and recovery method

Similar Documents

Publication Publication Date Title
CN104869230B (en) Method for controlling mobile terminal and device
CN105677231A (en) Associated application split-screen display device and method as well as terminal
CN105511928B (en) System upgrade device and method
CN105306457B (en) Data buffer storage device and method
CN105611631A (en) Method and device for distributing radio-frequency resources of mobile phone
CN105511738A (en) Method and device for regulating image processing menu
CN106033570A (en) Mobile payment device and method
CN105897863A (en) Rollback method and apparatus for upgraded mobile terminal version
CN106055199B (en) A kind of information synchronization method and electronic equipment
CN105607971A (en) Data backup device and method
CN105843478B (en) The icon display control method and device of rapid switch
CN105187534A (en) Information backup equipment and method, and information backup system
CN106095464B (en) A kind of method and device of the seamless operation of application program
CN106791123A (en) User terminal and application processing method
CN105867749B (en) A kind of menu interface display methods and terminal
CN105471988A (en) contact person information pushing method, server and terminal
CN106102086A (en) Data processing equipment and method
CN105487803A (en) Touch response method and mobile terminal
CN105827531B (en) A kind of routing access method and terminal
CN105991293B (en) A kind of method of calibration and device
CN105792181B (en) A kind of data migration method of analog card, mobile terminal and TSM platform
CN105744508B (en) Game data backup method and mobile terminal
CN105898158B (en) A kind of data processing method and electronic equipment
CN106650413A (en) Method for determining Root right and mobile terminal
CN106231583B (en) The method of terminal and its synchronous Virtual User identification card user information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160525

RJ01 Rejection of invention patent application after publication