CN101464818B - Instant backup method for files, and its instant recovery method and system - Google Patents

Instant backup method for files, and its instant recovery method and system Download PDF

Info

Publication number
CN101464818B
CN101464818B CN2007103036787A CN200710303678A CN101464818B CN 101464818 B CN101464818 B CN 101464818B CN 2007103036787 A CN2007103036787 A CN 2007103036787A CN 200710303678 A CN200710303678 A CN 200710303678A CN 101464818 B CN101464818 B CN 101464818B
Authority
CN
China
Prior art keywords
backup
file
module
recovery
management interrupt
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
CN2007103036787A
Other languages
Chinese (zh)
Other versions
CN101464818A (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 CN2007103036787A priority Critical patent/CN101464818B/en
Publication of CN101464818A publication Critical patent/CN101464818A/en
Application granted granted Critical
Publication of CN101464818B publication Critical patent/CN101464818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for immediate file backup and immediate file recovery and a system for immediate file backup and recovery. The immediate backup method comprises the following steps: triggering a system management interrupt program when selecting backup function through an immediate backup recovery function button; storing the present state of the processor and the register in an operation system through the system management interrupt program; transferring a backup recovery module stored in a hard disc through the system management interrupt program; backing-up the file choosing by a user to be in a backup range to a hide section through the backup recovery module; and recovering the state of the processor and the register in the operation system to the present state through the system management interrupt program after the backup is completed. By adopting the invention, the user can achieve the aim of the backup and recovery of the computer content without the aid ofany accessory equipment.

Description

The immediate backup method of file, instant recovery method and system thereof
Technical field
The present invention relates to computer realm, relate more specifically to a kind of immediate backup method of file and the immediate backup and the recovery system of instant recovery method and a kind of file.
Background technology
Present stage, the renewal speed of computer virus is faster than the renewal speed of antivirus software, and computing machine is easy to be infected by various Viruses, thereby causes a lot of computing machines after startup enters system, seemingly-dead machine state occurs, and can't carry out any operation or slowly to almost using.At this moment, the not very willing again computing machine that restarts of most of user is reset or is used instrument recovery system subregions such as partition recovery.The one, because consuming time too many, the 2nd, because damaged other useful informations that the user is placed on system partitioning, the 3rd, user experience relatively poor (need restart).Equally, for the information of needs backup, the user need use related tool to back up by External memory equipment or after restarting usually, and can not reach the effect of immediate backup.
Summary of the invention
The invention provides a kind of immediate backup method of the file in the computer system and the immediate backup and recovery system of instant recovery method and a kind of file of being used in, with under the prerequisite that need not use relevant device to back up by External memory equipment or after restarting, reach the immediate backup and the instant recovery effect of file.
Immediate backup method according to the file of the embodiment of the invention, may further comprise the steps: when selecting backup functionality by immediate backup restore funcitons button, triggering system management interrupt program is by the processor in the system management interrupt procedure stores operating system and the current state of register; The backup of leaving on the hard disk by the system management interrupt routine call recovers module, to recover file backup in the backup scope that module selects the user by backup in hidden partition; And after backup is finished, by the system management interrupt program with the recovering state of processor in the operating system and register to described current state.
Wherein, backing up the recovery module may further comprise the steps the process that the file in the backup scope of user's selection backs up: backup recovers module resolves the file in the backup scope of user's selection, with the absolute drift of file in hard disk in the backup scope of finding out user's selection; Backup recovers file backup in the backup scope that module selects the user in the data file of hidden partition, and the absolute drift backup of file in hard disk in the backup scope that the user is selected is in the index file of hidden partition.
Wherein, come triggering system management interrupt program by the high-low level that changes universal input and output port.Obtain the backup scope that the user selects by interactive window.
Instant recovery method according to the file of the embodiment of the invention, may further comprise the steps: when selecting restore funcitons by immediate backup restore funcitons button, triggering system management interrupt program is by the processor in the system management interrupt procedure stores operating system and the current state of register; The backup of leaving on the hard disk by the system management interrupt routine call recovers module, returns to the file in the recovery scope of user's selection in the system partitioning from hidden partition to recover module by backup; And after recovering to finish, by the system management interrupt program with the recovering state of processor in the operating system and register to current state.
Instant recovery method according to the file of the embodiment of the invention can also may further comprise the steps: by system's deregistration procedure of preserving in advance, operating system is nullified.
Wherein, backing up the recovery module may further comprise the steps the process that the file in the recovery scope of user's selection recovers: back up the absolute drift of file in hard disk in the recovery scope of finding out user's selection in the index file of recovery module from hidden partition; Backup recovers module according to the absolute drift of file in hard disk in the recovery scope of user's selection, and the file in the recovery scope of user's selection is returned in the system partitioning from the data file of hidden partition.
Wherein, come triggering system management interrupt program by the high-low level that changes universal input and output port.Obtain the recovery scope that the user selects by interactive window.
Immediate backup and recovery system according to the file of the embodiment of the invention comprise: function selecting module, and the user selects the back up or restore function by function selecting module; The procedure triggers module is used for having carried out after the function selecting the user triggering system management interrupt module; The system management interrupt module, the current state that is used for the processor and the register of storage operating system, call backup and recover the back up or restore that module is carried out file, and after the back up or restore of file is finished, with the recovering state of processor in the operating system and register to described current state; And backup recovers module, and the file backup that is used for backup scope that the user is selected is in hidden partition, and the file that is used for recovery scope that the user is selected returns in the system partitioning from hidden partition.
Wherein, the procedure triggers module is come triggering system management interrupt program by the high-low level that changes universal input and output port.The system management interrupt program is obtained backup and/or the recovery scope that the user selects by interactive window.
By the present invention, the user can reach the purpose that the computing machine content backup is recovered not by any utility appliance.In addition, because the user does not need to restart computing machine, so any stage after finishing at operating system or start Basic Input or Output System (BIOS) (BIOS) power-on self-test (POST), but all IMU is crossed a button, carries out selectively back up or restore.And, owing to adopt the mode of system management interrupt (SMI) to call the backup restore funcitons,, for the user, do not have the sensation that is interrupted too much so behind the back up or restore end-of-job, can return the execution environment before calling.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram according to the immediate backup method of the file of the embodiment of the invention;
Fig. 2 is the process flow diagram according to the instant recovery method of the file of the embodiment of the invention; And
Fig. 3 is according to the immediate backup of the file of the embodiment of the invention and the block diagram of recovery system.
Embodiment
After the user enters operating system, situation seemingly-dead or that reflection is too slow appears, using antivirus software to look into poison also can't prove effective, but when not wishing to restart computing machine (because may situation after restarting still), can pass through a predefined function button, calling system management interrupt (SMI) program comes user's critical system file is carried out selectable back up or restore.Wherein, the SMI program can be preserved the current state of the processor of operating system, register etc., user's critical system file is carried out scope optionally recover, thereby make that the system file that is infracting by virus is recovered rapidly and thoroughly.After the end of resuming work, the SMI program can make operating system be continued execution by each status information of preserving before the reduction.Wherein, change or other modes of the pin state that the triggering of SMI program can be by universal input and output port (GPIO) realize; For the alternative of critical system file, can reach the purpose that the user can select to recover intensity by showing a mode such as interactive window after calling the SMI program.
Wherein, after the user enters operating system,, call the SMI program, need to select the scope of immediate backup in interactive window if the operating system content in the backup computer immediately then can be passed through this function button; Behind the Backup end, return, call the upper system deregistration procedure from this SMI program, after nullifying fast (be not to restart computing machine, and the unnecessary process of heavily loaded faster system closing), make system continue normal operation.
Wherein, on hardware, can use a GPI that can produce SMI, the high-low level by this GPI of keypad function key change triggers SMI.
Wherein, aspect BIOS, need in system management interrupt, add interrupt handling routine, with in interrupt handling routine, realize preservation, the interactive information of current system state demonstration, call the high-end backup of hard disk recover module and backup resume work finish after the recovery system state.
Wherein, the high-end backup of hard disk recovers module after by the system management interrupt routine call, and process user need back up or recover the request of disk.Before computing machine dispatches from the factory, adopt existing ASD association to produce the Line tool, create the initial back-up of system disk, after the backup, have following three kinds of files at hidden partition: first kind is system (system) file, mainly be to be used for backing up Main Boot Record (MBR) and 62 reserve sectors afterwards, reach description the two kinds of files in back; Second kind is index (index) file, mainly is the absolute drift of continuous data in hard disk that is used for writing down backup; The third is data (data) files, mainly is to be used for data in the storage system dish, and generally speaking, be unit with size about 1G, be divided into a plurality of data files.
Particularly, with reference to figure 1, the immediate backup method according to the file of the embodiment of the invention is described.As shown in Figure 1, this method may further comprise the steps:
A. when the user recovered button and chooses backup functionality by immediate backup in windows or other operating system, the SMI routine call was left the high-end backup of hard disk in and is recovered module;
B. backup recovers the backup scope that module is selected according to the user, and the file in the backup scope of user's selection is resolved, and finds the absolute drift of this document (or these files) in hard disk, again this document (or these files) is backuped to hidden partition;
C. after backup was finished, backup recovered module and returns to the SMI program, and after the SMI programe reduction system state, the return system continues to carry out, thereby restarted system when having avoided backup fully.
With reference to figure 2, the instant recovery method according to the file of the embodiment of the invention is described.As shown in Figure 2, this method may further comprise the steps:
A. when the user recovered button and selects restore funcitons by immediate backup in windows or other operating system, the SMI routine call was left the high-end backup of hard disk in and is recovered module;
B. backup recovers the recovery scope that module is selected according to the user, system file and index file by initial back-up, find the related data (for example, the meta data file and the BITMAP of the FAT of FAT32 table, new technology file system) of the file in the recovery scope that the user selects.By the file in the recovery scope of resolving user's selection, find the position of this document (or these files) in the recovery scope, and the absolute drift of this document that writes down in the cross index file (or these files) in hardware, these files are reverted to hidden partition;
C. after recovering to finish,, by calling system's deregistration procedure that the upper strata writes, system is nullified, thereby solved the incorrect problem of system file in the internal memory, avoided restarting system by SMI program recovery system state.
With reference to figure 3, immediate backup and recovery system according to the file of the embodiment of the invention are described.As shown in Figure 3, this system comprises: function selecting module, and the user selects the back up or restore function by function selecting module; The procedure triggers module is used for having carried out after the function selecting the user triggering system management interrupt module; The system management interrupt module, the current state that is used for the processor and the register of storage operating system, call backup and recover the back up or restore that module is carried out file, and after the back up or restore of file is finished, with the recovering state of processor in the operating system and register to described current state; And backup recovers module, and the file backup that is used for backup scope that the user is selected is in hidden partition, and the file that is used for recovery scope that the user is selected returns in the system partitioning from hidden partition.
Wherein, the procedure triggers module is come triggering system management interrupt program by the high-low level that changes universal input and output port.The system management interrupt program is obtained backup and/or the recovery scope that the user selects by interactive window.
Can realize on the basis of existing technology according to the solution of the present invention, and can well commercialization, recover thereby make a present key recovery technology rise to immediate backup, especially do not need the user to restart the computing machine this point, can bring better user experience.
The above is embodiments of the invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within the claim scope of the present invention.

Claims (12)

1. the immediate backup method of a file is characterized in that, may further comprise the steps:
When selecting backup functionality by immediate backup restore funcitons button, triggering system management interrupt program is by the processor in the described system management interrupt procedure stores operating system and the current state of register;
The backup of leaving on the hard disk by described system management interrupt routine call recovers module, with recover by described backup module with the file backup in the backup scope of user's selection in hidden partition; And
After backup is finished, by described system management interrupt program with the recovering state of processor in the described operating system and register to described current state.
2. immediate backup method according to claim 1 is characterized in that, described backup recovers module the process that the file in the backup scope of described user's selection backs up be may further comprise the steps:
Described backup recovers module resolves the file in the backup scope of described user's selection, with the absolute drift of file in hard disk in the backup scope of finding out described user's selection;
Described backup recovers file backup in the backup scope that module selects described user in the data file of described hidden partition, and the absolute drift backup of file in hard disk in the backup scope that described user is selected is in the index file of described hidden partition.
3. immediate backup method according to claim 2 is characterized in that, the high-low level that described triggering is specially by changing universal input and output port triggers described system management interrupt program.
4. immediate backup method according to claim 3 is characterized in that, obtains the backup scope that described user selects by interactive window.
5. the instant recovery method of a file, it is characterized in that, may further comprise the steps: when selecting restore funcitons by immediate backup restore funcitons button, triggering system management interrupt program is by the processor in the described system management interrupt procedure stores operating system and the current state of register;
The backup of leaving on the hard disk by described system management interrupt routine call recovers module, returns to the file in the recovery scope of user's selection in the system partitioning from hidden partition to recover module by described backup; And
After recovering to finish, by described system management interrupt program with the recovering state of processor in the described operating system and register to described current state.
6. instant recovery method according to claim 5 is characterized in that, with the recovering state of processor in the described operating system and register to the described current state, further comprising the steps of:
By system's deregistration procedure of preserving in advance, described operating system is nullified.
7. according to claim 5 or 6 described instant recovery methods, it is characterized in that described backup recovers module the process that the file in the recovery scope of described user's selection recovers be may further comprise the steps:
Described backup recovers to find out in the index file of module from described hidden partition the absolute drift of file in hard disk in the recovery scope that described user selects;
Described backup recovers module according to the absolute drift of file in hard disk in the recovery scope of described user's selection, and the file in the recovery scope of described user's selection is returned in the described system partitioning from the data file of described hidden partition.
8. instant recovery method according to claim 7 is characterized in that, the high-low level that described triggering is specially by changing universal input and output port triggers described system management interrupt program.
9. instant recovery method according to claim 8 is characterized in that, obtains the recovery scope that described user selects by interactive window.
10. the immediate backup of a file and recovery system is characterized in that, comprising: function selecting module, and the user selects the back up or restore function by described function selecting module;
The procedure triggers module is used for having carried out after the function selecting described user triggering system management interrupt module;
Described system management interrupt module, the current state that is used for the processor and the register of storage operating system, call backup and recover the back up or restore that module is carried out file, and after the back up or restore of file is finished, with the recovering state of processor in the described operating system and register to described current state; And
Described backup recovers module, and the file backup that is used for backup scope that described user is selected is in hidden partition, and the file that is used for recovery scope that described user is selected returns in the system partitioning from described hidden partition.
11. immediate backup according to claim 10 and recovery system is characterized in that, described procedure triggers module triggers described system management interrupt module by the high-low level that changes universal input and output port.
12. immediate backup according to claim 11 and recovery system is characterized in that, described system management interrupt module is obtained backup and/or the recovery scope that described user selects by interactive window.
CN2007103036787A 2007-12-20 2007-12-20 Instant backup method for files, and its instant recovery method and system Active CN101464818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007103036787A CN101464818B (en) 2007-12-20 2007-12-20 Instant backup method for files, and its instant recovery method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007103036787A CN101464818B (en) 2007-12-20 2007-12-20 Instant backup method for files, and its instant recovery method and system

Publications (2)

Publication Number Publication Date
CN101464818A CN101464818A (en) 2009-06-24
CN101464818B true CN101464818B (en) 2010-09-29

Family

ID=40805411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007103036787A Active CN101464818B (en) 2007-12-20 2007-12-20 Instant backup method for files, and its instant recovery method and system

Country Status (1)

Country Link
CN (1) CN101464818B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419995A (en) * 2010-09-27 2012-04-18 株式会社日立制作所 Information access device and information access method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1409219A (en) * 2001-09-28 2003-04-09 技嘉科技股份有限公司 Method for backing up BIOS
CN1952832A (en) * 2005-10-17 2007-04-25 光宝科技股份有限公司 Computer system and method for protecting backup data
CN101059768A (en) * 2006-04-17 2007-10-24 北京软通科技有限责任公司 System and method for implementing operating system standby

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1409219A (en) * 2001-09-28 2003-04-09 技嘉科技股份有限公司 Method for backing up BIOS
CN1952832A (en) * 2005-10-17 2007-04-25 光宝科技股份有限公司 Computer system and method for protecting backup data
CN101059768A (en) * 2006-04-17 2007-10-24 北京软通科技有限责任公司 System and method for implementing operating system standby

Also Published As

Publication number Publication date
CN101464818A (en) 2009-06-24

Similar Documents

Publication Publication Date Title
US11789823B2 (en) Selective processing of file system objects for image level backups
US9552168B2 (en) Virtual machine backup from storage snapshot
US8738883B2 (en) Snapshot creation from block lists
AU2010365029B2 (en) Fast computer startup
US20160378527A1 (en) Cloning a virtual machine from a physical device based on a local snapshot
US7373530B2 (en) Systems and methods for providing power-loss protection to sleeping computers systems
EP1736880A2 (en) Information processing apparatus, storage medium, and data rescue method
EP3769224B1 (en) Configurable recovery states
WO2012078479A2 (en) Fast computer startup
US20060161748A1 (en) Backup/recovery system and methods regarding the same
US20130061090A1 (en) Partial rebooting recovery apparatus and method
CN109408282B (en) Application program backup recovery method and device and computer readable storage medium
US7849300B2 (en) Method for changing booting sources of a computer system and a related backup/restore method thereof
EP3769225B1 (en) Free space pass-through
CN101464818B (en) Instant backup method for files, and its instant recovery method and system
KR101552580B1 (en) Method for system recovery including mobile device and backup supporting multi operation system
CN111382009B (en) Automatic system maintenance method and computer equipment with automatic maintenance function
CN108509252B (en) Virtual machine starting device and method and host
TWI490692B (en) Computer's state quick switch method and system
US20180253349A1 (en) Fault tolerant operating metohd and electronic device using the same
CN111078374A (en) Task recovery method and device in multi-operating system environment and storage medium
JP2003150429A (en) File system protection method and device thereof
KR20030048727A (en) Real Time PC Backup and Restore Method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant