CN105786652B - The method and device of driving backup, recovery - Google Patents

The method and device of driving backup, recovery Download PDF

Info

Publication number
CN105786652B
CN105786652B CN201610113234.6A CN201610113234A CN105786652B CN 105786652 B CN105786652 B CN 105786652B CN 201610113234 A CN201610113234 A CN 201610113234A CN 105786652 B CN105786652 B CN 105786652B
Authority
CN
China
Prior art keywords
driver
file
backup
hardware
facility information
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.)
Expired - Fee Related
Application number
CN201610113234.6A
Other languages
Chinese (zh)
Other versions
CN105786652A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610113234.6A priority Critical patent/CN105786652B/en
Priority claimed from CN201310007866.0A external-priority patent/CN103064767B/en
Publication of CN105786652A publication Critical patent/CN105786652A/en
Application granted granted Critical
Publication of CN105786652B publication Critical patent/CN105786652B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

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

Abstract

The invention discloses the method and devices of a kind of driving backup, recovery, wherein the method for driving backup includes: to obtain the information of driver in operating system;According to the information of each driver, the system that will not belong to is carried and corresponding equipment is not the driver of central processing unit, CD-ROM drive and virtual unit as candidate backup driver;Judge that the corresponding facility information file of each candidate backup driver whether there is, and if it exists, then back up corresponding facility information file and driver file.The present invention reduces the driving occupied memory spaces of Backup Data, and when re-operating system, it can be according to driver needed for the driver installation backed up, it avoids the model for needing to identify distinct device in repacking operation system and searches the trouble of driver, required time is shorter, improves the efficiency of installation driver.

Description

