CN109684132A - A kind of data back up method of mobile terminal, mobile terminal and storage medium - Google Patents
A kind of data back up method of mobile terminal, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN109684132A CN109684132A CN201811560613.5A CN201811560613A CN109684132A CN 109684132 A CN109684132 A CN 109684132A CN 201811560613 A CN201811560613 A CN 201811560613A CN 109684132 A CN109684132 A CN 109684132A
- Authority
- CN
- China
- Prior art keywords
- data
- file
- database
- mobile terminal
- wal
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000003860 storage Methods 0.000 title claims abstract description 46
- 230000004044 response Effects 0.000 claims description 6
- 230000000694 effects Effects 0.000 abstract description 10
- 230000006854 communication Effects 0.000 description 18
- 238000004891 communication Methods 0.000 description 17
- 230000006870 function Effects 0.000 description 15
- 238000012545 processing Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 238000000151 deposition Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 238000011084 recovery Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
Abstract
The invention discloses a kind of data back up method of mobile terminal, this method comprises: judging whether the database version of mobile terminal supports write-ahead log WAL mode;In the case where the database version supports WAL mode, the object time for being stored in data in the database of the mobile terminal for the last time is determined;Judge the object time to whether have between current time data deposit WAL file in and shared drive SHM file in;In the object time to thering are data to be stored in the WAL file between current time and in the case where the SHM file, by database data, in the object time to current time.In addition, invention additionally discloses a kind of mobile terminal and storage mediums.Mobile terminal can back up the data of all updates, by backing up the data in database, WAL file and SHM file so that data backup is complete, to improve the effect of data backup in embodiment disclosed by the invention.
Description
Technical field
The present invention relates to mobile terminal control technology field more particularly to a kind of data back up method of mobile terminal, move
Dynamic terminal and storage medium.
Background technique
The Android operation system of some mobile terminals is in Backup Data at present, before the data of backup are certain a period of times
Data, be not newest data.Generate these phenomenons may be in Android operation system database be configured to prewrite day
Caused by will (WriteAhead Log, WAL) mode.Because database is under WAL mode, first by data be stored in WAL file and
Shared drive (sharedmemory, SHM) file, when being cached to certain amount in WAL and SHM file, then by WAL and SHM
In the data deposit database of file.Existing certain mobile terminal exists during Backup Data due to the above reasons,
The incomplete problem of data backup.
Summary of the invention
In view of this, the present invention proposes the data back up method, mobile terminal and storage medium of a kind of mobile terminal, with solution
Certainly above-mentioned technical problem.
Firstly, to solve the above problems, the present invention proposes a kind of data back up method of mobile terminal, comprising:
Judge whether the database version of mobile terminal supports write-ahead log WAL mode;
In the case where the database version supports WAL mode, last in the database of the mobile terminal is determined
The object time of secondary deposit data;
Judge the object time, data were stored in WAL file and shared drive SHM is literary to whether having between current time
In part;
In the object time to there is data to be stored in the WAL file and the feelings of the SHM file between current time
Under condition, by database data, in the object time in having in data deposit WAL file between current time and be shared
The data for depositing SHM file are backed up.
Optionally, whether the database version for judging mobile terminal supports write-ahead log WAL mode, comprising:
Judge whether there is the WAL file and the SHM file in the database;
In the case where having the WAL file and the SHM file in the database, the database version branch is determined
Hold WAL mode.
Optionally, the data by database, the object time to have between current time data be stored in WAL
In file and the data of shared drive SHM file are backed up, comprising:
The memory of the mobile terminal be less than preset threshold in the case where, by database data, in the target
Time, data were stored in WAL file and the data backup of shared drive SHM file is empty to external storage to having between current time
Between, wherein the external memory space includes movable storage device and/or network storage equipment.
Optionally, the data by database, the object time to have between current time data be stored in WAL
In file and the data of shared drive SHM file are backed up, comprising:
Data in response to receiving default application program delete instruction, judge default using journey in the mobile terminal
Whether the data volume of sequence caching is more than preset capacity;
In the case where the buffer data size of the default application program is more than preset capacity, delete described default using journey
Sequence caching data, by database data, the object time to have between current time data deposit WAL file in
And the data of shared drive SHM file back up to the local storage space of the mobile terminal.
Optionally, before the data for deleting the default application cache, the method also includes:
By the data backup of the default application cache to external memory space;
And the data cached corresponding relationship of the default application program Yu the default application program is established, make institute
State default application cache data be deleted after by the caching of the default application program of the external memory space
Data are restored into the database of the default application program.
Optionally, the data backup by the default application cache is to external memory space, comprising:
The data of the default application cache are encrypted, encryption data is obtained;
Encryption data is backed up into the external memory space.
Optionally, the data to the default application cache are encrypted, and obtain encryption data, packet
It includes:
Using presetting message digest algorithm, the summary info of the data of the default application cache is determined;
It is carried out at encryption using the data of default application cache and the summary info described in preset key pair
Reason, obtains encryption data.
Optionally, it states after judging whether the database version of mobile terminal supports write-ahead log WAL mode, the method
Further include:
In the case where the database version supports WAL mode, interval preset time is by the WAL file and described
Update data backup in SHM file is into database.
Further, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal includes storage
Device, at least one processor and at least one journey that is stored on the memory and can be executed at least one described processor
Sequence, at least one described program are realized in the data back up method of above-mentioned mobile terminal when being executed by least one described processor
The step of.
Further, to achieve the above object, the present invention also provides a kind of storage medium, the storage medium is stored with meter
At least one executable program of calculation machine, at least one described program execute the computer when being executed by the computer
State the step in the data back up method of mobile terminal.
Compared to the prior art, the data back up method of mobile terminal proposed by the invention, by judging mobile terminal
Database version whether support write-ahead log WAL mode;In the case where the database version supports WAL mode, determine
The object time of data is stored in the database of the mobile terminal for the last time;Judge the object time to current time it
Between whether have data deposit WAL file in and shared drive SHM file in;In the object time to there is number between current time
According to being stored in the WAL file and in the case where the SHM file, by database data, in the object time to working as
Have in data deposit WAL file between the preceding time and the data of shared drive SHM file are backed up.In this way, mobile terminal will
Data in database, WAL file and SHM file are backed up, and can be backed up to the data of all updates, so that data
Back up it is complete, to improve the effect of data backup, it can be ensured that subsequent data handling procedure is gone on smoothly.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for realizing a kind of mobile terminal of each embodiment of the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of the data back up method of mobile terminal provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of the data back up method of another mobile terminal provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (PersonalDigital Assistant, PDA), portable matchmaker
Body player (Portable MediaPlayer, PMP), navigation device, wearable device, mobile terminal, pedometer etc. are mobile
The fixed terminals such as terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111, the number of the processor 110 are at least one.Ability
Field technique personnel are appreciated that mobile terminal structure shown in Fig. 1 does not constitute the restriction to mobile terminal, and mobile terminal can
To include perhaps combining certain components or different component layouts than illustrating more or fewer components.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.Display unit 106 can wrap
Include the first screen area and the second screen area.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and by least one element that the input received is transferred in mobile terminal 100 or can use
In transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include at least one processing unit;Preferably, processor 110 can integrate application processor and modulation /demodulation processing
Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located
Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned mobile terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned 100 hardware configuration of mobile terminal and communications network system, each embodiment of the method for the present invention is proposed.
It is a kind of step process of the data back up method of mobile terminal provided in an embodiment of the present invention refering to Fig. 3, Fig. 3
Figure, as shown in Figure 3, which comprises
Step S301, judge whether the database version of mobile terminal supports write-ahead log WAL mode.
In the present embodiment, the database of mobile terminal can be the database of each application program, each application program
Database can store corresponding data.For example, the database of video playing application program can store video cache data,
The database of social communication application program can store the data such as voice, video communication message, the number of Document Editing application program
To be edited or data such as editing files can be cached according to library;The database of picture processing application program can cache the number such as photo
According to;The database of music application program can be with buffer network music data etc..
It include WAL file and SHM file in the file directory in database under the WAL mode.For different numbers
According to library version, some databases supports WAL mode, some not to support WAL mode, for example, Android system at AndroidP editions
This database supports WAL mode.Thus, in the present embodiment, can in advance or database version information, according to database
Version number and corresponding version number whether support the configuration information of WAL mode, determine whether database supports WAL mode.It can also
To determine whether the database of mobile terminal is supported by whether including WAL file and SHM file in the file directory of database
WAL mode.
For example, when mobile terminal currently needs the case where backing up to the database data of video application
Under, first judge whether the data of video application support WAL mode.For another example, when mobile terminal currently needs to lead to social activity
In the case that the database data of letter application program is backed up, first judge whether the data of social communication application program are supported
WAL mode.Need according to currently need Backup Data application program database version number or file directory under whether
There are WAL file and SHM file, determines whether the database of corresponding application programs supports WAL mode.That is, different application
Whether the database of program supports WAL mode can be different.
Step S302, in the case where the database version supports WAL mode, the database of the mobile terminal is determined
The object time of middle last time deposit data.
In the present embodiment, due under WAL mode, have in the file directory of the database of application program WAL file and
The data of database update can be written in WAL file and SHM file first for SHM file, after waiting a period of times, WAL file and
After data volume in SHM file runs up to certain capacity, be written in the database of application program by rollback mode.Thus need
The object time of data is stored in confirmation database for the last time, WAL file and SHM are judged according to object time and current time
The corresponding data of database is not written in file.For example, if the object time 0 divides when being on January 11, current time is
5 divide when 1 day 1 January, then a data for 0 5/deposit when dividing to 1 are not stored in database when in WAL file and SHM file from 1
In.
It is understood that being then saved in database in the case where the database version does not support WAL mode
There are last updated data, therefore can back up the data in database between, in case subsequent use.
Step S303, judge that the object time is in data deposit WAL file and shared to whether having between current time
In memory SHM file.
In the present embodiment, it can determine in database and be written for the last time by the record time in write-in database
The object time of data.Data can be written according to the time of WAL file last time write-in data, SHM file last time
Time, determine between the object time and current time whether have data deposit WAL file in and shared SHM file in.
For example, the object time 0 divides when being on January 11,5 divide when current time is on January 11, WAL file last time write-in number
According to time be on January 11 when 2 divide, 4 divide when the time that data are written in SHM file for the last time is on January 11, then WAL text
A data for 0 2/write-in when dividing to 1 day 1 January are that the data of database are not written when 1 day 1 January in part, January in SHM file
A data for 0 4/write-in when dividing to 1 day 1 January are that the data of database are not written at 1 day 1.
Step S304, in the object time to there is data to be stored in the WAL file and the SHM between current time
In the case where file, by database data, the object time to have between current time data deposit WAL file in
And the data of shared drive SHM file are backed up.
In the present embodiment, the data in database may include registration information and data cached etc., herein with no restrictions.
It, can be in order to subsequent data processing after data in the data of database and WAL file and SHM file are backed up.?
When accidentally deleting data, recovery operation etc. can be carried out to data, it is ensured that application program being capable of successful operation.
For example, if a data for 0 2/write-in when dividing to 1 day 1 January are not to be written when 1 day 1 January in WAL file
The data of database, a data for 0 4/write-in when dividing to 1 day 1 January are that database is not written when 1 day 1 January in SHM file
Data, then by database 0 when 1 day 1 January/preceding data, 0 divided to 1 day 1 January when 1 day 1 January in WAL file when 2 divide
Between the data that are written be when 1 day 1 January in the data and SHM file of database not being written 04 when dividing to 1 day 1 January/
The data of write-in carry out data backup, the data in the database of current time, WAL file and SHM file can be carried out
More complete backup guarantees the integrality of data backup.
It is understood that if the data of WAL file and SHM file have been written into database, i.e. WAL file and SHM
There is no the data not being written in database in file, then only needs the data in direct backup database.For example, if when current
Between 5 divide when being on January 11,5 divide when the time that data are written in database for the last time is also on January 11, then WAL file and
The data of SHM file are written in database, the data in direct backup database.
It should be noted that there are many modes backed up to data, can by data backup mobile terminal sheet
Data backup to network memory space can also can be determined, herein not by ground memory space according to actual use demand
It limits.
In embodiments of the present invention, judge whether the database version of mobile terminal supports write-ahead log WAL mode;Institute
In the case where stating database version support WAL mode, determines in the database of the mobile terminal and be stored in data for the last time
Object time;Judge the object time, data were stored in WAL file and shared drive SHM is literary to whether having between current time
In part;In the object time to thering are data to be stored in the WAL file between current time and the case where the SHM file
Under, by database data, the object time to have between current time data deposit WAL file in and shared drive
The data of SHM file are backed up.In this way, mobile terminal backs up the data in database, WAL file and SHM file,
The data of all updates can be backed up, so that data backup is complete, to improve the effect of data backup, it can be ensured that
Subsequent data handling procedure is gone on smoothly.
Referring to fig. 4, Fig. 4 is the process signal of the data back up method of another mobile terminal provided in an embodiment of the present invention
Figure, as shown in Figure 4, which comprises
Step S401, judge whether the database version of mobile terminal supports write-ahead log WAL mode.
In the present embodiment, the database of mobile terminal can be the database of each application program, each application program
Database can store corresponding data.For example, the database of video playing application program can store video cache data,
The database of social communication application program can store the data such as voice, video communication message, the number of Document Editing application program
To be edited or data such as editing files can be cached according to library;The database of picture processing application program can cache the number such as photo
According to;The database of music application program can be with buffer network music data etc..
It include WAL file and SHM file in the file directory in database under the WAL mode.For different numbers
According to library version, some databases supports WAL mode, some not to support WAL mode, for example, Android system at Android P editions
This database supports WAL mode.Thus, in the present embodiment, can in advance or database version information, according to database
Version number and corresponding version number whether support the configuration information of WAL mode, determine whether database supports WAL mode.It can also
To determine whether the database of mobile terminal is supported by whether including WAL file and SHM file in the file directory of database
WAL mode.
For example, when mobile terminal currently needs the case where backing up to the database data of video application
Under, first judge whether the data of video application support WAL mode.For another example, when mobile terminal currently needs to lead to social activity
In the case that the database data of letter application program is backed up, first judge whether the data of social communication application program are supported
WAL mode.Need according to currently need Backup Data application program database version number or file directory under whether
There are WAL file and SHM file to determine whether the database of corresponding application programs supports WAL mode.That is, different application journey
Whether the database of sequence supports WAL mode to be different.
Optionally, the step 401 can with the following steps are included:
Judge whether there is the WAL file and the SHM file in the database;
In the case where having the WAL file and the SHM file in the database, the database version branch is determined
Hold WAL mode.
In the present embodiment, whether can there are WAL file and SHM file name by the file directory of database, judge
Whether the WAL file and the SHM file are had in database.
In this way, improving treatment effeciency by can quickly judge whether the database of mobile terminal supports WAL mode.
Step S402, in the case where the database version supports WAL mode, the database of the mobile terminal is determined
The object time of middle last time deposit data.
In the present embodiment, due under WAL mode, have in the file directory of the database of application program WAL file and
The data of database update can be written in WAL file and SHM file first for SHM file, after waiting a period of times, WAL file and
After data volume in SHM file runs up to certain capacity, be written in the database of application program by rollback mode.Thus need
The object time of data is stored in confirmation database for the last time, WAL file and SHM are judged according to object time and current time
The corresponding data of database is not written in file.For example, if the object time 0 divides when being on January 11, current time is
5 divide when 1 day 1 January, then a data for 0 5/deposit when dividing to 1 are not stored in database when in WAL file and SHM file from 1
In.
It is understood that being then saved in database in the case where the database version does not support WAL mode
There are last updated data, therefore can back up the data in database between, in case subsequent use.
Step S403, judge that the object time is in data deposit WAL file and shared to whether having between current time
In memory SHM file.In the present embodiment, last in database can be determined by the record time in write-in database
The object time of secondary write-in data.It can be write according to the time of WAL file last time write-in data, SHM file last time
The time for entering data, determine between the object time and current time whether have data deposit WAL file in and shared SHM text
In part.For example, the object time 0 divides when being on January 11,5 divide when current time is on January 11, and WAL file last time is write
2 divide when the time for entering data is on January 11, and 4 divide when the time that data are written in SHM file for the last time is on January 11, then
A data for 0 2/write-in when dividing to 1 day 1 January are that the data of database, SHM file are not written when 1 day 1 January in WAL file
A data for 0 4/write-in when dividing to 1 day 1 January are that the data of database are not written when 1 day 1 middle January.
Step S404, the memory of the mobile terminal be less than preset threshold in the case where, by database data,
The object time between current time to having in data deposit WAL file and the data backup of shared drive SHM file is to outer
Portion's memory space, wherein the external memory space includes movable storage device and/or network storage equipment.
In the present embodiment, the data in database may include registration information and data cached etc., herein with no restrictions.
The preset threshold can be customized by the user setting, can also carry out default setting according to the runnability of mobile terminal, should
Preset threshold is the memory size size that mobile terminal can operate normally.By the data of database and WAL file and SHM file
In data backed up after, can be in order to subsequent data processing.When accidentally deleting data, data can be carried out
Recovery operation etc., it is ensured that application program being capable of successful operation.
For example, if a data for 0 2/write-in when dividing to 1 day 1 January are not to be written when 1 day 1 January in WAL file
The data of database, a data for 0 4/write-in when dividing to 1 day 1 January are that database is not written when 1 day 1 January in SHM file
Data, then by database 0 when 1 day 1 January/preceding data, 0 divided to 1 day 1 January when 1 day 1 January in WAL file when 2 divide
Between the data that are written be when 1 day 1 January in the data and SHM file of database not being written 04 when dividing to 1 day 1 January/
The data of write-in carry out data backup, can will be current in the case where the memory of the mobile terminal is less than preset threshold
To external memory space, the external memory space includes for data backup in the database of time, WAL file and SHM file
Movable storage device and/or network storage equipment, movable storage device can be storage card, storage hard disk etc., and network storage is set
It is standby can be with equipment such as Dropbox, cloud disks.In this way, guarantee mobile terminal can smooth operation under the premise of, be compared complete
Backup, guarantees the integrality of data backup.
It is understood that if the data of WAL file and SHM file have been written into database, i.e. WAL file and SHM
There is no the data not being written in database in file, then only needs the data in direct backup database.For example, if when current
Between 5 divide when being on January 11,5 divide when the time that data are written in database for the last time is also on January 11, then WAL file and
The data of SHM file are written in database, the data in direct backup database.
It should be noted that there are many modes backed up to data, can by data backup mobile terminal sheet
Data backup to network memory space can also can be determined, herein not by ground memory space according to actual use demand
It limits.
Further remark additionally, the step S304 of embodiment illustrated in fig. 3 can with the following steps are included:
Data in response to receiving default application program delete instruction, judge default using journey in the mobile terminal
Whether the data volume of sequence caching is more than preset capacity;
In the case where the buffer data size of the default application program is more than preset capacity, delete described default using journey
Sequence caching data, by database data, the object time to have between current time data deposit WAL file in
And the data of shared drive SHM file back up to the local storage space of the mobile terminal.
In the present embodiment, shown default application program can be user-level applications, for example, mobile terminal memory pipe
Manage application program etc..Preset capacity can be adjusted, for example, preset capacity can be 1G or 2G, herein with no restrictions.
In this way, the data of the more application program of data buffer storage can be carried out to part deletion or all deleted, will empty
Memory space local backup is carried out to the data of database, WAL file and SHM file, improve Backup Data complete property and
Efficiency.
It remarks additionally, before the data for deleting the default application cache, the method also includes:
By the data backup of the default application cache to external memory space;
And the data cached corresponding relationship of the default application program Yu the default application program is established, make institute
State default application cache data be deleted after by the caching of the default application program of the external memory space
Data are restored into the database of the default application program.
In this way it can be ensured that the data of default application program are backed up in network storage equipment, facilitate subsequent restore in advance
If the data of application program improve the practical effect of data.
Optionally, the data backup by the default application cache is to external memory space, comprising:
The data of the default application cache are encrypted, encryption data is obtained;
Encryption data is backed up into the external memory space.
In this way, the safety of data can be improved by encryption, it is ensured that data will not be tampered in transmission process.
Optionally, the data to the default application cache are encrypted, and obtain encryption data, packet
It includes:
Using presetting message digest algorithm, the summary info of the data of the default application cache is determined;
It is carried out at encryption using the data of default application cache and the summary info described in preset key pair
Reason, obtains encryption data.
In this way, summary info to the data of the default application cache and setting the data of application cache and carrying out
The security performance of data can be improved by various encryptions and corresponding decrypting process, ensure data for encryption
Accuracy.
Further remark additionally, after the step S301 of embodiment illustrated in fig. 3, the method also includes:
In the case where the database version supports WAL mode, interval preset time is by the WAL file and described
Update data backup in SHM file is into database.
It in the present embodiment, can be by rolling back action by the number in WAL file and SHM file in preset interval time
According in write-in database, this way it is not necessary to frequently write data into database, the system resource of terminal device is saved.
In embodiments of the present invention, judge whether the database version of mobile terminal supports write-ahead log WAL mode;Institute
In the case where stating database version support WAL mode, determines in the database of the mobile terminal and be stored in data for the last time
Object time;Judge the object time, data were stored in WAL file and shared drive SHM is literary to whether having between current time
In part;In the object time to thering are data to be stored in the WAL file between current time and the case where the SHM file
Under, by database data, the object time to have between current time data deposit WAL file in and shared drive
The data of SHM file are backed up.In this way, mobile terminal backs up the data in database, WAL file and SHM file,
The data of all updates can be backed up, so that data backup is complete, to improve the effect of data backup, it can be ensured that
Subsequent data handling procedure is gone on smoothly.
It is the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 5, Fig. 5, as shown in figure 5, mobile terminal 500
It include: first judgment module 501, determining module 502 and the second judgment module 503, backup module 504, first judgment module 501
It is connect with determining module 502, determining module 502 and the second judgment module 503, the second judgment module 503 connects with backup module 504
It connects, in which:
First judgment module 501, for judging whether the database version of mobile terminal supports write-ahead log WAL mode;
Determining module 502, for determining the database of the mobile terminal in the case where the database version supports WAL mode
The object time of middle last time deposit data;Second judgment module 503, for judge the object time to current time it
Between whether have data deposit WAL file in and shared drive SHM file in;Backup module 504, for the object time extremely
There are data to be stored in the WAL file and in the case where the SHM file between current time, by database data,
The object time, data were stored in WAL file and the data of shared drive SHM file are backed up to having between current time.
Optionally, the first judgment module 501, be also used to judge whether to have in the database WAL file and
The SHM file;In the case where having the WAL file and the SHM file in the database, the version database is determined
This support WAL mode.
Optionally, the backup module 504 is also used to the case where the memory of the mobile terminal is less than preset threshold
Under, by database data, the object time to have between current time data deposit WAL file in and shared drive
The data backup of SHM file is to external memory space, wherein the external memory space includes movable storage device and/or net
Network stores equipment.
Optionally, the backup module 504 is also used to delete instruction in response to the data for receiving default application program,
Whether the data volume for judging the default application cache in the mobile terminal is more than preset capacity;Described default using journey
In the case that the buffer data size of sequence is more than preset capacity, the data of the default application cache are deleted, it will be in database
Data, the object time to have between current time data deposit WAL file in and shared drive SHM file data
Back up to the local storage space of the mobile terminal.
Optionally, the mobile terminal 500 further include:
Processing module, for by the data backup of the default application cache to external memory space;And establish institute
The data cached corresponding relationship for stating default application program Yu the default application program has made the default application program slow
The data deposited be deleted after by the data cached recovery of the default application program of the external memory space to described pre-
If in the database of application program.
Optionally, the processing module is also used to that the data of the default application cache are encrypted, obtains
To encryption data;Encryption data is backed up into the external memory space.
Optionally, the processing module is also used to determine that the default application program is slow using presetting message digest algorithm
The summary info for the data deposited;Using the data and the summary info for presetting application cache described in preset key pair
It is encrypted, obtains encryption data.
Optionally, the mobile terminal 500 further include:
Update module, in the case where the database version supports WAL mode, interval preset time will be described
Update data backup in WAL file and the SHM file is into database.
Mobile terminal 500 provided in an embodiment of the present invention carries out the data in database, WAL file and SHM file standby
Part, the data of all updates can be backed up, so that data backup is complete, so that the effect of data backup is improved, it can
Ensure that subsequent data handling procedure is gone on smoothly.
It can be with those of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment method is
It is completed by the relevant hardware of at least one program instruction, at least one described program can store in shifting as shown in Figure 1
It in the memory 109 of dynamic terminal 100, and can be executed by the processor 110, at least one described program is by the processor
110 realize following steps when executing:
Judge whether the database version of mobile terminal supports write-ahead log WAL mode;
In the case where the database version supports WAL mode, last in the database of the mobile terminal is determined
The object time of secondary deposit data;
Judge the object time, data were stored in WAL file and shared drive SHM is literary to whether having between current time
In part;
In the object time to there is data to be stored in the WAL file and the feelings of the SHM file between current time
Under condition, by database data, in the object time in having in data deposit WAL file between current time and be shared
The data for depositing SHM file are backed up.
Optionally, the processor 110 executes whether the database version for judging mobile terminal supports write-ahead log
WAL mode, comprising:
Judge whether there is the WAL file and the SHM file in the database;
In the case where having the WAL file and the SHM file in the database, the database version branch is determined
Hold WAL mode.
Optionally, the processor 110 execute the data stated by database, the object time to current time it
Between have in data deposit WAL file and the data of shared drive SHM file are backed up, comprising:
The memory of the mobile terminal be less than preset threshold in the case where, by database data, in the target
Time, data were stored in WAL file and the data backup of shared drive SHM file is empty to external storage to having between current time
Between, wherein the external memory space includes movable storage device and/or network storage equipment.
Optionally, the processor 110 executes the data by database, in the object time to current time
Between have in data deposit WAL file and the data of shared drive SHM file are backed up, comprising:
Data in response to receiving default application program delete instruction, judge default using journey in the mobile terminal
Whether the data volume of sequence caching is more than preset capacity;
In the case where the buffer data size of the default application program is more than preset capacity, delete described default using journey
Sequence caching data, by database data, the object time to have between current time data deposit WAL file in
And the data of shared drive SHM file back up to the local storage space of the mobile terminal.
Optionally, it before the processor 110 executes the data for deleting the default application cache, also uses
In:
By the data backup of the default application cache to external memory space;
And the data cached corresponding relationship of the default application program Yu the default application program is established, make institute
State default application cache data be deleted after by the caching of the default application program of the external memory space
Data are restored into the database of the default application program.
Optionally, the processor 110 executes data backup to the outside by the default application cache and deposits
Store up space, comprising:
The data of the default application cache are encrypted, encryption data is obtained;
Encryption data is backed up into the external memory space.
Optionally, the processor 110 executes the data to the default application cache and is encrypted,
Obtain encryption data, comprising:
Using presetting message digest algorithm, the summary info of the data of the default application cache is determined;
It is carried out at encryption using the data of default application cache and the summary info described in preset key pair
Reason, obtains encryption data.
Optionally, the processor 110 executes whether the database version for judging mobile terminal supports write-ahead log
After WAL mode, it is also used to:
In the case where the database version supports WAL mode, interval preset time is by the WAL file and described
Update data backup in SHM file is into database.
Mobile terminal 100 provided in an embodiment of the present invention carries out the data in database, WAL file and SHM file standby
Part, the data of all updates can be backed up, so that data backup is complete, so that the effect of data backup is improved, it can
Ensure that subsequent data handling procedure is gone on smoothly.
It can be with those of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment method is
It is completed by the relevant hardware of at least one program instruction, at least one described program can store in a storage medium,
At least one program is when being executed, comprising the following steps:
Judge whether the database version of mobile terminal supports write-ahead log WAL mode;
In the case where the database version supports WAL mode, last in the database of the mobile terminal is determined
The object time of secondary deposit data;
Judge the object time, data were stored in WAL file and shared drive SHM is literary to whether having between current time
In part;
In the object time to there is data to be stored in the WAL file and the feelings of the SHM file between current time
Under condition, by database data, in the object time in having in data deposit WAL file between current time and be shared
The data for depositing SHM file are backed up.
Optionally, when at least one described program executes, following steps be can also be achieved:
Judge whether there is the WAL file and the SHM file in the database;
In the case where having the WAL file and the SHM file in the database, the database version branch is determined
Hold WAL mode.
Optionally, when at least one described program executes, following steps be can also be achieved:
The memory of the mobile terminal be less than preset threshold in the case where, by database data, in the target
Time, data were stored in WAL file and the data backup of shared drive SHM file is empty to external storage to having between current time
Between, wherein the external memory space includes movable storage device and/or network storage equipment.
Optionally, when at least one described program executes, following steps be can also be achieved:
Data in response to receiving default application program delete instruction, judge default using journey in the mobile terminal
Whether the data volume of sequence caching is more than preset capacity;
In the case where the buffer data size of the default application program is more than preset capacity, delete described default using journey
Sequence caching data, by database data, the object time to have between current time data deposit WAL file in
And the data of shared drive SHM file back up to the local storage space of the mobile terminal.
Optionally, when at least one described program executes, following steps be can also be achieved:
By the data backup of the default application cache to external memory space;
And the data cached corresponding relationship of the default application program Yu the default application program is established, make institute
State default application cache data be deleted after by the caching of the default application program of the external memory space
Data are restored into the database of the default application program.
Optionally, when at least one described program executes, following steps be can also be achieved:
The data of the default application cache are encrypted, encryption data is obtained;
Encryption data is backed up into the external memory space.
Optionally, when stating the execution of at least one program, following steps be can also be achieved:
Using presetting message digest algorithm, the summary info of the data of the default application cache is determined;
It is carried out at encryption using the data of default application cache and the summary info described in preset key pair
Reason, obtains encryption data.
Optionally, when at least one described program executes, following steps be can also be achieved:
In the case where the database version supports WAL mode, interval preset time is by the WAL file and described
Update data backup in SHM file is into database.
Storage medium provided in an embodiment of the present invention backs up the data in database, WAL file and SHM file,
The data of all updates can be backed up, so that data backup is complete, to improve the effect of data backup, it can be ensured that
Subsequent data handling procedure is gone on smoothly.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that including
There is also other identical elements in the process, method of the element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of data back up method of mobile terminal characterized by comprising
Judge whether the database version of mobile terminal supports write-ahead log WAL mode;
In the case where the database version supports WAL mode, determines and deposited for the last time in the database of the mobile terminal
Enter the object time of data;
Judge the object time to whether have between current time data deposit WAL file in and shared drive SHM file in;
In the object time to thering are data to be stored in the WAL file between current time and in the case where the SHM file,
By in database data, the object time to have between current time data deposit WAL file in and shared drive SHM
The data of file are backed up.
2. the data back up method of mobile terminal as described in claim 1, which is characterized in that the number of the judgement mobile terminal
Write-ahead log WAL mode whether is supported according to library version, comprising:
Judge whether there is the WAL file and the SHM file in the database;
In the case where having the WAL file and the SHM file in the database, determine that the database version is supported
WAL mode.
3. the data back up method of mobile terminal as described in claim 1, which is characterized in that the number by database
According to, the object time to have between current time data deposit WAL file in and shared drive SHM file data carry out
Backup, comprising:
The memory of the mobile terminal be less than preset threshold in the case where, by database data, in the object time
To having in data deposit WAL file between current time and the data backup of shared drive SHM file is to external memory space,
In, the external memory space includes movable storage device and/or network storage equipment.
4. the data back up method of mobile terminal as described in claim 1, which is characterized in that the number by database
According to, the object time to have between current time data deposit WAL file in and shared drive SHM file data carry out
Backup, comprising:
Data in response to receiving default application program delete instruction, judge that the default application program in the mobile terminal is slow
Whether the data volume deposited is more than preset capacity;
In the case where the buffer data size of the default application program is more than preset capacity, it is slow to delete the default application program
The data deposited, by database data, the object time to have between current time data deposit WAL file in and altogether
The data for enjoying memory SHM file back up to the local storage space of the mobile terminal.
5. the data back up method of mobile terminal as claimed in claim 4, which is characterized in that described to delete the default application
Before the data of program cache, the method also includes:
By the data backup of the default application cache to external memory space;
And the data cached corresponding relationship of the default application program Yu the default application program is established, make described pre-
By the data cached of the default application program of the external memory space after if the data of application cache are deleted
Restore into the database of the default application program.
6. the data back up method of mobile terminal as claimed in claim 5, which is characterized in that it is described will it is described it is default apply journey
The data backup of sequence caching is to external memory space, comprising:
The data of the default application cache are encrypted, encryption data is obtained;
Encryption data is backed up into the external memory space.
7. the data back up method of mobile terminal as claimed in claim 6, which is characterized in that described to described default using journey
The data of sequence caching are encrypted, and obtain encryption data, comprising:
Using presetting message digest algorithm, the summary info of the data of the default application cache is determined;
It is encrypted, is obtained using the data of default application cache and the summary info described in preset key pair
To encryption data.
8. the data back up method of the mobile terminal as described in any one of claims 1 to 7, which is characterized in that the judgement
After whether the database version of mobile terminal supports write-ahead log WAL mode, the method also includes:
In the case where the database version supports WAL mode, interval preset time is literary by the WAL file and the SHM
Update data backup in part is into database.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, at least one processor and is stored in institute
At least one program stated on memory and can executed at least one described processor, at least one described program by it is described extremely
A few processor realizes the step in the described in any item methods of the claims 1 to 8 when executing.
10. a kind of storage medium, the storage medium is stored at least one executable program of computer, which is characterized in that
At least one described program executes the computer described in 1 to 8 any one of the claims
Method in step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811560613.5A CN109684132B (en) | 2018-12-20 | 2018-12-20 | Data backup method of mobile terminal, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811560613.5A CN109684132B (en) | 2018-12-20 | 2018-12-20 | Data backup method of mobile terminal, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109684132A true CN109684132A (en) | 2019-04-26 |
CN109684132B CN109684132B (en) | 2023-03-10 |
Family
ID=66186418
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811560613.5A Active CN109684132B (en) | 2018-12-20 | 2018-12-20 | Data backup method of mobile terminal, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109684132B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021130547A1 (en) * | 2019-12-23 | 2021-07-01 | Sensetime International Pte. Ltd. | Data processing method and apparatus, and edge device |
CN113741956A (en) * | 2021-08-30 | 2021-12-03 | 北京爱奇艺科技有限公司 | Method and device for transplanting version management function and version management method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8683262B1 (en) * | 2013-06-21 | 2014-03-25 | Terracotta Inc. | Systems and/or methods for rapid recovery from write-ahead logs |
CN104182182A (en) * | 2014-08-18 | 2014-12-03 | 四川航天系统工程研究所 | Intelligent terminal and data backup method thereof |
CN105893173A (en) * | 2015-12-10 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Caching data processing method and device |
CN105938444A (en) * | 2015-07-08 | 2016-09-14 | 北京匡恩网络科技有限责任公司 | System state backup and restoration method based on data dual-backup mechanism |
CN106776124A (en) * | 2016-11-25 | 2017-05-31 | 腾讯科技(深圳)有限公司 | Data back up method and device |
CN107145499A (en) * | 2016-03-01 | 2017-09-08 | 阿里巴巴集团控股有限公司 | The method and apparatus filed for ahead daily record |
-
2018
- 2018-12-20 CN CN201811560613.5A patent/CN109684132B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8683262B1 (en) * | 2013-06-21 | 2014-03-25 | Terracotta Inc. | Systems and/or methods for rapid recovery from write-ahead logs |
CN104182182A (en) * | 2014-08-18 | 2014-12-03 | 四川航天系统工程研究所 | Intelligent terminal and data backup method thereof |
CN105938444A (en) * | 2015-07-08 | 2016-09-14 | 北京匡恩网络科技有限责任公司 | System state backup and restoration method based on data dual-backup mechanism |
CN105893173A (en) * | 2015-12-10 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Caching data processing method and device |
CN107145499A (en) * | 2016-03-01 | 2017-09-08 | 阿里巴巴集团控股有限公司 | The method and apparatus filed for ahead daily record |
CN106776124A (en) * | 2016-11-25 | 2017-05-31 | 腾讯科技(深圳)有限公司 | Data back up method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021130547A1 (en) * | 2019-12-23 | 2021-07-01 | Sensetime International Pte. Ltd. | Data processing method and apparatus, and edge device |
US11281580B2 (en) | 2019-12-23 | 2022-03-22 | Sensetime International Pte. Ltd. | Edge device triggering a write-ahead logging (WAL) log when abnormal condition occurs |
JP2022524174A (en) * | 2019-12-23 | 2022-04-28 | 商▲湯▼国▲際▼私人有限公司 | Data processing methods, equipment, and edge devices |
JP7212153B2 (en) | 2019-12-23 | 2023-01-24 | 商▲湯▼国▲際▼私人有限公司 | Data processing method, apparatus, and edge device |
CN113741956A (en) * | 2021-08-30 | 2021-12-03 | 北京爱奇艺科技有限公司 | Method and device for transplanting version management function and version management method and device |
CN113741956B (en) * | 2021-08-30 | 2024-02-06 | 北京爱奇艺科技有限公司 | Method and device for transplanting version management function, version management method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109684132B (en) | 2023-03-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107688607A (en) | The method and mobile terminal of a kind of database access, computer-readable recording medium | |
CN110209456A (en) | Method, mobile terminal and the computer readable storage medium of the long screenshot of screen interface | |
CN109739571A (en) | Application program launching method, mobile terminal and computer readable storage medium | |
CN109144705A (en) | Application management method, mobile terminal and computer readable storage medium | |
CN109819096A (en) | Push display control method, terminal and the computer storage medium of notification message | |
CN109660973A (en) | Bluetooth control method, mobile terminal and storage medium | |
CN109558054A (en) | A kind of message treatment method of mobile terminal, mobile terminal and storage medium | |
CN107273433A (en) | A kind of file scanning method, equipment and computer-readable recording medium | |
CN109472157A (en) | Storage method, mobile terminal and the computer storage medium of application data | |
CN109547637A (en) | A kind of message treatment method of mobile terminal, mobile terminal and storage medium | |
CN110351423A (en) | A kind of unread message process control method, terminal and computer readable storage medium | |
CN109684132A (en) | A kind of data back up method of mobile terminal, mobile terminal and storage medium | |
CN109445660A (en) | A kind of wearable device control method, mobile terminal and wearable device | |
CN109168189A (en) | A kind of electricity saving method, mobile terminal and computer readable storage medium | |
CN109068084A (en) | Video calling picture display process, mobile terminal and computer readable storage medium | |
CN109165042A (en) | Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application | |
CN109032711A (en) | A kind of screenshot method, terminal and computer readable storage medium | |
CN110413330A (en) | A kind of face unlock initial method, equipment and computer readable storage medium | |
CN109918101A (en) | Terminal and its application component management method, computer readable storage medium | |
CN109711198A (en) | Application management method, mobile terminal and storage medium | |
CN109656649A (en) | A kind of desktop application control method, terminal and computer readable storage medium | |
CN109062688A (en) | A kind of memory allocation method, server and mobile terminal | |
CN109151163A (en) | A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium | |
CN108900696A (en) | A kind of data processing method, terminal and computer readable storage medium | |
CN108566476A (en) | A kind of information processing method, terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230222 Address after: 3rd Floor, Building A2, Lugu Science and Technology Innovation and Entrepreneurship Park, No. 1698, Yuelu West Avenue, Changsha High-tech Development Zone, Changsha, Hunan Province 410000 Applicant after: Hunan Peninsula Medical Technology Co.,Ltd. Address before: 518057 Dazu Innovation Building, 9018 Beihuan Avenue, Nanshan District, Shenzhen City, Guangdong Province, 6-8, 10-11, 6 and 6-10 floors in Area A, B and C Applicant before: NUBIA TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |