CN106569917B - Data backup method and mobile terminal - Google Patents

Data backup method and mobile terminal Download PDF

Info

Publication number
CN106569917B
CN106569917B CN201610977295.7A CN201610977295A CN106569917B CN 106569917 B CN106569917 B CN 106569917B CN 201610977295 A CN201610977295 A CN 201610977295A CN 106569917 B CN106569917 B CN 106569917B
Authority
CN
China
Prior art keywords
data
new data
server
backed
backup
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
CN201610977295.7A
Other languages
Chinese (zh)
Other versions
CN106569917A (en
Inventor
周德海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610977295.7A priority Critical patent/CN106569917B/en
Publication of CN106569917A publication Critical patent/CN106569917A/en
Application granted granted Critical
Publication of CN106569917B publication Critical patent/CN106569917B/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

Landscapes

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

Abstract

The embodiment of the invention provides a data backup method and a mobile terminal, wherein the method comprises the following steps: acquiring a plurality of data types to be backed up, wherein each data type to be backed up corresponds to a priority, and each priority corresponds to a synchronous frequency; monitoring data corresponding to the types of the data to be backed up according to the synchronous frequency; when it is monitored that new data occurs in data corresponding to a data type i, the new data is backed up to a server, and the data type i is any one of the multiple data types to be backed up. The embodiment of the invention can reduce the access amount to the server, thereby reducing the load pressure of the server.

Description

Data backup method and mobile terminal
Technical Field
The invention relates to the field of data processing, in particular to a data backup method and a mobile terminal.
Background
With the rapid development of information technology, mobile terminals (such as mobile phones, tablet computers, and the like) are used more and more frequently, users can take pictures, send messages, download videos, and the like by using the mobile terminals, and the amount of data stored in the mobile terminals is more and more, so that important data in the mobile terminals need to be backed up. As the number of users of the mobile terminal increases and the data updating speed increases, data backup becomes more frequent, so that the access pressure of the server is greatly increased, and when the access amount of the server exceeds a certain number, the server may be paralyzed so as to fail to normally communicate with the server.
Disclosure of Invention
The embodiment of the invention provides a data backup method and a mobile terminal, which can reduce the access amount to a server, thereby reducing the load pressure of the server.
A first aspect of an embodiment of the present invention provides a data backup method, including:
acquiring a plurality of data types to be backed up, wherein each data type to be backed up corresponds to a priority, and each priority corresponds to a synchronous frequency;
monitoring data corresponding to the types of the data to be backed up according to the synchronous frequency;
when it is monitored that new data occurs in data corresponding to a data type i, the new data is backed up to a server, and the data type i is any one of the multiple data types to be backed up.
A second aspect of an embodiment of the present invention provides a mobile terminal, including:
the device comprises an acquisition unit, a synchronization unit and a synchronization unit, wherein the acquisition unit is used for acquiring a plurality of data types to be backed up, each data type to be backed up corresponds to a priority, and each priority corresponds to a synchronization frequency;
the monitoring unit is used for monitoring the data corresponding to the types of the data to be backed up according to the synchronous frequency;
and the backup unit is used for backing up the new data to the server when the situation that the new data occurs in the data corresponding to the data type i is monitored, wherein the data type i is any one of the multiple data types to be backed up.
A third aspect of the embodiments of the present invention provides a mobile terminal, including:
a processor and a memory; wherein the processor performs some or all of the steps of the method described in the first aspect by calling code or instructions in the memory.
The embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, a plurality of data types to be backed up are obtained, each data type to be backed up corresponds to one priority, each priority corresponds to one synchronous frequency, data corresponding to the plurality of data types to be backed up are monitored according to the synchronous frequency, when the situation that the data corresponding to the data type i have new data is monitored, the new data is backed up to a server, and the data type i is any one of the plurality of data types to be backed up. Thus, it is possible to reduce the access frequency to the server, i.e., reduce the amount of access to the server, by adjusting the synchronization frequency.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic network architecture diagram of a data backup system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a data backup method according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a data backup method according to a second embodiment of the present invention;
fig. 4 is a schematic flowchart of a data backup method according to a third embodiment of the present invention;
fig. 5a is a schematic structural diagram of a mobile terminal according to a first embodiment of the present invention;
fig. 5b is a schematic structural diagram of a backup unit of the mobile terminal depicted in fig. 5a according to an embodiment of the present invention;
fig. 5c is a schematic diagram of another structure of the backup unit of the mobile terminal depicted in fig. 5a according to an embodiment of the present invention;
fig. 5d is a schematic diagram of another structure of the mobile terminal depicted in fig. 5a according to an embodiment of the present invention;
fig. 5e is a schematic diagram of another structure of the mobile terminal depicted in fig. 5a according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The mobile terminal described in the embodiment of the present invention may include a smart Phone (such as an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a notebook computer, a mobile internet device (MID, mobile internet Devices), or a wearable device, and the mobile terminal is merely an example, and is not exhaustive and includes but is not limited to the mobile terminal.
It should be noted that the server referred to in the embodiments of the present invention may be a cloud server, and the cloud server generally refers to a "virtual" server running on the same physical hardware, and the cloud server is used as a physical server. On the virtual server platform, an administrator can provide a server with specific Central Processing Unit (CPU), memory and disk characteristics, and these server systems are provided in an online manner. The systems provided by cloud providers also have different "specifications" due to differences in functionality and price. Cloud server this product typically has two key dimensions: a CPU and a memory. Of course, the cloud server may also be a server of an operator, or a server of a third party application.
Referring to fig. 1, fig. 1 provides a network architecture of a data backup system according to an embodiment of the present invention, where the network architecture may include: the mobile terminal and the server can establish communication connection through a wireless fidelity network, a mobile communication network (such as 2G, 3G, 4G, 5G and the like) and a wired network. The system can be used for realizing the following process, the mobile terminal acquires a plurality of data types to be backed up, each data type to be backed up corresponds to one priority, each priority corresponds to one synchronization frequency, data corresponding to the plurality of data types to be backed up are monitored according to the synchronization frequency, when the situation that the data corresponding to the data type i have new data is monitored, the new data is backed up to the server, and the data type i is any one of the plurality of data types to be backed up.
Referring to fig. 2, a schematic flowchart of a first embodiment of a data backup method according to an embodiment of the present invention is shown based on the network architecture of the data backup system described in fig. 1. The data backup method described in this embodiment includes the following steps:
101. the method comprises the steps of obtaining a plurality of data types to be backed up, wherein each data type to be backed up corresponds to a priority, and each priority corresponds to a synchronous frequency.
The data types to be backed up can be set by a user, and the data types can be at least one of the following: photos, video files, address lists, short messages, audio files, word files, PDF files, application installation packages, application plug-ins and the like. For example, the plurality of data types to be backed up may be: photos and address books.
Alternatively, after the data types to be backed up are acquired, the priority of each data type to be backed up may be set by the user. For example, when the type of the data to be backed up is address book, video file, photo, and audio file, the corresponding priority may be address book, video file, photo, and audio file from high to low, and the synchronization frequency corresponding to each priority may be determined according to the corresponding relationship between the priority and the synchronization frequency. Of course, the correspondence between the priority and the synchronization frequency may be set before the embodiment of the present invention is performed.
Optionally, after determining the priority corresponding to each type of data to be backed up, the user may also set the synchronization frequency corresponding to each priority. For example, the types of data to be backed up are set as address book, file, photo and audio, the corresponding priorities are set as address book, video file, photo and audio file from high to low, the corresponding synchronization frequency with high priority is high, the corresponding synchronization frequency with low priority is low, the address book can be monitored once every 12 hours, the video file can be monitored once every 24 hours, the photo can be monitored once every 36 hours, and the audio file can be monitored once every 48 hours.
102. And monitoring the data corresponding to the types of the data to be backed up according to the synchronous frequency.
Each type of data to be backed up corresponds to a synchronization frequency, and the corresponding data is monitored according to the synchronization frequency. For example, the priority is sequentially from high to low for a communication list, a video file, a photo and an audio file, and the communication list is monitored once every 12 hours, the video file is monitored once every 24 hours, the photo is monitored once every 36 hours and the audio file is monitored once every 48 hours according to the set synchronous frequency. Different data types to be backed up are monitored through different synchronous frequencies, so that the backup frequency of each data type is different, all data types do not need to be monitored in real time, and changed data are reported to a server to implement data backup as soon as data corresponding to the data types change, so that the access times of the server are reduced, and the load of the server is lightened.
103. When it is monitored that new data occurs in data corresponding to a data type i, the new data is backed up to a server, and the data type i is any one of the multiple data types to be backed up.
The new data in the implementation of the present invention refers to data that has not appeared in the mobile terminal at the previous monitoring time, for example, a new photo taken at the previous monitoring time and the current monitoring time, for example, a newly downloaded movie taken at the previous monitoring time and the current monitoring time, or for example, a short message received at the previous monitoring time and the current monitoring time, currently, the mobile terminal may also perform a deletion operation on the data, but the deleted part is not new data. When it is monitored that new data occurs in data corresponding to any data type i, the new data can be backed up to a server, and the data type i is any one of a plurality of data types to be backed up.
Optionally, the backing up the new data to the server may include the following steps:
31) and judging whether the current access amount of the server exceeds a preset load threshold value.
32) And when the current access amount of the server exceeds the load threshold value, executing the backup of the new data to the server within a preset time period.
The load value of the server may be represented by a load pressure borne by a processor used for representing the mobile terminal, and in general, the load value of the server may be represented by a percentile system, of course, the more programs the server runs, the greater the corresponding load pressure, or the greater the access amount of the server, the greater the corresponding load pressure.
The preset load threshold value can be set by a user or defaulted by a system. The preset time period can be set by the user, or the mobile terminal acquires the preset time period from the server. The preset time period may be: 13:00-18:00, or the preset time period may be acquired in the following manner: the server counts the user access amount in a period of time, and marks the time period in which the user access amount is less than a certain threshold value, so that the server is relatively idle when the access amount of the server is less in each day, and the time period in which the access amount of the server is less can be used as a preset time period. Before the new data is backed up to the server, whether the current access amount of the server exceeds a preset load threshold value or not can be judged, and when the current access amount of the server exceeds the preset load threshold value, the new data can be backed up to the server within a preset time period so as to avoid that the access pressure of the server is too high and exceeds the preset load threshold value. For example, the preset time period may be: two points in the morning to seven points in the morning, the access amount of the server in the time period is small, and the backup can be automatically delayed to be executed in the preset time period by setting the mobile terminal.
Optionally, the backing up the new data to the server may include the following steps:
33) judging whether the size of the memory occupied by the new data exceeds a first preset threshold value or not;
34) when the size of the memory occupied by the new data exceeds the first preset threshold value, splitting the new data into a plurality of data packets, and backing up the data packets to the server by adopting multiple threads or multiple processes;
35) and when the size of the memory occupied by the new data is smaller than or equal to the first preset threshold value, backing up the new data to the server.
The first preset threshold value can be set by the user or the system defaults. When the size of the memory where the new data is located exceeds a first preset threshold, the new data can be split into a plurality of data packets, and the data packets are backed up to the server by adopting multiple threads or multiple processes, so that the backup efficiency can be improved. When the size of the memory occupied by the new data is smaller than or equal to the first preset threshold value, the new data can be backed up to the server, so that when the memory occupied by the new data is smaller, the new data is directly backed up to the server without being split into a plurality of data packets. Therefore, whether the multi-process or the multi-thread is adopted can be determined according to the memory size of the new data, so that the power consumption of the mobile terminal can be reasonably reduced, and the new data can be quickly backed up.
Furthermore, the mobile terminal may implement data backup on the new data by using a multithread or multiprocess mechanism, after the new data is split into a plurality of data packets, each data packet may correspond to one thread or one process, taking the data type as a photo as an example, the plurality of photos are split into a plurality of data packets, and the plurality of data packets are backed up to the server, so as to improve the backup efficiency.
It can be seen that, according to the embodiment of the present invention, a plurality of data types to be backed up are obtained, each data type to be backed up corresponds to one priority, each priority corresponds to one synchronization frequency, data corresponding to the plurality of data types to be backed up is monitored according to the synchronization frequency, when it is monitored that new data occurs in the data corresponding to the data type i, the new data is backed up to the server, and the data type i is any one of the plurality of data types to be backed up. Thus, it is possible to reduce the access frequency to the server, i.e., reduce the amount of access to the server, by adjusting the synchronization frequency.
In accordance with the above, please refer to fig. 3, which is a flowchart illustrating a data backup method according to a second embodiment of the present invention. The data backup method described in this embodiment includes the following steps:
301. the method comprises the steps of obtaining a plurality of data types to be backed up, wherein each data type to be backed up corresponds to a priority, and each priority corresponds to a synchronous frequency.
302. And monitoring the data corresponding to the types of the data to be backed up according to the synchronous frequency.
303. And when it is monitored that the data corresponding to the data type i has new data, judging whether the memory size of the new data is larger than a second preset threshold value.
Wherein, the second preset threshold value can be set by the user or the system defaults. Firstly, the memory size of the new data corresponding to the data type i can be determined, and then whether the memory size is larger than a second preset threshold value is judged.
Specifically, the second preset threshold determines whether to back up new data to the server when it is monitored that new data exists in the data type i. For example, the data type is used as a photo for explanation, the second preset threshold is 100 million, the photo is monitored once every 36 hours through the set synchronization frequency, when new data (multiple photos) is monitored and the memory occupied by the new data is greater than 100 million, the 100 million new data is backed up, namely the data is backed up to the server, and when the memory occupied by the new data is less than 100 million, the data backup is not performed, and the photo is continuously monitored according to the synchronization frequency. Therefore, when the number of new data is small, the server is not accessed, and therefore, the access amount of the server can be reduced. When a user does not frequently use a camera to take pictures or the mobile terminal only adds a few photos, the size of the newly added photo data may not exceed 100 megabytes, and the backup of the photo data is not needed, so that the access pressure on the server is reduced while the use of the user is not influenced.
304. And when the memory size of the new data is larger than the second preset threshold value, backing up the new data to a server, wherein the data type i is any one of the multiple data types to be backed up.
Steps 301, 302 and 304 may refer to corresponding steps of the data backup method described with reference to fig. 2.
It can be seen that, according to the embodiment of the present invention, a plurality of data types to be backed up are obtained, each data type to be backed up corresponds to one priority, each priority corresponds to one synchronization frequency, data corresponding to the plurality of data types to be backed up is monitored according to the synchronization frequency, when it is monitored that new data occurs in the data corresponding to the data type i, and when the memory size of the new data is greater than a second factor threshold value, the new data is backed up to the server, and the data type i is any one of the plurality of data types to be backed up. Therefore, the method can be used for reducing the access frequency to the server by adjusting the synchronization frequency, and by setting the second preset threshold, the server is accessed only when the memory size of the new data is larger than the second preset threshold, so that the access amount of the server can be reduced.
In accordance with the above, please refer to fig. 4, which is a flowchart illustrating a data backup method according to a third embodiment of the present invention. The data backup method described in this embodiment includes the following steps:
401. the method comprises the steps of obtaining a plurality of data types to be backed up, wherein each data type to be backed up corresponds to a priority, and each priority corresponds to a synchronous frequency.
402. And monitoring the data corresponding to the types of the data to be backed up according to the synchronous frequency.
403. And when the situation that the data corresponding to the data type i has new data is monitored, determining the current electric quantity of the mobile terminal.
The mobile terminal can detect the running state of the battery, and therefore current electric quantity is obtained.
404. And judging whether the current electric quantity can finish the backup of the new data to the server or not.
Optionally, the mobile terminal may determine an expected backup electric quantity according to the size of the memory of the new data, and if the current electric quantity is greater than the expected backup electric quantity, it indicates that the current electric quantity can complete the backup of the new data to the server. And if the current electric quantity is less than or equal to the expected backup electric quantity, the current electric quantity is proved to be incapable of completing the backup of the new data to the server. The mobile terminal may determine the expected backup power according to the size of the memory of the new data, and the specific implementation manner may be as follows: the mobile terminal can obtain its backup record and further determine how much data can be transmitted when consuming 1% of the power. Thus, the memory size of the new data may be determined to result in the expected amount of backup power.
405. And when the current electric quantity can finish the backup of the new data to the server, the new data is backed up to the server, and the data type i is any one of the multiple data types to be backed up.
Optionally, when the current electric quantity cannot finish the backup of the new data to the server, the user is prompted to charge, if the mobile terminal is in a charging state, the new data is backed up to the server, and the data type i is any one of a plurality of data types to be backed up.
Steps 401, 402 and 405 may refer to corresponding steps of the data backup method described with reference to fig. 2.
It can be seen that, according to the embodiment of the present invention, a plurality of data types to be backed up are obtained, each data type to be backed up corresponds to one priority, each priority corresponds to one synchronization frequency, data corresponding to the plurality of data types to be backed up is monitored according to the synchronization frequency, when it is monitored that new data occurs in the data corresponding to the data type i, and when the memory size of the new data is greater than a second factor threshold value, the new data is backed up to the server, and the data type i is any one of the plurality of data types to be backed up. Therefore, the method can be used for reducing the access frequency to the server by adjusting the synchronous frequency, and data backup can be performed only when the current electric quantity can complete data backup of new data, so that the access quantity of the server can be reduced, and the success rate of the data backup can be ensured.
In accordance with the foregoing, the following is an apparatus for performing the data backup method, and specifically the following:
please refer to fig. 5a, which is a schematic structural diagram of an embodiment of a mobile terminal according to an embodiment of the present invention. The mobile terminal described in this embodiment includes: the acquiring unit 501, the monitoring unit 502 and the backup unit 503 are specifically as follows:
an obtaining unit 501, configured to obtain multiple data types to be backed up, where each data type to be backed up corresponds to a priority, and each priority corresponds to a synchronization frequency;
a monitoring unit 502, configured to monitor data corresponding to the multiple types of data to be backed up according to the synchronization frequency;
the backup unit 503 is configured to backup, when it is monitored that new data occurs in data corresponding to a data type i, the new data to a server, where the data type i is any one of the multiple data types to be backed up.
Alternatively, as shown in fig. 5b, the backup unit 503 of the terminal depicted in fig. 5a may include: the first determining module 5031 and the first backup module 5032 are as follows:
a first determining module 5031, configured to determine whether a current access amount of the server exceeds a preset load threshold;
a first backup module 5032, configured to perform the backup of the new data to the server within a preset time period when the current access amount of the server exceeds the load threshold.
Alternatively, as shown in fig. 5c, the backup unit 503 of the terminal depicted in fig. 5a may include: the second determining module 4033 and the second backup module 5034 are as follows:
a second determining module 5033, configured to determine whether the size of the memory occupied by the new data exceeds a first preset threshold;
a second backup module 5034, configured to, when the determination result of the first determination module is that the size of the memory occupied by the new data exceeds the first preset threshold, split the new data into a plurality of data packets, and backup the plurality of data packets to the server by using multiple threads or multiple processes;
the second backup module 5034 is further specifically configured to:
and when the size of the memory occupied by the new data is smaller than or equal to the first preset threshold value, backing up the new data to the server.
Optionally, as shown in fig. 5d, fig. 5d is a modified structure of fig. 5c, which further includes: the first determining unit 504 is specifically as follows:
the first determining unit 504 is configured to determine whether the memory size of the new data is larger than a second preset threshold when it is monitored that the new data occurs in the data corresponding to the data type i, and when the determination result of the first determining unit 504 is that the memory size of the new data is larger than the second preset threshold, the backup unit 503 backs up the new data to the server.
Optionally, as shown in fig. 5e, fig. 5e is a modified structure of fig. 5c, which further includes: the determining unit 505 and the second judging unit 506 are specifically as follows:
a determining unit 505, configured to determine a current electric quantity of the mobile terminal when it is monitored that new data occurs in data corresponding to the data type i;
a second determining unit 506, configured to determine whether the current power amount can complete the backup of the new data to the server, and if the determination result of the second determining unit 506 is that the current power amount can complete the backup of the new data to the server, the backup unit 503 backs up the new data to the server.
It can be seen that, by the embodiment of the present invention, a plurality of data types to be backed up are obtained, each data type to be backed up corresponds to one priority, and each priority corresponds to one synchronization frequency; monitoring data corresponding to the types of the data to be backed up according to the synchronous frequency; when it is monitored that new data occurs in data corresponding to a data type i, the new data is backed up to a server, and the data type i is any one of the multiple data types to be backed up. Thus, the number of requests to the server can be reduced, and the server load can be reduced.
Fig. 6 is a schematic structural diagram of a mobile terminal according to a second embodiment of the present invention. The mobile terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, e.g., a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 being connected by a bus 5000.
The input device 1000 may be a touch panel, a physical button, or a mouse.
The output device 2000 may be a display screen.
The memory 4000 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 4000 is used for storing a set of program codes, and the input device 1000, the output device 2000 and the processor 3000 are used for calling the program codes stored in the memory 4000 to execute the following operations:
the processor 3000 is configured to:
acquiring a plurality of data types to be backed up, wherein each data type to be backed up corresponds to a priority, and each priority corresponds to a synchronous frequency;
monitoring data corresponding to the types of the data to be backed up according to the synchronous frequency;
when it is monitored that new data occurs in data corresponding to a data type i, the new data is backed up to a server, and the data type i is any one of the multiple data types to be backed up.
Optionally, the processor 3000 backs up the new data to the server, including:
judging whether the current access amount of the server exceeds a preset load threshold value or not;
and when the current access amount of the server exceeds the load threshold value, executing the backup of the new data to the server within a preset time period.
Optionally, the processor 3000 backs up the new data to the server, including:
judging whether the size of the memory occupied by the new data exceeds a first preset threshold value or not;
when the size of the memory occupied by the new data exceeds the first preset threshold value, splitting the new data into a plurality of data packets, and backing up the data packets to the server by adopting multiple threads or multiple processes;
and when the size of the memory occupied by the new data is smaller than or equal to the first preset threshold value, backing up the new data to the server.
Optionally, before backing up the new data to the server, the processor 3000 is further specifically configured to:
judging whether the memory size of the new data is larger than a second preset threshold value or not;
and when the memory size of the new data is larger than the second preset threshold, executing the backup of the new data to the server.
Optionally, before backing up the new data to the server, the processor 3000 is further specifically configured to:
determining the current electric quantity of the mobile terminal;
judging whether the current electric quantity can finish the backup of the new data to the server;
and when the current electric quantity can finish the backup of the new data to the server, executing the backup of the new data to the server.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the computer storage medium includes some or all of the steps of any one of the data backup methods described in the above method embodiments.
While the invention has been described in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the word "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. A computer program stored/distributed on a suitable medium supplied together with or as part of other hardware, may also take other distributed forms, such as via the Internet or other wired or wireless telecommunication systems.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the invention has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the invention. Accordingly, the specification and figures are merely exemplary of the invention as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the invention. It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (5)