The method and device of driving backup, recovery
Technical field
The present invention relates to field of computer technology, and in particular to a kind of method and device that driving is backed up, restored.
Background technique
Driver is a kind of interface routine that operating system control hardware device works normally.Operating system sends out instruction Driver is given, hardware effort is driven by driver, while the working performance of hardware can also be adjusted.For example, installing After complete operating system, the display color of screen can not show true color, this is because having only used the included initial stage of video card Driver causes the performance of video card not play normally.In order to play the performance of video card normally, it is necessary to install one A video card manufacturer is the driver of the video card specific development.
And the installation of driver be also user debugging and maintenance computer when most headache the problem of, such as refitting system Afterwards, the driver for needing to install the equipment such as video card, sound card, network interface card, video heads, printer, in the process of installation driver In, to identify the model of distinct device, and search corresponding driver, operation is very cumbersome, and efficiency is lower.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the method and device of driving backup, the recovery of problem.
According to an aspect of the invention, there is provided a kind of method of driving backup, comprising: obtain and driven in operating system The information of program;According to the information of each driver, the system that will not belong to is carried and corresponding equipment is not center The driver of processor, CD-ROM drive and virtual unit is as candidate backup driver;Judge each candidate backup driving The corresponding facility information file of program whether there is, and if it exists, then by corresponding facility information file and driver file into Row backup.
Wherein the information of the driver includes the file name, device class, hardware ID, description of facility information file Information and manufacturer's information;It is included and corresponding set to will not belong to system for the information according to each driver It is standby not to be central processing unit, CD-ROM drive or with the driver of virtual unit include as candidate backup driver: according to each The file name of the corresponding facility information file of the driver judges whether it belongs to the included driver of system;For Be not belonging to the included driver of system, according to its corresponding device type judge corresponding equipment whether be central processing unit or CD-ROM drive;For being not belonging to that system is included and corresponding equipment is also not the driver of central processing unit and CD-ROM drive, according to it Corresponding device class, hardware ID, description information and manufacturer's information judge whether corresponding equipment is virtual unit;It will not belong to In system, included and corresponding equipment is also not the driver of central processing unit, CD-ROM drive and virtual unit as candidate standby Part driver.
Wherein the driver file is to obtain respective drive program file by opening the facility information file Title, and searched and obtained under system disk catalogue according to the title of the driver file.
Optionally, if there is the filename of the corresponding facility information file of at least two candidate backup drivers Claim identical, then only the corresponding facility information file of one of them described candidate backup driver and driver file is carried out Backup.
Optionally, the backup-step includes: according to preset backup path, by the facility information file and driver File stores the local disk or server in addition to system disk being directed toward to the preset backup path.
Optionally, the above method further include: determine the hardware device for needing to restore driver in operating system;According to institute The hardware device for needing to restore driver is stated, corresponding facility information file and driver text are obtained from Backup Data Part;The facility information file and driver file are loaded into operating system.
Optionally, the hardware device for needing to restore driver in the determining operating system includes: detection operating system In whether there is unknown device, and if it exists, then the unknown device is determined as to need to restore the hardware device of driver;Or Person obtains the list of hardware device in operating system, receives selection of the user to hardware devices one or more in the list Input, and one or more of hardware devices are determined as to need to restore the hardware device of driver.
According to another aspect of the present invention, a kind of device of driving backup is additionally provided, comprising: getter is configured For the information for obtaining driver in operating system;Screening washer is configured as the information according to each driver, will not Belong to that system is included and corresponding equipment is not the driver of central processing unit, CD-ROM drive and virtual unit as candidate standby Part driver;Backup device is configured as whether judging the corresponding facility information file of each candidate backup driver In the presence of, and if it exists, then corresponding facility information file and driver file are backed up.
Wherein the information of the driver includes the file name, device class, hardware ID, description of facility information file Information and manufacturer's information;The screening washer includes: first judgment module, is configured as corresponding according to each driver The file name of facility information file judge whether it belongs to the included driver of system;Second judgment module, is configured To judge whether corresponding equipment is centre according to its corresponding device type for being not belonging to the included driver of system Manage device or CD-ROM drive;Third judgment module, is configured as that system is included and corresponding equipment is not central processing for being not belonging to The driver of device and CD-ROM drive judges corresponding according to its corresponding device class, hardware ID, description information and manufacturer's information Whether equipment is virtual unit;Determining module, is configured as will not belong to that system is included and corresponding equipment is also not center The driver of processor, CD-ROM drive and virtual unit is as candidate backup driver.
Wherein the driver file is to obtain respective drive program file by opening the facility information file Title, and searched and obtained under system disk catalogue according to the title of the driver file.
Optionally, if there is the filename of the corresponding facility information file of at least two candidate backup drivers Claim identical, then only the corresponding facility information file of one of them described candidate backup driver and driver file is carried out Backup.
Optionally, the backup device is specifically configured to according to preset backup path, by the facility information file and drive Dynamic program file stores the local disk or server in addition to system disk being directed toward to the preset backup path.
Optionally, above-mentioned apparatus further include: driving restores determiner, is configured to determine that in operating system and needs to restore to drive The hardware device of dynamic program;Backup getter is driven, is configured as according to the hardware device for needing to restore driver, from Corresponding facility information file and driver file are obtained in Backup Data;Drive load device is configured as the equipment Message file and driver file are loaded into operating system.
Optionally, it includes: that the first driving restores determining module that the driving, which restores determiner, is configured as detection operation system It whether there is unknown device in system, and if it exists, be then determined as the unknown device to need to restore the hardware device of driver; And/or second driving restore determining module, be configured as obtain operating system in hardware device list, receive user to institute The selection input of one or more hardware devices is stated in list, and one or more of hardware devices are determined as needing extensive The hardware device of multiple driver.
According to a further aspect of the invention, a kind of method that driving restores is additionally provided, comprising: determine in operating system Need to restore the hardware device of driver;According to the hardware device for needing to restore driver, obtained from Backup Data Corresponding facility information file and driver file are taken, wherein the Backup Data is the backup of driver in operating system Data;The facility information file and driver file are loaded into operating system.
Optionally, the hardware device for needing to restore driver in the determining operating system includes: detection operating system In whether there is unknown device, and if it exists, then the unknown device is determined as to need to restore the hardware device of driver;Or Person obtains the list of hardware device in operating system, receives selection of the user to hardware devices one or more in the list Input, and one or more of hardware devices are determined as to need to restore the hardware device of driver.
According to a further aspect of the invention, a kind of device that driving restores is additionally provided, comprising: driving restores to determine Device is configured to determine that the hardware device for needing to restore driver in operating system;Backup getter is driven, root is configured as According to the hardware device for needing to restore driver, corresponding facility information file and driver are obtained from Backup Data File, wherein the Backup Data is the Backup Data of driver in operating system;Drive load device, being configured as will be described Facility information file and driver file are loaded into operating system.
Optionally, it includes: that the first driving restores determining module that the driving, which restores determiner, is configured as detection operation system It whether there is unknown device in system, and if it exists, be then determined as the unknown device to need to restore the hardware device of driver; Alternatively, the second driving restores determining module, it is configured as obtaining the list of hardware device in operating system, receives user to described The selection input of one or more hardware devices in list, and one or more of hardware devices are determined as needing to restore The hardware device of driver.
Technical solution of the present invention will automatically can be not belonging to that system is included in operating system and corresponding equipment not It is that the driver of central processing unit, CD-ROM drive and virtual unit is backed up, on the one hand avoids and looked into repacking operation system The trouble of driver is looked for, on the other hand due to only backing up to the driver that must be backed up, reduces backup number According to occupied memory space.It, can be according to the driving data backed up by corresponding driver in repacking operation system It is loaded into operating system, and no longer needs to identify the model of distinct device, also do not need to search driver CD, operation letter Single, required time is shorter, improves the efficiency of installation driver.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the method flow diagram of the driving backup of one embodiment of the invention;
Fig. 2 shows the schematic devices of the driving backup of one embodiment of the invention;
Fig. 3 shows the method flow diagram that driving according to an embodiment of the invention restores;
Fig. 4 shows the schematic device that the driving of one embodiment of the invention restores.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 is the method flow diagram of the driving backup of one embodiment of the invention;As shown, the method for driving backup Include:
Step S110: the information of driver in operating system is obtained.
Here operating system can be desktop operating system, such as Mac OS X, Debian, Ubuntu, Linux The Unix such as Mint, Suse Linux, Fedora and class Unix operating system and Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 8 etc. Windows operating systems;It is also possible to server operating system, such as The Unix sequence of maneuvers system such as SUN Solaris, IBM-AIX, HP-UX, FreeBSD, Red Hat Linux, CentOS, The Linux sequence of maneuvers system such as Debian, Ubuntu and Windows Server 2003, Windows Server The Windows sequence of maneuvers system such as 2008, Windows Server, 2008 R2;It can also be embedded OS, it is such as embedding Enter the embedded OSs such as formula Linux, Windows CE and is widely used in smart phone and tablet computer The operating systems such as Android, iOS, Symbian, Windows Phone and BlackBerry OS.The embodiment of the present invention only with It is illustrated for Windows operating system, other operating systems are referred to Windows operating system to execute.
The information of driver in operating system is obtained, it can be by calling the system to enumerate device driver API (Application Programming Interface, application programming interface) function realizes, such as The driver installed in system can be enumerated by calling SetupAPI function in Windows system, and obtain each driving The details of program, these information may include hardware ID, device class, description information, manufacturer's information, INF (Device INFormation File, facility information file) file name etc., wherein backing up most important information for driving is exactly INF File name.Wherein device class is classification belonging to hardware device, the routine of the hardware device in system equipment manager It include device class item in information, the corresponding content of device class item, such as processor, video card, it is hardware device Device class;Manufacturer's information is the manufacturer information of hardware device, the routine of the hardware device in system equipment manager It include manufacturer in information, the corresponding content of the manufacturer is the manufacturer's information of hardware device;Hardware ID refers to The number of hardware device includes hardware ID item in the details of hardware device in the equipment manager of system, hard from this The part ID lower hardware IDs that can find the hardware device;Description information refers to the title of equipment in systems, that is, is setting The device name shown in standby manager.INF is that Microsoft Corporation is that hardware device manufacturer issues the release of its driver A kind of file format, the information or script in INF file comprising hardware device are to control hardware operation.In INF document Be illustrated hardware driving this how to be installed in system, source file where, be installed in which file, how in registration table Middle itself relevant information of addition etc..
Step S120: according to the information of each driver, will not belong to that system is included and corresponding equipment not It is the driver of central processing unit, CD-ROM drive and virtual unit as candidate backup driver.
Since many drivers in operating system are that operating system is included, when operating system is installed just Had, do not need to back up, even if driver is lost, can also be restored by system reparation.In addition, there are also such as empty Quasi- CD-ROM drive software, software virtual machine etc. may will be installed the driver of some virtual units, and these drivers are virtual CD-ROM drive software, software virtual machine carry, and also do not need to back up.If these drivers for not needing backup carried out standby Part, not only not in all senses, but also waste memory space.
When implementing this step, judge whether a driver belongs to the included driver of system, generally may be used To be judged according to the corresponding INF file name of each driver, for example, typically not belonging to the included driver of system Whether INF file name is started with OEM, can be to be started with OEM by first judging the INF file name of driver therefore It is carried to judge whether the driver belongs to system, it, can if the INF file name of the driver is started with OEM It is that system is included to determine the driver not.However, some are not that the included driver of system does not need to back up yet, It, should if some CPU (Central Processing Unit, central processing unit) are sometimes for third-party driver is installed The INF file name of third-party driver is also to be started with OEM, but this driver is generally by the BIOS of mainboard (Basic Input Output System, basic input output system) provides, and does not also need to back up, due to the driving journey of CPU The corresponding device type of sequence is processor (processor), therefore, can pass through the driving by device type for processor Program filters out the column excluded such driver in backup;On the other hand, since the driver of CD-ROM drive is usually system It is included, it does not need to back up, whether passed through INF file name is the column excluded with OEM beginning in backup, but virtual drive Driver to be not belonging to system included, and since the driver of virtual drive is included in virtual drive software, be also not required to It backs up, it therefore, can be by the way that the driver that device type is cdrom (CD-ROM drive) be filtered out the further drive by virtual drive Dynamic program excludes the column in backup;In addition, the driver of virtual unit is also contained in virtual device software, do not need standby yet Part, and since the driver of virtual unit can be believed by its corresponding device class, hardware ID, description information and manufacturer Breath judges whether corresponding equipment is virtual unit to determine, for example, the equipment about known virtual unit can be pre-established Classification, hardware ID, description information and manufacturer's information database, by virtual unit and its device class respectively, hardware ID, retouch It is associated to state information and manufacturer's information, it is specific determine when, can according to the acquired corresponding device class of driver, One or more in hardware ID, description information and manufacturer's information are determined, such as such as Vmware company, the manufacturer having, Only manufacture virtual unit, if the manufacturer's information of the driver obtained by API calls is Vmware company, directly It connects and can be determined that the corresponding equipment of the driver is virtual unit.In this way, can also be further by the driving journey of virtual unit Sequence excludes the column in backup.
In addition, some equipment in operating system, such as changeable double video cards or multifunctional card reader, by piece The API calls for lifting device driver enumerate to be multiple equipment, but this multiple equipment is by an installation journey Sequence installation, corresponding INF file be it is same, that is, exist the corresponding facility information file of at least two drivers file Title is identical, in this case, only carries out to the corresponding facility information file of one of driver and driver file Backup, to avoid more parts of identical driver data are backed up out, is further reduced memory space shared by Backup Data.
Step S130: judge that the corresponding facility information file of each candidate backup driver whether there is, if depositing Then corresponding facility information file and driver file are being backed up.
It, can be according to the text of the corresponding facility information file of each candidate backup driver when implementing this step Part title, search behaviour system disk catalogue under whether with the presence of same file title file, for Windows system, It is searched under windows INF catalogue, if finding the file of same file title, illustrates that the candidate backup drives journey The corresponding facility information file of sequence exists.
It, can be according to preset backup road when being backed up to candidate backup driver existing for facility information file Corresponding driving data (facility information file and driver file) is stored to what preset backup path was directed toward and removes system by diameter Local disk or server outside disk.For example, when storing driving data to local disk in addition to system disk, it is assumed that C Disk is system disk, it is possible to preset backup path are as follows: D: Drivers, by the driving data of respective drive program store to Under the preset backup path, wherein D disk here can be fixed disk, or the USB flash disk (USB flash memory of mobile storage Disk, USB flash disk) etc..If selecting local disk storage driving data, it will not when the system of refitting Can selection format totally, the driving data otherwise backed up is by whole loss.For this purpose, driving data can also be stored in service On device, so that the selection formatted totally can not be limited by backup path.Further, it is also possible to which subhead address book stored is driven accordingly Dynamic data, for example, respective backup storage catalogue can be established respectively for equipment such as mainboard, video card, sound card, printers, so as to In the driving data for searching each equipment.
Above-described embodiment judges that the information of acquired driver, system is included and software of installing carries Driver exclude the column in backup, only will not belong to that system carries and corresponding equipment is not central processing unit, CD-ROM drive Exist with included drivers of installation software such as virtual units as candidate backup driver, and then by facility information file Candidate backup driver backed up, in this way, reducing due to only being backed up to the driver that must be backed up The occupied memory space of Backup Data, and when re-operating system, institute can be installed according to the driver backed up The driver needed avoids the model for needing to identify distinct device in repacking operation system and searches the fiber crops of driver Tired, required time is shorter, improves the efficiency of installation driver.
It is adapted with the embodiment of the method for the aforementioned driving backup of the present invention, Fig. 2 shows the drives of one embodiment of the invention The schematic device of dynamic backup, as shown, the device of driving backup includes:
Getter 210 is configured as obtaining the information of driver in operating system;
Screening washer 220 is configured as the information according to each driver, and it is included and right to will not belong to system The equipment answered is not the driver of central processing unit and CD-ROM drive and virtual unit as candidate backup driver;
Backup device 230 is configured as whether judging the corresponding facility information file of each candidate backup driver In the presence of, and if it exists, then corresponding facility information file and driver file are backed up.
Optionally, wherein the information of the driver includes the file name, device class, hardware of facility information file ID, description information and manufacturer's information;The screening washer includes: first judgment module, is configured as according to each driving The file name of the corresponding facility information file of program judges whether it belongs to the included driver of system;Second judges mould Block is configured as judging that corresponding equipment is according to its corresponding device type for being not belonging to the included driver of system No is central processing unit and CD-ROM drive;Third judgment module, be configured as be not belonging to that system is included and corresponding equipment not It is the driver of central processing unit and CD-ROM drive, according to its corresponding device class, hardware ID, description information and manufacturer's information Judge whether corresponding equipment is virtual unit;Determining module, is configured as will not belong to that system is included and corresponding equipment Nor the driver of central processing unit and CD-ROM drive and virtual unit is as candidate backup driver.
Optionally, wherein the driver file is to obtain respective drive journey by opening the facility information file The title of preface part, and searched and obtained under system disk catalogue according to the title of the driver file.
Optionally, if there is the filename of the corresponding facility information file of at least two candidate backup drivers Claim identical, then only the corresponding facility information file of one of them described candidate backup driver and driver file is carried out Backup.
Optionally, the backup device is specifically configured to according to preset backup path, by the facility information file and drive Dynamic program file is stored to the local disk or server in addition to system disk.
Optionally, the device of above-mentioned driving backup further include: driving restores determiner, is configured to determine that needs restore to drive The hardware device of dynamic program;Backup getter is driven, is configured as according to the hardware device for needing to restore driver, from Corresponding facility information file and driver file are obtained in Backup Data;Drive load device is configured as the equipment Message file and driver file are loaded into operating system.
Optionally, it includes: that the first driving restores determining module that the driving, which restores determiner, is configured as detection operation system It whether there is unknown device in system, and if it exists, be then determined as the unknown device to need to restore the hardware device of driver; And/or second driving restore determining module, be configured as obtain operating system in hardware device list, receive user to institute State in list the selection input of one or more hardware devices, and by the received user of institute select input it is one or more firmly Part equipment is determined as needing to restore the hardware device of driver.
It, can be in repacking operation system according to the drive backed up after being backed up to the driver in operating system Driver is rapidly loaded into operating system by dynamic data.
Fig. 3 shows the method flow diagram that driving according to an embodiment of the invention restores;As shown, the driving is extensive Multiple method includes:
Step S310: the hardware device for needing to restore driver in operating system is determined.
When implementing this step, it can be automatically determined there are many mode and need to restore driver in operating system Hardware device, for example, can detecte in operating system with the presence or absence of unknown device, and if it exists, then determine the unknown device For the hardware device for needing to restore driver.In another example the list of hardware device in operating system can also be obtained, wherein institute It states the hardware device in list and can be the corresponding hardware of driver that is backed up in aforementioned driving backup method embodiment and set It is standby, and receive user and the selection of hardware devices one or more in the list is inputted, and then the received user of institute is selected One or more hardware devices of input are determined as needing to restore the hardware device of driver.
Step S320: it according to the hardware device for needing to restore driver, obtains from Backup Data and sets accordingly Standby message file and driver file, wherein the Backup Data is the Backup Data of driver in operating system.
It, can be according to the hardware device, as this is hard after step S310 determination needs to restore the hardware device of driver The title or ID of part equipment, automatically according to the store path of Backup Data (local disk or server in addition to system disk), from It is searched to obtain corresponding facility information file and driver file in Backup Data under the store path, wherein this In Backup Data can be the driving data that is stored of embodiment of the method for aforementioned driving backup.In addition, Backup Data with The equipment such as mainboard, video card, sound card, printer sectional lists into when being stored, also can according to need restore driver it is hard The title of part equipment finds corresponding facility information file and driver file under store path automatically.Step S330: will The facility information file and driver file are loaded into operating system.
Due to facility information document be illustrated hardware driving this how to be installed in operating system, source file where, It is installed in which file, how itself relevant information etc. to be added in registration table, according in facility information file Illustrate, driver file can be loaded under destination folder automatically.
Wherein, the selection of hardware devices one or more in list is inputted when receiving user, and then by the received use of institute When one or more hardware devices of family selection input are determined as needing to restore the hardware device of driver, described from user side If, by taking Windows XP system as an example, user can restore the driver of selected hardware device as follows:
1. the equipment manager of opening operation system, user can see the list of hardware device in operating system;
2. choosing the hardware device for needing to restore driving from the list, clicking right mouse button (may be set to be click Left mouse button), select " more newer driver " in a menu;
3. selection " the device driver list or designated position installation from computer " in the dialog box of pop-up;
4. clicking " installing from disk " button in next dialog box;
5. clicking the Browse button in the file selection dialog box of pop-up;
6. the catalogue where selecting backup driver in catalogue selection dialog box;
7. clicking the Next button to be installed, during which user may be needed to confirm there are also several confirmation dialog boxes.
For the operating system of other operating systems or the other versions of Windows, restores selected hardware and set The operating procedure of standby driver may be slightly different, and which is not described herein again.
Above-described embodiment can automatically determine or receive user and specify the hardware for needing to restore driver in operating system Equipment, and then corresponding facility information file and driver file are rapidly found, and be automatically mounted into operating system, Easy to operate, the required time is shorter, improves the efficiency for restoring driver, avoids and restores to need to identify when driver The model of each hardware device and the trouble for searching respective drive CD.
The embodiment of the method restored with the aforementioned driving of the present invention is adapted, and Fig. 4 shows the drive of one embodiment of the invention The dynamic schematic device restored.As shown, the device that the driving restores includes:
Driving restores determiner 410, is configured to determine that the hardware device for needing to restore driver in operating system;
Backup getter 420 is driven, is configured as according to the hardware device for needing to restore driver, from backup number Corresponding facility information file and driver file are obtained according to middle, wherein the Backup Data is driver in operating system Backup Data;
Drive load device 430 is configured as the facility information file and driver file being loaded into operating system In.
Optionally, it includes: that the first driving restores determining module that the driving, which restores determiner, is configured as detection operation system It whether there is unknown device in system, and if it exists, be then determined as the unknown device to need to restore the hardware device of driver; Alternatively, the second driving restores determining module, it is configured as obtaining the list of hardware device in operating system, receives user to described The selection input of one or more hardware devices in list, and one or more hardware that the received user's selection of institute is inputted Equipment is determined as needing to restore the hardware device of driver.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize some or all portions in equipment according to an embodiment of the present invention The some or all functions of part.The present invention is also implemented as a part or complete for executing method as described herein The device or device program (for example, computer program and computer program product) in portion.It is such to realize program of the invention It can store on a computer-readable medium, or may be in the form of one or more signals.Such signal can be with It downloads from internet website, is perhaps provided on the carrier signal or is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of method of driving backup, comprising:
Obtain the information of driver in operating system;
According to the information of each driver, will not belong to that system is included and corresponding equipment be not central processing unit, The driver of CD-ROM drive and virtual unit is as candidate backup driver, comprising: corresponding according to each driver Device type judges whether corresponding equipment is central processing unit or CD-ROM drive;According to the corresponding equipment class of each driver Not, hardware ID, description information or manufacturer's information judge whether corresponding equipment is virtual unit;
Judge that the corresponding facility information file of each candidate backup driver whether there is, and if it exists, then will be corresponding Facility information file and driver file are backed up;Wherein the driver file is by opening the facility information File, obtains the title of respective drive program file, and is looked under system disk catalogue according to the title of the driver file It finds;
Determine the hardware device for needing to restore driver in operating system;
According to the hardware device for needing to restore driver, corresponding facility information file and drive are obtained from Backup Data Dynamic program file;
The facility information file and driver file are loaded into operating system.
2. the method as described in claim 1, wherein the information of the driver include facility information file file name, Device class, hardware ID, description information and manufacturer's information;
The information according to each driver, the system that will not belong to carries and corresponding equipment is not centre It manages device, CD-ROM drive or includes as candidate backup driver with the driver of virtual unit:
It is included to judge whether it belongs to system according to the file name of the corresponding facility information file of each driver Driver;
For being not belonging to the included driver of system, judge whether corresponding equipment is center according to its corresponding device type Processor or CD-ROM drive;
For being not belonging to that system is included and corresponding equipment is also not the driver of central processing unit and CD-ROM drive, according to it Corresponding device class, hardware ID, description information and manufacturer's information judge whether corresponding equipment is virtual unit;
It will not belong to that system is included and corresponding equipment be also not the driver of central processing unit, CD-ROM drive and virtual unit As candidate backup driver.
3. the method as described in claim 1, believe if there is the corresponding equipment of at least two candidate backup drivers The file name for ceasing file is identical, then only the corresponding facility information file of one of them described candidate backup driver and drive Dynamic program file is backed up.
4. the method as described in claim 1, the backup-step include:
According to preset backup path, the facility information file and driver file are stored to the preset backup path and referred to To the local disk or server in addition to system disk.
5. the method as described in claim 1, the hardware device for needing to restore driver in the determining operating system includes:
It detects and whether there is unknown device in operating system, and if it exists, then be determined as needing to restore driving by the unknown device The hardware device of program;
Alternatively,
The list of hardware device in operating system is obtained, selection of the user to hardware devices one or more in the list is received Input, and one or more of hardware devices are determined as to need to restore the hardware device of driver.
6. a kind of device of driving backup, comprising:
Getter is configured as obtaining the information of driver in operating system;
Screening washer is configured as the information according to each driver, and the system that will not belong to carries and corresponding equipment It is not the driver of central processing unit, CD-ROM drive and virtual unit as candidate backup driver, comprising: according to each described The corresponding device type of driver judges whether corresponding equipment is central processing unit or CD-ROM drive;According to each driving journey The corresponding device class of sequence, hardware ID, description information or manufacturer's information judge whether corresponding equipment is virtual unit;
Backup device is configured as judging that the corresponding facility information file of each candidate backup driver whether there is, if In the presence of then corresponding facility information file and driver file being backed up, wherein the driver file is to pass through The facility information file is opened, obtains the title of respective drive program file, and according to the title of the driver file It searches and obtains under system disk catalogue;
Driving restores determiner, is configured to determine that the hardware device for needing to restore driver in operating system;
Backup getter is driven, is configured as being obtained from Backup Data according to the hardware device for needing to restore driver Take corresponding facility information file and driver file;
Drive load device is configured as the facility information file and driver file being loaded into operating system.
7. device as claimed in claim 6, wherein the information of the driver include facility information file file name, Device class, hardware ID, description information and manufacturer's information;
The screening washer includes:
First judgment module is configured as the file name judgement according to the corresponding facility information file of each driver Whether it belongs to the included driver of system;
Second judgment module is configured as being sentenced for being not belonging to the included driver of system according to its corresponding device type Whether corresponding equipment of breaking is central processing unit or CD-ROM drive;
Third judgment module, is configured as that system is included and corresponding equipment is not central processing unit and light for being not belonging to The driver of drive judges that corresponding equipment is according to its corresponding device class, hardware ID, description information and manufacturer's information No is virtual unit;
Determining module, is configured as will not belong to that system is included and corresponding equipment is also not central processing unit, CD-ROM drive and void Standby driver is proposed as candidate backup driver.
8. device as claimed in claim 6, believe if there is the corresponding equipment of at least two candidate backup drivers The file name for ceasing file is identical, then only the corresponding facility information file of one of them described candidate backup driver and drive Dynamic program file is backed up.
9. device as claimed in claim 6, the backup device is specifically configured to according to preset backup path, by the equipment Message file and driver file store the local disk or clothes in addition to system disk being directed toward to the preset backup path Business device.
10. device as claimed in claim 6, the driving restores determiner and includes:
First driving restores determining module, is configured as in detection operating system with the presence or absence of unknown device, and if it exists, then by institute Unknown device is stated to be determined as needing to restore the hardware device of driver;
And/or
Second driving restores determining module, is configured as obtaining the list of hardware device in operating system, receives user to described The selection input of one or more hardware devices in list, and one or more of hardware devices are determined as needing to restore The hardware device of driver.
CN201610113234.6A 2013-01-09 2013-01-09 The method and device of driving backup, recovery Expired - Fee Related CN105786652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610113234.6A CN105786652B (en) 2013-01-09 2013-01-09 The method and device of driving backup, recovery

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310007866.0A CN103064767B (en) 2013-01-09 2013-01-09 Drive backup, the method recovered and device
CN201610113234.6A CN105786652B (en) 2013-01-09 2013-01-09 The method and device of driving backup, recovery

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201310007866.0A Division CN103064767B (en) 2013-01-09 2013-01-09 Drive backup, the method recovered and device

Publications (2)

Publication Number Publication Date
CN105786652A CN105786652A (en) 2016-07-20
CN105786652B true CN105786652B (en) 2019-07-30

Family

ID=56387550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610113234.6A Expired - Fee Related CN105786652B (en) 2013-01-09 2013-01-09 The method and device of driving backup, recovery

Country Status (1)

Country Link
CN (1) CN105786652B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6928444B2 (en) * 2000-06-19 2005-08-09 Hewlett-Packard Development Company, L.P. Automatic backup/recovery process
CN102147754A (en) * 2011-04-01 2011-08-10 奇智软件(北京)有限公司 Automatic backup method and device for driver
CN102841825A (en) * 2011-06-23 2012-12-26 珠海市君天电子科技有限公司 Drive backup method and device and drive restoration method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6928444B2 (en) * 2000-06-19 2005-08-09 Hewlett-Packard Development Company, L.P. Automatic backup/recovery process
CN102147754A (en) * 2011-04-01 2011-08-10 奇智软件(北京)有限公司 Automatic backup method and device for driver
CN102841825A (en) * 2011-06-23 2012-12-26 珠海市君天电子科技有限公司 Drive backup method and device and drive restoration method and device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
CPU驱动有必要安装吗;百度知道;《URL:https://zhidao.***.com/question/5866752.html?sort=9&rn=5&pn=0#wgt-answers》;20060416;提问者描述以及2006年网友提供的答案
怎样用驱动精灵进行驱动还原;百度经验;《URL:https://jingyan.***.com/article/09ea3edec8e0a5c0aede3908.html》;20110413;全文
怎样重新安装光驱驱动程序;爱问知识网;《URL:http://www.lianhekj.com/question/274964747.html》;20110602;最佳答案
虚拟光驱也要安装驱动程序吗;百度知道;《URL:https://zhidao.***.com/question/145757967.html》;20100406;最佳答案

