CN114020531A - Operating system restoration method, restoration device and computing equipment - Google Patents

Operating system restoration method, restoration device and computing equipment Download PDF

Info

Publication number
CN114020531A
CN114020531A CN202111288545.3A CN202111288545A CN114020531A CN 114020531 A CN114020531 A CN 114020531A CN 202111288545 A CN202111288545 A CN 202111288545A CN 114020531 A CN114020531 A CN 114020531A
Authority
CN
China
Prior art keywords
point
restoring
container
operating system
restore
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.)
Pending
Application number
CN202111288545.3A
Other languages
Chinese (zh)
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.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software Technology 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 Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202111288545.3A priority Critical patent/CN114020531A/en
Publication of CN114020531A publication Critical patent/CN114020531A/en
Pending legal-status Critical Current

Links

Images

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/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an operating system restoration method, a restoration device and computing equipment, wherein the method comprises the following steps: releasing the files of one or more restoring points into one or more predetermined directories, wherein each restoring point corresponds to one predetermined directory; running one or more containers corresponding to one or more restore points, and mounting the file released by each restore point to form a root file system of the container, so that each container executes the corresponding file released by the restore point based on the root file system; determining an execution result of each container, and determining a target reduction point according to the execution result of each container; and restoring the operating system based on the file released by the target restoring point. According to the technical scheme of the invention, the operating system can be restored to the original state by executing the restoration process once, so that the current problems of the operating system can be quickly and efficiently repaired.

Description