1. A method for data backup, comprising:
acquiring a plurality of data types to be backed up, wherein each data type to be backed up corresponds to a priority, and each priority corresponds to a synchronous frequency; the corresponding relation between the priority and the synchronous frequency is set before monitoring the data corresponding to the multiple data types to be backed up; each type of data to be backed up corresponds to a synchronization frequency;
monitoring data corresponding to the types of the data to be backed up according to the synchronous frequency;
when it is monitored that new data appear in the data corresponding to the data type i, judging whether the current access amount of the server exceeds a preset load threshold value or not, and judging whether the size of a memory occupied by the new data exceeds a first preset threshold value or not; determining the current electric quantity of the mobile terminal, and judging whether the current electric quantity can finish the backup of the new data to the server; when the current electric quantity can finish backing up the new data to the server, the current access quantity of the server exceeds the load threshold value, and the size of the memory occupied by the new data exceeds the first preset threshold value, splitting the new data into a plurality of data packets, and backing up the new data to the server within a preset time period; when the current electric quantity can finish backing up the new data to the server, the size of a memory occupied by the new data is smaller than or equal to the first preset threshold, and the current access quantity of the server exceeds the load threshold, backing up the new data to the server within a preset time period, wherein the data type i is any one of the multiple data types to be backed up; the new data refers to data which does not appear at the last monitoring moment; the preset time period is obtained by counting the user access amount in a period of time and marking the time period in which the user access amount is less than a certain threshold value.
2. The method of claim 1, wherein prior to said backing up the new data to the server, the method further comprises:
judging whether the memory size of the new data is larger than a second preset threshold value or not;
and when the memory size of the new data is larger than the second preset threshold, executing the backup of the new data to the server.
3. A mobile terminal, comprising:
the device comprises an acquisition unit, a synchronization unit and a synchronization unit, wherein the acquisition unit is used for acquiring a plurality of data types to be backed up, each data type to be backed up corresponds to a priority, and each priority corresponds to a synchronization frequency; the corresponding relation between the priority and the synchronous frequency is set before monitoring the data corresponding to the multiple data types to be backed up; each type of data to be backed up corresponds to a synchronization frequency;
the monitoring unit is used for monitoring the data corresponding to the types of the data to be backed up according to the synchronous frequency;
the backup unit includes: first judging module, second judging module and second judging unit
The first judging module is used for judging whether the current access amount of the server exceeds a preset load threshold value or not when the situation that the data corresponding to the data type i has new data is monitored;
the second judging module is used for judging whether the memory size occupied by the new data exceeds a first preset threshold value or not when the situation that the new data corresponding to the data type i appears is monitored;
the determining unit is used for determining the current electric quantity of the mobile terminal when monitoring that the data corresponding to the data type i has new data;
the second judging unit is configured to judge whether the current electric quantity can complete the backup of the new data to the server;
the data backup method comprises the steps of dividing the new data into a plurality of data packets when the current electric quantity can finish backup of the new data to the server, the current access quantity of the server exceeds the load threshold value, and the size of the memory occupied by the new data exceeds the first preset threshold value, and backing up the new data to the server within a preset time period; when the current electric quantity can finish backing up the new data to the server, the size of a memory occupied by the new data is smaller than or equal to the first preset threshold, and the current access quantity of the server exceeds the load threshold, backing up the new data to the server within a preset time period; the data type i is any one of the plurality of data types to be backed up; the new data refers to data which does not appear at the last monitoring moment; the preset time period is obtained by counting the user access amount in a period of time and marking the time period in which the user access amount is less than a certain threshold value.
4. The mobile terminal of claim 3, wherein the mobile terminal further comprises:
the first judging unit is used for judging whether the memory size of the new data is larger than a second preset threshold value or not when the situation that the new data corresponding to the data type i appears is monitored, and the backup unit backs up the new data to the server when the judging result of the first judging unit shows that the memory size of the new data is larger than the second preset threshold value.
5. A mobile terminal, comprising:
a processor and a memory; wherein the processor performs the method of any one of claims 1 to 2 by calling code or instructions in the memory.
CN201610977295.7A 2016-11-07 2016-11-07 Data backup method and mobile terminal Active CN106569917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610977295.7A CN106569917B (en) 2016-11-07 2016-11-07 Data backup method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610977295.7A CN106569917B (en) 2016-11-07 2016-11-07 Data backup method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106569917A CN106569917A (en) 2017-04-19
CN106569917B true CN106569917B (en) 2020-06-16

Family

ID=58539888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610977295.7A Active CN106569917B (en) 2016-11-07 2016-11-07 Data backup method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106569917B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874580A (en) * 2017-05-09 2018-11-23 上海爱数信息技术股份有限公司 A kind of method backed up parallel, system, device and the medium of database
CN107315657B (en) * 2017-06-19 2020-09-29 浙江大华技术股份有限公司 Data backup method and device
CN107688513A (en) * 2017-09-02 2018-02-13 长沙曙通信息科技有限公司 A kind of disaster tolerant backup system data recovery prejudges implementation method
CN110084371B (en) * 2019-03-27 2021-01-15 平安国际智慧城市科技股份有限公司 Model iteration updating method and device based on machine learning and computer equipment
CN112527560A (en) * 2020-12-09 2021-03-19 广州技象科技有限公司 Data backup method and device based on self-adaption of Internet of things terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155018A (en) * 2006-09-28 2008-04-02 华为技术有限公司 Data synchronization method and its implementing device and system
CN102346784A (en) * 2011-11-14 2012-02-08 苏州阔地网络科技有限公司 Database backup method and system
CN105162820A (en) * 2015-06-25 2015-12-16 广东欧珀移动通信有限公司 Data synchronous method and equipment
CN105183585A (en) * 2015-08-27 2015-12-23 北京金山安全软件有限公司 Data backup method and device
CN105224421A (en) * 2015-10-19 2016-01-06 北京金山安全软件有限公司 Data backup method and device and electronic equipment
CN105511985A (en) * 2015-12-01 2016-04-20 魅族科技(中国)有限公司 Data backup method and terminal
CN105637841A (en) * 2013-10-17 2016-06-01 微软技术许可有限责任公司 Data classification for adaptive synchronization

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155018A (en) * 2006-09-28 2008-04-02 华为技术有限公司 Data synchronization method and its implementing device and system
CN102346784A (en) * 2011-11-14 2012-02-08 苏州阔地网络科技有限公司 Database backup method and system
CN105637841A (en) * 2013-10-17 2016-06-01 微软技术许可有限责任公司 Data classification for adaptive synchronization
CN105162820A (en) * 2015-06-25 2015-12-16 广东欧珀移动通信有限公司 Data synchronous method and equipment
CN105183585A (en) * 2015-08-27 2015-12-23 北京金山安全软件有限公司 Data backup method and device
CN105224421A (en) * 2015-10-19 2016-01-06 北京金山安全软件有限公司 Data backup method and device and electronic equipment
CN105511985A (en) * 2015-12-01 2016-04-20 魅族科技(中国)有限公司 Data backup method and terminal

