[go: up one dir, main page]

CN101826039B - System setting recovery method and computer system - Google Patents

System setting recovery method and computer system Download PDF

Info

Publication number
CN101826039B
CN101826039B CN 200910004586 CN200910004586A CN101826039B CN 101826039 B CN101826039 B CN 101826039B CN 200910004586 CN200910004586 CN 200910004586 CN 200910004586 A CN200910004586 A CN 200910004586A CN 101826039 B CN101826039 B CN 101826039B
Authority
CN
China
Prior art keywords
setting
operating system
recovery
program
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 200910004586
Other languages
Chinese (zh)
Other versions
CN101826039A (en
Inventor
李俊桦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Acer Inc
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to CN 200910004586 priority Critical patent/CN101826039B/en
Publication of CN101826039A publication Critical patent/CN101826039A/en
Application granted granted Critical
Publication of CN101826039B publication Critical patent/CN101826039B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

一种系统设定恢复方法及计算机系统,该方法应用于一计算机系统,计算机系统包括一作业系统及执行于作业系统下的一软件程序,软件程序可变更作业系统的设定。系统设定恢复方法包括以下步骤:执行软件程序;判断软件程序是否需要变更作业系统的一原始设定,以执行一备份程序用以记录一新设定;判断是否需要恢复作业系统的设定,以执行一恢复程序用以比对作业系统的一现有设定与新设定是否相同,以恢复适当的作业系统的设定。本发明可以 根据具体情况,方便的恢复系统的适当设定,避免对系统的安全性产生不利的影响。

Figure 200910004586

A system setting recovery method and a computer system, the method is applied to a computer system, the computer system includes an operating system and a software program executed under the operating system, the software program can change the settings of the operating system. The system setting recovery method includes the following steps: executing the software program; judging whether the software program needs to change an original setting of the operating system, so as to execute a backup program to record a new setting; judging whether the setting of the operating system needs to be restored, so as to execute a recovery program to compare whether an existing setting of the operating system is the same as the new setting, so as to restore the appropriate setting of the operating system. The present invention can conveniently restore the appropriate settings of the system according to the specific situation, avoiding adverse effects on the security of the system.

Figure 200910004586

Description

系统设定恢复方法及计算机系统System setting recovery method and computer system

技术领域 technical field

本发明涉及一种系统设定恢复方法,特别是一种可视情况恢复作业系统适当设定的系统设定恢复方法。The invention relates to a method for recovering system settings, in particular to a system setting recovery method for recovering appropriate settings of an operating system depending on the situation.

背景技术 Background technique

在计算机作业系统下执行软件程序时,部分软件程序在执行过程中会需要变更作业系统的设定,以利于软件程序运行或达到某些功能。一般来说,这类软件程序在变更系统设定的前会先询问使用者是否同意变更设定,或是要求使用者自行设定以符合执行程序的环境需求,但在软件程序执行完毕后却不会主动将这些变更后的设定恢复。举例来说,对于一些应用于文件同步的软件程序,若需要将两台计算机的文件同步时,大部分这类软件程序会要求使用者自行开启共用文件夹,并建立网络磁盘机以供其使用(例如AllwaySync);而有些程序会主动替使用者开启共用文件夹,但于实行前先询问使用者是否同意此行为(例如Easy2Sync);但前述软件程序并不负责已开启的共用文件夹的恢复工作,如此在使用者未主动关闭共用文件夹的状态下,将对作业系统的安全性造成影响。此外,部分软件程序并未明确告知使用者已变更了哪些系统设定,如此也会造成使用者欲自行恢复系统设定的困扰。When a software program is executed under a computer operating system, some software programs will need to change the settings of the operating system during execution to facilitate the operation of the software program or achieve certain functions. Generally speaking, before changing the system settings, this type of software program will ask the user whether to agree to change the settings, or require the user to set up to meet the environmental requirements of the program execution, but after the software program is executed, it will not These changed settings will not be automatically restored. For example, for some software programs used in file synchronization, if the files of two computers need to be synchronized, most of these software programs will require users to open shared folders and create network disk drives for their use. (such as AllwaySync); and some programs will actively open the shared folder for the user, but ask the user whether to agree to this behavior before implementation (such as Easy2Sync); but the aforementioned software programs are not responsible for the restoration of the opened shared folder Work, so if the user does not actively close the shared folder, it will affect the security of the operating system. In addition, some software programs do not clearly inform the user which system settings have been changed, which will also cause trouble for users to restore the system settings by themselves.

发明内容 Contents of the invention

本发明的主要目的在提供一种可视情况恢复作业系统适当设定的系统设定恢复方法。The main purpose of the present invention is to provide a system setting recovery method for recovering the proper setting of the operating system according to the situation.

为达到上述的目的,本发明的系统设定恢复方法应用于计算机系统,计算机系统包括作业系统及执行于作业系统下的软件程序,软件程序可变更作业系统的设定。本发明的系统设定恢复方法包括以下步骤:执行软件程序;判断软件程序是否需要变更作业系统的原始设定,以执行备份程序用以记录新设定;判断是否需要恢复作业系统的设定,以执行恢复程序用以比对作业系统的现有设定与新设定是否相同,以恢复适当的作业系统的设定。借此,本发明的系统设定恢复方法可针对软件程序所改变的计算机系统设定自动进行恢复动作,以提高作业系统的安全性;且于软件程序执行过程中,当使用者因需求主动变更计算机系统设定时,通过本发明的系统设定恢复方法可判断计算机系统设定的变更状态以保留使用者新变更的计算机系统设定,来提高使用便利性并减少使用者的困扰。In order to achieve the above object, the system setting recovery method of the present invention is applied to a computer system. The computer system includes an operating system and a software program executed under the operating system. The software program can change the setting of the operating system. The system setting restoration method of the present invention comprises the following steps: executing the software program; judging whether the software program needs to change the original setting of the operating system to execute the backup program to record the new setting; judging whether the setting of the operating system needs to be restored, Executing the restore program is used to compare whether the existing setting of the operating system is the same as the new setting, so as to restore the appropriate setting of the operating system. Thereby, the system setting restoration method of the present invention can automatically restore the computer system settings changed by the software program, so as to improve the security of the operating system; and during the execution of the software program, when the user actively changes the When setting the computer system, the system setting recovery method of the present invention can determine the change state of the computer system setting to retain the newly changed computer system setting of the user, thereby improving the convenience of use and reducing the trouble of the user.

本发明的计算机系统应用于前述的系统设定恢复方法,计算机系统包括作业系统、软件程序及系统设定恢复模块。软件程序于作业系统下执行,软件程序可变更作业系统的设定;系统设定恢复模块用以判断软件程序是否需要变更作业系统的原始设定,以执行备份程序用以记录新设定,并判断是否需要恢复作业系统设定,以执行恢复程序用以比对作业系统的现有设定与新设定是否相同,以恢复适当的作业系统的设定。The computer system of the present invention is applied to the aforementioned method for restoring system settings, and the computer system includes an operating system, a software program, and a module for restoring system settings. The software program is executed under the operating system, and the software program can change the setting of the operating system; the system setting recovery module is used to determine whether the software program needs to change the original setting of the operating system, to execute the backup program to record the new setting, and It is judged whether it is necessary to restore the settings of the operating system, so as to execute the restoration program to compare whether the existing settings of the operating system are the same as the new settings, so as to restore the appropriate settings of the operating system.

本发明可以根据具体情况,方便的恢复系统的适当设定,避免对系统的安全性产生不利的影响。The present invention can conveniently restore the appropriate setting of the system according to specific conditions, and avoid adverse effects on the safety of the system.

附图说明 Description of drawings

图1为本发明的计算机系统的系统方块图。FIG. 1 is a system block diagram of the computer system of the present invention.

图2为本发明的系统设定恢复方法的流程图。FIG. 2 is a flow chart of the method for restoring system settings in the present invention.

图3为本发明的系统设定恢复方法的备份程序流程图。FIG. 3 is a flow chart of the backup program of the system setting recovery method of the present invention.

图4为本发明的系统设定恢复方法的恢复程序流程图。FIG. 4 is a flow chart of the recovery program of the system setting recovery method of the present invention.

图5为本发明的系统设定恢复方法的一实施例示意图。FIG. 5 is a schematic diagram of an embodiment of a system setting recovery method of the present invention.

上述附图中的附图标记说明如下:The reference numerals in the above-mentioned accompanying drawings are explained as follows:

1计算机系统1 computer system

10存储装置10 storage device

12作业系统12 operating systems

14软件程序14 software programs

16系统设定恢复模块16 system setting recovery module

20处理器20 processors

具体实施方式Detailed ways

为能更了解本发明的技术内容,特举出优选实施例说明如下。In order to better understand the technical content of the present invention, the preferred embodiments are particularly described as follows.

以下请先参考图1为本发明的计算机系统1的系统方块图。如图1所示,本发明的计算机系统1包括存储装置10及处理器20,存储装置10包括作业系统12、软件程序14及系统设定恢复模块16;其中作业系统12能被视为系统模块而执行对应功能、而软件程序14能被视为设定变更模块而执行对应功能;处理器20与存储装置10电性连接,且通过处理器20可执行作业系统12、软件程序14或系统设定恢复模块16。软件程序14于作业系统12下执行,软件程序14于执行过程中为达到部分功能或需求,会主动变更作业系统12的设定。系统设定恢复模块16用以判断软件程序14是否需要变更作业系统12的原始设定以执行备份程序用以记录新设定,并判断是否需要恢复作业系统12的设定以执行恢复程序用以比对作业系统12的现有设定与新设定是否相同,并依据其比对结果以选择恢复适当的作业系统12的设定。系统设定恢复模块16可为存储于存储装置10内的一应用软件、写入作业系统12或软件程序14的一程序码或为其他形式,以达到前述功能,但本发明并不以此为限。此外,前述提及的设定可包括系统或程序的各种状态,并不局限于单纯的系统或程序的选项。Please refer to FIG. 1 , which is a system block diagram of the computer system 1 of the present invention. As shown in Figure 1, the computer system 1 of the present invention includes a storage device 10 and a processor 20, and the storage device 10 includes an operating system 12, a software program 14 and a system setting recovery module 16; wherein the operating system 12 can be regarded as a system module The corresponding function is executed, and the software program 14 can be regarded as a setting change module to perform the corresponding function; the processor 20 is electrically connected to the storage device 10, and the operating system 12, the software program 14 or the system device can be executed by the processor 20. Set recovery module 16. The software program 14 is executed under the operating system 12 , and the software program 14 will actively change the settings of the operating system 12 in order to achieve some functions or requirements during execution. The system setting recovery module 16 is used to determine whether the software program 14 needs to change the original setting of the operating system 12 to execute the backup program to record the new setting, and to determine whether the setting of the operating system 12 needs to be restored to execute the recovery program. Compare whether the existing setting of the operating system 12 is the same as the new setting, and select and restore the appropriate setting of the operating system 12 according to the comparison result. The system setting recovery module 16 can be an application software stored in the storage device 10, a program code written into the operating system 12 or the software program 14, or in other forms to achieve the aforementioned functions, but the present invention is not intended to be limit. In addition, the settings mentioned above may include various states of the system or program, and are not limited to simple system or program options.

请参考图2为本发明的系统设定恢复方法的流程图。须注意的是,以下虽以图1所示的计算机系统1为例说明本发明的系统设定恢复方法,但本发明并不以适用于计算机系统1为限,任何其他具有类似架构的计算机系统也可适用本发明的系统设定恢复方法。如图2所示,本发明的系统设定恢复方法包括步骤210至步骤230。以下将详细说明本发明的自动测试方法的各个步骤。Please refer to FIG. 2 , which is a flow chart of the system setting recovery method of the present invention. It should be noted that, although the computer system 1 shown in FIG. 1 is used as an example to illustrate the system setting recovery method of the present invention, the present invention is not limited to be applicable to the computer system 1, any other computer systems with similar structures The system setting recovery method of the present invention is also applicable. As shown in FIG. 2 , the system setting restoration method of the present invention includes steps 210 to 230 . Each step of the automatic testing method of the present invention will be described in detail below.

首先进行步骤210:执行软件程序14。如图1所示,本发明的系统设定恢复方法应用于前述的计算机系统1。计算机系统1的存储装置10包括作业系统12及软件程序14,当计算机系统1载入作业系统12时会先进入一使用者登入程序,当使用者登入后可载入对应的作业系统12的一原始设定,以开启或执行作业系统12的相关功能;在载入作业系统12后,可于作业系统12环境下执行软件程序14。First proceed to step 210 : execute the software program 14 . As shown in FIG. 1 , the system setting recovery method of the present invention is applied to the aforementioned computer system 1 . The storage device 10 of the computer system 1 includes an operating system 12 and a software program 14. When the computer system 1 loads the operating system 12, it will first enter a user login program. After the user logs in, a program of the corresponding operating system 12 can be loaded. The original setting is to enable or execute the relevant functions of the operating system 12; after the operating system 12 is loaded, the software program 14 can be executed under the environment of the operating system 12.

如图2所示,在步骤210后进行步骤220,其中步骤220可包括步骤221及步骤222。As shown in FIG. 2 , step 220 is performed after step 210 , wherein step 220 may include step 221 and step 222 .

步骤221:判断软件程序14是否需要变更作业系统12的一原始设定。如图1所示,存储装置10还包括系统设定恢复模块16,由于软件程序14于执行过程中为达到部分功能或需求,会主动变更作业系统12的原始设定,因此可通过系统设定恢复模块16来判断执行中的软件程序14是否需要变更作业系统12的原始设定,并依据其判断结果以决定是否续行步骤222。Step 221 : Determine whether the software program 14 needs to change an original setting of the operating system 12 . As shown in FIG. 1 , the storage device 10 also includes a system setting recovery module 16. Since the software program 14 will actively change the original setting of the operating system 12 in order to achieve some functions or requirements during execution, it can be restored through the system setting. The restoration module 16 judges whether the running software program 14 needs to change the original setting of the operating system 12 , and decides whether to proceed to step 222 according to the judgment result.

步骤222:执行一备份程序。如图2所示,当判断作业系统12的原始设定被软件程序14变更时,系统设定恢复模块16可执行一备份程序用以记录作业系统12的一新设定,并进行后续步骤230。Step 222: Execute a backup procedure. As shown in FIG. 2, when it is determined that the original setting of the operating system 12 has been changed by the software program 14, the system setting recovery module 16 may execute a backup program to record a new setting of the operating system 12, and proceed to the subsequent step 230. .

以下请先参考图3为本发明的系统设定恢复方法的备份程序的流程图。如图3所示,本发明的系统设定恢复方法的备份程序包括下列步骤:Please refer to FIG. 3 for the flowchart of the backup program of the system setting recovery method of the present invention. As shown in Figure 3, the backup program of the system setting recovery method of the present invention comprises the following steps:

步骤310:记录作业系统12的原始设定。如图1所示,通过系统设定恢复模块16可取得作业系统12的原始设定的相关信息,并将其记录于存储装置10中。Step 310 : Record the original settings of the operating system 12 . As shown in FIG. 1 , information related to the original settings of the operating system 12 can be obtained through the system setting recovery module 16 and recorded in the storage device 10 .

步骤320:通过软件程序14变更原始设定以形成新设定。如图1所示,当作业系统12的原始设定记录完成后,软件程序14即可执行变更作业系统12的设定的动作,经变更的作业系统12的设定将形成一新设定,以使软件程序14可达到特定的功能。Step 320 : Change the original setting through the software program 14 to form a new setting. As shown in Figure 1, after the original setting record of the operating system 12 is completed, the software program 14 can execute the action of changing the setting of the operating system 12, and the changed setting of the operating system 12 will form a new setting, In order to enable the software program 14 to achieve specific functions.

步骤330:记录新设定。如图1所示,通过系统设定恢复模块16可取得作业系统12的新设定的相关信息,并将其记录于存储装置10中。Step 330: Record the new settings. As shown in FIG. 1 , the information related to the new setting of the operating system 12 can be obtained through the system setting restoration module 16 and recorded in the storage device 10 .

此外,在步骤310后更可执行步骤340:设定恢复程序执行于作业系统12载入一使用者登入程序时。如图1所示,为防止软件程序14于执行过程中因发生错误导致计算机系统1死机必须重新启动,造成已变更的作业系统12的设定未能即时恢复的状况,系统设定恢复模块16设定恢复程序于作业系统12载入使用者登入程序时自动执行,以期在计算机系统1重新启动并载入作业系统12时可恢复适当的作业系统12的原始设定。In addition, step 340 can be executed after step 310 : setting the recovery program to execute when the operating system 12 loads a user login program. As shown in FIG. 1 , in order to prevent the computer system 1 from crashing due to errors during the execution of the software program 14 and having to be restarted, causing the changed operating system 12 settings to fail to recover immediately, the system setting recovery module 16 The setting recovery program is automatically executed when the operating system 12 loads the user login program, so that the original settings of the appropriate operating system 12 can be restored when the computer system 1 is restarted and the operating system 12 is loaded.

又如图2所示,在步骤220后进行步骤230,其中步骤230可包括步骤231及步骤232。Also as shown in FIG. 2 , step 230 is performed after step 220 , wherein step 230 may include step 231 and step 232 .

步骤231:判断是否需要恢复作业系统12的设定。如图1所示,由于作业系统12的设定已被软件程序14所变更,因此借着系统设定恢复模块16来判断是否有需要恢复作业系统12的设定的状况,并依据其判断结果以决定是否续行步骤232。前述需要恢复作业系统12的设定的状况包括:(1)当软件程序14已执行完成某些功能或使用者欲关闭软件程序14时,软件程序14应自动恢复已变更的作业系统12的设定;(2)当软件程序14因发生错误导致不正常关闭,而使用者重新执行软件程序14时;(3)通过前述步骤340的设定,于软件程序14执行过程中因计算机系统1死机必须重新启动,而在作业系统12载入使用者登入程序时,应恢复适当的作业系统12的设定。Step 231 : Determine whether to restore the settings of the operating system 12 . As shown in Figure 1, since the setting of the operating system 12 has been changed by the software program 14, it is judged by the system setting recovery module 16 whether there is a situation that needs to restore the setting of the operating system 12, and according to the judgment result To decide whether to proceed to step 232. The aforementioned situations that need to restore the settings of the operating system 12 include: (1) When the software program 14 has executed certain functions or the user intends to close the software program 14, the software program 14 should automatically restore the changed settings of the operating system 12. (2) when the software program 14 is abnormally closed due to an error, and the user re-executes the software program 14; (3) through the setting of the aforementioned step 340, the computer system 1 crashes during the execution of the software program 14 A restart is necessary, and the appropriate operating system 12 settings should be restored when the operating system 12 loads the user login process.

步骤232:执行一恢复程序。如图1所示,当判断作业系统12的设定需要恢复时,系统设定恢复模块16可执行恢复程序用以比对作业系统12的现有设定与新设定是否相同,以调整适当的作业系统12的设定。Step 232: Execute a recovery procedure. As shown in FIG. 1, when it is determined that the settings of the operating system 12 need to be restored, the system setting restoration module 16 can execute a restoration program to compare whether the existing settings of the operating system 12 are the same as the new settings, so as to adjust the settings appropriately. operating system 12 settings.

以下请参考图4为本发明的系统设定恢复方法的恢复程序的流程图。如图4所示,本发明的系统设定恢复方法的恢复程序包括下列步骤:Please refer to FIG. 4 below, which is a flow chart of the restoration procedure of the system configuration restoration method of the present invention. As shown in Figure 4, the recovery program of the system setting recovery method of the present invention comprises the following steps:

步骤410:检查是否存在新设定。如图1所示,通过系统设定恢复模块16可检查存储装置10内是否具有自前述备份程序的步骤330所记录的新设定,当确认有新设定存在时,即可续行步骤420。Step 410: Check if there is a new setting. As shown in FIG. 1 , the system setting recovery module 16 can check whether there is a new setting recorded in the step 330 of the aforementioned backup program in the storage device 10, and when it is confirmed that there is a new setting, the step 420 can be continued. .

步骤420:记录作业系统12的现有设定。如图1所示,由于备份程序与恢复程序的执行可能相隔一段时间,在这段时间内使用者可能因需求另外对作业系统12的设定进行变更,因此必须通过系统设定恢复模块16取得作业系统12于执行恢复程序时点的现有设定的相关信息,并将其记录于存储装置10中。Step 420 : Record the existing settings of the operating system 12 . As shown in Figure 1, because the execution of the backup program and the recovery program may be separated by a period of time, during this period of time, the user may additionally change the settings of the operating system 12 due to needs, so it must be obtained through the system setting recovery module 16. The operating system 12 records the relevant information of the existing settings at the point in time when the recovery program is executed, and records it in the storage device 10 .

如图4所示,在步骤420后进行步骤430,其中步骤430可包括步骤431至步骤434。As shown in FIG. 4 , step 430 is performed after step 420 , wherein step 430 may include step 431 to step 434 .

步骤431:比对现有设定与新设定是否相同。如图1所示,通过系统设定恢复模块16来比对记录于存储装置10的现有设定及新设定是否相同,若于执行步骤330到执行步骤420这段时间内,使用者因需求而对作业系统12的设定进行变更,则可能造成现有设定及新设定有所差异的情况。Step 431 : Check whether the existing configuration is the same as the new configuration. As shown in FIG. 1 , the system setting recovery module 16 is used to compare whether the existing setting and the new setting recorded in the storage device 10 are the same. Changes to the settings of the operating system 12 may result in differences between the existing settings and the new settings.

步骤432:将现有设定恢复为原始设定。如图1所示,当判断作业系统12的现有设定与新设定相同时,系统设定恢复模块16即可将作业系统12的现有设定依据步骤310的记录文件恢复为作业系统12最初的原始设定,以恢复软件程序14对作业系统12的设定所作的变更。Step 432: Restore the existing settings to the original settings. As shown in FIG. 1, when it is determined that the existing settings of the operating system 12 are the same as the new settings, the system setting recovery module 16 can restore the existing settings of the operating system 12 to the operating system according to the record file in step 310. 12 the original original settings to restore the changes made by the software program 14 to the settings of the operating system 12.

步骤433:保留现有设定。如图1所示,当判断作业系统12的现有设定与新设定不同时,代表使用者曾经自行变更过作业系统12的设定,为避免恢复设定后与使用者的原意不符,因此系统设定恢复模块16会维持作业系统12的现有设定不作变更,以保留使用者的最新设定。Step 433: Keep the existing settings. As shown in Figure 1, when it is judged that the existing settings of the operating system 12 are different from the new settings, it means that the user has changed the settings of the operating system 12 by himself. Therefore, the system setting recovery module 16 will keep the existing settings of the operating system 12 unchanged, so as to retain the latest settings of the user.

步骤434:判断作业系统12的设定是否恢复完毕。如图2所示,在执行步骤432或步骤433后,系统设定恢复模块16会判断作业系统12的设定是否已恢复完毕,若是恢复动作未完成将重新执行步骤430的相关步骤。Step 434: Determine whether the settings of the operating system 12 have been restored. As shown in FIG. 2 , after step 432 or step 433 is executed, the system setting restoration module 16 will determine whether the setting of the operating system 12 has been restored.

此外,在步骤430后更可进行步骤440:清除所有已记录的作业系统12的设定备份文件。于恢复程序结束之前,通过系统设定恢复模块16将前述步骤所取得并记录于存储装置10的作业系统12的设定备份文件(包括原始设定、新设定及现存设定)予以清除,以避免旧设定备份文件的存在会影响计算机系统1再次执行本发明的系统设定恢复方法时的处理结果。In addition, step 440 may be performed after step 430 : clearing all recorded configuration backup files of the operating system 12 . Before the recovery procedure ends, the setting backup files (including original setting, new setting and existing setting) of the operating system 12 obtained in the above steps and recorded in the storage device 10 are cleared through the system setting recovery module 16, In order to prevent the existence of the old setting backup file from affecting the processing result when the computer system 1 executes the system setting recovery method of the present invention again.

请一并参考图1及图5。图5为本发明的系统设定恢复方法的一实施例示意图。如图1及图5所示,在本实施例中,软件程序14为一改变防火墙设定的程序,在软件程序14执行过程中需要改变防火墙设定值以达到此程序的部分功能。假设作业系统12的防火墙原始设定值为ALL,表示所有IP均可通过防火墙。如状况a所示,当软件程序14在执行过程中因需求改变防火墙设定值为只限IP:10.36.143.168通过,此即为一新设定值。当软件程序14需要恢复作业系统12的防火墙设定时,在一般状况下判断恢复时点的防火墙设定值(现存设定值)也为IP:10.36.143.168,因此最后会将防火墙设定值恢复为原始设定值ALL。Please refer to Figure 1 and Figure 5 together. FIG. 5 is a schematic diagram of an embodiment of a system setting recovery method of the present invention. As shown in FIG. 1 and FIG. 5 , in this embodiment, the software program 14 is a program for changing firewall settings. During the execution of the software program 14 , it is necessary to change the firewall settings to achieve some functions of the program. Assuming that the original setting value of the firewall of the operating system 12 is ALL, it means that all IPs can pass through the firewall. As shown in situation a, when the software program 14 changes the firewall setting value due to demand during execution, only IP: 10.36.143.168 can pass through, which is a new setting value. When the software program 14 needs to restore the firewall setting of the operating system 12, it is generally judged that the firewall setting value (existing setting value) at the point of restoration is also IP: 10.36.143.168, so the firewall setting value will be changed at last Return to the original setting value ALL.

如状况b所示,软件程序14在执行过程中因需求将防火墙设定值自ALL(原始设定值)改变为IP:10.36.143.168(新设定值),假设此时使用者希望设定所有子网域的IP均可通过防火墙,而在恢复程序执行前将作业系统12的防火墙设定变更为SUBNET。在此状况下当软件程序14需要恢复作业系统12的防火墙设定时,判断恢复时点的防火墙设定值(现存设定值)为SUBNET,与新设定值并不相同,因此会保留现存设定值SUBNET以符合使用者的意志,不会盲目地恢复为原始设定值ALL。As shown in situation b, the software program 14 changes the firewall setting value from ALL (original setting value) to IP: 10.36.143.168 (new setting value) due to demand during the execution process, assuming that the user wishes to set The IPs of all subnet domains can pass through the firewall, and the firewall setting of the operating system 12 is changed to SUBNET before the recovery program is executed. In this case, when the software program 14 needs to restore the firewall setting of the operating system 12, it is judged that the firewall setting value (existing setting value) at the recovery point is SUBNET, which is different from the new setting value, so the existing setting value will be retained. The setting value SUBNET is in accordance with the will of the user, and will not be restored to the original setting value ALL blindly.

综上所陈,本发明无论就目的、手段及功效,均显示其迥异于公知技术的特征,为一大突破。须注意,上述实施例仅为例示性说明本发明的原理及其功效,而非用于限制本发明的范围。任何本领域的普通技术人员均可在不违背本发明的技术原理及精神下,对实施例作修改与变化。本发明的权利保护范围应如后述的权利要求所述。To sum up, the present invention, regardless of its purpose, means, and efficacy, shows its characteristics that are quite different from the known technologies, which is a major breakthrough. It should be noted that the above-mentioned embodiments are only illustrative to illustrate the principles and effects of the present invention, and are not intended to limit the scope of the present invention. Any person skilled in the art can make modifications and changes to the embodiments without violating the technical principle and spirit of the present invention. The protection scope of the present invention should be described in the following claims.

Claims (12)

1.一种系统设定恢复方法,应用于一计算机系统,该计算机系统包括一作业系统及执行于该作业系统下的一软件程序,该软件程序可变更该作业系统的设定,该系统设定恢复方法包括以下步骤:1. A system setting recovery method, applied to a computer system, the computer system includes an operating system and a software program executed under the operating system, the software program can change the setting of the operating system, the system setting A specific recovery method includes the following steps: 执行该软件程序;execute the software program; 判断该软件程序是否需要变更该作业系统的一原始设定,以执行一备份程序用以记录一新设定;judging whether the software program needs to change an original setting of the operating system, so as to execute a backup program to record a new setting; 判断是否需要恢复该作业系统的设定;Determine whether it is necessary to restore the settings of the operating system; 若需要恢复该作业系统的设定,执行一恢复程序用以检查是否存在该新设定;If it is necessary to restore the setting of the operating system, execute a recovery program to check whether the new setting exists; 记录该作业系统于执行该恢复程序时点的一现有设定;以及record an existing configuration of the operating system at the point in time when the recovery procedure was performed; and 比对该现有设定与该新设定是否相同,若该现有设定与该新设定相同,则将该现有设定恢复为该原始设定;若该现有设定与该新设定不同,则保留该现有设定。Compare whether the existing setting is the same as the new setting, if the existing setting is the same as the new setting, restore the existing setting to the original setting; if the existing setting is the same as the new setting If the new setting is different, the existing setting is retained. 2.如权利要求1所述的系统设定恢复方法,其中该恢复程序系执行于至少下列情形之一:2. The system setting recovery method as claimed in claim 1, wherein the recovery program is executed in at least one of the following situations: 该软件程序自动恢复该作业系统的设定时;该软件程序因不正常关闭而重新被执行时,或该作业系统载入一使用者登入程序时。When the software program automatically restores the settings of the operating system; when the software program is re-executed due to abnormal shutdown, or when the operating system loads a user login program. 3.如权利要求1所述的系统设定恢复方法,其中该备份程序包括以下步骤:3. The system setting recovery method as claimed in claim 1, wherein the backup program comprises the following steps: 记录该作业系统的该原始设定;record the original setting of the operating system; 通过该软件程序变更该原始设定以形成该新设定;以及the original setting is changed by the software program to form the new setting; and 记录该新设定。Make a note of this new setting. 4.如权利要求3所述的系统设定恢复方法,其中于记录该作业系统的该原始设定后,还包括以下步骤:4. The system setting recovery method as claimed in claim 3, wherein after recording the original setting of the operating system, further comprising the following steps: 设定该恢复程序执行于该作业系统载入一使用者登入程序时。The recovery program is configured to execute when the operating system loads a user login program. 5.如权利要求1所述的系统设定恢复方法,其中该恢复程序还包括以下步骤:5. The system setting recovery method as claimed in claim 1, wherein the recovery program further comprises the following steps: 清除所有已记录的该作业系统的设定备份文件。Clear all recorded settings backup files for this operating system. 6.一种系统设定恢复模块,应用于一计算机系统,该计算机系统包括一作业系统及及执行于该作业系统下的一软件程序,该软件程序可变更该作业系统的设定,该系统设定恢复模块包括:6. A system setting recovery module, applied to a computer system, the computer system includes an operating system and a software program executed under the operating system, the software program can change the settings of the operating system, the system The configuration recovery module includes: 一执行该软件程序的模块;a module for executing the software program; 一判断该软件程序是否需要变更该作业系统的一原始设定的模块,以执行一备份程序用以记录一新设定;A module for judging whether the software program needs to change an original setting of the operating system, so as to execute a backup program to record a new setting; 一判断是否需要恢复该作业系统的设定的模块;a module for judging whether it is necessary to restore the settings of the operating system; 一执行一恢复程序的模块,若需要恢复该作业系统的设定,则执行该恢复程序用以检查该新设定是否存在;A module that executes a recovery program, if it is necessary to restore the settings of the operating system, then executes the recovery program to check whether the new settings exist; 一记录该作业系统于执行该恢复程序时点的一现有设定的模块;a module that records an existing configuration of the operating system at the point in time when the recovery procedure is executed; 一比对该现有设定与该新设定是否相同的模块,若该现有设定与该新设定相同,则将该现有设定恢复为该原始设定;若该现有设定与该新设定不同,则保留该现有设定。A module that compares whether the existing setting is the same as the new setting, if the existing setting is the same as the new setting, restore the existing setting to the original setting; if the existing setting If the setting is different from the new setting, the existing setting is retained. 7.如权利要求6所述的系统设定恢复模块,其中该执行该恢复程序的模块于至少下列情形之一执行该恢复程序:7. The system setting recovery module as claimed in claim 6, wherein the module for executing the recovery program executes the recovery program in at least one of the following situations: 该软件程序自动恢复该作业系统的设定时,执行该恢复程序;When the software program automatically restores the settings of the operating system, the restoration procedure is executed; 该系统设定恢复模块于该软件程序因不正常关闭而重新被执行时,执行该恢复程序。The system setting recovery module executes the recovery program when the software program is re-executed due to abnormal shutdown. 8.如权利要求6所述的系统设定恢复模块,其中该执行该恢复程序的模块于该作业系统载入一使用者登入程序时,执行该恢复程序。8. The system setting recovery module according to claim 6, wherein the module for executing the recovery program executes the recovery program when the operating system loads a user login program. 9.如权利要求6所述的系统设定恢复模块,其中于该备份程序中通过该系统设定恢复模块记录该作业系统的该原始设定及变更后的该新设定于一存储装置。9. The system setting recovery module as claimed in claim 6, wherein in the backup program, the system setting recovery module records the original setting and the changed new setting of the operating system in a storage device. 10.如权利要求6所述的系统设定恢复模块,其中于该备份程序中通过该系统设定恢复模块设定于该作业系统载入一使用者登入程序时执行该恢复程序。10. The system setting recovery module according to claim 6, wherein in the backup program, the system setting recovery module is configured to execute the recovery program when the operating system loads a user login program. 11.如权利要求6所述的系统设定恢复模块,其中于该恢复程序中通过该系统设定恢复模块记录该作业系统的该现有设定于一存储装置。11. The system setting recovery module as claimed in claim 6, wherein in the recovery process, the system setting recovery module records the existing setting of the operating system in a storage device. 12.如权利要求6所述的系统设定恢复模块,其中于该恢复程序结束前通过该系统设定恢复模块清除所有已记录于一存储装置的该作业系统的设定备份文件。12. The system setting recovery module as claimed in claim 6, wherein all the setting backup files of the operating system recorded in a storage device are cleared by the system setting recovery module before the recovery process ends.
CN 200910004586 2009-03-06 2009-03-06 System setting recovery method and computer system Expired - Fee Related CN101826039B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910004586 CN101826039B (en) 2009-03-06 2009-03-06 System setting recovery method and computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910004586 CN101826039B (en) 2009-03-06 2009-03-06 System setting recovery method and computer system

Publications (2)

Publication Number Publication Date
CN101826039A CN101826039A (en) 2010-09-08
CN101826039B true CN101826039B (en) 2013-11-06

Family

ID=42689965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910004586 Expired - Fee Related CN101826039B (en) 2009-03-06 2009-03-06 System setting recovery method and computer system

Country Status (1)

Country Link
CN (1) CN101826039B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590027A (en) * 2017-09-11 2018-01-16 郑州云海信息技术有限公司 Backup, the method for restoring operation systematic parameter and instrument
CN109298973A (en) * 2018-09-28 2019-02-01 联想(北京)有限公司 A kind of information recovering method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484152A (en) * 2002-09-18 2004-03-24 宏基股份有限公司 Recovery method and device of computer operating system and method for producing system
CN1920788A (en) * 2006-09-18 2007-02-28 毛国红 Recovery method for computer system or data
CN1940877A (en) * 2005-09-28 2007-04-04 联想(北京)有限公司 Software system protecting point restore method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484152A (en) * 2002-09-18 2004-03-24 宏基股份有限公司 Recovery method and device of computer operating system and method for producing system
CN1940877A (en) * 2005-09-28 2007-04-04 联想(北京)有限公司 Software system protecting point restore method and device
CN1920788A (en) * 2006-09-18 2007-02-28 毛国红 Recovery method for computer system or data

Also Published As

Publication number Publication date
CN101826039A (en) 2010-09-08

Similar Documents

Publication Publication Date Title
US7447888B2 (en) Method for restoring computer operating system
KR101035178B1 (en) Systems and methods for automatic maintenance and repair of entities in data models
TWI554875B (en) Predicting, diagnosing, and recovering from application failures based on resource access patterns
JP4638908B2 (en) System and method for automatically maintaining and repairing a database or file system
US7386752B1 (en) Using asset dependencies to identify the recovery set and optionally automate and/or optimize the recovery
CN110909394B (en) Server configuration file monitoring method, device, equipment and storage medium
US20080275921A1 (en) Self-managed processing device
WO2014000613A1 (en) System repair method and device, and storage medium
US11221927B2 (en) Method for the implementation of a high performance, high resiliency and high availability dual controller storage system
CN108737153B (en) Blockchain disaster recovery system, method, server and computer-readable storage medium
WO2012031567A1 (en) Fault tolerance method and device for file system
WO2015043155A1 (en) Method and device for network element backup and recovery based on command set
US20070143591A1 (en) Method for non-destructive restoration of a corrupted operating system
CN101206596A (en) Method for restoring system operation
CN101826039B (en) System setting recovery method and computer system
US8914680B2 (en) Resolution of system hang due to filesystem corruption
US8868979B1 (en) Host disaster recovery system
CN111290880A (en) OSD data recovery method, device, equipment and medium
CN105279011A (en) A method for system restoration of a virtual machine according to an image
CN109104314B (en) Method and device for modifying log configuration file
US10255138B2 (en) Disaster recovery tool
CN107544868B (en) Data recovery method and device
US20160004607A1 (en) Information processing apparatus and information processing method
TWI400600B (en) Method for recovering system setting and computer system
CN111124729A (en) A kind of fault disk determination method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131106