CN112131052A - Quick recovery method and system for operating system - Google Patents
Quick recovery method and system for operating system Download PDFInfo
- Publication number
- CN112131052A CN112131052A CN202011147816.9A CN202011147816A CN112131052A CN 112131052 A CN112131052 A CN 112131052A CN 202011147816 A CN202011147816 A CN 202011147816A CN 112131052 A CN112131052 A CN 112131052A
- Authority
- CN
- China
- Prior art keywords
- operating system
- key
- key parameter
- key parameters
- setting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000011084 recovery Methods 0.000 title claims abstract description 46
- 238000000034 method Methods 0.000 title claims abstract description 28
- 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
Images
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
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 provides a quick recovery method and a quick recovery system for an operating system. The method comprises the following steps: restoring the backup operating system to an operating system used by the system operation; key parameters which have significance to the operation of the operating system are recovered from the key parameter backup area; setting the recovered key parameters as key parameters used by the operation of the operating system; and operating the operating system according to the set key parameters. The quick recovery method and the quick recovery system for the operating system can realize 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 calculation process, the operating system is often required to be recovered. However, in the prior art, the recovery of the operating system is usually a cumbersome process. For example, a PC needs to be divided into at least 1 to 2 hours for operating system reinstallation. Therefore, a technical solution for quickly recovering the operating system is needed.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method and a system for quickly recovering an operating system, which can realize quick recovery of the operating system.
In order to solve the above technical problem, the present invention provides a method for quickly recovering an operating system, where the method includes: restoring the backup operating system to an operating system used by the system operation; key parameters which have significance to the operation of the operating system are recovered from the key parameter backup area; setting the recovered key parameters as key parameters used by the operation of the operating system; and operating the operating system according to the set key parameters.
In some embodiments, restoring the backup operating system to the operating system used by the system to run includes: copying a system file and a configuration file of a backup operating system by a data source, wherein the actual value of a key parameter is stored in the configuration file; and setting all the key parameters stored in the configuration file as default values.
In some embodiments, the recovering of the key parameters, which are significant to the operation of the operating system, from the key parameter backup area includes: and restoring the configuration file stored with the values of the key parameters from the key parameter backup area.
In some embodiments, the configuration file comprises: the system configuration file is used for storing key parameters related to the operation of the operating system; a user profile for storing key parameters related to user settings.
In some embodiments, key parameters related to operating system operation include: the system time.
In some embodiments, key parameters related to user settings include: user password, interface display mode.
In some embodiments, setting the recovered key parameter as a key parameter for operating system operation includes: searching key parameters needing to be set in a configuration file; if the key parameter is found, setting the value of the key parameter in the configuration file as the value of a new key parameter; and if the key parameter is not found, setting the value of the new key parameter as a default value.
In some embodiments, 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 set; if the dependence relationship exists between the unset key parameter and the set key parameter, setting the value of the unset key parameter according to the current value of the set key parameter and the dependence relationship between the unset key parameter and the set key parameter; and if the unset key parameters and any set key parameters have no dependency relationship, setting the values of the unset key parameters as default values.
In addition, the present invention also provides a system for quickly recovering an operating system, the system comprising: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the fast recovery method for an operating system according to the foregoing.
After adopting such design, the invention has at least the following advantages:
by executing the recovery of the backup operating system and the recovery of the key parameters firstly and setting the key parameters in the system as the recovered values, the recovery operation of the operating system is quickly realized, and the work efficiency of the recovery operation of the operating system is greatly improved.
Drawings
The foregoing is only an overview of the technical solutions of the present invention, and in order to make the technical solutions of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and the detailed description.
FIG. 1 is a flow chart of a fast recovery method for an operating system according to an embodiment of the present invention;
fig. 2 is a structural 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 in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Fig. 1 shows a flow of a fast recovery method for an operating system according to an embodiment of the present invention. Referring to fig. 1, the fast recovery method of an operating system includes:
and S11, restoring the backup operating system to the operating system used by the system to run.
And S12, recovering the key parameters which are significant to the operation of the operating system from the key parameter backup area.
And S13, setting the recovered key parameters as the key parameters used by the operation of the operating system.
And S14, operating the operating system according to the set key parameters.
The key of the technical scheme of the invention is to restore the original operating system and then recover the key parameters of the operating system. Since the parameters used by the recovered operating system in operation are all the key parameters originally used by the operating system, the operating state of the operating system is the same as that before the recovery operation is performed.
Since the running state of the operating system after the recovery operation is performed is completely the same as that of the previous operating system, our recovery operation recovers not only the operating system itself but also the running 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 the same for all users using the operating system, and are only related to the operation of the system. Such parameters may include: the system time.
The key parameters related to the user setting refer to a type of parameters whose values can be different for different users of the system. Such parameters may include: user password, interface display mode.
Typically, the update critical parameters may take the form of a download profile. That is, the values of the key parameters to be replied are stored in the form of configuration files, and then the configuration files in which the values are stored are downloaded to the local executing the recovery of the operating system, so that the recovery of the key parameters can be completed.
Furthermore, 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 a configuration file. And if the key parameter needing to be updated is found, performing key parameter recovery by using the key parameter value stored in the configuration file. And if the key parameter needing to be updated is not found, setting the value of the key parameter as a default value.
Still further, the default setting of the key parameter may also be performed according to a dependency relationship with the key parameter for which the recovery operation has been performed.
It should be understood that there is a dependency relationship between different critical parameters during a critical parameter recovery operation. For example, once the time zone parameter is set to the eighty-zone, the preferred system language option is most likely in chinese.
The default value may be set according to the dependency relationship of the values of the set key parameters. That is, when a default value of a key parameter is set, first, a search is performed to see whether a dependency relationship exists between the key parameter and a value of the set key parameter. And if the key parameter is stored, setting a new default value of the key parameter according to the set key parameter value and the dependency relationship between the key parameter value and the key parameter value. And if the key parameter has no dependency relationship with any set key parameter, directly setting the value of the key parameter 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 quick recovery system 200 may be used to act as an operating system recovery device in a computer system. As described herein, the fast recovery system 200 for an operating system may be used to implement recovery functionality 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 functionality of the fast recovery system 200 of the operating system may be implemented in multiple nodes in the network. Those skilled in the art will appreciate that the term fast recovery system for an operating system includes devices in a broad sense, and that the fast recovery system 200 for an operating system shown in FIG. 2 is only one example. The inclusion of the operating system fast recovery system 200 is for clarity 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 systems 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 fast recovery system 200 for an operating system. For example, the features/methods of the present invention may be implemented in hardware, firmware, and/or software running installed on hardware. The rapid recovery system 200 for an operating system may be any device that processes, stores, and/or forwards data frames over a network, such as a server, a client, a data source, and the like. As shown in fig. 2, a fast recovery system 200 for an operating system may include a transceiver (Tx/Rx)210, which may be a transmitter, a receiver, or a combination thereof. Tx/Rx 210 may be coupled to a plurality of ports 250 (e.g., an uplink interface and/or a downlink interface) for transmitting and/or receiving frames from other nodes. Processor 230 may be coupled to Tx/Rx 210 to process frames and/or determine to which nodes to send frames. 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 (ASICs) and/or Digital Signal Processors (DSPs).
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the present invention in any way, and it will be apparent to those skilled in the art that the above description of the present invention can be applied to various modifications, equivalent variations or modifications without departing from the spirit and scope of the present invention.
Claims (9)
1. A method for fast recovery of an operating system, comprising:
restoring the backup operating system to an operating system used by the system operation;
key parameters which have significance to the operation of the operating system are recovered from the key parameter backup area;
setting the recovered key parameters as key parameters used by the operation of the operating system;
and operating the operating system according to the set key parameters.
2. The method for rapidly recovering an operating system according to claim 1, wherein the recovering of the backup operating system to the operating system used by the system running comprises:
copying a system file and a configuration file of a backup operating system by a data source, wherein the actual value of a key parameter is stored in the configuration file;
and setting all the key parameters stored in the configuration file as default values.
3. The method for rapidly recovering the operating system according to claim 2, wherein the recovering of the key parameter significant to the operation of the operating system from the key parameter backup area comprises:
and restoring the configuration file stored with the values of the key parameters from the key parameter backup area.
4. The method for rapidly recovering an operating system according to claim 3, wherein the configuration file comprises:
the system configuration file is used for storing key parameters related to the operation of the operating system;
a user profile for storing key parameters related to user settings.
5. The method for rapidly recovering an operating system according to claim 1, wherein the key parameters related to the operation of the operating system comprise: the system time.
6. The method for rapidly recovering an operating system according to claim 1, wherein the key parameters related to the user settings comprise: user password, interface display mode.
7. The method for rapidly recovering the operating system according to claim 3, wherein the setting of the key parameter for recovery as the key parameter for operating system operation comprises:
searching key parameters needing to be set in a configuration file;
if the key parameter is found, setting the value of the key parameter in the configuration file as the value of a new key parameter;
and if the key parameter is not found, setting the value of the new key parameter as a default value.
8. The method for rapidly recovering an operating system according to claim 5, wherein if the key parameter is not found, setting a value of the new key parameter as a default value comprises:
searching whether a dependency relationship exists between the key parameters which are not set and the key parameters which are set;
if the dependence relationship exists between the unset key parameter and the set key parameter, setting the value of the unset key parameter according to the current value of the set key parameter and the dependence relationship between the unset key parameter and the set key parameter;
and if the unset key parameters and any set key parameters have no dependency relationship, setting the values of the unset key parameters as default values.
9. A system for fast recovery of an operating system, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method for fast recovery of an operating system according to any one of claims 1 to 8.
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 true CN112131052A (en) | 2020-12-25 |
CN112131052B 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 (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060150037A1 (en) * | 2004-12-30 | 2006-07-06 | Mitac Technology Corp. | Methods and systems for operating system recovery |
CN101140537A (en) * | 2007-10-24 | 2008-03-12 | 国电南京自动化股份有限公司 | Backup and recovery operation method of built-in operating system |
US20100131794A1 (en) * | 2008-11-21 | 2010-05-27 | Weimin Zheng | System for disaster recovery backup and a method thereof |
US20130262396A1 (en) * | 2012-03-30 | 2013-10-03 | Commvault Systems, Inc. | Data storage recovery automation |
US20150072673A1 (en) * | 2012-05-17 | 2015-03-12 | Huizhou Tcl Mobile Communication Co., Ltd | System, server and mobile terminal for backing up and recovering data |
CN104932955A (en) * | 2015-05-29 | 2015-09-23 | 深圳市创维电器科技有限公司 | Method for backing up data during factory setting restoring of mobile terminal, and mobile terminal |
US20160203060A1 (en) * | 2015-01-09 | 2016-07-14 | Vmware, Inc. | Client deployment with disaster recovery considerations |
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 |
-
2020
- 2020-10-23 CN CN202011147816.9A patent/CN112131052B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060150037A1 (en) * | 2004-12-30 | 2006-07-06 | Mitac Technology Corp. | Methods and systems for operating system recovery |
CN101140537A (en) * | 2007-10-24 | 2008-03-12 | 国电南京自动化股份有限公司 | Backup and recovery operation method of built-in operating system |
US20100131794A1 (en) * | 2008-11-21 | 2010-05-27 | Weimin Zheng | System for disaster recovery backup and a method thereof |
US20130262396A1 (en) * | 2012-03-30 | 2013-10-03 | Commvault Systems, Inc. | Data storage recovery automation |
US20150072673A1 (en) * | 2012-05-17 | 2015-03-12 | Huizhou Tcl Mobile Communication Co., Ltd | System, server and mobile terminal for backing up and recovering data |
US20160203060A1 (en) * | 2015-01-09 | 2016-07-14 | Vmware, Inc. | Client deployment with disaster recovery considerations |
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 |
---|
HIROSHI OTSUKA 等: "Learning from Before and After Recovery to Detect Latent Misconfiguration", 《2015 IEEE 39TH ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE》, pages 141 - 148 * |
黄小龙 等: "基于还原保护的分布式病毒防御机制研究", 《武汉理工大学学报(信息与管理工程版)》, vol. 32, no. 3, pages 382 - 385 * |
Also Published As
Publication number | Publication date |
---|---|
CN112131052B (en) | 2024-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11681591B2 (en) | System and method of restoring a clean backup after a malware attack | |
US10810088B1 (en) | System and method of dynamic backup policy generation | |
CN105940397B (en) | Method and system for application synchronization | |
KR20060101855A (en) | System and method of efficient data backup in a networking environment | |
CN112948340A (en) | Data synchronization method and device, electronic equipment and readable storage medium | |
CN111858146B (en) | Method, apparatus and computer program product for recovering data | |
CN109726039B (en) | Method and apparatus for managing virtual machines | |
US10318385B2 (en) | Service recovery using snapshots and interservice messages | |
US11704105B2 (en) | Method, device, and computer program product for managing virtual machine upgrade | |
US9734191B2 (en) | Asynchronous image repository functionality | |
CN114064668A (en) | Method, electronic device and computer program product for storage management | |
CN112131052B (en) | Method and system for quickly recovering operating system | |
CN110389857B (en) | Method, apparatus and non-transitory computer storage medium for data backup | |
US10509646B2 (en) | Software update rollbacks using file system volume snapshots | |
US11281391B2 (en) | Method, device, and computer program for migrating backup system | |
CN112084254A (en) | Data synchronization method and system | |
CN111324632B (en) | Transparent database session restoration with client-side caching | |
CN108196979B (en) | Data backup method and device | |
CN113986115B (en) | Method, electronic device and computer program product for copying data | |
US9298445B1 (en) | Systems and methods for correlating software inventory information with delivered software | |
CN113127261A (en) | File processing method, device, equipment and storage medium | |
AU2021400579B2 (en) | Methods and systems for ransomware detection, isolation and remediation | |
AU2021390717B2 (en) | Batch job performance improvement in active-active architecture | |
US20230060638A1 (en) | Methods and system for data backup and restore | |
US11782731B1 (en) | Persisting user settings for non-persistent application streaming environments |
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 |