Summary of the invention
Technical matters to be solved by this invention is, the mode of a kind of data backup and recovery is provided, more difficult the makeing mistakes of work that can make backup and recovery.
In view of this, the invention provides a kind of backup and restoration methods, can comprise:step 302, what receive that the user sends carries out the triggering command of back up or restore at application program;Step 304, generation is used for the message that notification application is carried out back up or restore when receiving triggering command;Step 306 sends a message to application program, makes application program carry out back up or restore.By this technical scheme, communicate by message and application program, independently realize oneself backup and restore funcitons by application program, the possibility of can the minimizing program makeing mistakes.
In technique scheme, preferably, beforestep 302, can also comprise: obtain user's startup triggering command, start application program data are backed up and the function of recovering.In this technical scheme, the user can determine when to enable application's data backup and the function of recovering as required, guarantees can carry out at any time the back up or restore of data.
In technique scheme, preferably, can also comprise: request also receives the job schedule information of application program according to the situation generation of back up or restore.In this technical scheme, the user by job schedule information can be real-time the situation of understanding back up or restore.
In technique scheme, preferably, can also comprise: with the backup data store of application program in the catalogue of this application program correspondence.In this technical scheme, by catalogue is set the Backup Data of each application program is separately preserved, make and each application program is carried out data recover more to be difficult for makeing mistakes.
The present invention also provides a kind of backup and recovery device, can comprise: trigger module, and what receive that the user sends carries out the triggering command of back up or restore at application program; Message module, generation is used for the message that notification application is carried out back up or restore when receiving triggering command; Notification module sends a message to application program, makes application program carry out back up or restore.By this technical scheme, communicate by message and application program, independently realize oneself backup and restore funcitons by application program, the possibility of can the minimizing program makeing mistakes.
In technique scheme, preferably, can also comprise: backup and recovery submodule, be associated to application program, application program is by backing up and recovering submodule and carry out back up or restore.
In technique scheme, preferably, can also comprise: the progress module, request also receives the job schedule information of application program according to the situation generation of back up or restore.In this technical scheme, the user by job schedule information can be real-time the situation of understanding back up or restore.
In technique scheme, preferably, can also comprise: preserve module, with the backup data store of application program in the catalogue of application program correspondence.In this technical scheme, by catalogue is set the Backup Data of each application program is separately preserved, make and each application program is carried out data recover more to be difficult for makeing mistakes.
The present invention also provides a kind of terminal, can comprise: above-mentioned backup and recovery device.
In technique scheme, preferably, can also comprise: storage unit, be connected to backup and recovery device, backup is carried out back up or restore with recovery device to the data that the application program of terminal is kept in the storage unit.
Pass through technique scheme, can realize a kind of backup and restoration methods, a kind of backup and recovery device and a kind of terminal that possesses backup and recovery device, by in each application program, realizing the data backup and the restore funcitons of this program oneself, and come the backup of each application program is managed with resuming work by information receiving and transmitting, this is than being the corresponding backup of each application development in data backup and recovery routine and recover module, the probability of makeing mistakes in having reduced backup and having resumed work.
Embodiment
In order more to be expressly understood above-mentioned purpose of the present invention, feature and advantage, the present invention is further described in detail below in conjunction with the drawings and specific embodiments.
Set forth a lot of details in the following description so that fully understand the present invention, still, the present invention can also adopt other to be different from other modes described here and implement, and therefore, the present invention is not limited to the restriction of following public specific embodiment.
Fig. 3 is the process flow diagram of backup according to an embodiment of the invention and restoration methods.
As shown in Figure 3, the invention provides a kind of backup and restoration methods, can comprise:step 302, what receive that the user sends carries out the triggering command of back up or restore at application program;Step 304, generation is used for the message that notification application is carried out back up or restore when receiving triggering command;Step 306 sends a message to application program, makes application program carry out back up or restore.By this technical scheme, communicate by message and application program, independently realize oneself backup and restore funcitons by application program, the possibility of can the minimizing program makeing mistakes.
In technique scheme, beforestep 302, can also comprise: obtain user's startup triggering command, start application program data are backed up and the function of recovering.In this technical scheme, the user can determine when to enable application's data backup and the function of recovering as required, guarantees can carry out at any time the back up or restore of data.
In technique scheme, can also comprise: request also receives the job schedule information of application program according to the situation generation of back up or restore.In this technical scheme, the user by job schedule information can be real-time the situation of understanding back up or restore.
In technique scheme, can also comprise: with the backup data store of application program in the catalogue of this application program correspondence.In this technical scheme, by catalogue is set the Backup Data of each application program is separately preserved, make and each application program is carried out data recover more to be difficult for makeing mistakes.
By above technical scheme, can realize a kind of backup and restoration methods, communicate, independently realize backup and the restore funcitons of oneself by application program by message and application program, make backup and restore funcitons when each program is researched and developed, realize, can reduce the possibility that program is made mistakes.
Fig. 4 is the block diagram of backup according to an embodiment of the invention and recovery device.
As shown in Figure 4, the present invention also provides a kind of backup and recovery device 400, can comprise: trigger module 402, and what receive that the user sends carries out the triggering command of back up or restore at application program; Message module 404, generation is used for the message that notification application is carried out back up or restore when receiving triggering command; Notification module 406 sends a message to application program, makes application program carry out back up or restore.By this technical scheme, communicate by message and application program, independently realize oneself backup and restore funcitons by application program, the possibility of can the minimizing program makeing mistakes.
In technique scheme, can also comprise: backup and recovery submodule 408, be associated to application program, application program is by backing up and recovering submodule 408 and carry out back up or restore.
In technique scheme, can also comprise fully: progress module 410, request also receives the job schedule information of application program according to the situation generation of back up or restore.In this technical scheme, the user by job schedule information can be real-time the situation of understanding back up or restore.
In technique scheme, can also comprise: preserve module 412, with the backup data store of application program in the catalogue of application program correspondence.In this technical scheme, by catalogue is set the Backup Data of each application program is separately preserved, make and each application program is carried out data recover more to be difficult for makeing mistakes.
By above technical scheme, can realize a kind of backup and recovery device, by this technical scheme, communicate by message and application program, independently realize oneself backup and restore funcitons by application program, the possibility of can the minimizing program makeing mistakes.
Fig. 5 is the block diagram of terminal according to an embodiment of the invention.
As shown in Figure 5, the present invention also provides a kind of terminal 500, can comprise: above-mentioned backup and recovery device 400.
In technique scheme, can also comprise: storage unit 502, be connected to backup and recovery device 400, the data that the application program of backup and 400 pairs of terminals of recovery device is kept in the storage unit 402 are carried out back up or restore.
By above technical scheme, can realize a kind of terminal, can be according to recovery among Fig. 2 embodiment and back-up device, application's data in the storage unit is backed up and recovers.Storage unit includes but not limited to internal memory and the storage card in the terminal.
Fig. 6 is the principle schematic of terminal according to an embodiment of the invention.
As shown in Figure 6, have backup in the terminal of one embodiment of the present of invention and recover total module 600 (being equivalent to the message module among Fig. 4 embodiment), this module communicates with recovering submodule with the backup of multiple corresponding application programs such as address list module 402A, calendaring module 402B, SMS module 402C, mail module 402D by message, to control a plurality of backups and to recover the backup of submodule and recover submodule work.Simultaneously, also comprise trigger module, be used for user's instruction is passed to backup and recovers total module (not shown).
For example, when the user need back up address list, on the interface of terminal, choose the address list option, as shown in Figure 7.The user confirms address list is carried out data backup, as shown in Figure 8, promptly enables address list module 402A.At this moment, backup comes the corresponding address list module 402A of notification communication record application program to back up with the total module 600 of recovery by message, and is the independent catalogue of address list program creation.Address list module 402A backups to data backup and recovers in the catalogue that total module 600 provides, simultaneously by the message informing backup with recover total module 600, tell its backup proceeds to what, the interface sectional drawing of terminal as shown in Figure 9 at this moment.Finish up to back-up job, as Figure 10, the user finishes in the terminal check back-up job.It will be appreciated by those skilled in the art that the application program that is applicable to the technical program, include but not limited to above-mentioned address list, calendar, note, mail or the like.
By technical scheme of the present invention, can realize a kind of backup and restoration methods, a kind of backup and recovery device and a kind of terminal that possesses backup and recovery device, by in each application program, realizing the data backup and the restore funcitons of this program oneself, and come the backup of each application program is managed with resuming work by information receiving and transmitting, this is than being the corresponding backup of each application development in data backup and recovery routine and recover module, the probability of makeing mistakes in having reduced backup and having resumed work.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.