CN106776135A - A kind of data back up method and device - Google Patents
A kind of data back up method and device Download PDFInfo
- Publication number
- CN106776135A CN106776135A CN201611131175.1A CN201611131175A CN106776135A CN 106776135 A CN106776135 A CN 106776135A CN 201611131175 A CN201611131175 A CN 201611131175A CN 106776135 A CN106776135 A CN 106776135A
- Authority
- CN
- China
- Prior art keywords
- data
- backup
- target software
- data file
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
Abstract
The embodiment of the invention discloses a kind of data back up method, data when cannot be operated for the screen in mobile terminal to target software are backed up, to prevent the loss of significant data.Present invention method includes:Receive backup instruction;Whether the target software in detection mobile terminal normally runs;If target software normally runs, according to backup instruction by the data backup of target software to default storage region.The embodiment of the present invention additionally provides a kind of data backup device, on the premise of normally being run for software in the terminal, the related data of software is backed up into default storage region, loss of data caused by cannot being operated with the screen for avoiding mobile terminal.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of data back up method and device.
Background technology
With the development of science and technology the various mobile terminals for being applied to daily life also develop vigorously, such as mobile phone, flat board
The application of the mobile terminals such as computer, personal digital assistant PDA so that the life of people more it is colorful it is colourful with it is convenient.
It is well known that mobile terminal is stored as people's life, work and a kind of indispensable instrument in study
The more data of owning user, such as contact person, photo, video, these data have larger important meaning for a user
Justice.However, widely using with the mobile terminal with touch function, during the use of mobile terminal, screen failure
Situation happen occasionally, i.e., mobile terminal causes to influence the normal of user to use for the touch operation of user without response.Example
Such as, when hardware fault causes screen failure, it is possible to the loss of the significant data such as log in system can be caused, caused
Make the stability of mobile terminal low, if user is not backed up, may result in the thorough loss of the related data of user.
In actual applications, except above-mentioned due to screen failure caused by hardware fault, mobile terminal is easy due to screen
Fragility, be also easy to occur in use other external force originals such as fall and screen is broken thus result in screen cannot bright screen,
So that screen hinders the backup to user's significant data in the terminal due to that cannot operate, or even in follow-up maintenance
It is likely to recover the screen function of mobile terminal, this will cause the loss of data of user, have a strong impact on Consumer's Experience.
Therefore, in sum, when non-software misoperation occurs in mobile terminal, a kind of method how is provided to user's
Data message is backed up to prevent the loss of important information, is those skilled in the art's problem demanding prompt solution.
The content of the invention
A kind of data back up method is the embodiment of the invention provides, before software in the terminal normally operation
Put, the related data of software is backed up into default storage region, caused by cannot being operated with the screen for avoiding mobile terminal
Loss of data.
In view of this, first aspect present invention provides a kind of data back up method, is applied to mobile terminal, it may include:
Receive backup instruction;
Whether the target software in detection mobile terminal normally runs;
If target software normally runs, according to backup instruction by the data backup of target software to default storage region.
With reference to the embodiment of the present invention in a first aspect, the first implementation method of the first aspect in the embodiment of the present invention
In, the method also includes:
Obtain the store path of target software;
The first data file of target software is obtained according to store path;
If the first data file is located in external memory, according to backup instruction by the data backup of target software to pre-
If storage region includes:The current data of target software is backed up to the second data file of external memory according to backup instruction
In.
With reference to the first implementation method of the first aspect of the embodiment of the present invention, in the first aspect of the embodiment of the present invention
In second implementation method, the method also includes:
If the first data file is located in internal memory, according to backup instruction by the data backup of target software to pre-
If storage region includes:The current data of target software is backed up to the second data file of external memory according to backup instruction
In, and the first data file backed up into external memory.
With reference to second implementation method of the first aspect of the embodiment of the present invention, in the first aspect of the embodiment of the present invention
In the third implementation method, the method also includes:
Detect in the first data file with the presence or absence of data;
If in the presence of, trigger according to backup instruction by the current data of target software back up to external memory second number
According to file, and the first data file is backed up into the step in external memory;
If not existing, the data backup of target software to default storage region is included according to backup instruction:According to standby
Part instruction backs up to the current data of target software in the second data file of external memory.
With reference to the embodiment of the present invention in a first aspect, the first implementation method of the first aspect of the embodiment of the present invention is to
Any one in three kinds of implementation methods, in the 4th kind of implementation method of the first aspect of the embodiment of the present invention, moves in detection
Before whether the target software in dynamic terminal normally runs, the method also includes:
Detect whether the current electric quantity of mobile terminal is more than predetermined threshold value;
If being less than, determine to need to carry out the target software of data backup according to preset rules.
With reference to the embodiment of the present invention in a first aspect, the first implementation method of the first aspect of the embodiment of the present invention is to
Any one in four kinds of implementation methods, in the 5th kind of implementation method of the first aspect of the embodiment of the present invention, according to standby
After part instruction is by the data backup of target software to default storage region, the method also includes:
Backup result is obtained, and user is pointed out according to backup result.
Second aspect present invention provides a kind of data backup device, is applied to mobile terminal, it may include:
Receiver module, for receiving backup instruction;
First detection module, for detecting whether the target software in mobile terminal normally runs;
Backup module, for when target software normally runs, then according to backup instruction by the data backup of target software
To default storage region.
With reference to the embodiment of the present invention in a first aspect, the first implementation method of the first aspect in the embodiment of the present invention
In, device also includes:
First acquisition module, the store path for obtaining target software;
Second acquisition module, the first data file for obtaining target software according to store path;
If the first data file is located in external memory, backup module, specifically for:According to backup instruction by target
The current data of software is backed up in the second data file of external memory.
With reference to the first implementation method of the first aspect of the embodiment of the present invention, in the first aspect of the embodiment of the present invention
In second implementation method, device also includes:
If the first data file is located in internal memory, backup module, specifically for:According to backup instruction by target
The current data of software is backed up in the second data file of external memory, and the first data file is backed up into external storage
In device.
With reference to second implementation method of the first aspect of the embodiment of the present invention, in the first aspect of the embodiment of the present invention
In the third implementation method, device also includes:
Second detection module, for whether there is data in the first data file of detection;
Trigger module, for when there are data, then triggers backup module according to backup instruction by the current of target software
In data backup to the second data file of external memory, and the first data file backed up into external memory;
If not existing data, backup module, specifically for:The current data of target software is backed up according to backup instruction
Into the second data file of external memory.
With reference to the embodiment of the present invention in a first aspect, the first implementation method of the first aspect of the embodiment of the present invention is to
Any one in three kinds of implementation methods, in the 4th kind of implementation method of the first aspect of the embodiment of the present invention, device is also wrapped
Include:
3rd detection module, for detecting the current electric quantity of mobile terminal whether more than predetermined threshold value;
Determining module, for when current electric quantity is less than predetermined threshold value, then determining to need to carry out data according to preset rules
The target software of backup.
With reference to the embodiment of the present invention in a first aspect, the first implementation method of the first aspect of the embodiment of the present invention is to
Any one in four kinds of implementation methods, in the 5th kind of implementation method of the first aspect of the embodiment of the present invention, device is also wrapped
Include:
3rd acquisition module, for obtaining backup result;
Reminding module, for being pointed out user according to backup result.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
A kind of data back up method is present embodiments provided, when target software in the terminal normally runs, can be with
According to the backup instruction for receiving by the data backup of target software to memory, so as in the screen of mobile terminal due to failure
Or other external force reasons and when cannot operate, data that can be in time to target software are backed up, effectively prevent it is mobile eventually
Data cannot be backed up caused by end cannot still operate screen after later period maintenance, be conducive to preventing the loss of significant data, and standby
Part method is simple, quick.
Brief description of the drawings
Fig. 1 is data back up method one embodiment schematic diagram in the embodiment of the present invention;
Fig. 2 is another embodiment schematic diagram of data back up method in the embodiment of the present invention;
Fig. 3 is another embodiment schematic diagram of data back up method in the embodiment of the present invention;
Fig. 4 is another embodiment schematic diagram of data back up method in the embodiment of the present invention;
Fig. 5 is data backup device one embodiment schematic diagram in the embodiment of the present invention;
Fig. 6 is another embodiment schematic diagram of data backup device in the embodiment of the present invention;
Fig. 7 is another embodiment schematic diagram of data backup device in the embodiment of the present invention;
Fig. 8 is another embodiment schematic diagram of data backup device in the embodiment of the present invention.
Specific embodiment
A kind of data back up method is the embodiment of the invention provides, before software in the terminal normally operation
Put, the related data of software is backed up into default storage region, caused by cannot being operated with the screen for avoiding mobile terminal
Loss of data.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model of present invention protection
Enclose.
Term " first ", " second ", " the 3rd ", " in description and claims of this specification and above-mentioned accompanying drawing
Four " etc. (if present) is for distinguishing similar object, without for describing specific order or precedence.Should manage
The data that solution is so used can be exchanged in the appropriate case, so that the embodiments described herein can be with except illustrating herein
Or the order beyond the content of description is implemented.Additionally, term " comprising " and " having " and their any deformation, it is intended that
Covering is non-exclusive to be included, for example, the process, method, system, product or the equipment that contain series of steps or unit need not be limited
In those steps or unit for clearly listing, but may include not list clearly or for these processes, method, product
Product or other intrinsic steps of equipment or unit.
In order to be best understood from a kind of data back up method disclosed in the embodiment of the present invention, first the embodiment of the present invention is applicable
Mobile terminal is described.Mobile terminal described by the embodiment of the present invention can include it is any possess display screen and communication and
The equipment of store function, for example:The smart machines such as panel computer, mobile phone, the mobile terminal can be provided with including following operation
System:Android, Linux, IOS, Windows etc., mobile terminal can be further fitted with based on installed operating system
Some application programs, the application program can be the system application pre-installed before mobile terminal dispatches from the factory, and such as mailbox application, setting is answered
With, music application, browser application, take pictures using etc., or user oneself install third-party application, such as QQ application,
Wechat application, Alipay application, microblogging application etc., do not limit specifically herein.
For ease of understanding, the idiographic flow in the embodiment of the present invention is described below, refers to Fig. 1, the present invention is real
Data back up method one embodiment includes in applying example:
101st, backup instruction is received;
In the present embodiment, user is when using mobile terminal, if finding the screen of mobile terminal because hardware fault cannot
The failure in response to operational order, or mobile terminal drop etc. external force reason cause screen cannot bright screen and operated
When, in order to prevent the loss of significant data, user can be input into backup instruction to mobile terminal, then mobile terminal can receive this
Backup instruction.
Specifically, because the screen of mobile terminal cannot be operated, then user can start the combination of mobile terminal
Strong, the strong function of the combination is to be designated as backup instruction, and in actual applications, it can be power key, volume key, Home that combination is strong
Two kinds or more in key of combination.
It is understood that the Macintosh can also include other, specifically can be all according to what is set on mobile terminal
Button is combined accordingly.Additionally, except the strong input for carrying out backup instruction of combination, it is also possible to which it is backup to utilize such as fingerprint
Instruction, in actual applications, the corresponding fingerprint of backup instruction can have been distinguished with the unblock fingerprint of mobile terminal, not done herein
Limit.
Further, in actual applications, in order to prevent loss of data, find that screen cannot respond to operation in user
Before, mobile terminal can aid in the user to carry out data backup in time, i.e., the backup instruction can also be triggered by mobile terminal itself,
I.e. whether mobile terminal can occur exception with the display function of real-time detection screen, if there is exception, can be defaulted as receiving
To backup instruction.For example, it is assumed that mobile phone be mobile terminal, with mobile phone display screen curtain surrounding BM areas for, can by detection
BM regions determine whether to trigger the reception of backup instruction with luminance difference of the display screen under abnormal condition, if brightness
Difference is excessive, then can be defaulted as needing to carry out data backup, the reception of backup instruction can be triggered, conversely, can not then enter
Capable other operations.
102nd, whether the target software in detection mobile terminal normally runs, if so, step 103 is then performed, if it is not, then holding
Row step 104;
In the present embodiment, after mobile terminal receives backup instruction, can detect target software in mobile terminal whether just
Often operation.
Specifically, being provided with multiple applications in mobile terminal, the plurality of application can include the significant data of user, such as
Contact person, message registration, short message, photo, chat record, memorandum etc..In general, the screen of mobile terminal cannot be grasped
In the case of work, if the software application of the above-mentioned significant data of correspondence is normal, then related data can be backed up, to prevent
The loss of data.Therefore, after backup instruction is received, can detect whether the target software in mobile terminal normally runs.
In actual applications, whether the mode normally run of target software in detection mobile terminal has various, below with
Two ways is illustrated:
1st, test system can be provided with mobile terminal, the test system, can after mobile terminal receives backup instruction
Built with to test environment, it is possible to which being run in test environment needs the target software of test, in the survey of target software
During examination, can be with the running status of monitoring objective software, it is possible to judge whether target software is normal according to the running status
Operation;
2nd, mobile terminal can be monitored to the key point of target software, and the key point can include but is not limited to key
File, registry entry, environmental variance, the critical file can include but is not limited to system file, program file, configuration file,
Key point according to monitoring can be analyzed to the operation conditions of target software, it is possible to judge that target is soft according to analysis result
Whether part normally runs.
It should be noted that the mode whether target software in detection mobile terminal normally runs is except described above
Content, in actual applications, can also use other manner, as long as can detect whether target software normally runs, tool
Body is not limited herein.
It is understood that the target software in the present embodiment can be a software, or multiple softwares, specifically
Do not limit herein.
103rd, according to backup instruction by the data backup of target software to default storage region;
In the present embodiment, if the target software in detection mobile terminal normally runs, can be according to backup instruction by mesh
The data backup of software is marked to default storage region.
Specifically, mobile terminal can replicate the data of target software according to the backup instruction, and by the number of target software
According to backuping to default storage region.In actual applications, because target software can occur more new change, then the data can be with
Current data including target software, it is also possible to including the historical data stored before target software, to ensure in mobile terminal
All data of middle target software can back up to default storage region, prevent the omission of part important information.
In the present embodiment, the default storage region can be external memory, such as external SD card, or on server
Storage region, in actual applications, due to by the data backup of target software to server storage region need carry out
Network connection, then can combine network connection situation and default storage region is judged, can specifically be carried out according to actual conditions
Set, such as preferentially back up to external memory, or back up to external memory again in the case of without network connection, herein
Do not limit.
104th, other flows are performed.
In the present embodiment, if the target software irregular operating in detection mobile terminal, then meaning cannot be to target
The data of software are backed up, then can not carry out other operations.
In the present embodiment, when backup instruction is received, if the target software irregular operating in detecting mobile terminal
When, then can be according to the backup instruction for receiving by the data backup of target software to memory, it follows that working as mobile terminal
Screen when cannot be operated due to failure or other external force reasons, data that can be in time to target software are backed up, and are had
Effect avoid mobile terminal cannot still operate screen after later period maintenance and carry out data backup the occurrence of, be conducive to preventing
The only loss of significant data, and backup method is simple, quick.
It is understood that in the present embodiment, target software in the terminal regardless of whether there is data storage, Ke Yiyou
The data of target software, according to the difference of store path, can be carried out the backup of different modes by the store path of acquiescence, below
Illustrate respectively:
Fig. 2 is specifically referred to, another embodiment of data back up method includes in the embodiment of the present invention:
Step 201 in the present embodiment is identical with the step 101 in embodiment illustrated in fig. 1, and here is omitted.
202nd, whether the target software in detection mobile terminal normally runs, if so, step 203 is then performed, if it is not, then holding
Row step 206;
Step 202 in the present embodiment is identical with the step 102 in embodiment illustrated in fig. 1, and here is omitted.
203rd, the store path of target software is obtained;
In the present embodiment, if detect target software normally running, then illustrate target software data can carry out it is standby
Part, then the store path of target software can be obtained, to determine the backup mode of the data of target software.
Specifically, no matter whether target software has historical data to be stored in the terminal, target software can
With corresponding store path, the store path can serve to indicate that the storage region of the historical data of target software, for example, false
If it is Tengxun's Video Applications that target is soft, then corresponding store path can be for such as:SD card Android data
Com.tencent.qqlive files, in actual applications, otherwise the historical data of target software is stored in internal memory
In, or being stored in external memory, then the store path of target software can correspond to historical data in internal memory
Storage region, or correspondence storage region of the historical data in external memory.
204th, the first data file of target software is obtained according to store path;
In the present embodiment, after obtaining the store path of target software, the of target software can be obtained according to store path
One data file.
Specifically, can serve to indicate that the storage region of the historical data of target software due to store path, then according to
Store path can find the storage region, it is possible to the first data file of target software is obtained in the storage region.
For example, it is assumed that target software is Tengxun's Video Applications, the store path illustrated in step 203 is continued to use:SD card
Android data com.tencent.qqlive files, Android files can be found in SD card, it is possible to
Data files are found in Android files, then com.tencent.qqlive files are found from data files, most
The files files for being obtained from com.tencent.qqlive files afterwards can think the first data of Tengxun's Video Applications
File.
It is understood that the historical data of the target software that can be stored with actual applications, in the first data file,
Can also be sky, typically rely on whether mobile terminal carries out the storage of historical data, not limit herein.
If the 205, the first data file is located in external memory, according to backup instruction that the current data of target software is standby
In part to the second data file of external memory;
In the present embodiment, after obtaining the first data file of target software according to store path, if the first data file position
In external memory, the current data of target software can be backed up to the second data of external memory according to backup instruction
In file.
If specifically, the first data file is located in external memory, then illustrate that the historical data of target software is being entered
On the premise of row storage, the historical data is located in external memory, and the historical data need not be backed up, then the first data
File can be remained in external storage region.Further, in actual applications, the data of target software are likely to occur more
New message may be received in new change, such as short message application, it is also possible to which part of short message is deleted, in order to target software
Data carry out Overall Backup, can be backed up the current data of target software, you can with external memory newly-built
Two data files, it is possible to which the current data of target software is copied in the second data file.
It is understood that in order to be conducive to distinguishing the first data file and the second data file, being easy to user to target
The data of software are checked or are safeguarded, the first data file and the second data file can be named with time point or
Mark, so that obtaining user can distinguish the historical data and current data of target software by time point with the very first time.
It should be noted that after the historical data of target software is backed up in the second data file of external memory, can
To generate the store path of second data file, so that the second data file can be obtained according to the store path.
Step 206 in the present embodiment is identical with the step 104 in embodiment illustrated in fig. 1, and here is omitted.
Fig. 3 is specifically referred to, another embodiment of data back up method includes in the embodiment of the present invention:
Step 301 in the present embodiment is identical with the step 101 in embodiment illustrated in fig. 1, and here is omitted.
302nd, whether the target software in detection mobile terminal normally runs, if so, step 303 is then performed, if it is not, then holding
Row step 308;
Step 302 in the present embodiment is identical to step 204 with the step 202 in embodiment illustrated in fig. 2 to step 304,
Here is omitted.
If the 305, the first data file is located in internal memory, data are whether there is in the first data file of detection, if
It is then to perform step 306, if it is not, then performing step 307;
In the present embodiment, after obtaining the first data file of target software according to store path, if the first data file position
In internal memory, can detect that the first data file whether there is data.
Specifically, the historical data of the target software that can be stored with the first data file, or empty, actually should
It is real in order to reduce the first data file to be backed up when the first data file is located in internal memory in
The treatment load that border is backed up, can detect to the first data file.Wherein, if being stored with mesh in the first data file
The historical data of software is marked, be i.e. there are data in the first data file, then the need for illustrating that the first data file has backup, if
First data file is sky, i.e. do not exist data in the first data file, then illustrate the need that the first data file is not backed up
Will.
During the 306th, the current data of target software to be backed up to the second data file of external memory according to backup instruction,
And during the first data file backed up into external memory;
In the present embodiment, when there are data in detecting the first data file, can be according to backup instruction by target software
Current data back up to the second data file of external memory, it is possible to the first data file is backed up into external storage
In device.
Specifically, there are data in the first data file, it is meant that the target software that is stored with the first data file is gone through
History data, the need for being backed up, then the first data file can be copied in external memory, meanwhile, based on Fig. 2
The partial content of step 205 explanation in illustrated embodiment, because the data of target software are likely to occur more new change, also having can
Part of short message that can be in such as short message application is deleted, then in order to the data to target software carry out Overall Backup, can be by
The current data of target software is backed up, you can with newly-built second data file in external memory, it is possible to by target
The current data of software is directly copied in the second data file.
It is understood that in order to be conducive to distinguishing the first data file and the second data file, being easy to user to target
The data of software are checked or are safeguarded, the first data file and the second data file can be named with time point or
Mark, so that obtaining user can distinguish the historical data and current data of target software by time point with the very first time.
It should be noted that after the historical data of target software is backed up in the second data file of external memory, can
To generate the store path of second data file, so that the second data file can be obtained according to the store path.Meanwhile, the first number
Corresponding modification will be carried out according to the corresponding store path of file, to allow to according to amended store path in external storage
The first data file is obtained in device.
During the 307th, the current data of target software to be backed up to the second data file of external memory according to backup instruction;
In the present embodiment, when not existing data in detecting the first data file, can be according to backup instruction by target
The current data of software is backed up in the second data file of external memory.
If specifically, not existing data in the first data file, it is meant that soft without storage target in the first data file
The historical data of part, the need for not backed up, then only can back up to external memory by the current data of target software
The second data file in, the storage mode of current data with step 306 illustrate content it is consistent, here is omitted.
Although it is understood that do not backed up to the first data file in external memory, but still can with when
Between o'clock the second data file is named or marked, to facilitate the follow-up behaviour to the related data in external memory of user
Make.
It should be noted that after the historical data of target software is backed up in the second data file of external memory, can
To generate the store path of second data file, so that the second data file can be obtained according to the store path.
Step 308 in the present embodiment is identical with the step 104 in embodiment illustrated in fig. 1, and here is omitted.
It is understood that mobile terminal can consume electricity during data backup, in order to preferentially to mobile terminal
In significant data backed up, the electricity of mobile terminal can be detected, be specifically described below:
Fig. 4 is specifically referred to, another embodiment of data back up method includes in the embodiment of the present invention:
Step 401 in the present embodiment is identical with the step 101 in embodiment illustrated in fig. 1, and here is omitted.
402nd, whether the current electric quantity of detection mobile terminal is more than predetermined threshold value, if it is not, step 403 is then performed, if so, then
Perform step 407;
In the present embodiment, after backup instruction is received, whether the current electric quantity of mobile terminal can be detected more than default
Threshold value.
Specifically, data backup needs to expend the electricity of mobile terminal, and Backup Data is more, it is meant that electricity expends to be got over
Greatly, and in the terminal in the multiple applications installed, and the data of not all application are required for being backed up, and can have important
Using (including user need significant data) and secondary application (including user need low priority data) point, then in movement
In the case that terminal may be backed up to the data of target software, the current electric quantity of mobile terminal can be detected, with
Prevent in the case of mobile terminal not enough power supply, it is the backup of the data of target software to miss to important application.
It is understood that the predetermined threshold value can be set before mobile terminal dispatches from the factory, or user enters
Row setting, does not limit specifically herein.
403rd, determine to need to carry out the target software of data backup according to preset rules;
In the present embodiment, if the current electric quantity of detection mobile terminal is not more than predetermined threshold value, can be according to preset rules
It is determined that needing to carry out the target software of data backup.
Specifically, the setting for passing through predetermined threshold value, can preferentially carry out data backup to the important application in mobile terminal,
I.e. when the current electric quantity of mobile terminal is not more than predetermined threshold value, it may be determined that need to carry out the target software of data backup, should
Target software includes the significant data of user's needs, such as contact person, photo, chat record, in actual applications, the needs
The target software for carrying out data backup can be one, or multiple, can in the terminal be set in advance by user,
Can also be by mobile terminal according to statistics default setting.
Further, the target software for needing to carry out data backup can be finely divided with reference to predetermined threshold value, with can
Data backup is preferably carried out according to current electric quantity, for example, it is assumed that predetermined threshold value is 20%, it is necessary to carry out the target of data backup
Software can be contact application, phone application, recording application, short message application, memorandum application, wechat application, then in order to keep away
When exempting from electricity less than 20%, prior a certain target software in the above-mentioned target software for needing and carry out data backup may be caused
Data cannot be backed up, 15%, 10%, 5% setting below predetermined threshold value, can be carried out, and can be according to data
The importance of backup to the above-mentioned sequence for needing the target software for carrying out data backup to carry out priority, as shown in table 1.Can manage
Solution, by way of example only, i.e., interval corresponding needs are carried out the content of the explanation of table 1 in the present embodiment where current electric quantity
The target software of data backup, in actual applications, should be configured according to actual needs, not limit herein specifically.
Table 1
404th, whether the target software in detection mobile terminal normally runs, if so, step 405 is then performed, if it is not, then holding
Row step 407;
Step 404 in the present embodiment is identical to step 103 with the step 102 in embodiment illustrated in fig. 1 to step 405,
Here is omitted.
Further, in the present embodiment in the step of 405, when mobile terminal start to carry out the data of target software it is standby
During part, in order to prevent causing backup to interrupt the backup failure for causing due to not enough power supply, a default electricity threshold can be set up
Value, the default power threshold can be equal to or less than predetermined threshold value, when the electricity of mobile terminal is less than default power threshold, can
To point out user to charge mobile terminal, to meet the electric quantity consumption in data backup procedure.Specifically, prompting mode can
To include but is not limited to voice message, breath light prompting, vibration prompting etc..
406th, backup result is obtained, and user is pointed out according to backup result;
In the present embodiment, according to backup instruction by the default storage region of the data backup of target software to mobile terminal
In after, backup result can be obtained, it is possible to user is pointed out according to backup result.
Specifically, the experience in order to improve user, after the data backup to target software terminates, it is possible to use all
Mode such as voice carries out the prompting of backup result to user, for example, on the one hand, it is assumed that back up successfully, mobile terminal can be sent out
Go out tucket, or directly send the voice of " backing up successfully " to be pointed out, on the other hand, the data of target software are in backup procedure
In be also possible to occur interrupted caused by the reasons such as not enough power supply, and cause the data backup failure of target software, then mobile
Terminal can also be failed by voice message user ID so that user can actively to take other measure to carry out data standby
Part.
It is understood that the mode pointed out user according to backup result in the present embodiment is except described above
Content, in actual applications, or other, such as pointed out accordingly using breath light, do not limit herein specifically.
Step 407 in the present embodiment is identical with the step 104 in embodiment illustrated in fig. 1, and here is omitted.
It is understood that in the present embodiment, if the current electric quantity for detecting mobile terminal is more than predetermined threshold value, then say
The current electricity of bright mobile terminal can meet the data backup of target software, wherein, the target software can include step 403
The target software of middle explanation, can also include other softwares, and the preferential counterweight when the not enough power supply of mobile terminal is illustrated with this
The target software wanted carries out data backup, then, in actual applications, when the current electric quantity of mobile terminal is more than predetermined threshold value
When, the content that can be illustrated in embodiment as shown in Figure 1 is normally carried out data backup operation.
The data back up method in the embodiment of the present invention is described above, below to the number in the embodiment of the present invention
It is described according to back-up device, the data backup device can apply to mobile terminal, Fig. 5 is referred to, in the embodiment of the present invention
Data backup device one embodiment includes:
Receiver module 501, for receiving backup instruction;
First detection module 502, for detecting whether the target software in mobile terminal normally runs;
Backup module 503, it is for when target software normally runs, then according to backup instruction that the data of target software are standby
Part to default storage region.
In the present embodiment, when receiver module 501 receives backup instruction, if first detection module 502 detects movement
When target software in terminal normally runs, then backup module 503 can be according to the backup instruction for receiving by the number of target software
According in backing up to memory, it follows that when the screen of mobile terminal cannot be operated due to failure or other external force reasons,
Data that can be in time to target software are backed up, and effectively prevent mobile terminal cannot still operate screen after later period maintenance
And carry out data backup the occurrence of, be conducive to preventing the loss of significant data, and backup method is simple, quick.
Fig. 6 is referred to, another embodiment of data backup device includes in the embodiment of the present invention:
Module 601 in the present embodiment is identical with the module 501 in embodiment illustrated in fig. 5, and module 602 is real with shown in Fig. 5
The module 502 applied in example is identical, and here is omitted.
First acquisition module 603, the store path for obtaining target software;
Second acquisition module 604, the first data file for obtaining target software according to store path;
Backup module 605, for when the first data file is located in external memory, then according to backup instruction by target
The current data of software is backed up in the second data file of external memory.
Fig. 7 is referred to, another embodiment of data backup device includes in the embodiment of the present invention:
Module 701 in the present embodiment is identical with the module 601 in embodiment illustrated in fig. 6, and module 702 is real with shown in Fig. 6
The module 602 applied in example is identical, and module 703 is identical with the module 603 in embodiment illustrated in fig. 6, and module 704 is real with shown in Fig. 6
The module 604 applied in example is identical, and here is omitted.
Second detection module 705, for whether there is data in the first data file of detection;
, for being located in internal memory when the first data file, and there are data in the first file in backup module 706
When, then during the current data of target software to back up to the second data file of external memory according to backup instruction, and by
One data file is backed up in external memory;
Trigger module 707, for when there are data, then trigger backup module according to backup instruction working as target software
In preceding data backup to the second data file of external memory, and the first data file backed up into external memory.
In the present embodiment, backup module 706 is additionally operable in the first data file is located at internal memory, and the first text
When not existing data in part, then the current data of target software is backed up to the second data of external memory according to backup instruction
In file.
Fig. 8 is referred to, another embodiment of data backup device includes in the embodiment of the present invention:
Module 801 in the present embodiment is identical with the module 501 in embodiment illustrated in fig. 5, and here is omitted.
3rd detection module 802, for detecting the current electric quantity of mobile terminal whether more than predetermined threshold value;
Determining module 803, for when current electric quantity is less than predetermined threshold value, then determining to need into line number according to preset rules
According to the target software of backup;
Module 804 in the present embodiment is identical with the module 502 in embodiment illustrated in fig. 5, and module 805 is real with shown in Fig. 5
The module 503 applied in example is identical, and here is omitted.
3rd acquisition module 806, for obtaining backup result;
Reminding module 807, for being pointed out user according to backup result.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example multiple units or component
Can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.It is another, it is shown or
The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces
Close or communicate to connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is to realize in the form of SFU software functional unit and as independent production marketing or use
When, can store in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part for being contributed to prior art in other words or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are used to so that a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to preceding
Embodiment is stated to be described in detail the present invention, it will be understood by those within the art that:It still can be to preceding
State the technical scheme described in each embodiment to modify, or equivalent is carried out to which part technical characteristic;And these
Modification is replaced, and does not make the spirit and scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution.
Claims (12)
1. a kind of data back up method, is applied to mobile terminal, it is characterised in that including:
Receive backup instruction;
Detect whether the target software in the mobile terminal normally runs;
If the target software normally runs, the data backup of the target software is deposited to default according to the backup instruction
Storage area domain.
2. data back up method according to claim 1, it is characterised in that methods described also includes:
Obtain the store path of the target software;
The first data file of the target software is obtained according to the store path;
If first data file is located in external memory, it is described according to the backup instruction by the target software
Data backup to default storage region includes:According to the backup instruction backs up to the current data of the target software
In second data file of external memory.
3. data back up method according to claim 2, it is characterised in that methods described also includes:
If first data file is located in internal memory, it is described according to the backup instruction by the target software
Data backup to default storage region includes:According to the backup instruction backs up to the current data of the target software
In second data file of external memory, and first data file backed up into the external memory.
4. data back up method according to claim 3, it is characterised in that methods described also includes:
Detect in first data file with the presence or absence of data;
If in the presence of triggering described the current data of the target software is backed up into described external deposit according to the backup instruction
In second data file of reservoir, and first data file is backed up to the step in the external memory;
If not existing, it is described according to the backup instruction by the data backup of the target software to default storage region bag
Include:The current data of the target software is backed up to the second data file of the external memory according to the backup instruction
In.
5. data back up method according to any one of claim 1 to 4, it is characterised in that in the detection shifting
Before whether the target software in dynamic terminal normally runs, methods described also includes:
Detect whether the current electric quantity of mobile terminal is more than predetermined threshold value;
If being less than, determine to need to carry out the target software of data backup according to preset rules.
6. data back up method according to any one of claim 1 to 4, it is characterised in that described according to described standby
After part instruction is by the data backup of the target software to default storage region, methods described also includes:
Backup result is obtained, and user is pointed out according to the backup result.
7. a kind of data backup device, is applied to mobile terminal, it is characterised in that including:
Receiver module, for receiving backup instruction;
First detection module, for detecting whether the target software in the mobile terminal normally runs;
Backup module, for when the target software normally runs, then according to the backup instruction by the target software
Data backup is to default storage region.
8. data backup device according to claim 7, it is characterised in that described device also includes:
First acquisition module, the store path for obtaining the target software;
Second acquisition module, the first data file for obtaining the target software according to the store path;
If first data file is located in external memory, the backup module, specifically for:Referred to according to the backup
Order backs up to the current data of the target software in the second data file of the external memory.
9. data back up method according to claim 8, it is characterised in that described device also includes:
If first data file is located in internal memory, the backup module, specifically for:Referred to according to the backup
Order backs up to the current data of the target software in the second data file of the external memory, and described first is counted
According in file backup to the external memory.
10. data backup device according to claim 9, it is characterised in that described device also includes:
Second detection module, for detecting in first data file with the presence or absence of data;
Trigger module, for when there are the data, then triggering the backup module according to the backup instruction by the mesh
The current data of mark software is backed up in the second data file of the external memory, and first data file is backed up
Into the external memory;
If not existing the data, the backup module, specifically for:According to the backup instruction by the target software
Current data is backed up in the second data file of the external memory.
11. data backup device according to any one of claim 7 to 10, it is characterised in that described device also includes:
3rd detection module, for detecting the current electric quantity of mobile terminal whether more than predetermined threshold value;
Determining module, for when the current electric quantity is less than predetermined threshold value, then determining to need to carry out data according to preset rules
The target software of backup.
12. data backup device according to any one of claim 7 to 10, it is characterised in that described device also includes:
3rd acquisition module, for obtaining backup result;
Reminding module, for being pointed out user according to the backup result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611131175.1A CN106776135A (en) | 2016-12-09 | 2016-12-09 | A kind of data back up method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611131175.1A CN106776135A (en) | 2016-12-09 | 2016-12-09 | A kind of data back up method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106776135A true CN106776135A (en) | 2017-05-31 |
Family
ID=58879638
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611131175.1A Pending CN106776135A (en) | 2016-12-09 | 2016-12-09 | A kind of data back up method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106776135A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109361767A (en) * | 2018-12-06 | 2019-02-19 | 苏州思必驰信息科技有限公司 | Optimize server-side, client process method and the server of client data display error, be able to carry out the client that data are shown |
CN110781504A (en) * | 2019-09-27 | 2020-02-11 | 深圳市大拿科技有限公司 | Data protection method and related equipment |
CN112527566A (en) * | 2020-12-24 | 2021-03-19 | 广东芬尼科技股份有限公司 | Equipment power-down operation parameter read-write abnormity protection method, system and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103312855A (en) * | 2012-03-09 | 2013-09-18 | 中兴通讯股份有限公司 | Information backup method and device, and mobile terminal |
CN103870356A (en) * | 2012-12-11 | 2014-06-18 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105302673A (en) * | 2015-11-20 | 2016-02-03 | 小米科技有限责任公司 | Information backup method and device and terminal |
CN105511985A (en) * | 2015-12-01 | 2016-04-20 | 魅族科技(中国)有限公司 | Data backup method and terminal |
CN105607971A (en) * | 2015-12-24 | 2016-05-25 | 努比亚技术有限公司 | Data backup device and method |
CN106055428A (en) * | 2016-05-24 | 2016-10-26 | 努比亚技术有限公司 | Method and apparatus for backing up data |
-
2016
- 2016-12-09 CN CN201611131175.1A patent/CN106776135A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103312855A (en) * | 2012-03-09 | 2013-09-18 | 中兴通讯股份有限公司 | Information backup method and device, and mobile terminal |
CN103870356A (en) * | 2012-12-11 | 2014-06-18 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105302673A (en) * | 2015-11-20 | 2016-02-03 | 小米科技有限责任公司 | Information backup method and device and terminal |
CN105511985A (en) * | 2015-12-01 | 2016-04-20 | 魅族科技(中国)有限公司 | Data backup method and terminal |
CN105607971A (en) * | 2015-12-24 | 2016-05-25 | 努比亚技术有限公司 | Data backup device and method |
CN106055428A (en) * | 2016-05-24 | 2016-10-26 | 努比亚技术有限公司 | Method and apparatus for backing up data |
Non-Patent Citations (2)
Title |
---|
宋晓明,: "PDA在路基施工检测数据处理中的应用研究", 《中国优秀硕士学位论文全文数据库 工程科技II辑(月刊)》 * |
韦健,等;: "CMACast系统县级小站的安装与维护", 《宁夏农林科技》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109361767A (en) * | 2018-12-06 | 2019-02-19 | 苏州思必驰信息科技有限公司 | Optimize server-side, client process method and the server of client data display error, be able to carry out the client that data are shown |
CN109361767B (en) * | 2018-12-06 | 2021-11-02 | 思必驰科技股份有限公司 | Processing method for optimizing client data display error, server and client |
CN110781504A (en) * | 2019-09-27 | 2020-02-11 | 深圳市大拿科技有限公司 | Data protection method and related equipment |
CN112527566A (en) * | 2020-12-24 | 2021-03-19 | 广东芬尼科技股份有限公司 | Equipment power-down operation parameter read-write abnormity protection method, system and storage medium |
CN112527566B (en) * | 2020-12-24 | 2023-11-21 | 广东芬尼科技股份有限公司 | Method, system and storage medium for protecting read-write abnormality of equipment power-down operation parameters |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5572726B2 (en) | Program and information processing method | |
CN103401991B (en) | A kind of method and apparatus that the communication event of terminal unit is pointed out | |
US8335549B2 (en) | Method for power management of mobile communication terminal and mobile communication terminal using this method | |
CN106412858B (en) | A kind of method and terminal for robbing red packet | |
CN106060909A (en) | Network access method and mobile terminal | |
CN101466115A (en) | Failure detection method, system and mobile terminal | |
CN104270533A (en) | Event reminding method and device | |
CN104572328A (en) | Control method and device | |
CN106776135A (en) | A kind of data back up method and device | |
CN106527899A (en) | Full-screen playing mode control method and mobile terminal | |
CN107608724A (en) | A kind of method, terminal and computer-readable recording medium for managing application program | |
CN109800098A (en) | Service exception node positioning method, device, computer equipment and storage medium | |
CN106534467A (en) | Screen abnormity processing method and processing device, and terminal | |
CN106570370A (en) | User identity identification method and device | |
CN106708616A (en) | Process control method and process control device | |
CN103870319B (en) | Information processing method, device and electronic equipment | |
CN103902011A (en) | Electronic device controlling method and electronic device | |
CN106657660A (en) | Information prompting method and apparatus | |
CN106909387A (en) | Multi-screen display method and device | |
CN105979058A (en) | Method and device for recording voice content | |
CN105511745A (en) | Information processing method and electronic device | |
CN109344104A (en) | Electronic equipment and method for transmitting signals | |
CN104699535B (en) | A kind of information processing method and electronic equipment | |
CN109408282A (en) | Application Backup restoration methods, equipment and computer readable storage medium | |
CN108920704A (en) | File access pattern method, file restoring device and mobile terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170531 |