Operating system restoration method, restoration device and computing equipment
Technical Field
The present invention relates to the field of computer and operating system technologies, and in particular, to an operating system restoring method, an operating system restoring apparatus, and a computing device.
Background
A computer is used as a terminal device of an information system, and a large amount of file data often exists on an operating system of the computer. To prevent accidental loss or modification of system files, the operating system itself typically provides backup-restore functionality, or third-party software is used to implement system backup and system restore.
The system backup is usually executed automatically according to a plan or started by a user, and a file stored after the system backup is executed is called a restore point. Generally, when the system runs for a long time, a plurality of restoring points may exist in the computer, and when the system has a problem and needs to be restored, the system provides a restoring point list, and then the user can select the restoring point in the restoring point list.
However, the reduction point selection method for the above system reduction has the following problems: before selecting a restore point, a user cannot directly know whether the restore point has the same problem as that of the current system or determine whether the restore point can solve the problem that the user desires to solve. Once the system is restored by selecting the restoration point, it takes a certain time to restore the system, and only after the restoration is completed, the user can perform operation judgment. If the system is not in accordance with the user's restoration expectation, the user also needs to reselect the restoration point for system restoration. Thus, it will inevitably take a lot of time, resulting in poor user experience.
In addition, some software or functions present on the current operating system may not be present or may not function properly in the restore point. At this time, the user more expects to rely on the restore point to repair the problems existing in the current system, and the influence on the existing normal software and functions caused by the overlay restoration is avoided.
Therefore, an operating system recovery method is needed to solve the problems in the above technical solutions.
Disclosure of Invention
To this end, the present invention provides an operating system restore method and apparatus in an attempt to solve, or at least alleviate, the problems identified above.
According to an aspect of the present invention, there is provided an operating system restoring method, including the steps of: releasing the files of one or more restoring points into one or more predetermined directories, wherein each restoring point corresponds to one predetermined directory; running one or more containers corresponding to one or more restore points, and mounting the file released by each restore point to form a root file system of the container, so that each container executes the corresponding file released by the restore point based on the root file system; determining an execution result of each container, and determining a target reduction point according to the execution result of each container; and restoring the operating system based on the file released by the target restoring point.
Optionally, in the operating system restoration method according to the present invention, determining the target restoration point according to the execution result of each container includes: and judging whether the execution result of each container meets a preset condition, and if so, determining the reduction point corresponding to the container as a target reduction point.
Optionally, in the operating system restoration method according to the present invention, determining the target restoration point according to the execution result of each container includes: and determining an optimal execution result by comparing the execution results of one or more containers, and determining a reduction point corresponding to the optimal execution result as a target reduction point.
Optionally, in the operating system restoring method according to the present invention, determining whether the execution result of each container meets a predetermined condition includes: and judging whether the container is started normally, and if so, determining that the execution result of the container meets a preset condition.
Optionally, in the operating system restoration method according to the present invention, after determining the target restoration point, the method further includes the steps of: and exiting the container corresponding to the target restoring point, and reserving the file released by the target restoring point so as to restore the operating system based on the file released by the target restoring point.
Optionally, in the operating system restoring method according to the present invention, before releasing files of one or more restoring points into one or more predetermined directories, the method includes the steps of: one or more restore points are selected, and a respective predetermined directory is assigned to each of the selected restore points.
Optionally, in the operating system restoring method according to the present invention, before releasing the files of the one or more restoring points into the one or more predetermined directories, the method further includes the steps of: during the operation of the operating system, one or more restore points are created.
Optionally, in the operating system restoring method according to the present invention, the step of creating one or more restoring points includes: and detecting whether the system file is changed or not, if so, storing the changed system file, and creating a corresponding restoring point based on the changed system file.
According to an aspect of the present invention, there is provided a restoring apparatus, residing in an operating system, including: the release unit is suitable for releasing the files of one or more restoring points into one or more predetermined directories, wherein each restoring point corresponds to one predetermined directory; the running unit is suitable for running one or more containers and respectively mounts the file released by each restoring point onto the corresponding container so that each container executes the file released by the corresponding restoring point based on the root file system; the determining unit is suitable for determining the execution result of each container, judging whether the execution result of each container meets a preset condition or not, and if the execution result of each container meets the preset condition, determining the reduction point corresponding to the container as a target reduction point; and the restoring unit is suitable for restoring the operating system based on the file released by the target restoring point.
According to an aspect of the present invention, there is provided a computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing the operating system restoration method as described above.
According to an aspect of the present invention, there is provided a readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method as described above.
According to the technical scheme of the invention, the operating system restoring method is provided, wherein when the operating system cannot normally run due to system file damage in the running process, the restoring point is run through the container so as to detect whether the restoring point meets the preset condition for restoring the operating system. Specifically, files of one or more restore points are executed by one or more containers respectively, a target restore point meeting conditions is determined according to the execution result of each container on the restore point, and the operating system is restored based on the target restore point. It should be noted that the present invention restores the operating system based on the target restoring point, which not only can avoid the influence of overlay restoring on normal software and functions, but also can repair the current problems of the operating system, so that all the software and functions of the operating system run normally. Moreover, the target reduction points obtained by screening can smoothly reduce the operating system according to the execution result of one or more reduction points operated by one or more containers, so that the operating system can be restored to the original state by executing a reduction process once, the current problems of the operating system can be quickly and efficiently repaired, the repeated operation of reselecting the reduction points to reduce the operating system again in the prior art is avoided, the reduction efficiency of the operating system is improved, and the time is saved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of a computing device 100, according to one embodiment of the invention;
FIG. 2 illustrates a flow diagram of a method 200 of operating system restore according to one embodiment of the invention; and
fig. 3 shows a schematic view of a reduction apparatus 300 according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a schematic block diagram of an example computing device 100.
As shown in FIG. 1, in a basic configuration 102, a computing device 100 typically includes a system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between the processor 104 and the system memory 106.
Depending on the desired configuration, the processor 104 may be any type of processing, including but not limited to: a microprocessor (UP), a microcontroller (UC), a digital information processor (DSP), or any combination thereof. The processor 104 may include one or more levels of cache, such as a level one cache 110 and a level two cache 112, a processor core 114, and registers 116. The example processor core 114 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 118 may be used with the processor 104, or in some implementations the memory controller 118 may be an internal part of the processor 104.
Depending on the desired configuration, system memory 106 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 106 may include an operating system 120, one or more applications 122, and program data 124. In some implementations, the application 122 can be arranged to execute instructions on an operating system with program data 124 by one or more processors 104.
Computing device 100 also includes a storage device 132, storage device 132 including removable storage 136 and non-removable storage 138.
Computing device 100 may also include a storage interface bus 134. The storage interface bus 134 enables communication from the storage devices 132 (e.g., removable storage 136 and non-removable storage 138) to the basic configuration 102 via the bus/interface controller 130. At least a portion of the operating system 120, applications 122, and data 124 may be stored on removable storage 136 and/or non-removable storage 138, and loaded into system memory 106 via storage interface bus 134 and executed by the one or more processors 104 when the computing device 100 is powered on or the applications 122 are to be executed.
Computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus/interface controller 130. The example output device 142 includes an image processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 158. An example communication device 146 may include a network controller 160, which may be arranged to facilitate communications with one or more other computing devices 162 over a network communication link via one or more communication ports 164.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in a manner that encodes information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 100 may be implemented as a personal computer including both desktop and notebook computer configurations. Of course, computing device 100 may also be implemented as part of a small-form factor portable (or mobile) electronic device such as a cellular telephone, a digital camera, a Personal Digital Assistant (PDA), a personal media player device, a wireless web-watch device, a personal headset, an application specific device, or a hybrid device that include any of the above functions. And may even be implemented as a server, such as a file server, a database server, an application server, a WEB server, and so forth. The embodiments of the present invention are not limited thereto.
In an embodiment in accordance with the invention, the computing device 100 is configured to perform an operating system restore method 200 in accordance with the invention. The operating system 120 of the computing device 100 includes a plurality of program instructions for executing the operating system restoring method 200 of the present invention, and these program instructions may instruct the processor to execute the operating system restoring method 200 of the present invention, so that the computing device 100 realizes restoring the operating system by executing the operating system restoring method 200 of the present invention.
According to an embodiment of the present invention, the restoring apparatus 300 is disposed in the operating system 120, and the restoring apparatus 300 includes a plurality of program instructions for executing the operating system restoring method 200 of the present invention, so that the operating system restoring method 200 of the present invention can be executed in the restoring apparatus 300, so that the restoring apparatus 300 restores the operating system by executing the operating system restoring method of the present invention, so that the operating system is restored to the original state and runs normally.
FIG. 2 shows a flow diagram of a method 200 for operating system restore, according to one embodiment of the invention. Operating system restore method 200 may be performed in an operating system of a computing device (e.g., computing device 100 described above). The operating system may be implemented, for example, as a Linux operating system, a Windows operating system, etc., and it should be noted that the present invention is not limited to a specific kind of operating system.
It should be noted that one or more restore points may be created during the operation of the operating system prior to performing the system restore method 200. Specifically, the operating system may detect whether a system file (e.g., some key files of the system) changes in real time, and when a change in the system file is detected, the system may be backed up by copying and storing the changed system file. And, a corresponding restore point is created based on the backed-up changed system file. In this way, the operating system can be restored based on the pre-created restoration point subsequently when the operating system cannot normally run due to the damage of the system file.
As shown in fig. 2, the system restoring method 200 starts in step S210.
In step S210, the files of one or more restore points are released into one or more predetermined directories. Wherein, each restoring point corresponds to a predetermined directory respectively.
Here, before performing step S210, one or more restore points may be selected from the previously created restore points, and then, a corresponding one of directories is respectively designated for each of the selected restore points as a predetermined directory for the restore point release file, so that each of the restore points releases the file based on a different path. Thus, each of the selected restore points corresponds to a respective predetermined directory. For example, the predetermined directory corresponding to the restore point 1 is IMG1_ PATH, and the predetermined directory corresponding to the restore point 2 is IMG2_ PATH … …, and the predetermined directory corresponding to the restore point n is IMGn _ PATH.
Thus, after step S210 is executed, each predetermined directory includes the file released by the corresponding restore point.
It should be noted that one or more containers are also deployed on the operating system of the computing device, each container corresponds to a restore point, and each container is used to run the corresponding restore point. Here, a container is an independent virtual operating system running on an operating system, with an independent isolated execution environment.
Subsequently, in step S220, one or more containers corresponding to the one or more restore points are run on the operating system. Wherein each reduction point corresponds to a container. Further, each restore point releases the files under the predetermined directory to form a root file system of the container corresponding to the restore point (i.e., the predetermined directory released by the restore point is taken as the root directory of the corresponding container), so that the corresponding file released by the restore point can be executed by each container based on the root file system of the container. It should be noted that by running the corresponding restore point with each container, it can be detected whether the file of the restore point can satisfy a predetermined condition for restoring the operating system.
Subsequently, in step S230, the execution result of each container is determined, and a target restore point capable of successfully restoring the operating system is determined according to the execution result of each container.
It should be noted that the file released by the target restore point is a file that satisfies expectations and can smoothly restore the operating system, and the file released by the target restore point can smoothly restore the operating system.
According to one embodiment, when the target restoring point is determined according to the execution result of each container, by judging whether the execution result of each container meets a preset condition, if the execution result of the container on the file released by the restoring point meets the preset condition, the restoring point corresponding to the container is determined as the target restoring point capable of smoothly restoring the operating system.
In one implementation, when determining whether the execution result of each container meets a predetermined condition, it may be determined whether the container can normally execute the file of the restore point, and determine whether the container can be normally started after executing the file released by the restore point, and if the container can be normally started, determine that the execution result of the container meets the predetermined condition, and take the restore point corresponding to the container as the target restore point. Otherwise, if the container can not be started normally, the execution result of the container is determined to be not in accordance with the preset condition. In addition, if the file of the restore point cannot be executed in the container, it may also be determined that the execution result of the container does not meet a predetermined condition, and the restore point cannot be a target restore point for restoring the operating system.
In addition, in other embodiments, whether the execution result of the container meets a predetermined condition may also be determined according to the operation experience of the user, so as to determine whether the restore point operated by the container can be used as the target restore point.
After the target restore point is determined, the container running the target restore point may be exited, and the target restore point is reserved to release files under a predetermined directory, so as to restore the operating system based on the files released by the target restore point.
And for the restoration points which are not determined as the target restoration points, the files of which the restoration points are released under the preset directory can be deleted. Or, after determining that the execution result of the container does not meet the predetermined condition, it indicates that the restore point cannot be used for restoring the operating system, in which case the file released by the restore point corresponding to the container may be deleted.
It is understood that after determining whether the execution result of each container meets the predetermined condition, one or more target restore points may be finally obtained. If the execution result of each container does not meet the predetermined condition, one or more restoration points may be reselected, and steps S210 to S230 may be performed based on the reselected one or more restoration points. Until one or more target reduction points are finally available.
Finally, in step S240, the operating system is restored based on the file released by the target restoring point, so that the operating system is restored to the original state. Specifically, all files in a predetermined directory are released based on the target restore point to perform operations such as covering and restoring on corresponding files in the current system, so that the operating system is restored to the original normal running state, and the operating system is repaired.
Thus, according to the technical scheme of the invention, when the operating system cannot normally run due to system file damage in the running process, the files of one or more restoring points are respectively executed through one or more containers, the target restoring point which is in line with expectation is determined according to the execution result of each container on the restoring point, and the operating system is restored based on the target restoring point, so that the operating system can be restored to the original state by executing one restoring process, and the problem of the operating system which currently occurs can be quickly repaired.
According to still another embodiment, when the target reduction point is determined according to the execution result of each container, the optimal execution result may be determined by comparing the execution results of one or more containers, and the reduction point corresponding to the optimal execution result may be determined as the target reduction point. It should be understood that the optimal execution result is obtained through comparison, the most appropriate restoration point which meets the current operation condition of the operating system can be screened out from the plurality of restoration points, the restoration point is used as a target restoration point to restore the operating system, and the operating system can be ensured to be successfully restored to the original normal operation state.
In one embodiment, in step S220, the structure of the OverlayFS file system may be adopted to mount each restore point to release the file under the predetermined directory, forming the root file system of the container. In this way, when the system is backed up before the operating system restoring method 200 of the present invention is executed, a full backup or an incremental backup can be flexibly selected.
It should be understood that full backup is the copying and compression of all critical system files and directories to make a system backup. When the operating system is restored based on the restoring point (full restoring point) created by the full backup, all files under a predetermined directory are released based on the full restoring point to perform operations such as overwriting and restoring on the corresponding files in the current system.
The incremental backup is to select a certain restoring point which has already been created as a reference restoring point, and when the operating system is backed up, only the system files and directories which are different from the reference restoring point are backed up, that is, only the different system files are copied and compressed. In this way, when the operating system is restored based on the restoration point (incremental restoration point) created by the incremental backup, the file of the reference restoration point is released in the predetermined directory, the file of the incremental restoration point is released in the predetermined directory, and then the corresponding file in the current system is covered and restored based on all the files released by the reference restoration point and the incremental restoration point, so that the operating system is restored to the original normal operating state, and the restoration of the operating system is realized.
FIG. 3 shows a schematic view of a reducing apparatus 300 according to an embodiment of the invention. The restoring apparatus 300 resides in an operating system of a computing device (e.g., the aforementioned computing device 100), and is adapted to execute the operating system restoring method 200 of the present invention.
The reducing apparatus 300 includes a releasing unit 310, an operating unit 320, a determining unit 330, and a reducing unit 340, which are connected in sequence. The release unit 310 is adapted to release the file of one or more restore points into one or more predetermined directories, where each restore point corresponds to one predetermined directory. The execution unit 320 is adapted to execute one or more containers corresponding to one or more restore points and mount the file released by each restore point to form a root file system of the container, such that each container executes the corresponding file released by the restore point based on the root file system. The determination unit 330 is adapted to determine an execution result for each container, and to determine the target reduction point based on the execution result for each container. The restoring unit 340 is adapted to restore the operating system based on the file released by the target restoring point.
It should be noted that the releasing unit 310 is configured to execute the aforementioned step S210, the running unit 320 is configured to execute the aforementioned step S220, the determining unit 330 is configured to execute the aforementioned step S230, and the restoring unit 340 is configured to execute the aforementioned step S240. Here, for the specific execution logic of the releasing unit 310, the operating unit 320, the determining unit 330, and the restoring unit 340, reference is made to the description of steps S210 to S240 in the method 200, and details are not repeated here.
According to the operating system restoration scheme, when the operating system cannot normally run due to system file damage in the running process, the restoring point is run through the container, so that whether the restoring point meets the preset condition for restoring the operating system or not is detected. Specifically, files of one or more restore points are executed by one or more containers respectively, a target restore point meeting conditions is determined according to the execution result of each container on the restore point, and the operating system is restored based on the target restore point. It should be noted that the present invention restores the operating system based on the target restoring point, which not only can avoid the influence of overlay restoring on normal software and functions, but also can repair the current problems of the operating system, so that all the software and functions of the operating system run normally. Moreover, the target reduction points obtained by screening can smoothly reduce the operating system according to the execution result of one or more reduction points operated by one or more containers, so that the operating system can be restored to the original state by executing a reduction process once, the current problems of the operating system can be quickly and efficiently repaired, the repeated operation of reselecting the reduction points to reduce the operating system again in the prior art is avoided, the reduction efficiency of the operating system is improved, and the time is saved.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to perform the operating system restore method of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (11)

1. An operating system restoring method includes the following steps:
releasing the files of one or more restoring points into one or more predetermined directories, wherein each restoring point corresponds to one predetermined directory;
running one or more containers corresponding to one or more restore points, and mounting the file released by each restore point to form a root file system of the container, so that each container executes the corresponding file released by the restore point based on the root file system;
determining an execution result of each container, and determining a target reduction point according to the execution result of each container; and
and restoring the operating system based on the file released by the target restoring point.
2. The method of claim 1, wherein determining a target reduction point from the execution results of each container comprises:
and judging whether the execution result of each container meets a preset condition, and if so, determining the reduction point corresponding to the container as a target reduction point.
3. The method of claim 1, wherein determining a target reduction point from the execution results of each container comprises:
and determining an optimal execution result by comparing the execution results of one or more containers, and determining a reduction point corresponding to the optimal execution result as a target reduction point.
4. The method of claim 2, wherein determining whether the execution result of each container meets a predetermined condition comprises:
and judging whether the container is started normally, and if so, determining that the execution result of the container meets a preset condition.
5. The method of any one of claims 1-4, wherein after determining the target reduction point, further comprising the steps of:
and exiting the container corresponding to the target restoring point, and reserving the file released by the target restoring point so as to restore the operating system based on the file released by the target restoring point.
6. The method of any one of claims 1 to 5, wherein prior to releasing the files of one or more restore points into one or more predetermined directories, comprising the steps of:
one or more restore points are selected, and a respective predetermined directory is assigned to each of the selected restore points.
7. The method of any one of claims 1-6, wherein prior to releasing the files of one or more restore points into one or more predetermined directories, further comprising the steps of:
during the operation of the operating system, one or more restore points are created.
8. The method of claim 7, wherein the step of creating one or more reduction points comprises:
and detecting whether the system file is changed or not, if so, storing the changed system file, and creating a corresponding restoring point based on the changed system file.
9. A restore apparatus, residing in an operating system, comprising:
the release unit is suitable for releasing the files of one or more restoring points into one or more predetermined directories, wherein each restoring point corresponds to one predetermined directory;
the running unit is suitable for running one or more containers and respectively mounts the file released by each restoring point onto the corresponding container so that each container executes the file released by the corresponding restoring point based on the root file system;
the determining unit is suitable for determining the execution result of each container, judging whether the execution result of each container meets a preset condition or not, and if the execution result of each container meets the preset condition, determining the reduction point corresponding to the container as a target reduction point; and
and the restoring unit is suitable for restoring the operating system based on the file released by the target restoring point.
10. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-8.
11. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-8.
CN202111288545.3A 2021-11-02 2021-11-02 Operating system restoration method, restoration device and computing equipment Pending CN114020531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111288545.3A CN114020531A (en) 2021-11-02 2021-11-02 Operating system restoration method, restoration device and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111288545.3A CN114020531A (en) 2021-11-02 2021-11-02 Operating system restoration method, restoration device and computing equipment

Publications (1)

Publication Number Publication Date
CN114020531A true CN114020531A (en) 2022-02-08

Family

ID=80060247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111288545.3A Pending CN114020531A (en) 2021-11-02 2021-11-02 Operating system restoration method, restoration device and computing equipment

Country Status (1)

Country Link
CN (1) CN114020531A (en)

Similar Documents

Publication Publication Date Title
CN113032032B (en) System management method and device, computing equipment and readable storage medium
CN112988252B (en) Operating system starting method and computing device
US7689981B1 (en) Mobile handset with efficient interruption point detection during a multiple-pass update process
CN112988464A (en) Power-off protection method and computing device
CN113568787A (en) Power failure protection method, computing device and storage medium
CN114691226A (en) Multi-operating-system switching operation method, computing device and storage medium
CN104572354A (en) Backup and restoration method for operating system based on restoration service and equipment thereof
CN114416252A (en) Window display method and device, computing equipment and storage medium
CN113867847A (en) Abnormal plug-in processing method and device and computing equipment
CN113535483B (en) File backup method and device and computing equipment
CN108170595B (en) Dump file generation method and data probe installation and uninstallation method
CN113259485B (en) Network proxy method, computing device and readable storage medium
CN114020531A (en) Operating system restoration method, restoration device and computing equipment
WO2022222351A1 (en) Method for installing operating system, and computing device
CN113326214B (en) Page cache management method, computing device and readable storage medium
CN113254248B (en) Fault diagnosis method, system and computing device
CN114691549A (en) File writing method and device and computing equipment
CN111427720A (en) Database repair method and device, computer equipment and storage medium
CN114741031A (en) Automatic partitioning method, disk partitioning method, operating system installation method and device
CN113655960A (en) Optical disc readability repairing method and computing device
CN113535470A (en) Configuration backup method and device, electronic equipment and storage medium
CN110647383A (en) Application management method based on docker container and computing device
CN114884974B (en) Data multiplexing method, system and computing device
CN113742140B (en) File backup method and device and computing equipment
CN113221123B (en) Method for combining kernel branches into patches and computing equipment

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