CN109684132B - Data backup method of mobile terminal, mobile terminal and storage medium - Google Patents

Data backup method of mobile terminal, mobile terminal and storage medium Download PDF

Info

Publication number
CN109684132B
CN109684132B CN201811560613.5A CN201811560613A CN109684132B CN 109684132 B CN109684132 B CN 109684132B CN 201811560613 A CN201811560613 A CN 201811560613A CN 109684132 B CN109684132 B CN 109684132B
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.)
Active
Application number
CN201811560613.5A
Other languages
Chinese (zh)
Other versions
CN109684132A (en
Inventor
梁攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Peninsula Medical Technology Co ltd
Original Assignee
Hunan Peninsula Medical 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 Hunan Peninsula Medical Technology Co ltd filed Critical Hunan Peninsula Medical Technology Co ltd
Priority to CN201811560613.5A priority Critical patent/CN109684132B/en
Publication of CN109684132A publication Critical patent/CN109684132A/en
Application granted granted Critical
Publication of CN109684132B publication Critical patent/CN109684132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data backup method of a mobile terminal, which comprises the following steps: judging whether a database version of the mobile terminal supports a pre-written log WAL mode or not; determining the target time of the last data storage in the database of the mobile terminal under the condition that the database version supports the WAL mode; judging whether data are stored in the WAL file and the shared memory SHM file between the target time and the current time; and under the condition that data are stored in the WAL file and the SHM file between the target time and the current time, storing the data in a database between the target time and the current time. In addition, the invention also discloses a mobile terminal and a storage medium. In the embodiment disclosed by the invention, the mobile terminal can back up all updated data by backing up the data in the database, the WAL file and the SHM file, so that the data backup is complete, and the data backup effect is improved.

Description

Data backup method of mobile terminal, mobile terminal and storage medium
Technical Field
The present invention relates to the field of mobile terminal control technologies, and in particular, to a data backup method for a mobile terminal, and a storage medium.
Background
Currently, when an android operating system of some mobile terminals backs up data, the backed-up data is data before a certain period of time and is not the latest data. These phenomena may arise as a result of a database being set to a Write Ahead Log (WAL) mode in an android operating system. Because the database is in the WAL mode, the data is stored in the WAL file and the shared memory (SHM) file, and when the amount of the data in the WAL file and the SHM file is cached to a certain amount, the data in the WAL file and the SHM file is stored in the database. Due to the reasons, the existing certain mobile terminal has the problem of incomplete data backup in the data backup process.
Disclosure of Invention
In view of the above, the present invention provides a data backup method for a mobile terminal, a mobile terminal and a storage medium, so as to solve the above technical problems.
First, to solve the above problem, the present invention provides a data backup method for a mobile terminal, including:
judging whether a database version of the mobile terminal supports a pre-written log WAL mode or not;
under the condition that the database version supports the WAL mode, determining the target time of the last data storage in the database of the mobile terminal;
judging whether data are stored in the WAL file and the shared memory SHM file between the target time and the current time;
and under the condition that data are stored in the WAL file and the SHM file between the target time and the current time, backing up the data in the database, the data stored in the WAL file between the target time and the current time and the data of the SHM file in the shared memory.
Optionally, the determining whether the database version of the mobile terminal supports the write-ahead log WAL mode includes:
judging whether the WAL file and the SHM file exist in the database or not;
and determining that the database version supports the WAL mode under the condition that the WAL file and the SHM file exist in the database.
Optionally, the backing up the data in the database, the data stored in the WAL file between the target time and the current time, and the data of the shared memory SHM file includes:
and under the condition that the memory of the mobile terminal is smaller than a preset threshold value, storing the data in the database, the data between the target time and the current time into the WAL file and the data of the shared memory SHM file into an external storage space, wherein the external storage space comprises mobile storage equipment and/or network storage equipment.
Optionally, the backing up the data in the database, the data stored in the WAL file between the target time and the current time, and the data in the shared memory SHM file includes:
in response to receiving a data deletion instruction of a preset application program, judging whether the data volume cached by the preset application program in the mobile terminal exceeds a preset capacity;
and under the condition that the cache data volume of the preset application program exceeds the preset capacity, deleting the data cached by the preset application program, and backing up the data in the database, the data stored in the WAL file between the target time and the current time and the data of the shared memory SHM file to the local storage space of the mobile terminal.
Optionally, before deleting the data cached by the preset application, the method further includes:
backing up the data cached by the preset application program to an external storage space;
and establishing a corresponding relation between the preset application program and the cache data of the preset application program, and recovering the cache data of the preset application program in the external storage space to a database of the preset application program after the cache data of the preset application program is deleted.
Optionally, the backing up the data cached by the preset application program to an external storage space includes:
encrypting the data cached by the preset application program to obtain encrypted data;
and backing up the encrypted data to the external storage space.
Optionally, the encrypting the data cached by the preset application to obtain encrypted data includes:
determining abstract information of the data cached by the preset application program by adopting a preset message abstract algorithm;
and encrypting the data cached by the preset application program and the abstract information by adopting a preset secret key to obtain encrypted data.
Optionally, after determining whether the database version of the mobile terminal supports the pre-written log WAL mode, the method further includes:
and under the condition that the database version supports the WAL mode, backing up the update data in the WAL file and the SHM file to a database at preset time intervals.
Further, to achieve the above object, the present invention also provides a mobile terminal, which includes a memory, at least one processor, and at least one program stored on the memory and executable on the at least one processor, wherein the at least one program, when executed by the at least one processor, implements the steps in the data backup method of the mobile terminal.
Further, to achieve the above object, the present invention also provides a storage medium storing at least one program executable by a computer, the at least one program causing the computer to perform the steps of the data backup method of the mobile terminal when executed by the computer.
Compared with the prior art, the data backup method of the mobile terminal provided by the invention has the advantages that whether the database version of the mobile terminal supports the pre-written log WAL mode or not is judged; determining the target time of the last data storage in the database of the mobile terminal under the condition that the database version supports the WAL mode; judging whether data are stored in the WAL file and the shared memory SHM file between the target time and the current time; and under the condition that data are stored in the WAL file and the SHM file between the target time and the current time, backing up the data in the database, the data stored in the WAL file between the target time and the current time and the data of the SHM file in the shared memory. Therefore, the mobile terminal backs up the data in the database, the WAL file and the SHM file, and can back up all updated data, so that the data backup is complete, the data backup effect is improved, and the subsequent data processing process can be ensured to be carried out smoothly.
Drawings
Fig. 1 is a schematic hardware configuration diagram of a mobile terminal implementing various embodiments of the present invention;
fig. 2 is a communication network system architecture diagram provided by an embodiment of the present invention;
fig. 3 is a flowchart illustrating a data backup method of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a data backup method of another mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a mobile terminal, a pedometer, and the like, and fixed terminals such as a digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: the mobile terminal includes components such as an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, where the number of the processors 110 is at least one. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000 ), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, the description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. The display unit 106 may include a first screen region and a second screen region.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to at least one element within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include at least one processing unit; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an epc (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the mobile terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 with access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an hss (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a pgw (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the hardware structure of the mobile terminal 100 and the communication network system, various embodiments of the method of the present invention are provided.
Referring to fig. 3, fig. 3 is a flowchart illustrating steps of a data backup method for a mobile terminal according to an embodiment of the present invention, where as shown in fig. 3, the method includes:
step S301, judging whether the database version of the mobile terminal supports the pre-written log WAL mode.
In this embodiment, the database of the mobile terminal may be a database of each application program, and the database of each application program may store corresponding data. For example, the database of the video playing application may store video cache data, the database of the social communication application may store data such as voice, video communication messages, etc., and the database of the file editing application may cache data such as files to be edited or already edited; the database of the picture processing application program can cache data such as photos; the database of the music playing application may cache network music data, etc.
In the WAL mode, the file directory in the database comprises WAL files and SHM files. For different database versions, some databases support the WAL schema, and some databases do not support the WAL schema, for example, the database in android version of the android system supports the WAL schema. Therefore, in this embodiment, it may be determined whether the database supports the WAL mode in advance or according to the version number of the database and the configuration information of whether the corresponding version number supports the WAL mode. Whether the database of the mobile terminal supports the WAL mode can be determined by whether the file directory of the database comprises the WAL file and the SHM file.
For example, when the mobile terminal needs to backup the database data of the video application program at present, it is first determined whether the data of the video application program supports the WAL mode. For another example, when the mobile terminal needs to backup the database data of the social communication application program at present, it is first determined whether the data of the social communication application program supports the WAL mode. Whether the database of the corresponding application program supports the WAL mode or not needs to be determined according to the version number of the database of the application program which needs to backup data currently or whether the WAL file and the SHM file exist in the file directory. That is, whether or not the WAL mode is supported by databases of different applications may be different.
Step S302, under the condition that the database version supports the WAL mode, determining the target time of the last data storage in the database of the mobile terminal.
In this embodiment, since the file directory of the database of the application program has the WAL file and the SHM file in the WAL mode, the updated data of the database is first written into the WAL file and the SHM file, and after a certain period of time, the data amount in the WAL file and the SHM file is accumulated to a certain capacity, and then written into the database of the application program in a rollback manner. Therefore, the target time of the last stored data in the database needs to be confirmed, and the corresponding data which is not written into the database in the WAL file and the SHM file is judged according to the target time and the current time. For example, if the target time is 1 month, 1 day, 1 hour and 0 minute and the current time is 1 month, 1 day, 1 hour and 5 minutes, the data stored from 1 hour and 0 minute to 1 hour and 5 minutes in the WAL file and the SHM file is not stored in the database.
It can be understood that, in the case that the database version does not support the WAL mode, the latest updated data is already stored in the database, so that the data in the database can be backed up for subsequent use.
Step S303, determining whether there is data stored in the WAL file and the shared memory SHM file between the target time and the current time.
In this embodiment, the target time of the last writing of data in the database may be determined by the recording time of writing into the database. And determining whether data between the target time and the current time are stored in the WAL file and the shared SHM file according to the time of last data writing of the WAL file and the time of last data writing of the SHM file. For example, the target time is 1 month, 1 day, 1 hour and 0 minute, the current time is 1 month, 1 day, 1 hour and 5 minutes, the time for writing data into the WAL file for the last time is 1 month, 1 day, 1 hour and 2 minutes, the time for writing data into the SHM file for the last time is 1 month, 1 day, 1 hour and 4 minutes, the data written in the WAL file between 1 month, 1 day, 1 hour and 0 minute and 1 month, 1 day, 1 hour and 2 minutes is data which is not written in the database, and the data written in the SHM file between 1 month, 1 day, 1 hour and 0 minute and 1 month, 1 day, 1 hour and 4 minutes is data which is not written in the database.
Step S304, if there is data stored in the WAL file and the SHM file between the target time and the current time, backing up the data in the database, the data stored in the WAL file between the target time and the current time, and the data of the SHM file in the shared memory.
In this embodiment, the data in the database may include registration information, cache data, and the like, which is not limited herein. After the data in the database, the WAL file and the SHM file are backed up, the subsequent data processing can be facilitated. Under the condition of deleting data by mistake and the like, the data can be subjected to recovery operation and the like, so that the application program can be ensured to run successfully.
For example, if data written in the WAL file between 1 month, 1 day, 0 minute and 1 month, 1 day, 1 hour and 2 minutes is data that is not written in the database, and data written in the SHM file between 1 month, 1 day, 1 hour, 0 minute and 1 month, 1 day, 1 hour, 4 minutes is data that is not written in the database, data written in the database between 1 month, 1 day, 1 hour and 0 minute and 1 month, 1 day, 1 hour and 2 minutes is data that is not written in the database, and data written in the SHM file between 1 month, 1 day, 1 hour, 0 minute and 1 month, 1 day, 1 hour and 4 minutes are all backed up, so that data in the database, the WAL file and the SHM file at the current time can be backed up relatively completely, and the integrity of data backup is ensured.
It can be understood that, if the data of the WAL file and the SHM file are written into the database, that is, there is no data in the WAL file and the SHM file that is not written into the database, the data in the database only needs to be directly backed up. For example, if the current time is 1 month, 1 day, 1 hour and 5 minutes, and the time for writing data in the database for the last time is also 1 month, 1 day, 1 hour and 5 minutes, the data of both the WAL file and the SHM file may be written in the database, and the data in the database may be directly backed up.
It should be noted that there are various ways to back up data, and the data may be backed up in the local storage space of the mobile terminal, or backed up in the network storage space, and may be determined according to the actual use requirement, which is not limited herein.
In the embodiment of the invention, whether the database version of the mobile terminal supports a WAL mode of the pre-written log is judged; determining the target time of the last data storage in the database of the mobile terminal under the condition that the database version supports the WAL mode; judging whether data are stored in the WAL file and the shared memory SHM file between the target time and the current time; and under the condition that data are stored in the WAL file and the SHM file between the target time and the current time, backing up the data in the database, the data stored in the WAL file between the target time and the current time and the data of the SHM file in the shared memory. Therefore, the mobile terminal backs up the data in the database, the WAL file and the SHM file, and can back up all updated data, so that the data backup is complete, the data backup effect is improved, and the subsequent data processing process can be ensured to be carried out smoothly.
Referring to fig. 4, fig. 4 is a schematic flowchart of another data backup method for a mobile terminal according to an embodiment of the present invention, and as shown in fig. 4, the method includes:
step S401, judging whether the database version of the mobile terminal supports the pre-written log WAL mode.
In this embodiment, the database of the mobile terminal may be a database of each application program, and the database of each application program may store corresponding data. For example, the database of the video playing application may store video cache data, the database of the social communication application may store data such as voice, video communication messages, etc., and the database of the file editing application may cache data such as files to be edited or already edited; the database of the image processing application program can cache data such as photos; the database of the music playing application may cache network music data, etc.
In the WAL mode, the file directory in the database comprises WAL files and SHM files. For different database versions, some databases support the WAL schema, and some do not support the WAL schema, for example, the databases of the Android system in the Android P version support the WAL schema. Therefore, in this embodiment, it may be determined in advance or based on the version number of the database and the configuration information indicating whether the version number supports the WAL mode, according to whether the version number of the database supports the WAL mode. Whether the database of the mobile terminal supports the WAL mode can be determined by whether the file directory of the database comprises the WAL file and the SHM file.
For example, when the mobile terminal needs to backup the database data of the video application program, it is first determined whether the data of the video application program supports the WAL mode. For another example, when the mobile terminal needs to backup the database data of the social communication application program at present, it is first determined whether the data of the social communication application program supports the WAL mode. Whether the database of the corresponding application program supports the WAL mode needs to be determined according to the version number of the database of the application program which needs to backup data currently or whether a WAL file and an SHM file exist in a file directory. That is, whether or not the databases of different applications support the WAL mode is different.
Optionally, the step 401 may further include the following steps:
judging whether the WAL file and the SHM file exist in the database or not;
and determining that the database version supports the WAL mode under the condition that the WAL file and the SHM file exist in the database.
In this embodiment, whether the WAL file and the SHM file exist in the database may be determined by whether the file directory of the database has the WAL file and the SHM file name.
Therefore, whether the database of the mobile terminal supports the WAL mode or not can be judged quickly, and the processing efficiency is improved.
Step S402, under the condition that the database version supports the WAL mode, determining the target time of the last data storage in the database of the mobile terminal.
In this embodiment, since the file directory of the database of the application program has the WAL file and the SHM file in the WAL mode, the updated data of the database is first written into the WAL file and the SHM file, and after a certain period of time, the data amount in the WAL file and the SHM file is accumulated to a certain capacity, and then written into the database of the application program in a rollback manner. Therefore, the target time of the last stored data in the database needs to be confirmed, and the corresponding data which is not written into the database in the WAL file and the SHM file is judged according to the target time and the current time. For example, if the target time is 1 month, 1 day, 1 hour and 0 minute and the current time is 1 month, 1 day, 1 hour and 5 minutes, the data stored from 1 hour and 0 minute to 1 hour and 5 minutes in the WAL file and the SHM file is not stored in the database.
It can be understood that, in the case that the database version does not support the WAL mode, the latest updated data is already stored in the database, so that the data in the database can be backed up for subsequent use.
Step S403, determining whether there is data stored in the WAL file and the shared memory SHM file between the target time and the current time. In this embodiment, the target time of the last writing of data in the database may be determined by the recording time of writing into the database. And determining whether data between the target time and the current time are stored in the WAL file and the shared SHM file according to the time of last data writing of the WAL file and the time of last data writing of the SHM file. For example, the target time is 1 month, 1 day, 1 hour and 0 minute, the current time is 1 month, 1 day, 1 hour and 5 minutes, the time for writing data into the WAL file for the last time is 1 month, 1 day, 1 hour and 2 minutes, the time for writing data into the SHM file for the last time is 1 month, 1 day, 1 hour and 4 minutes, the data written in the WAL file between 1 month, 1 day, 1 hour and 0 minute and 1 month, 1 day, 1 hour and 2 minutes is data which is not written in the database, and the data written in the SHM file between 1 month, 1 day, 1 hour and 0 minute and 1 month, 1 day, 1 hour and 4 minutes is data which is not written in the database.
Step S404, if the memory of the mobile terminal is smaller than a preset threshold, storing the data in the database, the data stored in the WAL file between the target time and the current time, and the data of the shared memory SHM file to an external storage space, where the external storage space includes a mobile storage device and/or a network storage device.
In this embodiment, the data in the database may include registration information, cache data, and the like, which is not limited herein. The preset threshold value can be set by a user in a self-defined mode, and can also be set in a default mode according to the operation performance of the mobile terminal, and the preset threshold value is the size of the memory capacity of the mobile terminal capable of normally operating. After the data in the database, the WAL file and the SHM file are backed up, the subsequent data processing can be facilitated. Under the condition of deleting data by mistake, the data can be recovered, and the application program can be ensured to run successfully.
For example, if data written in the WAL file between 1 month, 1 day, 1 hour, 0 minute and 1 month, 1 day, 1 hour and 2 minutes is data which is not written in the database, and data written in the SHM file between 1 month, 1 day, 1 hour, 0 minute and 1 month, 1 day, 1 hour, 4 minutes is data which is not written in the database, data before 1 month, 1 day, 1 hour, 1 day, 0 minute and 1 month, 1 day, 1 hour and 2 minutes in the database, and data written in the SHM file between 1 month, 1 day, 1 hour, 0 minute and 1 month, 1 day, 1 hour and 4 minutes in the SHM file are all backed up, and in the case that the memory of the mobile terminal is smaller than a preset threshold, data in the database, the WAL file and the SHM file at the current time can be backed up to an external storage space, where the external storage space includes a mobile storage device and/or a network storage device, and the mobile storage device may be a memory card, a storage hard disk, a network disk, a cloud disk, or the like. Therefore, on the premise of ensuring that the mobile terminal can run smoothly, complete backup is carried out, and the integrity of data backup is ensured.
It can be understood that, if the data of the WAL file and the SHM file are written into the database, that is, there is no data in the WAL file and the SHM file that is not written into the database, the data in the database only needs to be directly backed up. For example, if the current time is 1 month, 1 day, 1 hour and 5 minutes, and the time for writing data in the database for the last time is also 1 month, 1 day, 1 hour and 5 minutes, the data of both the WAL file and the SHM file may be written in the database, and the data in the database may be directly backed up.
It should be noted that there are various ways to back up data, and the data may be backed up in the local storage space of the mobile terminal, or backed up in the network storage space, and may be determined according to the actual use requirement, which is not limited herein.
It should be further added that step S304 of the embodiment shown in fig. 3 may further include the following steps:
in response to receiving a data deletion instruction of a preset application program, judging whether the data volume cached by the preset application program in the mobile terminal exceeds a preset capacity;
and under the condition that the cache data volume of the preset application program exceeds the preset capacity, deleting the data cached by the preset application program, and backing up the data in the database, the data stored in the WAL file between the target time and the current time and the data of the shared memory SHM file to the local storage space of the mobile terminal.
In this embodiment, the preset application may be a user-level application, for example, a memory management application of a mobile terminal. The preset capacity may be adjusted, for example, the preset capacity may be 1G or 2G, which is not limited herein.
Therefore, the data of the application program with more data cache can be partially or completely deleted, the emptied storage space is used for carrying out local backup on the data of the database, the WAL file and the SHM file, and the completeness and the efficiency of the backup data are improved.
It is supplementary to be noted that, before deleting the data cached by the preset application, the method further includes:
backing up the data cached by the preset application program to an external storage space;
and establishing a corresponding relation between the preset application program and the cache data of the preset application program, and recovering the cache data of the preset application program in the external storage space to a database of the preset application program after the cache data of the preset application program is deleted.
Therefore, the data of the preset application program can be ensured to be backed up in the network storage device, the data of the preset application program can be conveniently recovered subsequently, and the actual use effect of the data is improved.
Optionally, the backing up the data cached by the preset application program to an external storage space includes:
encrypting the data cached by the preset application program to obtain encrypted data;
and backing up the encrypted data to the external storage space.
Therefore, the data security can be improved through encryption processing, and the data cannot be tampered in the transmission process.
Optionally, the encrypting the data cached by the preset application to obtain encrypted data includes:
determining abstract information of the data cached by the preset application program by adopting a preset message abstract algorithm;
and encrypting the data cached by the preset application program and the abstract information by adopting a preset secret key to obtain encrypted data.
Therefore, the summary information of the data cached by the preset application program and the data cached by the preset application program are encrypted, the safety performance of the data can be improved through various encryption and corresponding decryption processes, and the accuracy of the data is guaranteed.
It is further added that, after step S301 of the embodiment shown in fig. 3, the method further includes:
and under the condition that the database version supports the WAL mode, backing up the update data in the WAL file and the SHM file to a database at preset time intervals.
In the embodiment, at the preset interval, the data in the WAL file and the SHM file may be written into the database through a rollback operation, so that the data does not need to be written into the database frequently, and system resources of the terminal device are saved.
In the embodiment of the invention, whether the database version of the mobile terminal supports a WAL mode of the pre-written log is judged; determining the target time of the last data storage in the database of the mobile terminal under the condition that the database version supports the WAL mode; judging whether data are stored in the WAL file and the shared memory SHM file between the target time and the current time; and under the condition that data are stored in the WAL file and the SHM file between the target time and the current time, backing up the data in the database, the data stored in the WAL file between the target time and the current time and the data of the SHM file in the shared memory. Therefore, the mobile terminal backs up the data in the database, the WAL file and the SHM file, and can back up all updated data, so that the data backup is complete, the data backup effect is improved, and the subsequent data processing process can be ensured to be smoothly carried out.
Referring to fig. 5, fig. 5 is a structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 5, the mobile terminal 500 includes: the device comprises a first judgment module 501, a determination module 502, a second judgment module 503, and a backup module 504, wherein the first judgment module 501 is connected with the determination module 502, the determination module 502 is connected with the second judgment module 503, and the second judgment module 503 is connected with the backup module 504, wherein:
a first judging module 501, configured to judge whether a database version of the mobile terminal supports a pre-written log WAL mode; a determining module 502, configured to determine, when the database version supports the WAL mode, a target time of last data storage in the database of the mobile terminal; a second determining module 503, configured to determine whether data is stored in the WAL file and the shared memory SHM file between the target time and the current time; a backup module 504, configured to backup data in a database, data stored in the WAL file between the target time and the current time, and data in a shared memory SHM file between the target time and the current time when there is data stored in the WAL file and the SHM file between the target time and the current time.
Optionally, the first determining module 501 is further configured to determine whether the WAL file and the SHM file exist in the database; and determining that the database version supports the WAL mode under the condition that the WAL file and the SHM file exist in the database.
Optionally, the backup module 504 is further configured to, when the memory of the mobile terminal is smaller than a preset threshold, backup data in a database, data stored in the WAL file between the target time and the current time, and data of the shared memory SHM file to an external storage space, where the external storage space includes a mobile storage device and/or a network storage device.
Optionally, the backup module 504 is further configured to determine, in response to receiving a data deletion instruction of a preset application, whether a data amount cached by the preset application in the mobile terminal exceeds a preset capacity; and under the condition that the cache data volume of the preset application program exceeds the preset capacity, deleting the data cached by the preset application program, and backing up the data in the database, the data stored in the WAL file between the target time and the current time and the data of the shared memory SHM file to the local storage space of the mobile terminal.
Optionally, the mobile terminal 500 further includes:
the processing module is used for backing up the data cached by the preset application program to an external storage space; and establishing a corresponding relation between the preset application program and the cache data of the preset application program, and recovering the cache data of the preset application program in the external storage space to a database of the preset application program after the cache data of the preset application program is deleted.
Optionally, the processing module is further configured to encrypt the data cached by the preset application to obtain encrypted data; and backing up the encrypted data to the external storage space.
Optionally, the processing module is further configured to determine digest information of the data cached by the preset application program by using a preset message digest algorithm; and encrypting the data cached by the preset application program and the abstract information by adopting a preset secret key to obtain encrypted data.
Optionally, the mobile terminal 500 further includes:
and the updating module is used for backing up the updated data in the WAL file and the SHM file to a database at preset time intervals under the condition that the database version supports the WAL mode.
The mobile terminal 500 provided by the embodiment of the present invention backs up the data in the database, the WAL file, and the SHM file, and can back up all updated data, so that the data backup is complete, the effect of data backup is improved, and the subsequent data processing process can be ensured to be performed smoothly. .
Those skilled in the art will appreciate that all or part of the steps of the method implementing the above-described embodiments may be implemented by hardware associated with at least one program instruction, where the at least one program may be stored in the memory 109 of the mobile terminal 100 shown in fig. 1 and can be executed by the processor 110, and the at least one program when executed by the processor 110 implements the following steps:
judging whether a database version of the mobile terminal supports a pre-written log WAL mode or not;
determining the target time of the last data storage in the database of the mobile terminal under the condition that the database version supports the WAL mode;
judging whether data are stored in the WAL file and the shared memory SHM file between the target time and the current time;
and under the condition that data are stored in the WAL file and the SHM file between the target time and the current time, backing up the data in the database, the data stored in the WAL file between the target time and the current time and the data of the SHM file in the shared memory.
Optionally, the processor 110 performs the determining whether the database version of the mobile terminal supports the pre-written log WAL mode, including:
judging whether the WAL file and the SHM file exist in the database or not;
and determining that the database version supports the WAL mode under the condition that the WAL file and the SHM file exist in the database.
Optionally, the backing up the data in the database, the data stored in the WAL file between the target time and the current time, and the data in the shared memory SHM file by the processor 110 includes:
and under the condition that the memory of the mobile terminal is smaller than a preset threshold value, storing the data in the database, the data between the target time and the current time into the WAL file and the data of the shared memory SHM file into an external storage space, wherein the external storage space comprises mobile storage equipment and/or network storage equipment.
Optionally, the backing up the data in the database, the data stored in the WAL file between the target time and the current time, and the data in the shared memory SHM file by the processor 110 includes:
in response to receiving a data deletion instruction of a preset application program, judging whether the data volume cached by the preset application program in the mobile terminal exceeds a preset capacity;
and under the condition that the cache data volume of the preset application program exceeds the preset capacity, deleting the data cached by the preset application program, and backing up the data in the database, the data stored in the WAL file between the target time and the current time and the data of the shared memory SHM file to the local storage space of the mobile terminal.
Optionally, before the deleting the data cached by the preset application program, the processor 110 is further configured to:
backing up the data cached by the preset application program to an external storage space;
and establishing a corresponding relation between the preset application program and the cache data of the preset application program, and recovering the cache data of the preset application program in the external storage space to a database of the preset application program after the cache data of the preset application program is deleted.
Optionally, the backing up the data cached by the preset application program to the external storage space by the processor 110 includes:
encrypting the data cached by the preset application program to obtain encrypted data;
and backing up the encrypted data to the external storage space.
Optionally, the encrypting the data cached by the preset application program by the processor 110 to obtain encrypted data includes:
determining abstract information of the data cached by the preset application program by adopting a preset message abstract algorithm;
and encrypting the data cached by the preset application program and the abstract information by adopting a preset secret key to obtain encrypted data.
Optionally, after the processor 110 performs the determining whether the database version of the mobile terminal supports the pre-write log WAL mode, the processor is further configured to:
and under the condition that the database version supports the WAL mode, backing up the update data in the WAL file and the SHM file to a database at preset time intervals.
The mobile terminal 100 according to the embodiment of the present invention backs up data in the database, the WAL file, and the SHM file, and can back up all updated data, so that the data backup is complete, the effect of data backup is improved, and the subsequent data processing process can be ensured to be performed smoothly. .
It will be understood by those skilled in the art that all or part of the steps of the method for implementing the above embodiments may be implemented by hardware associated with at least one program instruction, and the at least one program may be stored in a storage medium, and when executed, the at least one program includes the following steps:
judging whether a database version of the mobile terminal supports a pre-written log WAL mode or not;
determining the target time of the last data storage in the database of the mobile terminal under the condition that the database version supports the WAL mode;
judging whether data are stored in the WAL file and the shared memory SHM file between the target time and the current time;
and under the condition that data are stored in the WAL file and the SHM file between the target time and the current time, backing up the data in the database, the data stored in the WAL file and the data of the shared memory SHM file between the target time and the current time.
Optionally, when the at least one program is executed, the following steps may be further implemented:
judging whether the WAL file and the SHM file exist in the database or not;
and determining that the database version supports the WAL mode under the condition that the WAL file and the SHM file exist in the database.
Optionally, when the at least one program is executed, the following steps may be further implemented:
and under the condition that the memory of the mobile terminal is smaller than a preset threshold value, storing the data in the database, the data between the target time and the current time into the WAL file and the data of the shared memory SHM file into an external storage space, wherein the external storage space comprises mobile storage equipment and/or network storage equipment.
Optionally, when the at least one program is executed, the following steps may be further implemented:
in response to receiving a data deleting instruction of a preset application program, judging whether the data volume cached by the preset application program in the mobile terminal exceeds a preset capacity;
and under the condition that the cache data volume of the preset application program exceeds the preset capacity, deleting the data cached by the preset application program, and backing up the data in the database, the data stored in the WAL file between the target time and the current time and the data of the shared memory SHM file to the local storage space of the mobile terminal.
Optionally, when the at least one program is executed, the following steps may be further implemented:
backing up the data cached by the preset application program to an external storage space;
and establishing a corresponding relation between the preset application program and the cache data of the preset application program, and recovering the cache data of the preset application program in the external storage space to a database of the preset application program after the cache data of the preset application program is deleted.
Optionally, when the at least one program is executed, the following steps may be further implemented:
encrypting the data cached by the preset application program to obtain encrypted data;
and backing up the encrypted data to the external storage space.
Optionally, when the at least one program is executed, the following steps may be further implemented:
determining abstract information of the data cached by the preset application program by adopting a preset message abstract algorithm;
and encrypting the data cached by the preset application program and the abstract information by adopting a preset secret key to obtain encrypted data.
Optionally, when the at least one program is executed, the following steps may be further implemented:
and under the condition that the database version supports the WAL mode, backing up the update data in the WAL file and the SHM file to a database at preset time intervals.
The storage medium provided by the embodiment of the invention backs up the data in the database, the WAL file and the SHM file, and can back up all updated data, so that the data is completely backed up, the data backup effect is improved, and the subsequent data processing process can be ensured to be smoothly carried out. .
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one.. Said.", it is not intended to exclude that an additional identical element is present in a process, method, article or apparatus that comprises the same element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A data backup method of a mobile terminal is characterized by comprising the following steps:
judging whether a database version of the mobile terminal supports a pre-written log WAL mode or not;
determining the target time of the last data storage in the database of the mobile terminal under the condition that the database version supports the WAL mode;
judging whether data are stored in the WAL file and the shared memory SHM file between the target time and the current time;
and under the condition that data are stored in the WAL file and the SHM file between the target time and the current time, backing up the data in the database, the data stored in the WAL file between the target time and the current time and the data of the SHM file in the shared memory.
2. The method for backing up data of a mobile terminal according to claim 1, wherein said determining whether the database version of the mobile terminal supports the pre-written log WAL mode comprises:
judging whether the WAL file and the SHM file exist in the database or not;
and determining that the database version supports the WAL mode under the condition that the WAL file and the SHM file exist in the database.
3. The method for backing up data of a mobile terminal according to claim 1, wherein the backing up data in the database, the data stored in the WAL file between the target time and the current time, and the data in the shared memory SHM file comprises:
and under the condition that the memory of the mobile terminal is smaller than a preset threshold value, storing the data in the database, the data between the target time and the current time into the WAL file and the data of the shared memory SHM file into an external storage space, wherein the external storage space comprises mobile storage equipment and/or network storage equipment.
4. The method for backing up data of a mobile terminal according to claim 1, wherein the backing up data in the database, the data stored in the WAL file between the target time and the current time, and the data in the shared memory SHM file comprises:
in response to receiving a data deleting instruction of a preset application program, judging whether the data volume cached by the preset application program in the mobile terminal exceeds a preset capacity;
and under the condition that the cache data volume of the preset application program exceeds the preset capacity, deleting the data cached by the preset application program, and backing up the data in the database, the data stored in the WAL file between the target time and the current time and the data of the shared memory SHM file to the local storage space of the mobile terminal.
5. The data backup method of claim 4, wherein before deleting the data cached by the predetermined application, the method further comprises:
backing up the data cached by the preset application program to an external storage space;
and establishing a corresponding relation between the preset application program and the cache data of the preset application program, and recovering the cache data of the preset application program in the external storage space to a database of the preset application program after the cache data of the preset application program is deleted.
6. The method for backing up data of a mobile terminal according to claim 5, wherein backing up the data cached by the predetermined application to an external storage space comprises:
encrypting the data cached by the preset application program to obtain encrypted data;
and backing up the encrypted data to the external storage space.
7. The method for backing up data of a mobile terminal according to claim 6, wherein the encrypting the data cached by the preset application to obtain encrypted data comprises:
determining abstract information of the data cached by the preset application program by adopting a preset message abstract algorithm;
and encrypting the data cached by the preset application program and the abstract information by adopting a preset secret key to obtain encrypted data.
8. The method for backing up data of a mobile terminal according to any of claims 1 to 7, wherein after determining whether the database version of the mobile terminal supports the pre-written log WAL mode, the method further comprises:
and under the condition that the database version supports the WAL mode, backing up the update data in the WAL file and the SHM file to a database at preset time intervals.
9. A mobile terminal, characterized in that it comprises a memory, at least one processor and at least one program stored on said memory and executable on said at least one processor, said at least one program, when executed by said at least one processor, implementing the steps of the method of any of the preceding claims 1 to 8.
10. A storage medium storing at least one program executable by a computer, the at least one program when executed by the computer causing the computer to perform the steps of the method of any one of claims 1 to 8.
CN201811560613.5A 2018-12-20 2018-12-20 Data backup method of mobile terminal, mobile terminal and storage medium Active CN109684132B (en)

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 CN109684132A (en) 2019-04-26
CN109684132B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG10201913065QA (en) 2019-12-23 2021-07-29 Sensetime Int Pte Ltd Data processing method and apparatus, and edge device
CN113741956B (en) * 2021-08-30 2024-02-06 北京爱奇艺科技有限公司 Method and device for transplanting version management function, version management method and device

Citations (6)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN109684132A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN107357704B (en) Application program detection method, terminal and computer readable storage medium
CN109040441B (en) Application body-separating display method, mobile terminal and computer readable storage medium
CN107220132B (en) Method, equipment and storage medium for monitoring file creation information
CN109766119B (en) Recovery partition upgrade method, terminal and computer readable storage medium
CN108121681B (en) Hot plug implementation method, terminal and storage medium
CN107862217B (en) Position information acquisition method, mobile terminal and computer storage medium
CN110187925B (en) Desktop pre-starting control method, device and computer readable storage medium
CN107124466B (en) Method and device for preventing cache from penetrating and computer readable storage medium
CN107317855B (en) Data caching method, data requesting method and server
CN109472157B (en) Application data storage method, mobile terminal and computer storage medium
CN107846725B (en) Notification message processing method, terminal and storage medium
CN109254972B (en) Offline command word bank updating method, terminal and computer readable storage medium
CN108196774B (en) Message lookup method, flexible screen terminal and computer readable storage medium
CN107656743B (en) Application unloading method, terminal and readable storage medium
CN109684132B (en) Data backup method of mobile terminal, mobile terminal and storage medium
CN110278481B (en) Picture-in-picture implementation method, terminal and computer readable storage medium
CN111158617A (en) Screen-casting content synchronization method, mobile terminal and computer-readable storage medium
CN107194217B (en) User data access control method, apparatus and computer-readable storage medium
CN107317804B (en) Private cloud encrypted data access method, terminal and storage medium
CN107453984B (en) Method, apparatus and computer-readable storage medium for replying to a message
CN107231469B (en) Terminal application management method, terminal and computer readable storage medium
CN110187934B (en) Application control method, terminal and computer readable storage medium
CN110413330B (en) Face unlocking initialization method, equipment and computer readable storage medium
CN112423211A (en) Multi-audio transmission control method, equipment and computer readable storage medium
CN108845821B (en) Application program updating 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

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.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant