CN112131052B - Method and system for quickly recovering operating system - Google Patents
Method and system for quickly recovering operating system Download PDFInfo
- Publication number
- CN112131052B CN112131052B CN202011147816.9A CN202011147816A CN112131052B CN 112131052 B CN112131052 B CN 112131052B CN 202011147816 A CN202011147816 A CN 202011147816A CN 112131052 B CN112131052 B CN 112131052B
- Authority
- CN
- China
- Prior art keywords
- key parameters
- operating system
- key
- values
- configuration file
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000011084 recovery Methods 0.000 claims abstract description 34
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 239000000872 buffer Substances 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1417—Boot up procedures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1469—Backup restoration techniques
Abstract
The invention provides a method and a system for quickly recovering an operating system. The method comprises the following steps: restoring the backup operating system to an operating system used by the system operation; restoring key parameters which have important significance to the operation of an operating system by a key parameter backup area; setting the recovered key parameters as key parameters used by the running of the operating system; and operating the operating system according to the set key parameters. The method and the system for quickly recovering the operating system can realize the quick recovery operation of the operating system.
Description
Technical Field
The present invention relates to the field of operating system security technologies, and in particular, to a method and a system for quickly recovering an operating system.
Background
In the actual computing process, the operating system is often required to be restored. However, in the prior art, the restoration of the operating system is often a cumbersome process. For example, a PC may be required to reload the operating system, at least for 1 to 2 hours. Therefore, a technical solution capable of rapidly recovering the operating system is needed.
Disclosure of Invention
The invention aims to provide a method and a system for quickly recovering an operating system, which can realize the quick recovery of the operating system.
In order to solve the technical problems, the present invention provides a method for quickly recovering an operating system, which includes: restoring the backup operating system to an operating system used by the system operation; restoring key parameters which have important significance to the operation of an operating system by a key parameter backup area; setting the recovered key parameters as key parameters used by the running of the operating system; and operating the operating system according to the set key parameters.
In some embodiments, restoring the backup operating system to an operating system used by the system operation includes: copying a system file and a configuration file of a backup operating system by a data source, wherein the configuration file stores actual values of key parameters; and setting the key parameters stored in the configuration file as default values.
In some embodiments, restoring key parameters that are significant to the operation of the operating system from the key parameter backup area includes: and recovering the configuration file storing the value of the key parameter from the key parameter backup area.
In some embodiments, the configuration file includes: a system configuration file for storing key parameters related to the operation of the operating system; and the user configuration file is used for storing key parameters related to user settings.
In some embodiments, key parameters related to operating system operation include: system time.
In some implementations, the key parameters related to the user settings include: user password, interface display mode.
In some embodiments, setting the recovered critical parameters as critical parameters for operating system running use includes: searching key parameters to be set in the configuration file; if the key parameters are found, setting the values of the key parameters in the configuration file as new values of the key parameters; and if the key parameters are not found, setting the value of the new key parameters as a default value.
In some embodiments, if the key parameter is not found, setting the value of the new key parameter to a default value includes: searching whether a dependency relationship exists between the key parameters which are not set and the key parameters which are already set; if the dependency relationship exists between the unset key parameters and the set key parameters, setting the values of the unset key parameters according to the current values of the set key parameters and the dependency relationship between the unset key parameters and the set key parameters; if no dependency exists between the unset key parameters and any of the set key parameters, setting the values of the unset key parameters as default values.
In addition, the invention also provides a quick recovery system of the operating system, which comprises: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the rapid recovery method of the operating system.
With such a design, the invention has at least the following advantages:
by firstly executing the recovery of the backup operating system and the recovery of the key parameters and setting the key parameters in the system as the recovered values, the recovery operation of the operating system is rapidly realized, and the working efficiency of the recovery operation of the operating system is greatly improved.
Drawings
The foregoing is merely an overview of the present invention, and the present invention is further described in detail below with reference to the accompanying drawings and detailed description.
FIG. 1 is a flowchart of a method for quickly recovering an operating system according to an embodiment of the present invention;
fig. 2 is a block diagram of a fast recovery system of an operating system according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
Fig. 1 shows a flow of a method for quickly recovering an operating system according to an embodiment of the present invention. Referring to fig. 1, the fast recovery method of the operating system includes:
s11, recovering the backup operating system into an operating system used by the system operation.
S12, recovering key parameters which are significant to the operation of the operating system by the key parameter backup area.
S13, setting the recovered key parameters as key parameters used by the operation system.
S14, operating the operating system according to the set key parameters.
The key of the technical scheme of the invention is that the original operating system is recovered first, and then the key parameters of the operating system are recovered. Because the parameters used by the restored operating system during operation are key parameters originally used by the operating system, the operating state of the operating system is identical to that before the restoration operation is performed.
Since the operating state of the operating system after the recovery operation is performed is exactly the same as that of the previous operating system, the recovery operation not only recovers the operating system itself, but also recovers the operating state of the operating system.
Typically, the key parameters may include: key parameters related to system operation, and key parameters related to user settings.
The key parameters related to the operation of the system are those that are the same for all users using the operating system, and are only related to the operation of the system. Such parameters may include: system time.
The key parameters related to the user settings refer to a class of parameters whose values can be different for different users of the system. Such parameters may include: user password, interface display mode.
Typically, updating the key parameters may take the form of a download profile. That is, the values of the key parameters to be recovered are saved in the form of configuration files, and then the configuration files with the saved values are downloaded to the local executing the recovery of the operating system, so that the recovery of the key parameters can be completed.
Further, after the transmission of the configuration file is completed, the recovery of the key parameters can be completed by searching the configuration file. Typically, the key parameters that need to be restored can be looked up in the configuration file. And if the key parameters needing to be updated are found, executing key parameter recovery by using the key parameter values stored in the configuration file. And if the key parameters which need to be updated are not found, setting the value of the key parameters as a default value.
Still further, the default setting of the key parameter may also be performed in accordance with a dependency relationship with the key parameter for which the restoration operation has been performed.
It should be appreciated that there is a dependency between different critical parameters during a critical parameter recovery operation. For example, once the time zone parameter is set to the east-eighth zone, the preferred system language option is most likely chinese.
The default value may be set according to the dependency relationship of the values of the key parameters already set. That is, when a default value of a key parameter is set, it is first searched to see whether there is a dependency relationship between the key parameter and the value of the key parameter that has been set. And if the key parameters are stored, setting the default values of the new key parameters according to the values of the key parameters which are already set and the dependency relationship between the key parameters. If no dependency exists between the key parameter and any key parameter which is already set, the value of the key parameter is directly set as the most original default value.
Typically, the file system running the operating system may be: jffs2, yaffs, cramfs, romfs, ramdisk, ramfs, or tmpfs.
Fig. 2 shows the structure of a quick recovery system of an operating system. Referring to FIG. 2, for example, the operating system fast recovery system 200 may be used to act as an operating system recovery device in a computer system. As described herein, the rapid recovery system 200 of an operating system may be used to implement recovery functions for an operating system in a computer system. The fast recovery system 200 of the operating system may be implemented in a single node or the functions of the fast recovery system 200 of the operating system may be implemented in multiple nodes in a network. Those skilled in the art will appreciate that the term operating system's quick recovery system includes devices in a broad sense, with the operating system's quick recovery system 200 shown in FIG. 2 being but one example. The fast recovery system 200 including an operating system is for clarity of description and is not intended to limit the application of the present invention to a particular operating system fast recovery system embodiment or to a class of operating system fast recovery system embodiments. At least some of the features/methods described herein may be implemented in a network device or component, such as the rapid recovery system 200 of an operating system. For example, the features/methods of the present invention may be implemented in hardware, firmware, and/or software running on hardware. The fast recovery system 200 of the operating system may be any device that processes, stores and/or forwards data frames over a network, e.g., a server, a client, a data source, etc. As shown in fig. 2, the fast recovery system 200 of the operating system may include a transceiver (Tx/Rx) 210, which may be a transmitter, a receiver, or a combination thereof. The Tx/Rx 210 may be coupled to a plurality of ports 250 (e.g., uplink and/or downlink interfaces) for transmitting and/or receiving frames from other nodes. Processor 230 may be coupled to Tx/Rx 210 to process the frame and/or to determine to which nodes to send the frame. Processor 230 may include one or more multi-core processors and/or memory devices 232, which may serve as data stores, buffers, and the like. Processor 230 may be implemented as a general-purpose processor or may be part of one or more application specific integrated circuits (application specific integrated circuit, ASIC for short) and/or digital signal processor (digital signal processor, DSP for short).
The above description is only of the preferred embodiments of the present invention, and is not intended to limit the invention in any way, and some simple modifications, equivalent variations or modifications can be made by those skilled in the art using the teachings disclosed herein, which fall within the scope of the present invention.
Claims (5)
1. A method for quickly recovering an operating system, comprising:
restoring the backup operating system to an operating system used by the system operation comprises: copying a system file and a configuration file of a backup operating system by a data source, wherein the configuration file stores actual values of key parameters; setting key parameters stored in the configuration file as default values;
restoring key parameters that are significant to the operation of the operating system from the key parameter backup area includes: restoring the configuration file storing the value of the key parameter from the key parameter backup area;
setting the recovered key parameters as key parameters used by the running of the operating system, wherein the key parameters comprise: searching key parameters to be set in the configuration file; if the key parameters are found, setting the values of the key parameters in the configuration file as new values of the key parameters; if the key parameters are not found, setting the values of the new key parameters as default values;
operating an operating system according to the set key parameters; if the key parameter is not found, setting the value of the new key parameter as a default value, including: searching whether a dependency relationship exists between the key parameters which are not set and the key parameters which are already set; if the dependency relationship exists between the unset key parameters and the set key parameters, setting the values of the unset key parameters according to the current values of the set key parameters and the dependency relationship between the unset key parameters and the set key parameters; if no dependency exists between the unset key parameters and any set key parameters, setting the values of the unset key parameters as default values; the key parameters include: key parameters related to system operation, and key parameters related to user settings.
2. The method for quickly restoring an operating system according to claim 1, wherein the configuration file includes:
a system configuration file for storing key parameters related to the operation of the operating system;
and the user configuration file is used for storing key parameters related to user settings.
3. The method for quickly restoring an operating system according to claim 1, wherein the key parameters related to the operation of the operating system include: system time.
4. The method for quickly restoring an operating system according to claim 1, wherein the key parameters related to the user settings include: user password, interface display mode.
5. A system for fast recovery of an operating system, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of fast recovery of an operating system according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011147816.9A CN112131052B (en) | 2020-10-23 | 2020-10-23 | Method and system for quickly recovering operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011147816.9A CN112131052B (en) | 2020-10-23 | 2020-10-23 | Method and system for quickly recovering operating system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112131052A CN112131052A (en) | 2020-12-25 |
CN112131052B true CN112131052B (en) | 2024-02-09 |
Family
ID=73853655
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011147816.9A Active CN112131052B (en) | 2020-10-23 | 2020-10-23 | Method and system for quickly recovering operating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112131052B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140537A (en) * | 2007-10-24 | 2008-03-12 | 国电南京自动化股份有限公司 | Backup and recovery operation method of built-in operating system |
CN104932955A (en) * | 2015-05-29 | 2015-09-23 | 深圳市创维电器科技有限公司 | Method for backing up data during factory setting restoring of mobile terminal, and mobile terminal |
CN107590027A (en) * | 2017-09-11 | 2018-01-16 | 郑州云海信息技术有限公司 | Backup, the method for restoring operation systematic parameter and instrument |
CN108462714A (en) * | 2018-03-23 | 2018-08-28 | 中国人民解放军战略支援部队信息工程大学 | A kind of APT systems of defense and its defence method based on system resilience |
CN108874459A (en) * | 2017-05-10 | 2018-11-23 | 华为机器有限公司 | Quick start method and device based on virtualization technology |
CN109710461A (en) * | 2018-12-17 | 2019-05-03 | 联想(北京)有限公司 | Information processing method and information processing system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI271651B (en) * | 2004-12-30 | 2007-01-21 | Mitac Technology Corp | Recovery method and its system for an operating system |
CN101408856A (en) * | 2008-11-21 | 2009-04-15 | 清华大学 | System and method for tolerance disaster backup(disaster-tolerant backup) |
US9286327B2 (en) * | 2012-03-30 | 2016-03-15 | Commvault Systems, Inc. | Data storage recovery automation |
CN102711094A (en) * | 2012-05-17 | 2012-10-03 | 惠州Tcl移动通信有限公司 | Method, system and mobile terminal for backing-up and recovering data |
US9971658B2 (en) * | 2015-01-09 | 2018-05-15 | Vmware, Inc. | Client deployment with disaster recovery considerations |
-
2020
- 2020-10-23 CN CN202011147816.9A patent/CN112131052B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140537A (en) * | 2007-10-24 | 2008-03-12 | 国电南京自动化股份有限公司 | Backup and recovery operation method of built-in operating system |
CN104932955A (en) * | 2015-05-29 | 2015-09-23 | 深圳市创维电器科技有限公司 | Method for backing up data during factory setting restoring of mobile terminal, and mobile terminal |
CN108874459A (en) * | 2017-05-10 | 2018-11-23 | 华为机器有限公司 | Quick start method and device based on virtualization technology |
CN107590027A (en) * | 2017-09-11 | 2018-01-16 | 郑州云海信息技术有限公司 | Backup, the method for restoring operation systematic parameter and instrument |
CN108462714A (en) * | 2018-03-23 | 2018-08-28 | 中国人民解放军战略支援部队信息工程大学 | A kind of APT systems of defense and its defence method based on system resilience |
CN109710461A (en) * | 2018-12-17 | 2019-05-03 | 联想(北京)有限公司 | Information processing method and information processing system |
Non-Patent Citations (2)
Title |
---|
Learning from Before and After Recovery to Detect Latent Misconfiguration;Hiroshi Otsuka 等;《2015 IEEE 39th Annual Computer Software and Applications Conference》;141-148 * |
基于还原保护的分布式病毒防御机制研究;黄小龙 等;《武汉理工大学学报(信息与管理工程版)》;第32卷(第3期);382-385 * |
Also Published As
Publication number | Publication date |
---|---|
CN112131052A (en) | 2020-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109218336B (en) | Vulnerability defense method and system | |
US10810088B1 (en) | System and method of dynamic backup policy generation | |
US7721003B2 (en) | System and method to synchronize OSGi bundle inventories between an OSGi bundle server and a client | |
EP1734449A2 (en) | System and method of efficient data backup in a networking environment | |
US20050132206A1 (en) | Apparatus, methods and computer programs for identifying or managing vulnerabilities within a data processing network | |
US8001600B2 (en) | Centralized data transformation | |
WO2010059893A1 (en) | Methods and apparatus for establishing a dynamic virtual private network connection | |
CN111225064A (en) | Ceph cluster deployment method, system, device and computer-readable storage medium | |
CN112948340A (en) | Data synchronization method and device, electronic equipment and readable storage medium | |
US20120266186A1 (en) | Providing inter-platform application launch in context | |
CN114064668A (en) | Method, electronic device and computer program product for storage management | |
US10318385B2 (en) | Service recovery using snapshots and interservice messages | |
CN112131052B (en) | Method and system for quickly recovering operating system | |
CN109726039B (en) | Method and apparatus for managing virtual machines | |
CN112131041A (en) | Method, apparatus and computer program product for managing data placement | |
CN110389857B (en) | Method, apparatus and non-transitory computer storage medium for data backup | |
US7672948B2 (en) | Centralized data transformation | |
CN114172998B (en) | File transmission method and device, electronic equipment and storage medium | |
US11281391B2 (en) | Method, device, and computer program for migrating backup system | |
CN114115941A (en) | Resource sending method, page rendering method, device, electronic equipment and medium | |
CN110019671B (en) | Method and system for processing real-time message | |
CN108196979B (en) | Data backup method and device | |
AU2021400579B2 (en) | Methods and systems for ransomware detection, isolation and remediation | |
WO2021086423A1 (en) | Memory efficient software patching for updating applications on computing devices | |
CN111125001A (en) | Snap copy method, electronic device, and computer program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |