CN104252366B - System recovery method, device, processor and memory - Google Patents

System recovery method, device, processor and memory Download PDF

Info

Publication number
CN104252366B
CN104252366B CN201310263457.7A CN201310263457A CN104252366B CN 104252366 B CN104252366 B CN 104252366B CN 201310263457 A CN201310263457 A CN 201310263457A CN 104252366 B CN104252366 B CN 104252366B
Authority
CN
China
Prior art keywords
instruction
memory
status file
preset condition
system recovery
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310263457.7A
Other languages
Chinese (zh)
Other versions
CN104252366A (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

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The present invention relates to electronic device fields, disclose a kind of system recovery method, device, processor and memory.The system recovery method performs after system normally starts and judges operation, when judging that system meets preset condition, generates the first instruction, and the memory storage for receiving first instruction is made to be loaded with the current system status file of first flag;System is abnormal and restarts, and when needing carry out system recovery, according to the first flag, obtains the system status file of the last storage in memory, and system is restored accordingly.It by system recovery method disclosed in the present application, when carrying out system recovery, does not need to reappear the appearance environment of problem in the way of the prior art, step is succinct, so as to improve the efficiency of system recovery;Further, it is possible to realize the backup to system, system is restored to the last normal state, preservation system normally starts to the work for being abnormal and being completed in this period.

Description

System recovery method, device, processor and memory
Technical field
The present invention relates to electronic device field, more particularly to a kind of system recovery method, device, processor and storage Device.
Background technology
Using PC(Personal computer, personal computer)Machine or other electronic equipments are set as some are embedded When standby, it may appear that the exception of system or collapse in this case, need to restore the system for abnormal problem occur.
In the prior art, there are mainly two types of the modes restored to pathological system, and a kind of is the environment to going wrong Reappeared, that is to say, that before system exception, which operation user performs, and when reappearing problem context, then needs in order Re-execute these operations;Another system recovery method is to obtain the time point that the last system normally starts, and will be The state reduction of system is to the time point.
But inventor has found in the research process of the application, and when carrying out system recovery using first way, step Complexity leads to inefficiency;When carrying out system recovery using the second way, it is normal that system can only be restored to the last system The time point of startup, and system normally starts to the work for being abnormal and being completed in this period and will lose.
Invention content
In view of this, the purpose of the present invention is to provide a kind of system recovery method, device, processor and memory, with When solving the problem of to carry out system recovery using first way in the prior art there are the step of complicated, inefficiency and the The time point both of these problems that system reducing can only be normally started to the last system present in two kinds of modes, it is specific real It is as follows to apply scheme:
A kind of system recovery method applied to electronic equipment, is provided with memory in the electronic equipment, the system is extensive Compound method includes:
After normal startup, judge whether to meet preset condition, and when meeting the preset condition, generate the first instruction, So that the memory collects current system status file after first instruction is received, and to be described current it is It is stored after system status file loading first flag;
After being abnormal and restarting, according to the user instruction of reception, judge whether that system is needed to restore;
If according to judging result, when determining to need carry out system recovery, according to the first flag, the memory is obtained The system status file of middle the last storage, and system is restored according to the system status file.
Preferably, the system recovery method further includes:
After being abnormal and restarting, if according to the user instruction of reception, judgement is learnt when not needing to carry out system recovery, is obtained Take the time point that described system the last time normally starts, and by the system reducing to the time point corresponding state.
Preferably, the system recovery method further includes:
Before normal operation terminates, the second instruction is generated, so that the memory will be deposited after second instruction is received The system status file of storage is deleted.
Preferably, it is described to judge whether to meet preset condition, including:
Judge whether reach apart from the time normally started or apart from the last time for storing the system status file Preset time, if so, illustrating to meet preset condition;
And/or
Judge whether the hard disk received every time write-in data volume reaches preset capacity, if so, illustrating to meet default item Part;
And/or
Judge whether writing system sensitive document or file is written in sensitizing range, if so, illustrating to meet preset condition.
Correspondingly, invention additionally discloses a kind of system recovery method, applied to electronic equipment, set in the electronic equipment There is memory, the system recovery method includes:
First instruction of reception system transmission;
Current system status file is collected, first flag is loaded, and store institute for the current system status file State the current system conditions file for being loaded with first flag.
Preferably, the system recovery method further includes:
First instruction is being received, and after storing current system status file, deleting the described of last storage System status file.
Preferably, the system recovery method further includes:
Receive the second instruction generated before the system normal operation terminates;
After second instruction is received, the system status file for being loaded with the first flag is deleted.
Correspondingly, invention additionally discloses a kind of system recovery device, applied to electronic equipment, set in the electronic equipment There is memory, the system recovery device includes:
First command generation module after normally starting, judges whether to meet preset condition, and described default meeting During condition, the first instruction is generated, so that the memory after first instruction is received, collects current system mode text Part, and stored after loading first flag for the current system status file;
Judgment module after being abnormal and restarting, according to the user instruction of reception, judges whether to need system extensive It is multiple;
System recovery module, if for the judging result according to the judgment module, when determining to need carry out system recovery, According to the first flag, the system status file of the last storage in the memory is obtained, and according to the system shape State file restores system.
Preferably, the system recovery device further includes:
System reducing module, after being abnormal and restarting, if according to the user instruction of reception, judgement, which is learnt, not to be needed to During carry out system recovery, obtain the time point that described system the last time normally starts, and by the system reducing to it is described when Between put corresponding state.
Preferably, the system recovery device further includes:
Second command generation module before terminating for normal operation, generates the second instruction, so that the memory is receiving To after the described second instruction, the system status file of storage is deleted.
Preferably, first directive generation module includes:
First judging unit, for judging to store the system mode apart from the time normally started or apart from the last time Whether the time of file reaches preset time, if so, illustrating to meet preset condition;
And/or
Second judgment unit, for judging whether the hard disk received every time write-in data volume reaches preset capacity, if so, Then illustrate to meet preset condition;
And/or
Third judging unit, for judging whether writing system sensitive document or file being written in sensitizing range, if so, Illustrate to meet preset condition.
Correspondingly, invention additionally discloses a kind of processor, system as described above is integrated on the chip of the processor Recovery device.
Correspondingly, invention additionally discloses a kind of system recovery device, applied to electronic equipment, set in the electronic equipment There is memory, the system recovery device includes:
First receiving module, for receiving the first instruction of system transmission;
System status file memory module is the current system mode for collecting current system status file File loads first flag, and the current system conditions file of first flag is loaded with described in storage.
Preferably, the system recovery device further includes:
First removing module, for receiving first instruction, and after storing current system status file, in deletion The system status file once stored.
Preferably, the system recovery device further includes:
Second receiving module, for receiving the generated before the system normal operation terminates second instruction;
Second removing module, for after second instruction is received, the system shape of the first flag will to be loaded with State file is deleted.
Correspondingly, the invention also discloses a kind of memory, system as described above is integrated on the chip of the memory System recovery device.
Preferably,
The memory is solid state disk.
Disclosed system restoration methods after system normally starts, perform and judge operation, are judging to learn system When meeting preset condition, the first instruction is generated, so as to which the memory storage for receiving first instruction be made to be loaded with the first mark The current system status file known;When being abnormal and restart in system, and needing carry out system recovery, then according to described One mark, inquiry obtain the system status file of the last storage in memory, and according to the system status file to being System is restored.
By system recovery method disclosed in the present application, when carrying out system recovery, do not need to according to the prior art Mode reappears the appearance environment of problem, and step is succinct, so as to improve the efficiency of system recovery;Further, it is possible to it realizes Backup to system restores system to the last normal state, and preservation system normally starts to when being abnormal this section The interior work completed.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of workflow schematic diagram of system recovery method disclosed by the embodiments of the present invention;
Fig. 2 is the workflow schematic diagram of another system recovery method disclosed by the embodiments of the present invention;
Fig. 3 is the workflow schematic diagram of another system recovery method disclosed by the embodiments of the present invention;
Fig. 4 is a kind of structure diagram of system recovery device disclosed by the embodiments of the present invention;
Fig. 5 is the structure diagram of another system recovery device disclosed by the embodiments of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
In order to solve in the prior art, when carrying out system recovery using first way there are the step of it is complicated, efficiency is low Under volume problem and the second way present in can only by time point that system reducing to the last system normally starts this Two problems, the invention discloses a kind of system recovery methods.
Embodiment one
This application discloses a kind of system recovery methods, and applied to electronic equipment, storage is provided in the electronic equipment Device.System recovery method disclosed in the present embodiment one is mainly used in system, workflow schematic diagram shown in Figure 1, institute System recovery method is stated to include the following steps:
Step S11, system judges whether to meet preset condition, and when meeting the preset condition after normal start, The first instruction is generated, so that the memory collects current system status file, and be after first instruction is received It is stored after the current system status file loading first flag.
Wherein, judge whether to meet preset condition including following several:
First way judges the time or literary apart from the last time storage system mode that system of distance normally starts Whether the time of part reaches preset time, if so, illustrating to meet preset condition.By this kind of judgment mode, system can be made Period at every predetermined time generates one time first instruction.
The second way, judges whether the hard disk received every time write-in data volume reaches preset capacity, if so, explanation Meet preset condition.By this kind of judgment mode, system can be made often to receive the hard disk writing of predetermined volumes, generated primary First instruction.
The third mode judges whether writing system sensitive document or file is written in sensitizing range, if so, explanation is full Sufficient preset condition.By this kind of mode, system determines to generate the first instruction by detecting system sensitive document and sensitizing range Opportunity.
Above-mentioned three kinds of modes according to practical application request, can only select a kind of setting preset condition, alternatively, optionally wherein Two or all selected, realize the setting to preset condition.
Step S12, after being abnormal and restarting, according to the user instruction of reception, judge whether that system is needed to restore, if It is then to perform the operation of step S13.
If institute when determining to need carry out system recovery, according to the first flag, step S13, is obtained according to judging result The system status file of the last storage in memory is stated, and system is restored according to the system status file.
The memory after the first instruction is received, current system status file is stored, mainly passes through Snapshot(Soon According to technology)To realize.Supporting the memory of Snapshot has the controller of itself, can receive the first of system transmission Backup operation is carried out after instruction.
In this case, the system establishes one and represents to support Snapshot's previously according to information input by user Mark, so as to which staff can know the system recovery method that the electronic equipment can utilize the application to provide according to the mark The recovery of realization system.
The memory is the first flag that the current system status file being collected into is loaded, for representing the system Status file is the recovery that system can be realized by Snapshot technical limit spacings, when needing to restore convenient for follow-up system, according to The first flag inquires the system status file needed for obtaining from memory.
The system recovery method disclosed in step S11 to step S13 in embodiment one, after system normally starts, holds Row judges operation, when judging to learn that system meets preset condition, generates the first instruction, so as to make to receive first instruction Memory storage be loaded with the current system status file of first flag;Be abnormal and restart in system, and need into When row system is restored, then according to the first flag, inquiry obtains the system status file of the last storage in memory, and System is restored according to the system status file.
By system recovery method disclosed in the present application, when carrying out system recovery, do not need to according to the prior art Mode reappears the appearance environment of problem, and step is succinct, so as to improve the efficiency of system recovery;Further, it is possible to it realizes Backup to system restores system to the last normal state, and preservation system normally starts to when being abnormal this section The interior work completed.
If in addition, in step s 12, after system is abnormal and restarts, judgement is performed according to the user instruction of reception Operation, when determining not needing to carry out system recovery according to judging result, then the system recovery method disclosed in the present application also wraps It includes:
Step S14, obtain the time point that described system the last time normally starts, and by the system reducing to it is described when Between put corresponding state.
Wherein, user instruction is inputted by staff according to current application environment.For example, in system reboot, by being The interface display of system is prompted accordingly, to be the recovery of carry out system by staff's selection or to be restored without system, and Staff can input corresponding user instruction when being selected, and indicate whether to need carry out system recovery.
System according to the user instruction received, learn when needing the system to restore, then inquires and obtain in memory most by judgement The nearly system status file once stored, is restored according to the system status file;If judgement learn do not need to be When system restores, then time point for normally starting system reducing to system the last time.
Embodiment two
This application provides a kind of system recovery methods, and applied to electronic equipment, storage is provided in the electronic equipment Device.System recovery method disclosed in the present embodiment two is mainly used in system, workflow schematic diagram shown in Figure 2, institute System recovery method is stated to include the following steps:
Step S11, system judges whether to meet preset condition, and when meeting the preset condition after normal start, The first instruction is generated, so that the memory collects current system status file, and be after first instruction is received It is stored after the current system status file loading first flag.
Step S12, after being abnormal and restarting, according to the user instruction of reception, judge whether that system is needed to restore, if It is then to perform the operation of step S13, if it is not, then performing the operation of step S14.
If institute when determining to need carry out system recovery, according to the first flag, step S13, is obtained according to judging result The system status file of the last storage in memory is stated, and system is restored according to the system status file, and Enter step S15.
If when determining not needing to carry out system recovery, it is the last step S14, to be obtained according to judging result for the system The time point normally started, and by the system reducing to the time point corresponding state, and enter step S15.
In the present embodiment, the operating process of step S11 to step S14 and embodiment one are identical, and details are not described herein.
Step S15, before system normal operation terminates, generate the second instruction so that the memory receive it is described After second instruction, the system status file of storage is deleted.
System after restart, by normal operation.When system normal operation closes to an end, before shutting down, system will generate the Two instructions.The memory of second instruction is received, the system status file stored before it can be deleted, so as to reduce pair The occupied space of memory.
Embodiment three
Embodiments herein three discloses a kind of system recovery method, applied to electronic equipment, in the electronic equipment It is provided with memory.System recovery method disclosed in the present embodiment three is mainly used in memory, workflow shown in Figure 3 Journey schematic diagram, the system recovery method include the following steps:
Step S21, memory receives the first instruction of system transmission.
System is after normal start, and when operating status meets preset condition, can generate the first instruction, and by described first Instruction is transmitted to the memory, so that the memory receives.
Step S22, current system status file is collected, first flag is loaded for the current system status file, And the current system conditions file of first flag is loaded with described in storing.
The memory after the first instruction is received, current system status file is stored, mainly passes through Snapshot(Soon According to technology)It realizes, to carry out backup operation after the first instruction for receiving system transmission.The storage that the application is applied Device is can support Snapshot(Snapping technique)Memory, such as can be selected ssd(Solid State Disk, solid-state are hard Disk), certainly, other also can be selected and supports Snapshot(Snapping technique)Memory, the application is not construed as limiting this.
In step S22, memory is the first flag that the current system status file being collected into is loaded, for representing The system status file is the recovery that system can be realized by Snapshot technical limit spacings, needs to restore convenient for follow-up system When, the system status file needed for obtaining is inquired from memory according to the first flag.
In the system recovery method disclosed in step S21 to step S22 in embodiment three, memory is receiving system After first instruction of transmission, current system status file is collected, first flag is loaded for the current system status file, And it is stored, to work as after system is abnormal and restarts, by the system by the inquiry to memory, obtain most The nearly system status file once stored, and system recovery is carried out according to the system status file of the last storage.
By the system recovery method disclosed in embodiment three, when carrying out system recovery, do not need to according to the prior art Mode the appearance environment of problem is reappeared, step is succinct, so as to improve system recovery efficiency;Also, memory It can realize the backup to system, by the system status file stored in the memory, system can be restored to nearest Primary normal state, preservation system normally start to the work for being abnormal and being completed in this period.
Further, it in the system recovery method, further includes:
Step S23, first instruction is being received, and after storing current system status file, is deleting the last time and deposit The system status file of storage.
Memory then loads the system status file snapshot1 of t1 times after the t1 times receive the first instruction After first flag, stored.After the first instruction is received in the t2 times, then by the system status file of t2 times After snapshot2 loading first flags, stored.In this case, generating system is abnormal after system is in the t2 times, needs When restarting, generally require system restoring state corresponding to the t2 times.Therefore, in storage system status file snapshot2 Afterwards, then system status file snapshot1 can be deleted, avoids the unnecessary waste to memory space.Therefore, memory is each First instruction is being received, and after storing current system status file, the system shape of last storage can be deleted State file.
Further, it in the system recovery method, further includes:
Receive the second instruction generated before the system normal operation terminates;
After second instruction is received, the system status file for being loaded with the first flag is deleted.
When system normal operation closes to an end, before shutting down, system will generate the second instruction.Receive second instruction Memory, the system status file stored before it can be deleted, so as to reduce the occupied space to memory.
Example IV
Disclosed herein as well is a kind of system recovery device, the system recovery device is applied to electronic equipment, the electricity Memory is provided in sub- equipment.Structure diagram shown in Figure 4, the system recovery device include:First instruction production Raw module 11, judgment module 12 and system recovery module 13, wherein,
First command generation module 11 after normally starting, judges whether to meet preset condition, and meeting When stating preset condition, the first instruction is generated, so that the memory collects current system after first instruction is received Status file, and stored after loading first flag for the current system status file;
The judgment module 12, after being abnormal and restarting, according to the user instruction of reception, judge whether to need be System restores;
If the system recovery module 13 for the judging result according to the judgment module, determines to need carry out system During recovery, according to the first flag, the system status file of the last storage in the memory is obtained, and according to described System status file restores system.
Further, the system recovery device further includes:System reducing module 14, the system reducing module 14 are used for After being abnormal and restarting, if according to the user instruction of reception, judgement is learnt when not needing to carry out system recovery, obtains the system The system the last time point normally started, and by the system reducing to the time point corresponding state.
Further, the system recovery device further includes:Second command generation module, before terminating for normal operation, The second instruction is generated, so that the memory deletes the system status file of storage after second instruction is received It removes.
Further, first directive generation module 11 includes:
First judging unit, for judging to store the system mode apart from the time normally started or apart from the last time Whether the time of file reaches preset time, if so, illustrating to meet preset condition;
And/or
Second judgment unit, for judging whether the hard disk received every time write-in data volume reaches preset capacity, if so, Then illustrate to meet preset condition;
And/or
Third judging unit, for judging whether writing system sensitive document or file being written in sensitizing range, if so, Illustrate to meet preset condition.
System recovery device disclosed in example IV after system normally starts, is sentenced by the execution of the first directive generation module Disconnected operation when judging to learn that system meets preset condition, generates the first instruction, so as to make to receive depositing for first instruction Reservoir storage is loaded with the current system status file of first flag;It is abnormal and restarts in system, sentenced by judgment module When needing carry out system recovery surely, by recovery module according to the first flag, inquiry obtains the last storage in memory System status file, and system is restored according to the system status file.
By system recovery device disclosed in the present application, when carrying out system recovery, do not need to according to the prior art Mode reappears the appearance environment of problem, and step is succinct, so as to improve the efficiency of system recovery;Further, it is possible to it realizes Backup to system restores system to the last normal state, and preservation system normally starts to when being abnormal this section The interior work completed.
Correspondingly, the invention also discloses a kind of processor, system as described above is integrated on the chip of the processor System recovery device.
Embodiment five
Disclosed herein as well is a kind of system recovery device, the system recovery device is applied to electronic equipment, the electricity Memory is provided in sub- equipment.Structure diagram shown in Figure 5, the system recovery device include:First receives mould Block 21 and system status file memory module 22, wherein,
First receiving module 21, for receiving the first instruction of system transmission;
The system status file memory module 22 for collecting current system status file, current is to be described Status file of uniting loads first flag, and the current system conditions file of first flag is loaded with described in storage.
Further, the system recovery device further includes:First removing module 23 refers to for receiving described first It enables, and after storing current system status file, deletes the system status file of last storage.
Further, the system recovery device further includes:
Second receiving module, for receiving the generated before the system normal operation terminates second instruction;
Second removing module, for after second instruction is received, the system shape of the first flag will to be loaded with State file is deleted.
In system recovery method disclosed in embodiment five, the first receiving module is in the first instruction for receiving system transmission Afterwards, current system status file is collected by system status file memory module, for the current system status file loading First flag, and being stored to it, to work as after system is abnormal and restarts, by the system by looking into memory It askes, obtains the system status file of the last storage, and according to the system status file system of the last storage System restores.
By the system recovery device disclosed in embodiment five, when carrying out system recovery, do not need to according to the prior art Mode the appearance environment of problem is reappeared, step is succinct, so as to improve system recovery efficiency;Also, memory It can realize the backup to system, by the system status file stored in the memory, system can be restored to nearest Primary normal state, preservation system normally start to the work for being abnormal and being completed in this period.
Correspondingly, the invention also discloses a kind of memory, system as described above is integrated on the chip of the memory System recovery device.
Wherein, the memory is usually ssd(Solid State Disk, solid state disk).It is, of course, also possible to select it His memory, the application do not limit this.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technician Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
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 can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function can have other dividing mode, such as multiple units or component in actual implementation It may be combined or can be integrated into another system or some features can be ignored or does not perform.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.
If the function is realized in the form of SFU software functional unit and is independent product sale or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially in other words The part contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment(Can be People's computer, server or network equipment etc.)Perform all or part of the steps of the method according to each embodiment of the present invention. And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory(ROM, Read-Only Memory), arbitrary access deposits Reservoir(RAM, Random Access Memory), the various media that can store program code such as magnetic disc or CD.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the present invention. A variety of modifications of these embodiments will be apparent for those skilled in the art, it is as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and the principles and novel features disclosed herein phase one The most wide range caused.

Claims (7)

1. a kind of system recovery method, applied to electronic equipment, which is characterized in that memory is provided in the electronic equipment, The system recovery method includes:
After normal startup, judge whether to meet preset condition, and when meeting the preset condition, generate the first instruction, so that The memory collects current system status file after first instruction is received, and is the current system shape It is stored after state file loading first flag;
After being abnormal and restarting, according to the user instruction of reception, judge whether that system is needed to restore;
If according to judging result, when determining to need carry out system recovery, according to the first flag, obtain in the memory most The nearly system status file once stored, and system is restored according to the system status file;
Before normal operation terminates, generate second instruction so that the memory receive it is described second instruction after, by storage The system status file is deleted.
2. according to the method described in claim 1, it is characterized in that, the system recovery method further includes:
After being abnormal and restarting, if according to the user instruction of reception, judgement is learnt when not needing to carry out system recovery, obtains institute State the time point that system the last time normally starts, and by the system reducing to the time point corresponding state.
3. according to the method described in claim 1, it is characterized in that, described judge whether to meet preset condition, including:
Judge whether reach default apart from the time normally started or apart from the last time for storing the system status file Time, if so, illustrating to meet preset condition;
And/or
Judge whether the hard disk received every time write-in data volume reaches preset capacity, if so, illustrating to meet preset condition;
And/or
Judge whether writing system sensitive document or file is written in sensitizing range, if so, illustrating to meet preset condition.
4. a kind of system recovery device, applied to electronic equipment, which is characterized in that memory is provided in the electronic equipment, The system recovery device includes:
First command generation module after normally starting, judges whether to meet preset condition, and meeting the preset condition When, the first instruction is generated, so that the memory collects current system status file after first instruction is received, And to be stored after the current system status file loading first flag;
Judgment module after being abnormal and restarting, according to the user instruction of reception, judges whether that system is needed to restore;
System recovery module, if for the judging result according to the judgment module, when determining to need carry out system recovery, according to The first flag obtains the system status file of the last storage in the memory, and according to system mode text Part restores system;
Second command generation module before terminating for normal operation, generates the second instruction, so that the memory is receiving After stating the second instruction, the system status file of storage is deleted.
5. device according to claim 4, which is characterized in that the system recovery device further includes:
System reducing module, after being abnormal and restarting, if according to the user instruction of reception, judgement, which is learnt, not to be needed to carry out When system is restored, the time point that described system the last time normally starts is obtained, and by the system reducing to the time point Corresponding state.
6. device according to claim 4, which is characterized in that first directive generation module includes:
First judging unit, for judging to store the system status file apart from the time normally started or apart from the last time Time whether reach preset time, if so, illustrating to meet preset condition;
And/or
Second judgment unit, for judging whether the hard disk received every time write-in data volume reaches preset capacity, if so, saying It is bright to meet preset condition;
And/or
Third judging unit, for judging whether writing system sensitive document or file being written in sensitizing range, if so, explanation Meet preset condition.
7. a kind of processor, which is characterized in that it is any to claim 6 that claim 4 is integrated on the chip of the processor System recovery device described in.
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 CN104252366A (en) 2014-12-31
CN104252366B true 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)

Families Citing this family (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

Citations (3)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8607094B2 (en) * 2009-09-29 2013-12-10 Hyundai Motor Company Operational system test method

Patent Citations (3)

* 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

Also Published As

Publication number Publication date
CN104252366A (en) 2014-12-31

Similar Documents

Publication Publication Date Title
EP2998861B1 (en) Implementing and deleting method and device for intelligent terminal multi-operation system
CN104216796A (en) Data backup and recovery method and electronic device
JP2011237950A (en) Information processor, backup server, backup program, backup method, and backup system
CN105607972B (en) A kind of method and device repaired extremely
CN102360317A (en) Method to separate and persist static and dynamic portions of a control application
CN105511985A (en) Data backup method and terminal
CN104636375A (en) Method and device for automatically backing up application data and restoring application data according to needs
CN113626256B (en) Virtual machine disk data backup method, device, terminal and storage medium
CN101777014A (en) Backup processing method and device
CN105492997A (en) Optimizing boot-time peak power consumption for server/rack systems
CN104252366B (en) System recovery method, device, processor and memory
CN102831030A (en) Data backup and recovery system and method
CN103514065A (en) Electronic device with automatic detection and recovery function and method
CN105138433A (en) Backup method for UBIFS file system in embedded type Linux operating system
CN104216802B (en) Memory database recovery method and device
CN102479115A (en) Data backup and recovery system and data backup and recovery method
CN111666266A (en) Data migration method and related equipment
CN109284272A (en) A kind of dispositions method of distributed file system, device and equipment
CN105760251B (en) A kind of method and apparatus of Backup Data
CN103809502A (en) Controller and program
EP3072049B1 (en) Indicating rebuild state of storage devices
CN106201570A (en) A kind of application program exempts from installation and operation method and device
CN103902401A (en) Virtual machine fault tolerance method and device based on monitoring
CN104246716B (en) The processing method and equipment of memory space object
US8825600B2 (en) File backup apparatus and method for backing up one or more directories

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