Also Published As

Publication number Publication date
CN105786652A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
US10067835B2 (en) System reset
US8751783B2 (en) Booting computing devices with EFI aware operating systems
EP2840495B1 (en) Container-based processing method and apparatus
US20070245339A1 (en) Creating documentation screenshots on demand
US20170046151A1 (en) System and method for adding and storing groups of firmware default settings
CN101650660A (en) Booting a computer system from central storage
US20070011674A1 (en) Computer system and method for selectively installing one operating system among a plurality of operating systems
CN102135893A (en) Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server
CN101014936B (en) Method and system for automatic installation of functional unit driver on a host
US20100049961A1 (en) Update method for basic input/output system and update system thereof
CN103064767B (en) Drive backup, the method recovered and device
CN103514015A (en) Method and device for booting operation system from storage medium
CN106598637B (en) Method for selective loading of components within a node
US20190303172A1 (en) Information processing apparatus, device assignment method, and computer readable medium
US20200210163A1 (en) Operating system installation
US20150324209A1 (en) Operating System Switching Method and Dual-Operating System Electronic Device Using the Same
CN113377445B (en) Method and device for starting multiple operating systems from online disk
US8881174B2 (en) Computing device and function module management method
US20160314047A1 (en) Managing a Computing System Crash
US10296318B2 (en) Offline tools upgrade for virtual machines
US20170185444A1 (en) System for batch processing of workflows for virtualized infrastructure
CN116775061A (en) Deployment method, device, equipment and storage medium of micro-service application
US11340882B2 (en) Systems and methods for enforcing update policies while applying updates from bootable image file
CN105786652B (en) The method and device of driving backup, recovery
CN104778048A (en) Method and device for installing and setting up server web environment on the basis of Linux system

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220720

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190730