Also Published As

Publication number Publication date
CN106569917A (en) 2017-04-19

Similar Documents

Publication Publication Date Title
CN106569917B (en) Data backup method and mobile terminal
CN111414334B (en) File fragment uploading method, device, equipment and storage medium based on cloud technology
US10871985B2 (en) Displaying media files between changes in states of an application client
CN107832100B (en) APK plug-in loading method and terminal thereof
CN108063818B (en) Data downloading method, device, terminal and computer readable storage medium
CN112650575B (en) Resource scheduling method, device and cloud service system
CN111800462A (en) Micro-service instance processing method and device, computer equipment and storage medium
CN110032321B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN105786839A (en) Application data acquisition method and apparatus
CN112799925A (en) Data acquisition method and device, electronic equipment and readable storage medium
US10938773B2 (en) Method and apparatus for synchronizing contact information and medium
CN107784085B (en) Data list exporting method and terminal thereof
CN109388737B (en) Method and device for sending exposure data of content item and storage medium
CN113791867B (en) Method and application for adjusting KVM virtual machine service process priority
CN105138344A (en) Method and system for randomly generating screensaver according to picture hotness
CN108762983B (en) Multimedia data recovery method and device
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
CN112153719B (en) Communication method, device, system and computer readable storage medium
CN111130834B (en) Method and device for processing network elasticity strategy
CN111400630A (en) Resource preloading method and related equipment
CN108958808A (en) Method for starting terminal and device, terminal and storage medium
CN110704157B (en) Application starting method, related device and medium
CN114048059A (en) Method and device for adjusting timeout time of interface, computer equipment and storage medium
CN104850551B (en) Data processing method and device and mobile terminal
CN108959955B (en) File processing method and device

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
CB02 Change of applicant information

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

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant