CN104252366A - System recovery method, device, processor and storage - Google Patents

System recovery method, device, processor and storage Download PDF

Info

Publication number
CN104252366A
CN104252366A CN201310263457.7A CN201310263457A CN104252366A CN 104252366 A CN104252366 A CN 104252366A CN 201310263457 A CN201310263457 A CN 201310263457A CN 104252366 A CN104252366 A CN 104252366A
Authority
CN
China
Prior art keywords
status file
instruction
storer
recover
system status
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.)
Granted
Application number
CN201310263457.7A
Other languages
Chinese (zh)
Other versions
CN104252366B (en
Inventor
管慧娟
郭琦
陆见微
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310263457.7A priority Critical patent/CN104252366B/en
Publication of CN104252366A publication Critical patent/CN104252366A/en
Application granted granted Critical
Publication of CN104252366B publication Critical patent/CN104252366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to the field of electronic equipment and discloses a system recovery method, a device, a processor and storage. The system recovery method comprises the following steps: performing a judging operation after normally starting a system; generating a first instruction when the system is judged to meet a preset condition, and causing the storage which receives the first instruction to store a present system state file loaded with a first identifier; when the system is abnormal and restarted and the system recovery is required, acquiring the lastly stored system state file in the storage according to the first identifier and accordingly recovering the system. According to the system recovery method disclosed by the invention, the recurrence for a problem appearing environment in the mode of the prior art is not required during a system recovery process and the step is simple, so that the efficiency of the system recovery is increased; the backup for the system is realized; the system is recovered to the last normal state; the operation finished during the period from the normal starting to the abnormal appearance of the system is stored.

Description

System recovery method, device, processor and storer
Technical field
The present invention relates to electronic device field, particularly relate to a kind of system recovery method, device, processor and storer.
Background technology
At application PC(personal computer, personal computer) machine or other electronic equipments, during as some embedded devices, there will be exception or the collapse of system, in this case, needing occurring that the system of abnormal problem is recovered.
In prior art, mainly contain two kinds to the mode that pathological system recovers, a kind of is reappear the environment gone wrong, that is, before system exception, which operation user performs, when reappearing problem context, then need to re-execute these operations in order; Another kind of system recovery method is the time point that the last system of acquisition normally starts, and by the state reduction of system to this time point.
But inventor finds in the research process of the application, when adopting first kind of way to carry out System recover, step is complicated, causes inefficiency; Adopt the second way when carrying out System recover, system can only be reduced to the time point that the last system normally starts, and system normally start to occur abnormal during this period of time in the work that completes will lose.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of system recovery method, device, processor and storer, to solve in prior art, the step of existence when utilizing first kind of way to carry out System recover is complicated, the problem of inefficiency, with this two problems of time point that system reducing normally can only be started to the last system existed in the second way, specific embodiments is as follows:
A kind of system recovery method, be applied to electronic equipment, be provided with storer in described electronic equipment, described system recovery method comprises:
After normal startup, judge whether to meet pre-conditioned, and meet described pre-conditioned time, produce the first instruction, to make described storer after receiving described first instruction, collect current system status file, and be store after described current system status file loads the first mark;
Occur abnormal and after restarting, according to the user instruction received, judge whether to need System recover;
If according to judged result, when determining to need to carry out System recover, according to described first mark, obtain the last system status file stored in described storer, and according to described system status file, system is recovered.
Preferably, described system recovery method also comprises:
Occur abnormal and after restarting, if according to the user instruction received, judge to learn when not needing to carry out System recover, obtain the last normal time point started of described system, and by described system reducing to state corresponding to described time point.
Preferably, described system recovery method also comprises:
Before normal end of run, produce the second instruction, to make described storer after receiving described second instruction, the described system status file stored is deleted.
Preferably, described in judge whether to meet pre-conditioned, comprising:
The time that judging distance normally starts, or whether reach Preset Time apart from the last time storing described system status file, if so, then explanation meets pre-conditioned;
And/or,
Judge whether the hard disk write data volume at every turn received reaches preset capacity, and if so, then explanation meets pre-conditioned;
And/or,
Judge whether writing system sensitive document or at sensitizing range writing in files, if so, then illustrate meet pre-conditioned.
Accordingly, the present invention also discloses a kind of system recovery method, is applied to electronic equipment, is provided with storer in described electronic equipment, and described system recovery method comprises:
First instruction of receiving system transmission;
Collect current system status file, for described current system status file loads the first mark, and described in storing, be loaded with the current system conditions file of the first mark.
Preferably, described system recovery method also comprises:
Receive described first instruction, and after storing current system status file, delete the last described system status file stored.
Preferably, described system recovery method also comprises:
The second instruction produced before receiving the normal end of run of described system;
After receiving described second instruction, the system status file being loaded with described first mark is deleted.
Accordingly, the present invention also discloses a kind of System recover device, is applied to electronic equipment, is provided with storer in described electronic equipment, and described System recover device comprises:
First command generation module, after normally starting, judge whether to meet pre-conditioned, and meet described pre-conditioned time, produce the first instruction, to make described storer after receiving described first instruction, collect current system status file, and be store after described current system status file loads the first mark;
, for there is exception and after restarting, according to the user instruction received, judging whether to need System recover in judge module;
System recover module, if for the judged result according to described judge module, when determining to need to carry out System recover, according to described first mark, obtain the last system status file stored in described storer, and according to described system status file, system is recovered.
Preferably, described System recover device also comprises:
System reducing module, for there is exception and after restarting, if according to the user instruction received, judge to learn when not needing to carry out System recover, obtain the last normal time point started of described system, and by the described system reducing state that extremely described time point is corresponding.
Preferably, described System recover device also comprises:
Second command generation module, before normal end of run, produces the second instruction, to make described storer after receiving described second instruction, is deleted by the described system status file stored.
Preferably, described first directive generation module comprises:
First judging unit, for the time that judging distance normally starts, or whether reach Preset Time apart from the last time storing described system status file, if so, then explanation meets pre-conditioned;
And/or,
Second judging unit, for judging whether the hard disk write data volume received reaches preset capacity, and if so, then explanation meets pre-conditioned at every turn;
And/or,
3rd judging unit, for judging whether writing system sensitive document or at sensitizing range writing in files, if so, then illustrate meet pre-conditioned.
Accordingly, the present invention also discloses a kind of processor, the chip of described processor is integrated with System recover device as above.
Accordingly, the present invention also discloses a kind of System recover device, is applied to electronic equipment, is provided with storer in described electronic equipment, and described System recover device comprises:
First receiver module, for the first instruction of receiving system transmission;
System status file memory module, for collecting current system status file, for described current system status file loads the first mark, and is loaded with the current system conditions file of the first mark described in storing.
Preferably, described System recover device also comprises:
First removing module, for receiving described first instruction, and after storing current system status file, deletes the last described system status file stored.
Preferably, described System recover device also comprises:
Second receiver module, for the second instruction produced before receiving the normal end of run of described system;
Second removing module, for after receiving described second instruction, deletes the system status file being loaded with described first mark.
Accordingly, the invention also discloses a kind of storer, the chip of described storer is integrated with System recover device as above.
Preferably,
Described storer is solid state hard disc.
System recovery method disclosed in the present application, after system normally starts, perform and judge operation, when judging to learn that system meets pre-conditioned, produce the first instruction, thus make the storer storage receiving described first instruction be loaded with the current system status file of the first mark; Occur abnormal in system and restart, and when needing to carry out System recover, then according to described first mark, inquiry obtains the last system status file stored in storer, and recovers system according to described system status file.
By system recovery method disclosed in the present application, when carrying out System recover, do not need the appearance environment of mode conventionally to problem to reappear, step is succinct, thus improves the efficiency of System recover; Further, can realize the backup to system, by System recover to the last normal state, saved system normally starts to the work occurring to complete extremely during this period of time.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The workflow schematic diagram of Fig. 1 a kind of system recovery method disclosed in the embodiment of the present invention;
Fig. 2 is the workflow schematic diagram of the embodiment of the present invention another system recovery method disclosed;
Fig. 3 is the workflow schematic diagram of the embodiment of the present invention another system recovery method disclosed;
The structural representation of Fig. 4 a kind of System recover device disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of the embodiment of the present invention another System recover device disclosed.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In order to solve in prior art, the step of existence when utilizing first kind of way to carry out System recover is complicated, the volume problem of inefficiency, this two problems of time point that system reducing normally can only be started to the last system with existing in the second way, the invention discloses a kind of system recovery method.
Embodiment one
This application discloses a kind of system recovery method, be applied to electronic equipment, in described electronic equipment, be provided with storer.Disclosed in the present embodiment one, system recovery method is mainly used in system, workflow schematic diagram shown in Figure 1, and described system recovery method comprises the following steps:
Step S11, system are after normal startup, judge whether to meet pre-conditioned, and meet described pre-conditioned time, produce the first instruction, to make described storer after receiving described first instruction, collect current system status file, and be store after described current system status file loads the first mark.
Wherein, judge whether to meet pre-conditioned comprise following several:
First kind of way, the time that judging distance system normally starts, or whether reach Preset Time apart from the last time storing described system status file, if so, then explanation meets pre-conditioned.By this kind of judgment mode, system can be made every cycle predetermined time, produce first instruction.
The second way, judges whether the hard disk write data volume at every turn received reaches preset capacity, and if so, then explanation meets pre-conditioned.By this kind of judgment mode, system can be made often to receive the hard disk writing of predetermined volumes, produce first instruction.
The third mode, judges whether writing system sensitive document or at sensitizing range writing in files, if so, then explanation meets pre-conditioned.By this kind of mode, system, by detection system sensitive document and sensitizing range, determines the opportunity of generation first instruction.
Above-mentioned three kinds of modes, according to practical application request, can only select a kind of setting pre-conditioned, or, optionally wherein two or all select, realize pre-conditioned setting.
Step S12, occur abnormal and after restarting, according to the user instruction received, judge whether to need System recover, if so, then performing the operation of step S13.
If step S13 is according to judged result, when determining to need to carry out System recover, according to described first mark, obtain the last system status file stored in described storer, and according to described system status file, system is recovered.
Receive the storer after the first instruction, store current system status file, mainly by Snapshot(snapping technique) realize.Support that the storer of Snapshot has the controller of self, backup operation can be carried out after the first instruction receiving system transfers.
In this case, described system is in advance according to the information of user's input, set up the mark that expresses support for Snapshot, thus staff can according to this mark, know that system recovery method that this electronic equipment can utilize the application to provide realizes the recovery of system.
The first mark that described storer loads for the current system status file collected, for representing that this system status file is by Snapshot technical limit spacing, the recovery of system can be realized, be convenient to follow-up system need recover time, according to described first mark from storer inquiry obtain needed for system status file.
System recovery method disclosed in step S11 in embodiment one to step S13, after system normally starts, perform and judge operation, when judging to learn that system meets pre-conditioned, produce the first instruction, thus make the storer storage receiving described first instruction be loaded with the current system status file of the first mark; Occur abnormal in system and restart, and when needing to carry out System recover, then according to described first mark, inquiry obtains the last system status file stored in storer, and recovers system according to described system status file.
By system recovery method disclosed in the present application, when carrying out System recover, do not need the appearance environment of mode conventionally to problem to reappear, step is succinct, thus improves the efficiency of System recover; Further, can realize the backup to system, by System recover to the last normal state, saved system normally starts to the work occurring to complete extremely during this period of time.
In addition, if in step s 12, system occurs abnormal and after restarting, perform according to the user instruction received and judge operation, when determining not need to carry out System recover according to judged result, then described system recovery method disclosed in the present application also comprises:
Step S14, obtain the last normal time point started of described system, and by described system reducing to state corresponding to described time point.
Wherein, user instruction is inputted according to current applied environment by staff.Such as, when system reboot, pointed out accordingly by the interface display of system, to be selected to be carry out System recover by staff, still do not carry out System recover, and staff is when selecting, corresponding user instruction can be inputted, indicate whether to need to carry out System recover.
System is according to the user instruction received, and when judgement is learnt and needed System recover, then inquiry obtains the last system status file stored in storer, recovers according to described system status file; Learn when not needing to carry out System recover if judge, then by system reducing to the last normal time point started of system.
Embodiment two
This application provides a kind of system recovery method, be applied to electronic equipment, in described electronic equipment, be provided with storer.Disclosed in the present embodiment two, system recovery method is mainly used in system, workflow schematic diagram shown in Figure 2, and described system recovery method comprises the following steps:
Step S11, system are after normal startup, judge whether to meet pre-conditioned, and meet described pre-conditioned time, produce the first instruction, to make described storer after receiving described first instruction, collect current system status file, and be store after described current system status file loads the first mark.
Step S12, occur abnormal and after restarting, according to the user instruction received, judge whether to need System recover, if so, then performing the operation of step S13, if not, then perform the operation of step S14.
If step S13 is according to judged result, when determining to need to carry out System recover, according to described first mark, obtain the last system status file stored in described storer, and according to described system status file, system is recovered, and enter step S15.
If step S14 is according to judged result, when determining not need to carry out System recover, obtain the last normal time point started of described system, and by the described system reducing state that extremely described time point is corresponding, and enter step S15.
In the present embodiment, the operating process of step S11 to step S14 is identical with embodiment one, does not repeat them here.
Step S15, before the normal end of run of system, produce the second instruction, to make described storer after receiving described second instruction, the described system status file stored is deleted.
System after restart, will normally be run.Normally run when system and close to an end, before shutdown, system is by generation second instruction.Receive the storer of described second instruction, the system status file stored can be deleted, thus reduce taking up room to storer before it.
Embodiment three
The embodiment three of the application discloses a kind of system recovery method, is applied to electronic equipment, is provided with storer in described electronic equipment.Disclosed in the present embodiment three, system recovery method is mainly used in storer, workflow schematic diagram shown in Figure 3, and described system recovery method comprises the following steps:
First instruction of step S21, storer receiving system transmission.
System, after normal startup, when running status meets pre-conditioned, can produce the first instruction, and by described first command to described storer, receives to make described storer.
Step S22, collect current system status file, be that described current system status file loads the first mark, and described in storing, be loaded with the current system conditions file of the first mark.
Receive the storer after the first instruction, store current system status file, mainly by Snapshot(snapping technique) realize, to carry out backup operation after the first instruction receiving system transfers.The storer that the application applies is to support Snapshot(snapping technique) storer, such as can select ssd(Solid State Disk, solid state hard disc), certainly, also other can be selected to support Snapshot(snapping technique) storer, the application is not construed as limiting this.
In step S22, the first mark that storer loads for the current system status file collected, for representing that this system status file is by Snapshot technical limit spacing, the recovery of system can be realized, be convenient to follow-up system need recover time, according to described first mark from storer inquiry obtain needed for system status file.
In system recovery method disclosed in step S21 in embodiment three to step S22, storer is after the first instruction receiving system transfers, collect current system status file, for described current system status file loads the first mark, and it is stored, occur abnormal with convenient system and after restarting, pass through the inquiry to storer by described system, obtain the last system status file stored, and carry out System recover according to the system status file that described the last time stores.
By the system recovery method disclosed in embodiment three, when carrying out System recover, do not need the appearance environment of mode conventionally to problem to reappear, step is succinct, thus improves the efficiency of System recover; Further, storer can realize the backup to system, by the system status file stored in described storer, can by System recover to the last normal state, and saved system normally starts to the work occurring to complete extremely during this period of time.
Further, in described system recovery method, also comprise:
Step S23, receive described first instruction, and after storing current system status file, delete the last described system status file stored.
Storer after the t1 time receives the first instruction, then, after the system status file snapshot1 of t1 time being loaded the first mark, stores.After receiving the first instruction in the t2 time, then, after the system status file snapshot2 of t2 time being loaded the first mark, store.In this case, when system generation systems after the t2 time is abnormal, when needing to restart, often need System recover to state corresponding to t2 time.Therefore, after storage system status file snapshot2, then system status file snapshot1 can be deleted, avoid the unnecessary waste of storage space.Therefore, storer is receiving described first instruction at every turn, and after storing current system status file, can delete the last described system status file stored.
Further, in described system recovery method, also comprise:
The second instruction produced before receiving the normal end of run of described system;
After receiving described second instruction, the system status file being loaded with described first mark is deleted.
Normally run when system and close to an end, before shutdown, system is by generation second instruction.Receive the storer of described second instruction, the system status file stored can be deleted, thus reduce taking up room to storer before it.
Embodiment four
Disclosed herein as well is a kind of System recover device, described System recover application of installation, in electronic equipment, is provided with storer in described electronic equipment.Structural representation shown in Figure 4, described System recover device comprises: the first command generation module 11, judge module 12 and System recover module 13, wherein,
Described first command generation module 11, after normally starting, judge whether to meet pre-conditioned, and meet described pre-conditioned time, produce the first instruction, to make described storer after receiving described first instruction, collect current system status file, and be store after described current system status file loads the first mark;
, for there is exception and after restarting, according to the user instruction received, judging whether to need System recover in described judge module 12;
Described System recover module 13, if for the judged result according to described judge module, when determining to need to carry out System recover, according to described first mark, obtain the last system status file stored in described storer, and according to described system status file, system is recovered.
Further, described System recover device also comprises: system reducing module 14, for there is exception and after restarting in described system reducing module 14, if according to the user instruction received, when judgement is learnt and is not needed to carry out System recover, obtain the last normal time point started of described system, and by the described system reducing state that extremely described time point is corresponding.
Further, described System recover device also comprises: the second command generation module, before normal end of run, produces the second instruction, to make described storer after receiving described second instruction, is deleted by the described system status file stored.
Further, described first directive generation module 11 comprises:
First judging unit, for the time that judging distance normally starts, or whether reach Preset Time apart from the last time storing described system status file, if so, then explanation meets pre-conditioned;
And/or,
Second judging unit, for judging whether the hard disk write data volume received reaches preset capacity, and if so, then explanation meets pre-conditioned at every turn;
And/or,
3rd judging unit, for judging whether writing system sensitive document or at sensitizing range writing in files, if so, then illustrate meet pre-conditioned.
System recover device disclosed in embodiment four, after system normally starts, performed by the first directive generation module and judge operation, when judging to learn that system meets pre-conditioned, produce the first instruction, thus make the storer storage receiving described first instruction be loaded with the current system status file of the first mark; Occur abnormal in system and restart, when being judged to need to carry out System recover by judge module, by recovery module according to described first mark, inquiry obtains the last system status file stored in storer, and recovers system according to described system status file.
By System recover device disclosed in the present application, when carrying out System recover, do not need the appearance environment of mode conventionally to problem to reappear, step is succinct, thus improves the efficiency of System recover; Further, can realize the backup to system, by System recover to the last normal state, saved system normally starts to the work occurring to complete extremely during this period of time.
Accordingly, the invention also discloses a kind of processor, the chip of described processor is integrated with System recover device as above.
Embodiment five
Disclosed herein as well is a kind of System recover device, described System recover application of installation, in electronic equipment, is provided with storer in described electronic equipment.Structural representation shown in Figure 5, described System recover device comprises: the first receiver module 21 and system status file memory module 22, wherein,
Described first receiver module 21, for the first instruction of receiving system transmission;
Described system status file memory module 22, for collecting current system status file, for described current system status file loads the first mark, and is loaded with the current system conditions file of the first mark described in storing.
Further, described System recover device also comprises: the first removing module 23, for receiving described first instruction, and after storing current system status file, deletes the last described system status file stored.
Further, described System recover device also comprises:
Second receiver module, for the second instruction produced before receiving the normal end of run of described system;
Second removing module, for after receiving described second instruction, deletes the system status file being loaded with described first mark.
In system recovery method disclosed in embodiment five, first receiver module is after the first instruction receiving system transfers, current system status file is collected by system status file memory module, for described current system status file loads the first mark, and it is stored, occur abnormal and after restarting with convenient system, by described system by the inquiry to storer, obtain the last system status file stored, and carry out System recover according to the system status file that described the last time stores.
By the System recover device disclosed in embodiment five, when carrying out System recover, do not need the appearance environment of mode conventionally to problem to reappear, step is succinct, thus improves the efficiency of System recover; Further, storer can realize the backup to system, by the system status file stored in described storer, can by System recover to the last normal state, and saved system normally starts to the work occurring to complete extremely during this period of time.
Accordingly, the invention also discloses a kind of storer, the chip of described storer is integrated with System recover device as above.
Wherein, described storer is generally ssd(Solid State Disk, solid state hard disc).Certainly, can also select other storeies, the application does not limit this.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (17)

1. a system recovery method, is applied to electronic equipment, it is characterized in that, is provided with storer in described electronic equipment, and described system recovery method comprises:
After normal startup, judge whether to meet pre-conditioned, and meet described pre-conditioned time, produce the first instruction, to make described storer after receiving described first instruction, collect current system status file, and be store after described current system status file loads the first mark;
Occur abnormal and after restarting, according to the user instruction received, judge whether to need System recover;
If according to judged result, when determining to need to carry out System recover, according to described first mark, obtain the last system status file stored in described storer, and according to described system status file, system is recovered.
2. method according to claim 1, is characterized in that, described system recovery method also comprises:
Occur abnormal and after restarting, if according to the user instruction received, judge to learn when not needing to carry out System recover, obtain the last normal time point started of described system, and by described system reducing to state corresponding to described time point.
3. method according to claim 1, is characterized in that, described system recovery method also comprises:
Before normal end of run, produce the second instruction, to make described storer after receiving described second instruction, the described system status file stored is deleted.
4. method according to claim 1, is characterized in that, described in judge whether to meet pre-conditioned, comprising:
The time that judging distance normally starts, or whether reach Preset Time apart from the last time storing described system status file, if so, then explanation meets pre-conditioned;
And/or,
Judge whether the hard disk write data volume at every turn received reaches preset capacity, and if so, then explanation meets pre-conditioned;
And/or,
Judge whether writing system sensitive document or at sensitizing range writing in files, if so, then illustrate meet pre-conditioned.
5. a system recovery method, is applied to electronic equipment, it is characterized in that, is provided with storer in described electronic equipment, and described system recovery method comprises:
First instruction of receiving system transmission;
Collect current system status file, for described current system status file loads the first mark, and described in storing, be loaded with the current system conditions file of the first mark.
6. method according to claim 5, is characterized in that, described system recovery method also comprises:
Receive described first instruction, and after storing current system status file, delete the last described system status file stored.
7. method according to claim 5, is characterized in that, described system recovery method also comprises:
The second instruction produced before receiving the normal end of run of described system;
After receiving described second instruction, the system status file being loaded with described first mark is deleted.
8. a System recover device, is applied to electronic equipment, it is characterized in that, is provided with storer in described electronic equipment, and described System recover device comprises:
First command generation module, after normally starting, judge whether to meet pre-conditioned, and meet described pre-conditioned time, produce the first instruction, to make described storer after receiving described first instruction, collect current system status file, and be store after described current system status file loads the first mark;
, for there is exception and after restarting, according to the user instruction received, judging whether to need System recover in judge module;
System recover module, if for the judged result according to described judge module, when determining to need to carry out System recover, according to described first mark, obtain the last system status file stored in described storer, and according to described system status file, system is recovered.
9. device according to claim 8, is characterized in that, described System recover device also comprises:
System reducing module, for there is exception and after restarting, if according to the user instruction received, judge to learn when not needing to carry out System recover, obtain the last normal time point started of described system, and by the described system reducing state that extremely described time point is corresponding.
10. device according to claim 8, is characterized in that, described System recover device also comprises:
Second command generation module, before normal end of run, produces the second instruction, to make described storer after receiving described second instruction, is deleted by the described system status file stored.
11. devices according to claim 8, is characterized in that, described first directive generation module comprises:
First judging unit, for the time that judging distance normally starts, or whether reach Preset Time apart from the last time storing described system status file, if so, then explanation meets pre-conditioned;
And/or,
Second judging unit, for judging whether the hard disk write data volume received reaches preset capacity, and if so, then explanation meets pre-conditioned at every turn;
And/or,
3rd judging unit, for judging whether writing system sensitive document or at sensitizing range writing in files, if so, then illustrate meet pre-conditioned.
12. 1 kinds of System recover devices, are applied to electronic equipment, it is characterized in that, are provided with storer in described electronic equipment, and described System recover device comprises:
First receiver module, for the first instruction of receiving system transmission;
System status file memory module, for collecting current system status file, for described current system status file loads the first mark, and is loaded with the current system conditions file of the first mark described in storing.
13. devices according to claim 12, is characterized in that, described System recover device also comprises:
First removing module, for receiving described first instruction, and after storing current system status file, deletes the last described system status file stored.
14. devices according to claim 12, is characterized in that, described System recover device also comprises:
Second receiver module, for the second instruction produced before receiving the normal end of run of described system;
Second removing module, for after receiving described second instruction, deletes the system status file being loaded with described first mark.
15. 1 kinds of processors, is characterized in that, the chip of described processor are integrated with the System recover device described in claim 8 to any one of claim 11.
16. 1 kinds of storeies, is characterized in that, the chip of described storer are integrated with the System recover device described in claim 12 to any one of claim 14.
17. storeies according to claim 16, is characterized in that,
Described storer is solid state hard disc.
CN201310263457.7A 2013-06-27 2013-06-27 System recovery method, device, processor and memory Active CN104252366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310263457.7A CN104252366B (en) 2013-06-27 2013-06-27 System recovery method, device, processor and memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310263457.7A CN104252366B (en) 2013-06-27 2013-06-27 System recovery method, device, processor and memory

Publications (2)

Publication Number Publication Date
CN104252366A true CN104252366A (en) 2014-12-31
CN104252366B CN104252366B (en) 2018-07-06

Family

ID=52187307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310263457.7A Active CN104252366B (en) 2013-06-27 2013-06-27 System recovery method, device, processor and memory

Country Status (1)

Country Link
CN (1) CN104252366B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897168A (en) * 2017-01-11 2017-06-27 广东小天才科技有限公司 The system recovery method and device of a kind of mobile device
CN107451010A (en) * 2016-05-31 2017-12-08 宇龙计算机通信科技(深圳)有限公司 A kind of data-frozen defreezing method, device and terminal
CN110789349A (en) * 2019-09-25 2020-02-14 浙江合众新能源汽车有限公司 Processing method and device for restarting controller during vehicle running

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4930128A (en) * 1987-06-26 1990-05-29 Hitachi, Ltd. Method for restart of online computer system and apparatus for carrying out the same
CN1716212A (en) * 2004-06-29 2006-01-04 联想(北京)有限公司 System and method for recovery from disaster
CN101441576A (en) * 2009-01-08 2009-05-27 杭州华三通信技术有限公司 Software restarting method and equipment of embedded type equipment
US20110078507A1 (en) * 2009-09-29 2011-03-31 Hyundai Motor Company Operational system test method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4930128A (en) * 1987-06-26 1990-05-29 Hitachi, Ltd. Method for restart of online computer system and apparatus for carrying out the same
CN1716212A (en) * 2004-06-29 2006-01-04 联想(北京)有限公司 System and method for recovery from disaster
CN101441576A (en) * 2009-01-08 2009-05-27 杭州华三通信技术有限公司 Software restarting method and equipment of embedded type equipment
US20110078507A1 (en) * 2009-09-29 2011-03-31 Hyundai Motor Company Operational system test method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451010A (en) * 2016-05-31 2017-12-08 宇龙计算机通信科技(深圳)有限公司 A kind of data-frozen defreezing method, device and terminal
CN106897168A (en) * 2017-01-11 2017-06-27 广东小天才科技有限公司 The system recovery method and device of a kind of mobile device
CN110789349A (en) * 2019-09-25 2020-02-14 浙江合众新能源汽车有限公司 Processing method and device for restarting controller during vehicle running

Also Published As

Publication number Publication date
CN104252366B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN102707990B (en) Container based processing method and device
CN101788936B (en) Snapshot backup and restoration method and device when in running of mobile terminal
CN104965754A (en) Task scheduling method and task scheduling apparatus
CN105204979A (en) Recording method of Android logs and mobile terminal
US10860447B2 (en) Database cluster architecture based on dual port solid state disk
CN102455950A (en) Firmware recovery system and method of base board management controller
CN105607972A (en) Abnormity remedying method and device
CN104216796A (en) Data backup and recovery method and electronic device
CN103473277A (en) Snapshot method and device for file systems
CN103198122A (en) Method and device for restarting in-memory database
CN102479115A (en) Data backup and recovery system and data backup and recovery method
CN101673230A (en) Method for automatically backing up and recovering configuration data of embedded system by using a U-disk
CN104252366A (en) System recovery method, device, processor and storage
CN105183521A (en) Method for installing computing operation system and USB port storage device
CN102662796B (en) Method and system for recovering data
CN105224418A (en) A kind of data back up method and device
CN105305596A (en) Commercial power supply method and device
CN103870319A (en) Method and device for information processing and electronic device
CN109408282B (en) Application program backup recovery method and device and computer readable storage medium
US8468388B2 (en) Restoring programs after operating system failure
CN103617053A (en) Method and device for upgrading software
CN104572339A (en) Data backup restoring system and method based on distributed file system
CN103870347A (en) System restoring method and device
CN106201570A (en) A kind of application program exempts from installation and operation method and device
CN104765631A (en) Restoration method and device for application program of mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant