CN107315658A - A kind of data back up method and device, computer installation and readable storage medium storing program for executing - Google Patents

A kind of data back up method and device, computer installation and readable storage medium storing program for executing Download PDF

Info

Publication number
CN107315658A
CN107315658A CN201710495104.8A CN201710495104A CN107315658A CN 107315658 A CN107315658 A CN 107315658A CN 201710495104 A CN201710495104 A CN 201710495104A CN 107315658 A CN107315658 A CN 107315658A
Authority
CN
China
Prior art keywords
data
backup
destination application
application
running background
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710495104.8A
Other languages
Chinese (zh)
Inventor
陈丽芹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201710495104.8A priority Critical patent/CN107315658A/en
Publication of CN107315658A publication Critical patent/CN107315658A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of data back up method and device, computer installation and readable storage medium storing program for executing, for being backed up to the intended application for being transferred to running background, when being closed to solve the application program of running background in the prior art by system, easily occur the problem of application data is lost.Present invention method includes:Detect the running status of destination application;If detect destination application is transferred to running background from front stage operation, the data to destination application are backed up, to obtain Backup Data.

Description

A kind of data back up method and device, computer installation and readable storage medium storing program for executing
Technical field
The present invention relates to terminal control field, and in particular to a kind of data back up method and device, computer installation and can Read storage medium.
Background technology
With more prevalentization that mobile phone is used, mobile phone has become the article closely bound up with our life.User During using mobile phone, often in shorter duration, multiple applications are used alternatingly, such as, user is applied using A During, B applications can be opened temporarily, after of short duration use B applications, it may be desirable to continue the process of A applications.In order in user again When secondary opening A is applied, the opening duration of application is reduced at the interface before can continuing, and multitasking technique helps terminal to expire The foot demand of user, that is to say, that after A applications are switched to B to apply by user, mobile phone allows A applications to reside in backstage, Rather than directly close A applications.
But, as the application installed in mobile phone increases, mobile phone backstage, which is often resident, widely applies, and wastes system money Source, influences the normal operation of mobile phone.In order to solve the above problems, prior art is applied in backstage residence time mistake detecting It is long, or mobile phone system resource it is not enough when, part background application can be closed, to discharge the system resource of its occupancy.
Therefore, even if user does not close the application of some running background actively, also easily automatic close will for cell phone system The application, can so cause the application closed automatically by system to lose data, when user, which reopens this, to apply, the application Display interface will be unable to continue before interface, such as can not show the data edited in this application before user, reduction is used Experience at family.
The content of the invention
The embodiments of the invention provide a kind of data back up method and device, computer installation and readable storage medium storing program for executing, use When the application program for solving running background in the prior art is closed by system, it may occur that the problem of application data is lost.
The one side of the embodiment of the present invention provides a kind of information processing method, including:
Detect the running status of destination application;
If detect the destination application is transferred to running background from front stage operation, to the destination application Data are backed up, to obtain Backup Data.
With reference in a first aspect, in the first possible implementation of first aspect, the data back up method is also wrapped Include:
, should to the target using the Backup Data if receiving the front stage operation instruction of the destination application Recovered with the data of program, and control the destination application to run on the foreground of the terminal.
With reference to the first possible implementation of first aspect, in second of possible implementation of first aspect In, the data to destination application, which carry out backup, to be included:
Record the running background duration of the destination application;
If the running background duration is more than or equal to preset duration threshold value, to the data of the destination application Backed up.
With reference to second of possible implementation of first aspect, in the third possible implementation of first aspect In, the data to the destination application are backed up, and are included with obtaining Backup Data:
The data of the destination application are backed up according to prefixed time interval, to obtain multiple Backup Datas.
With reference to the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect In, it is described that the data progress recovery of the destination application is included using the Backup Data:
Obtain multiple Backup Datas of the destination application and be shown;
Receive the selection instruction of a Backup Data in multiple Backup Datas for displaying;
The data of the destination application are recovered using a Backup Data corresponding with the selection instruction;
Delete other backups beyond a Backup Data corresponding with the selection instruction in the multiple Backup Data Data.
The second aspect of the embodiment of the present invention provides a kind of data backup device, applied to terminal, including:
The data backup device includes:
Detection module, the running status for detecting destination application;
Backup module, for when detecting the destination application and being transferred to running background from front stage operation, to described The data of destination application are backed up, to obtain Backup Data.
With reference to second aspect, in the first possible implementation of second aspect, the data backup device is also wrapped Include:
Recovery module, for when the front stage operation for receiving the destination application is instructed, using the backup number Recover according to the data to the destination application, and control the destination application to run on before the terminal Platform.
With reference to the first possible implementation of second aspect, in second of possible implementation of second aspect In, the backup module includes:
Recording unit, the running background duration for recording the destination application;
Backup units, for when the running background duration be more than or equal to preset duration threshold value when, according to it is default when Between be spaced the data of the destination application backed up, to obtain multiple Backup Datas.
The third aspect of the embodiment of the present invention provides a kind of computer installation, it is characterised in that the computer installation Including processor, the processor realizes such as first aspect or first party when being used to perform the computer program stored in memory The step of any one possible implementation of face.
The fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, is stored thereon with computer journey Sequence, it is characterised in that:Realized when the computer program is executed by processor as first aspect or first aspect are any one The step of planting possible implementation.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
The present invention is transferred to after running background from foreground detecting destination application, can be to destination application Data are backed up, and obtain Backup Data, it is to avoid the loss of data of intended application, so, are answered even if system closes target automatically With, receive destination application front stage operation instruction when, can also be carried according to Backup Data in front stage operation intended application High Consumer's Experience.
Brief description of the drawings
Fig. 1 is data back up method one embodiment schematic diagram of the present invention;
Fig. 2 is another embodiment schematic diagram of data back up method of the present invention;
Fig. 3 is another embodiment schematic diagram of data back up method of the present invention;
Fig. 4 is Backup Data displayed page one embodiment schematic diagram of the present invention;
Fig. 5 is Backup Data selection page one embodiment schematic diagram of the present invention;
Fig. 6 is data backup device one embodiment schematic diagram of the present invention;
Fig. 7 is another embodiment schematic diagram of data backup device of the present invention;
Fig. 8 is computer installation one embodiment schematic diagram of the present invention.
Embodiment
The embodiments of the invention provide a kind of data back up method and device, computer installation and readable storage medium storing program for executing, use Backed up in the intended application to being transferred to running background.
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, the technical scheme in the embodiment of the present invention is clearly and completely described, 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 that the present invention is protected Enclose.
Term " first ", " second ", " the 3rd " in description and claims of this specification and above-mentioned accompanying drawing, " The (if present)s such as four " are for distinguishing similar object, without for describing specific order or precedence.It 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.In addition, term " comprising " and " having " and their any deformation, it is intended that Covering is non-exclusive to be included, for example, containing process, method, system, product or the equipment of series of steps or unit need not limit In those steps or unit for clearly listing, but may include not list clearly or for these processes, method, production Product or the intrinsic other steps of equipment or unit.
The method that the present invention is protected is applied to terminal, and common terminal includes mobile phone, tablet personal computer, intelligent watch etc..
For ease of understanding, the idiographic flow in the embodiment of the present invention is described below, referring to Fig. 1, the present invention is real Applying data back up method one embodiment in example includes:
101st, the running status of destination application is detected;
The running status of application program generally comprises " starting ", " front stage operation ", " running background " and " not transported OK ", the present invention can be detected to the running status of all or part of application program in terminal, be described for convenience, will The object of detection is referred to as destination application.
If the 102, detect destination application is transferred to running background from front stage operation, to the data of destination application Backed up, to obtain Backup Data.
During being detected to the running status of destination application, if detecting destination application from foreground Operation is transferred to running background, then the data of destination application can be backed up, obtain Backup Data.
The data backed up can be all or part of data of destination application, and the data of backup are more, backup Process it is time-consuming longer, efficiency is lower, and take memory space it is more;, should to recovering target and the data backed up are very few Played a part of with the data of program smaller, therefore in actual applications, can select to need the target backed up should as needed With the data of program.Generally, the data of the destination application of backup can include scene record data, for recording The use state of destination application, such as man-machine interface level relation, using common configuration, top level page current cache etc., The data of backup can also include the currently used state of destination application, such as input circle of the user in destination application The data of face editor.The data of backup can also include other data of destination application, not do exclusive restriction herein.
The embodiment of the present invention can detect the running status of destination application, and detect destination application in the past When platform operation is transferred to running background, the data to destination application are backed up, to obtain Backup Data, accordingly even when working as mesh Mark is applied during running background, and system closes intended application automatically, and terminal can also receive destination application Front stage operation instruction when, according to Backup Data in front stage operation intended application, improve Consumer's Experience.Such as, Backup Data is worked as During page data including application, when user is again turned on intended application, before the display interface of intended application can continue The interface of display.
Referring to Fig. 2, another embodiment of data back up method includes in the embodiment of the present invention:
201st, the running status of destination application is detected;
Step 101 in step 201 embodiment corresponding with Fig. 1 is identical, and here is omitted.
If the 202, detecting destination application to be transferred to after running background, record destination application from front stage operation Platform operation duration;
During being detected to the running status of destination application, if detecting destination application from foreground Running background is transferred to, then can record the running background duration of destination application.Specifically, intended application can detected When program is transferred to running background from foreground, timer is opened, duration is recorded, is used as running background duration.
If the 203, running background duration is more than or equal to preset duration threshold value, the data to destination application are carried out Backup, to obtain Backup Data;
When the running background duration of record is more than or equal to preset duration threshold value, the data to destination application are carried out Backup, to obtain Backup Data.Preset duration threshold value can be fixed, or user-defined, not limit herein It is fixed.
On preset duration threshold value, it is necessary to consider that following factor is rationally set:Threshold value is smaller, the possibility of loss of data Property it is lower, limiting case is not perform step 202, is being detected when destination application is transferred to running background just directly to mesh The data of mark application program are backed up, but threshold value is smaller, and the possibility of the wasting of resources is bigger, because in the running background time The probability that shorter application program is closed by system is very low;Conversely, threshold value is bigger, the possibility of the wasting of resources is smaller, but number It is bigger according to the risk of loss.In addition, preset duration threshold value can be according to the different and different of destination application, such as excellent The higher destination application of first level, preset duration threshold value can be smaller, and for the relatively low destination application of priority, in advance If duration threshold value can be with larger.
Data on backup refer to the description content of step 102 in the corresponding embodiments of Fig. 1, and here is omitted.
If the front stage operation instruction of destination application the 204, is received, using Backup Data to destination application Data are recovered, and control targe application program runs on the foreground of terminal.
After the data of destination application back up obtaining Backup Data, destination application may continue to keep Background operation state, it is also possible to be closed and in off-duty state (such as because user imprudence remove background application or Person's terminal closes the destination application of running background automatically), when the front stage operation for receiving destination application is instructed, Backup Data can be used to recover the data of destination application, and control targe application program is run on before terminal Platform.
Application program still suffers from data and updated during running background, such as the downloading task of running background, with The extension of time, the data downloaded from server are continuously increased, such as the wechat of running background is still obtained in real time from server Take the chat message of renewal.When destination application is in background operation state, the data to destination application carry out one Secondary backup is obtained after first time Backup Data, if destination application continues for running the long period on backstage, now mesh The data of mark application program differ greatly with first time Backup Data, only preserve first time Backup Data, it is impossible to avoid loss standby Continue the data updated after part.In order to solve this problem, referring to Fig. 3, data back up method is another in the embodiment of the present invention Individual embodiment includes:
301st, the running status of destination application is detected;
Step 101 in step 301 embodiment corresponding with Fig. 1 is identical, and here is omitted.
If the 302nd, detect destination application is transferred to running background from front stage operation, and running background duration be more than or Equal to preset duration threshold value, then the data of destination application are backed up according to prefixed time interval, it is multiple standby to obtain Number evidence;
During being detected to the running status of destination application, if detecting destination application from foreground Running background is transferred to, and running background duration is more than or equal to preset duration threshold value, then can be according to prefixed time interval to mesh The data of mark application program are backed up, to obtain multiple Backup Datas.Such as, at the t1 moment, the backstage of destination application Operation duration is equal to preset duration threshold value, the data of destination application can now be backed up, obtain Backup Data 1; At the t2 moment, compared with the t1 moment and have passed through prefixed time interval, the data of destination application can now backed up, Obtain Backup Data 2;At the t3 moment, compared with the t2 moment and have passed through prefixed time interval, now can be to intended application journey The data of sequence are backed up, and obtain Backup Data 3, the like, it is not in running background up to detecting destination application Only, it is assumed that obtain 5 Backup Datas, i.e. 1~Backup Data of Backup Data 5.Above only as an example, in actual use, it is not necessary to Start backup when the running background duration of destination application is equal to preset duration threshold value, can also be grown up in running background Backup is sometime proceeded by after preset duration threshold value.
Prefixed time interval can be fixed, or user-defined, not limit herein.During on presetting Between interval, it is necessary to consider that following factor is rationally set:Prefixed time interval is smaller, and the possibility of loss of data is lower, but It is bigger to the occupancy of system resource, it is necessary to frequently perform backup operation, takes a large amount of memory spaces;Conversely, preset time Interval is bigger, and the occupancy of resource is smaller, but the risk of loss of data is bigger.In addition, prefixed time interval can be according to target Application program it is different and different, such as the higher destination application of priority, prefixed time interval can be smaller, and For the relatively low destination application of priority, prefixed time interval can be with larger.
It should be noted that in actual use, backstage fortune can also be transferred to detecting destination application from foreground During row, just directly the data of destination application are backed up according to prefixed time interval, to obtain multiple Backup Datas, and Without being performed after being more than or equal to preset duration threshold value in running background duration.Reason see the corresponding embodiments of Fig. 2 Relevant explanation in middle step 203, here is omitted.
If the 303, receiving the front stage operation instruction of destination application, multiple backup numbers of destination application are obtained According to and be shown;
The data of destination application are backed up according to prefixed time interval, with after obtaining multiple Backup Datas, Destination application may continue to keep background operation state, it is also possible to be closed and in off-duty state (such as because with Family imprudence removes the destination application that background application or terminal close running background automatically), when receiving target During the front stage operation instruction of application program, multiple Backup Datas of destination application can be obtained and be shown.In this hair In bright embodiment, as an example, 1~Backup Data of Backup Data 5 can be shown.It should be noted that to backup number It is not limited to be shown all the elements of Backup Data according to being shown, it is preferred that can only show Backup Data pair The backup time answered, corresponding Backup Data is represented with backup time.Assuming that the corresponding backup of 1~Backup Data of Backup Data 5 Moment is followed successively by t1, t2, t3, t4, t5, then, user can be showed using t1, t2, t3, t4, t5 as five options, for Family is selected.
304th, the selection instruction of a Backup Data in multiple Backup Datas for displaying is received;
After user selects a Backup Data from the Backup Data of displaying, it can receive for the multiple standby of displaying The selection instruction of number Backup Data in.Assuming that being shown in step 303 using t1, t2, t3, t4, t5 as five options To user, selected for user, if user selects t1, can determine that user selects from 1~Backup Data of Backup Data 5 standby Number evidence is Backup Data 1.
305th, the data of destination application are recovered using a Backup Data corresponding with selection instruction, and controlled Destination application processed runs on the foreground of terminal;
Receive and be directed in multiple Backup Datas of displaying after the selection instruction of a Backup Data, can select and select Instruct a corresponding Backup Data to recover the data of destination application, such as receive the choosing to Backup Data 1 Select after instruction, Backup Data 1 can be used to recover the data of destination application, and control targe application program is transported Row is in the foreground of terminal.
306th, other Backup Datas in multiple Backup Datas beyond a Backup Data corresponding with selection instruction are deleted.
After step 304, it may be determined that the corresponding Backup Data 1 of selection instruction by the recovery for destination application, And other non-selected Backup Datas (2~Backup Data of Backup Data 5) continue the value preserved not in multiple Backup Datas Height, in order to save the memory space of terminal, after the step 304, can delete corresponding with selection instruction in multiple Backup Datas A Backup Data 1 beyond other Backup Datas (2~Backup Data of Backup Data 5).Therefore, as long as step 306 is in step Performed after rapid 304.
In order to make it easy to understand, the usage scenario of the user when the corresponding embodiments of Fig. 3 are applied to mobile phone is exemplified below:
User can open backup functionality in mobile phone, and select the application program that needs to back up, including QQ, wechat and excellent Cruel video.In a certain section of time range, the program in the mobile phone of user in running background includes QQ, wechat, youku.com's video, hundred Browser is spent, because QQ, wechat and youku.com's video by user elect the destination application for needing to back up as, therefore, as QQ, micro- Letter, youku.com's video are when running background duration is more than or equal to preset duration threshold value, such as 1 hour, QQ, wechat, youku.com regarded The data of frequency will be backed up according to prefixed time interval (such as per half an hour).User can select to check Backup Data, now Mobile phone will show the backup instances of QQ, wechat and youku.com's video to user, refer to shown in Fig. 4.
Assume afterwards cell phone system because free memory is too small and by background application Close All, when user selects to open When wechat is applied, mobile phone will show the backup time of multiple Backup Datas of wechat to user, refer to shown in Fig. 5, if user 30 points of 00 second corresponding Backup Datas when selecting 12, mobile phone will use number of 30 points of 00 second corresponding Backup Datas when 12 to wechat According to being recovered, and wechat is controlled to run on the foreground of terminal.
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.
Referring to Fig. 6, one embodiment of data backup device includes in the embodiment of the present invention:
Detection module 601, the running status for detecting destination application;
Backup module 602, should to target for when detecting destination application and being transferred to running background from front stage operation Backed up with the data of program, to obtain Backup Data.
Referring to Fig. 7, another embodiment of data backup device includes in the embodiment of the present invention:
Detection module 701, the running status for detecting destination application;
Backup module 702, should to target for when detecting destination application and being transferred to running background from front stage operation Backed up with the data of program, to obtain Backup Data.
Recovery module 703, for when the front stage operation for receiving destination application is instructed, using Backup Data to mesh The data of mark application program are recovered, and control targe application program runs on the foreground of terminal.
Wherein, backup module 702 includes:
Recording unit 7021, the running background duration for recording destination application;
Backup units 7022, for when running background duration be more than or equal to preset duration threshold value when, according to it is default when Between be spaced the data of destination application backed up, to obtain multiple Backup Datas.
The embodiment of the present invention additionally provides a kind of computer installation 8, as shown in figure 8, for convenience of description, illustrate only with The related part of the embodiment of the present invention, particular technique details is not disclosed, refer to present invention method part.The calculating Machine device 8 can be to include mobile phone, tablet personal computer, personal digital assistant (English full name:Personal Digital Assistant, english abbreviation:PDA), any terminal device such as intelligent watch.
With reference to Fig. 8, computer installation 8 includes:Power supply 810, memory 820, display unit 830, processor 840 and deposit Store up the computer program that can be run in memory 820 and on processor 840.Processor 840 performs real during computer program Step 101 in step in each existing above-mentioned data back up method embodiment, such as corresponding embodiments of Fig. 1 is to 102.Or Person, processor 840 realizes each module or the function of unit in above-mentioned each device embodiment when performing computer program.
Exemplary, computer program can be divided into one or more module/units, and one or more module/ Unit is stored in memory, and by computing device, to complete the present invention.One or more module/units can be energy The series of computation machine programmed instruction section of specific function is enough completed, the instruction segment is used to describe computer program in computer installation In implementation procedure.For example, referring to the corresponding embodiments of Fig. 6, computer program can be divided into detection module 601 and backup Module 602, each module concrete function is as follows:
Detection module 601, the running status for detecting destination application;
Backup module 602, should to target for when detecting destination application and being transferred to running background from front stage operation Backed up with the data of program, to obtain Backup Data.
It will be understood by those skilled in the art that the structure shown in Fig. 8 does not constitute the restriction to computer installation 8, can It is with including than illustrating more or less parts, either combining some parts or different parts arrangement, such as described to calculate Machine device can also include input-output equipment, network access equipment, bus etc..
Alleged processor 840 can be CPU (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng the processor is the control centre of the computer installation, utilizes various interfaces and the whole computer installation of connection Various pieces.
The memory can be used for storing the computer program and/or module, and the processor is by running or performing The computer program and/or module being stored in the memory, and the data being stored in memory are called, realize described The various functions of computer installation.The memory can mainly include storing program area and storage data field, wherein, storage program Area can be needed for storage program area, at least one function application program (such as sound-playing function, image player function etc.) Deng;Storage data field can be stored uses created data (such as voice data, phone directory etc.) etc. according to mobile phone.In addition, Memory can include high-speed random access memory, can also include nonvolatile memory, such as hard disk, internal memory, grafting Formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
If the integrated module/unit of the computer installation is realized using in the form of SFU software functional unit and as independent Production marketing in use, can be stored in a computer read/write memory medium.Understood based on such, the present invention is real All or part of flow in existing above-described embodiment method, can also instruct the hardware of correlation come complete by computer program Into described computer program can be stored in a computer-readable recording medium, and the computer program is being executed by processor When, the step of each above-mentioned embodiment of the method can be achieved.Wherein, the computer program includes computer program code, described Computer program code can be source code form, object identification code form, executable file or some intermediate forms etc..The meter Calculation machine computer-readable recording medium can include:Can carry any entity or device of the computer program code, recording medium, USB flash disk, Mobile hard disk, magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory Device (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..Need explanation It is that the content that the computer-readable medium is included can be fitted according to legislation in jurisdiction and the requirement of patent practice When increase and decrease, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier wave letter Number and telecommunication signal.
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, such as multiple units or component Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The coupling each other discussed 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, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown 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 selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member 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.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Embodiment is stated the present invention is described in detail, 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 substitution is carried out to which part technical characteristic;And these Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a kind of data back up method, applied to terminal, it is characterised in that the data back up method includes:
Detect the running status of destination application;
If detect the destination application is transferred to running background from front stage operation, to the data of the destination application Backed up, to obtain Backup Data.
2. data back up method according to claim 1, it is characterised in that the data back up method also includes:
If the front stage operation instruction of the destination application is received, using the Backup Data to the intended application journey The data of sequence are recovered, and control the destination application to run on the foreground of the terminal.
3. data back up method according to claim 2, it is characterised in that the data to destination application are carried out Backup includes:
Record the running background duration of the destination application;
If the running background duration is more than or equal to preset duration threshold value, the data to the destination application are carried out Backup.
4. data back up method according to claim 3, it is characterised in that the data to the destination application Backed up, included with obtaining Backup Data:
The data of the destination application are backed up according to prefixed time interval, to obtain multiple Backup Datas.
5. data back up method according to claim 4, it is characterised in that described to use the Backup Data to the mesh The data of mark application program, which carry out recovery, to be included:
Obtain multiple Backup Datas of the destination application and be shown;
Receive the selection instruction of a Backup Data in multiple Backup Datas for displaying;
The data of the destination application are recovered using a Backup Data corresponding with the selection instruction;
Delete other Backup Datas beyond a Backup Data corresponding with the selection instruction in the multiple Backup Data.
6. a kind of data backup device, applied to terminal, it is characterised in that the data backup device includes:
Detection module, the running status for detecting destination application;
Backup module, for when detecting the destination application and being transferred to running background from front stage operation, to the target The data of application program are backed up, to obtain Backup Data.
7. data backup device according to claim 6, it is characterised in that the data backup device also includes:
Recovery module, for when the front stage operation for receiving the destination application is instructed, using the Backup Data pair The data of the destination application are recovered, and control the destination application to run on the foreground of the terminal.
8. data backup device according to claim 6, it is characterised in that the backup module includes:
Recording unit, the running background duration for recording the destination application;
Backup units, for when the running background duration is more than or equal to preset duration threshold value, according between preset time Backed up every the data to the destination application, to obtain multiple Backup Datas.
9. a kind of computer installation, it is characterised in that the computer installation includes processor, the processor is deposited for execution The step of data back up method as any one of claim 1-5 is realized during the computer program stored in reservoir.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, it is characterised in that the computer program is processed The step of data back up method as any one of claim 1-5 is realized when device is performed.
CN201710495104.8A 2017-06-26 2017-06-26 A kind of data back up method and device, computer installation and readable storage medium storing program for executing Pending CN107315658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710495104.8A CN107315658A (en) 2017-06-26 2017-06-26 A kind of data back up method and device, computer installation and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710495104.8A CN107315658A (en) 2017-06-26 2017-06-26 A kind of data back up method and device, computer installation and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN107315658A true CN107315658A (en) 2017-11-03

Family

ID=60179507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710495104.8A Pending CN107315658A (en) 2017-06-26 2017-06-26 A kind of data back up method and device, computer installation and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN107315658A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762985A (en) * 2018-05-23 2018-11-06 Oppo广东移动通信有限公司 Data reconstruction method and Related product
CN112333497A (en) * 2020-09-28 2021-02-05 深圳Tcl新技术有限公司 User data display method, device, equipment and readable storage medium
CN113849339A (en) * 2020-06-28 2021-12-28 华为技术有限公司 Method, device and storage medium for recovering running state of application program
CN115202834A (en) * 2021-05-27 2022-10-18 华为技术有限公司 Task migration system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140148246A1 (en) * 2012-10-02 2014-05-29 Nextbit Systems Inc. Multi-player game state backup and restoration across multiple devices
CN104050035A (en) * 2014-05-14 2014-09-17 小米科技有限责任公司 Processing method and device for application program
CN104281504A (en) * 2014-10-30 2015-01-14 广东欧珀移动通信有限公司 MD5-code-based method and system applied to backup and reduction of application program data
CN105045675A (en) * 2015-06-12 2015-11-11 广东小天才科技有限公司 Method and device for realizing data backup in application
CN105404551A (en) * 2015-12-11 2016-03-16 Tcl移动通信科技(宁波)有限公司 Processing method and system for switching application between foreground and background of mobile terminal and mobile terminal
CN105516787A (en) * 2015-12-09 2016-04-20 深圳Tcl数字技术有限公司 Storage control method and device of application cache data
EP3070609A4 (en) * 2013-11-12 2016-12-28 Zte Corp Method and apparatus of automatically backing up application data and performing restoration as required

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140148246A1 (en) * 2012-10-02 2014-05-29 Nextbit Systems Inc. Multi-player game state backup and restoration across multiple devices
EP3070609A4 (en) * 2013-11-12 2016-12-28 Zte Corp Method and apparatus of automatically backing up application data and performing restoration as required
CN104050035A (en) * 2014-05-14 2014-09-17 小米科技有限责任公司 Processing method and device for application program
CN104281504A (en) * 2014-10-30 2015-01-14 广东欧珀移动通信有限公司 MD5-code-based method and system applied to backup and reduction of application program data
CN105045675A (en) * 2015-06-12 2015-11-11 广东小天才科技有限公司 Method and device for realizing data backup in application
CN105516787A (en) * 2015-12-09 2016-04-20 深圳Tcl数字技术有限公司 Storage control method and device of application cache data
CN105404551A (en) * 2015-12-11 2016-03-16 Tcl移动通信科技(宁波)有限公司 Processing method and system for switching application between foreground and background of mobile terminal and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴兴勇: "《实用网络技术》", 31 May 2015, 中国农业大学出版社 *
张辉: "《Protel 99 SE项目式教程》", 30 September 2014, 西南交通大学出版社 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762985A (en) * 2018-05-23 2018-11-06 Oppo广东移动通信有限公司 Data reconstruction method and Related product
CN108762985B (en) * 2018-05-23 2020-09-04 Oppo广东移动通信有限公司 Data recovery method and related product
CN113849339A (en) * 2020-06-28 2021-12-28 华为技术有限公司 Method, device and storage medium for recovering running state of application program
CN112333497A (en) * 2020-09-28 2021-02-05 深圳Tcl新技术有限公司 User data display method, device, equipment and readable storage medium
CN115202834A (en) * 2021-05-27 2022-10-18 华为技术有限公司 Task migration system and method
CN115202834B (en) * 2021-05-27 2023-04-28 华为技术有限公司 Task migration system and method

Similar Documents

Publication Publication Date Title
CN107315658A (en) A kind of data back up method and device, computer installation and readable storage medium storing program for executing
CN104866366B (en) Application program method for cleaning and device
CN109766701A (en) For the processing method of abnormal process end operation, device and electronic device
CN107147724A (en) A kind of information push method, server and computer-readable recording medium
CN103092700A (en) Internal memory cleaning method and cleaning device and terminal device
CN106292998A (en) The management method of a kind of running background program and terminal
CN103473343A (en) File management method, device and terminal
CN106155596A (en) Method for writing data and device
CN104765576B (en) A kind of date storage method and data storage device
US9451423B2 (en) Method and apparatus for recording information during a call
CN102136967A (en) Method, device and system for managing service state
CN104899049A (en) File deletion method and device
CN102131002B (en) A kind of data in mobile phone treating method and apparatus
CN107391199A (en) Using startup method and device, terminal and computer-readable recording medium
CN112508686A (en) Supply chain financial credit line post-processing method and system
CN106407762A (en) A setting method for application freezing configuration and a terminal apparatus
CN107016054A (en) A kind of method and device of log information storage
CN102523112A (en) Information processing method and equipment
CN106933655A (en) Event execution method and device
CN115330523A (en) Loan post-processing method and system based on block chain
CN108023944A (en) Cloud platform and its control method, smart machine and its control method
CN102932513A (en) Method and device for contact maintenance and equipment
CN107273275A (en) Progress bar dynamic refresh method and device in a kind of multiple data cells
CN108255536A (en) Application control method and server based on functional switch
CN106028292A (en) Channel distribution method and system for sending short messages

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

Application publication date: 20171103

RJ01 Rejection of invention patent application after publication