[go: up one dir, main page]

CN116560909A - System restore method and apparatus, computing device, and readable storage medium - Google Patents

System restore method and apparatus, computing device, and readable storage medium Download PDF

Info

Publication number
CN116560909A
CN116560909A CN202310539251.6A CN202310539251A CN116560909A CN 116560909 A CN116560909 A CN 116560909A CN 202310539251 A CN202310539251 A CN 202310539251A CN 116560909 A CN116560909 A CN 116560909A
Authority
CN
China
Prior art keywords
software package
configuration file
incremental
installation list
point
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
CN202310539251.6A
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 CN202310539251.6A priority Critical patent/CN116560909A/en
Publication of CN116560909A publication Critical patent/CN116560909A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/1479Generic software techniques for error detection or fault masking

Landscapes

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

Abstract

The invention discloses a system restoration method and device, computing equipment and a readable storage medium, relates to the technical field of system backup and restoration, and can solve the technical problems that the storage space occupied by the existing restoration point is more and the like. The system restoring method comprises the following steps: reading a software package installation list from an restore point, wherein the restore point comprises the software package installation list and a software package configuration file; downloading and installing the software package according to the read software package installation list; and reading a configuration file from the restore point, and carrying out system restoration by using the configuration file. According to the technical scheme of the invention, the storage space occupied by the restore point is small, the implementation is simple, the running speed is high, and the occupied computer resource is less during running.

Description

System restore method and apparatus, computing device, and readable storage medium
Technical Field
The present invention relates to the field of system backup and restore technologies, and in particular, to a system restore method and apparatus, a computing device, and a readable storage medium.
Background
With the rapid development of computer software technology, more and more computer software is developed for users. Most software provides a configuration interface to facilitate the user to implement the desired functionality by modifying the configuration, either to make its application as wide as possible, or to meet the user's differentiated needs.
Meanwhile, in order to shorten the software development process, a software developer generally divides functions implemented by the software into smaller granularity, so that the following situations occur: when a user is to perform a function, it is often necessary to install and deploy a plurality of software packages and configure the software packages so that the software packages cooperate with each other to perform the desired function. Because of the large number of software packages, the software packages need to be matched with each other, so that the configuration and the deployment become a time-consuming and labor-consuming work. Once the configuration data is destroyed, modified, or inadvertently deleted or uninstalled, the entire software system is destroyed and cannot continue to operate. At this time, it often takes more time to configure and debug the recovery system.
For this situation, in the current computer operating system, there are mainly two ways to implement system restoration: firstly, the operating system itself provides a backup and restore function; and secondly, realizing 'system backup' and 'system restoration' by means of third-party software. These "system backup" and "system restore" are roughly classified into the following categories according to the implementation principle:
1. when the system works normally, the data needing to be backed up is selected to be copied and backed up, and then the 'covered' type recovery of the hard disk data is carried out when the subsequent needs are carried out, so that the 'system restoration' is achieved. This method may be referred to as "hard disk data replication".
2. When the system is subjected to major change (such as software upgrading and software unloading), the system software data is backed up, or the system software data is periodically backed up to create a return point, and the original disk data is covered by the return point when the system is required subsequently, so that the purpose of system restoration is achieved.
However, both of these methods have the following problems:
1. when the system is backed up, the operation time of the backup operation is longer because of more backup data. At this time, the following problems may be caused: a. if the user is not allowed to perform system configuration, software installation-related operations during "backup", it may result in the user not fully operating the computer for a long period of time. b. If the user is allowed to perform system configuration, software installation-related operations during "backup", a situation may occur in which the user backup data is inconsistent. Such as: a certain software package of a user contains 1000 files, which may change during backup, so that only part of the files therein are backed up, resulting in an invalid or incomplete "restore point".
2. Because of the more data backed up, the more memory space is occupied by the "restore point", which creates a memory burden for the user. Meanwhile, the occupied storage space is more, the creation frequency of the 'restore point' is limited, and the 'restore point' cannot be created with smaller granularity in the time dimension for a system with more modification requirements.
Disclosure of Invention
To this end, the present invention provides a system restore method and apparatus, computing device, and readable storage medium in an effort to solve or at least mitigate at least one of the above-identified problems.
According to a first aspect of the present invention, there is provided a system restore method comprising: reading a software package installation list from an restore point, wherein the restore point comprises a software package installation list and a software package configuration file, and the software package configuration file is a configuration file of a software package listed in the software package installation list; downloading and installing the software package according to the read software package installation list; and reading a software package configuration file from the restore point, and carrying out system restoration by using the software package configuration file.
Optionally, the system restore method according to the present invention further includes a backup process: querying the installed software package, and storing the name of the installed software package as a software package installation list; searching a software package configuration file of an installed software package and storing the software package configuration file; and creating a restore point through the software package installation list and the software package configuration file.
Optionally, the system recovery method according to the present invention further comprises: after creating the restore point, compressing the software package installation list and the software package configuration file in the restore point.
According to a second aspect of the present invention, there is provided a system restore method comprising: reading a reference software package installation list from a reference restoration point, reading an incremental software package installation list from an incremental restoration point, and calculating to obtain a software package installation list corresponding to the incremental restoration point, wherein the reference restoration point comprises a reference software package installation list and a reference configuration file, the reference configuration file is a configuration file of a software package listed in the reference software package installation list, the incremental restoration point comprises an incremental software package installation list and an incremental configuration file, the incremental software package installation list represents the change of the software package installation list corresponding to the incremental restoration point relative to the reference software package installation list, and the incremental configuration file represents the difference of the software package configuration file corresponding to the incremental restoration point relative to the reference configuration file; downloading and installing the software package according to the software package installation list corresponding to the incremental restore point; reading a reference configuration file from a reference restore point, reading an incremental configuration file from an incremental restore point, calculating to obtain a software package configuration file corresponding to the incremental restore point, and carrying out system restore by using the software package configuration file corresponding to the incremental restore point.
Optionally, the system restore method according to the present invention further includes a backup process: comparing the change of the current software package installation list relative to the reference software package installation list, and storing the change as an incremental software package installation list; comparing differences between software package configuration files of currently installed software packages and reference configuration files, and storing the differences as incremental configuration files; and creating an incremental restore point through the incremental software package installation list and the incremental configuration file.
According to a third aspect of the present invention, there is provided a system restore apparatus comprising: the device comprises a reading module, a storage module and a storage module, wherein the reading module is used for reading a software package installation list from a return point, the return point comprises the software package installation list and a software package configuration file, and the software package configuration file is a configuration file of a software package listed in the software package installation list; the installation module is used for downloading and installing the software package according to the read software package installation list; and the restoring module is used for reading the software package configuration file from the restoring point and carrying out system restoration by using the software package configuration file.
Optionally, the system restore device according to the present invention further includes a backup module, where the backup module includes: the software package inquiring sub-module is used for inquiring the installed software package and storing the name of the installed software package as a software package installation list; the configuration file searching sub-module is used for searching the software package configuration file of the installed software package and storing the software package configuration file; and the creation sub-module is used for creating an restore point through the software package installation list and the software package configuration file.
According to a fourth aspect of the present invention, there is provided a system restore apparatus comprising: the device comprises a reading module, a storage module and a storage module, wherein the reading module is used for reading a reference software package installation list from a reference restoration point, reading an incremental software package installation list from an incremental restoration point, and calculating to obtain a software package installation list corresponding to the incremental restoration point, wherein the reference restoration point comprises the reference software package installation list and a reference configuration file, the reference configuration file is a configuration file of a software package listed in the reference software package installation list, the incremental restoration point comprises the incremental software package installation list and an incremental configuration file, the incremental software package installation list represents the change of the software package installation list corresponding to the incremental restoration point relative to the reference software package installation list, and the incremental configuration file represents the difference of the software package configuration file corresponding to the incremental restoration point relative to the reference configuration file; the installation sub-module is used for downloading and installing the software package according to the software package installation list corresponding to the incremental restore point; and the atomic module is used for reading the reference configuration file from the reference restore point, reading the incremental configuration file from the incremental restore point, calculating to obtain the software package configuration file corresponding to the incremental restore point, and carrying out system restoration by using the software package configuration file corresponding to the incremental restore point.
According to a fifth aspect of the present invention there is provided a computing device comprising: at least one processor and a memory storing program instructions; the program instructions, when read and executed by the processor, cause the computing device to perform a system restore method as described above.
According to a sixth aspect of the present invention, there is provided a readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform a system restore method as described above.
According to the technical scheme of the invention, the restore point only needs to backup the installation list of the software package currently installed by the system and all the software package configuration files currently installed by the system, so that the data required to be stored in the restore point is as little as possible, the memory space occupied by the restore point is smaller, the computer resources occupied by the restore point in the operation of the system are fewer, and the operation speed is faster. Further, since the restore point only needs to backup the software package installation list and the software package configuration file, the implementation process of the restore point backup scheme is simple.
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 set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 shows a schematic flow diagram of an example of a system restore method according to an embodiment of the invention;
FIG. 2 shows a schematic flow diagram of another system restore method example in accordance with an embodiment of the invention;
FIG. 3 shows a schematic flow chart of another example of a backup process according to an embodiment of the invention;
FIG. 4 shows a schematic block diagram of an example of a system restore device according to an embodiment of the invention;
FIG. 5 shows a schematic diagram of a computing device according to one embodiment of the 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.
First, two basic concepts used herein will be briefly described: system backup and system restore. The system backup refers to storing software data running on a system in a certain format, and the data stored by the system backup is generally called as an "restore point". System restore refers to "restoring" a portion of the data of the system in accordance with or with reference to a "restore point" such that all or a portion of the software functionality of the system is restored to the state at the time the "restore point" was generated.
Drawbacks of the prior art backup restoration method mentioned in the background section include: the backup operation requires longer running time and occupies more storage space at the restore point. For example, the cloning software ghost can backup binary data of the partition of the disk, and can also restore the partition data by using the backup file. The cloning software can back up and cover the whole disk data, and can restore the data file of the user to the creation time of the restore point during the restore process, but the modification of the data file by the user is destroyed within a period of time from the creation time of the restore point to the restore process of the system. The technical problems mentioned in the background art may also be caused if the system's own backup-restore function is used, such as full-disk backup (full-disk backup refers to backup of all data of the current system), and system backup (system backup refers to backup of only software packages and related files provided by the operating system itself).
According to the technical scheme of the invention, a lightweight system backup and restore scheme is provided. The scheme is realized mainly by utilizing the following characteristics of the current operating system:
most software packages of operating systems currently provide network sources or software installation images. When operating system changes, it is usually due to: the user installs the software, uninstalls the software, or modifies the configuration file of the software package. And a, for a specific operating system, a software package can be uniquely determined through a software name and a version number. Other files in the software package than the configuration files may be modified by the user are not optionally modifiable, including executable programs provided by the software package, or even if modified, do not require a backup or record, such as help files provided by the software package. The configuration file contains information required for successfully running the software package, which is not hard-coded in the program, but is user-configurable, typically in the form of a plain text file. b. For a certain operating system, the configuration items of the software package have a storage path with a relatively uniform specification. For a linux operating system, for example, the/etc directory is typically the storage path for the configuration files of the operating system itself and the storage path for the configuration files of the software package.
Based on the above, it is possible to backup only the following contents when performing system backup: a list of software packages (containing the names and versions of the software packages) that the system is currently installed, and the configuration files for all software packages. This results in as little data to be stored in the "restore point" as possible, thus resulting in less memory space being occupied by the "restore point", less runtime being required to create the "restore point", and less computer resources being consumed.
In addition, for some systems, at boot-up, boot is first performed into a memory file system that holds the underlying commands and/or applications and their dependencies. The primary starting process comprises the steps of starting and loading the memory file system by the kernel, then creating and mounting the disk file system in the memory file system, and then guiding the disk file system into the disk system. Based on this, the virtual file system may be modified to ensure that the system is restored at startup according to a specified "restore point" and then rebooted into the disk system. Based on this, a "system restore" can be performed in the virtual file system, namely: whether or not the system in the disk can be started up normally, the system can be restored and repaired by the system restoration. It should be understood that the present invention is not limited by this implementation, and that a specific implementation may be determined by one skilled in the art according to a specific system environment, and a system development process.
According to an embodiment of the invention, a system restoration method is provided. Fig. 1 shows a schematic flow chart of an example of the system restore method. As shown in FIG. 1, the system restore method includes steps 110-160. The steps are described in detail below.
In step 110, the installed software package is queried and the name of the installed software package is stored as a software package installation list. The query method may be, for example: for systems such as linux systems, debian\ubuntu\deepin, the inquiry can be carried out by adopting a command apt list-insiled; the system such as centos, rhel, euler can be queried using the command rpm-qa. The resulting package installation list may exist in the form of a document such as WORD, EXCEL, but is not limited thereto as long as it can be stored as a list of package names in local/remote storage.
In step 120, the software package configuration file of the already installed software package is looked up and saved.
In step 130, an restore point is created from the above-described package installation list and package configuration file, the restore point being a data set including the package installation list and package configuration file. Optionally, to reduce the disk space occupied by the restore point, the files contained in the restore point may be compressed.
In step 140, the software package installation list is read from the restore point, which includes the software package installation list and the software package configuration file.
In step 150, the software package is downloaded and installed according to the read software package installation list. The download may be from a "source". "Source" refers to an application installation repository, which may be an online repository, accessed over a network to download and install software packages; or may be a file stored locally on the computer system. Before the downloading is performed, if the user determines that it is necessary, the software package set installed in the current disk may be deleted first, specifically, some key directories of the system may be deleted first, for example, for the linux system, directories such as/usr,/etc. may be deleted.
In step 160, the software package configuration file is read from the restore point, and the system restore is performed using the software package configuration file. The system restore here refers to: the default configuration is overridden with the backed up software package configuration file to restore the software function to the state at the time of "restore point" generation. "default configuration" refers to the configuration being in a default state when the package has just been downloaded and installed in step 150. Typically, the backed up package configuration file is the result of long-term debugging and use based on the user's needs for functionality.
So far, the system is restored and executed. The system may then be booted to disk so that the restored system begins to operate. In the whole restoration process, only the software package installed by the user is reinstalled and the configuration file is restored, so that the data file of the user is not modified or destroyed.
The backup operation may be performed periodically, and the time point and the interval time of specific execution are not limited. In the case of periodic execution, a plurality of restore points may be stored in correspondence with the time at the time of generation. When the system is restored, the system state at any time can be selected and restored according to the requirement.
The system restore method described above can be used to restore additional computer systems (computer systems that do not generate restore points) to achieve "cloning" of different computer system software systems. The "cloning" of software systems between different computers applies, for example, to the following cases: in a clustered system, for example, an operator needs to manage up to 1000 computers and expects the states of these computers to be identical. At this time, only one computer needs to be debugged to obtain the expected configuration and backup, and then the backup is adopted to restore the system on other 999 computers to obtain the expected result.
Variations on the above system restore method are also possible. Specifically, a "reference" restore point may be backed up first, and based on this backup scheme, subsequent restore points may be "incremental" backups based on the "reference" restore point. When the system restoration is needed, the content of the expected restoration can be calculated according to the reference restoration point and the incremental restoration point, and then the system restoration is carried out. The reference restore point can be obtained by the following method: after the system is installed and subjected to basic debugging, the relatively stable system state after the debugging is backed up as a reference restore point. The manner in which the reference restore point is obtained may also be specified by those skilled in the art as desired.
Therefore, according to an embodiment of the present invention, there is also provided a system restoration method. Fig. 2 shows a schematic flow chart of an example of the system restore method. As shown in fig. 2, the method includes steps 210-230. The steps are described in detail below.
In step 210, a reference software package installation list is read from a reference restore point, an incremental software package installation list is read from an incremental restore point, and a software package installation list corresponding to the incremental restore point is obtained through calculation, wherein the reference restore point comprises the reference software package installation list and a reference configuration file, the incremental restore point comprises the incremental software package installation list and the incremental configuration file, the incremental software package installation list represents changes of the software package installation list corresponding to the incremental restore point relative to the reference software package installation list, and the incremental configuration file represents differences of the software package configuration file corresponding to the incremental restore point relative to the reference configuration file.
In step 220, the software package is downloaded and installed according to the software package installation list corresponding to the incremental restore point.
In step 230, the reference configuration file is read from the reference restore point, the incremental configuration file is read from the incremental restore point, the software package configuration file corresponding to the incremental restore point is obtained by calculation, and the system restore is performed using the software package configuration file corresponding to the incremental restore point.
The method shown in fig. 2 may also include a backup process. As shown in fig. 3, this backup process example may include the steps of: in step 310, comparing the changes of the current software package installation list relative to the reference software package installation list, and storing the changes as an incremental software package installation list; in step 320, the differences of the software package configuration files of the already installed software packages with respect to the reference configuration files are compared and stored as incremental configuration files; in step 330, an incremental restore point is created from the incremental package installation list and the incremental configuration file described above.
The reference restore point used in the backup process can be backed up in advance, and the backup process can also be used for backing up. That is, the backup process shown in fig. 3 may further include a reference point backup process: inquiring the software package installed at the reference time point, and storing the name of the software package installed as a reference software package installation list; searching a software package configuration file of the software package installed at the reference time point and storing the software package configuration file as a reference configuration file; and creating a restore point through the reference software package installation list and the reference configuration file. As described above, the reference point in time may be a relatively stable point in time after the system has been installed and has undergone a basic debug, or other provision made by those skilled in the art.
According to the technical scheme of the embodiment of the invention, a lightweight system backup and restore scheme is realized, the realization is simple, the backup speed is high, the running time is short, the occupied computing resource is less during running, and the memory space occupied by the restore point is less. And as described above, the restore point created by one computer can be applied to another computer for system restore, so that "software system cloning" between different calculations can be realized.
According to the embodiment of the invention, a system reduction device is also provided. Fig. 4 shows a schematic block diagram of an example of the system restore device 400. As shown in fig. 4, the system restore device 400 includes a backup module 410, a reading module 420, an installation module 430, and a restore module 440. Wherein, the reading module 420 is configured to read the software package installation list from an restore point, where the restore point includes the software package installation list and the software package configuration file. The installation module 430 is configured to download and install the software package according to the read software package installation list. The restore module 440 is configured to read the software package configuration file from the restore point and use the software package configuration file to perform system restore.
The backup module may include: the software package inquiring sub-module is used for inquiring the installed software package and storing the name of the installed software package as a software package installation list; the configuration file searching sub-module is used for searching the installed software package configuration file and storing the software package configuration file; and the creation sub-module is used for creating an restore point through the software package installation list and the software package configuration file. Optionally, the backup module may further include a compression sub-module, configured to compress a file included in the restore point, so as to reduce disk space occupied by the restore point.
According to an embodiment of the present invention, there is provided another system restoration device including a reading module, an installation module, and a restoration module. The reading module is used for reading a reference software package installation list from a reference restoration point, reading an incremental software package installation list from an incremental restoration point, and calculating to obtain a software package installation list corresponding to the incremental restoration point, wherein the reference restoration point comprises the reference software package installation list and a reference configuration file, the incremental restoration point comprises the incremental software package installation list and the incremental configuration file, the incremental software package installation list represents the change of the software package installation list corresponding to the incremental restoration point relative to the reference software package installation list, and the incremental configuration file represents the difference of the software package configuration file corresponding to the incremental restoration point relative to the reference configuration file. The installation module is used for downloading and installing the software package according to the software package installation list corresponding to the incremental restore point. The restoring module is used for reading the reference configuration file from the reference restoring point, reading the incremental configuration file from the incremental restoring point, calculating to obtain the software package configuration file corresponding to the incremental restoring point, and restoring the system by using the software package configuration file corresponding to the incremental restoring point.
The system restore device may include a backup module, which may include: the reference restore point backup sub-module is used for backing up a reference restore point, and the reference restore point comprises a reference software package installation list and a reference configuration file. And the incremental software package installation list backup sub-module is used for comparing the change of the installed software package list relative to the reference software package installation list and storing the change as the incremental software package installation list. The incremental configuration file backup sub-module is used for comparing the difference between the software package configuration file of the installed software package and the reference configuration file and storing the difference as the incremental configuration file. The incremental restore point creation module is configured to create an incremental restore point through the incremental software package installation list and the incremental configuration file.
In a non-detailed part of the system restore device according to an embodiment of the invention, reference is also made to the above detailed description of the method embodiments.
The method of the present invention may be performed in a computing device. The computing device may be any device having storage and computing capabilities, and may be implemented, for example, as a server, a workstation, or the like, or may be implemented as a personal configured computer such as a desktop computer, a notebook computer, or may be implemented as a terminal device such as a mobile phone, a tablet computer, an intelligent wearable device, or an internet of things device, but is not limited thereto.
FIG. 5 shows a schematic diagram of a computing device 500 according to one embodiment of the invention. It should be noted that the computing device 500 shown in fig. 5 is only an example, and in practice, the computing device used to implement the method of the present invention may be any type of device, and the hardware configuration of the computing device may be the same as the computing device shown in fig. 5 or may be different from the computing device shown in fig. 5. The hardware components of the computing device used in practice to implement the methods of the present invention may be added or subtracted from the hardware components of the computing device 500 shown in fig. 5. The invention does not limit the specific hardware configuration of the computing device.
As shown in fig. 5, the computing device 500 may include: processor 510, memory 520, input/output interface 530, communication interface 540, and bus 550. Wherein processor 510, memory 520, input/output interface 530, and communication interface 540 enable a communication connection between each other within a computing device via bus 550.
The processor 510 may be implemented by a general-purpose CPU (Central Processing Unit ), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 520 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 520 may store an operating system and other application programs, and when the embodiments of the present disclosure are implemented in software or firmware, the associated program code is stored in memory 520 and executed by processor 510.
The input/output interface 530 is used for connecting with an input/output module to realize information input and output. The input/output modules may be configured as components in a computing device (not shown) or may be external to the computing device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 540 is used to connect communication modules (not shown) to enable communication interactions of the present computing device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 550 includes a path to transfer information between various components of the computing device (e.g., processor 510, memory 520, input/output interface 530, and communication interface 540).
It should be noted that although the above-described computing device only shows processor 510, memory 520, input/output interface 530, communication interface 540, and bus 550, in an implementation, the computing device may include other components necessary to achieve proper operation. Moreover, those skilled in the art will appreciate that the computing devices described above may include only the components necessary to implement the embodiments of the present description, and not all of the components shown in the figures.
Embodiments of the present invention also provide a non-transitory readable storage medium storing instructions for causing the computing device to perform a method according to embodiments of the present invention. The readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be any method or technology for information storage. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of readable storage media include, but are not limited to: phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage, and the like.
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 the invention. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It should be appreciated that the teachings of the present invention as described herein may be implemented in a variety of programming languages and that the foregoing descriptions of specific languages are provided for disclosure of preferred embodiments of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood 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 above 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 construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. 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 the examples. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. 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. Any combination may be employed to combine all features disclosed in this specification (including the accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, unless at least some of such features and/or processes or units 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 but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, 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 the above description, will appreciate that other embodiments are contemplated within 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.

Claims (9)

1. A system restore method, comprising:
querying the installed software package, and storing the name of the installed software package as a software package installation list;
searching a software package configuration file of an installed software package and storing the software package configuration file;
creating the restore point through the software package installation list and the software package configuration file;
reading a software package installation list from an restore point, wherein the restore point comprises a software package installation list and a software package configuration file, and the software package configuration file is a configuration file of a software package listed in the software package installation list;
downloading and installing the software package according to the read software package installation list;
and reading the software package configuration file from the restore point, and carrying out system restoration by using the software package configuration file.
2. The system restore method of claim 1, further comprising: after the restore point is created, the software package installation list and the software package configuration file in the restore point are compressed.
3. A system restore method, comprising:
reading a reference software package installation list from a reference restoration point, reading an incremental software package installation list from an incremental restoration point, and calculating to obtain a software package installation list corresponding to the incremental restoration point, wherein the reference restoration point comprises a reference software package installation list and a reference configuration file, the reference configuration file is a configuration file of a software package listed in the reference software package installation list, the incremental restoration point comprises an incremental software package installation list and an incremental configuration file, the incremental software package installation list represents the change of the software package installation list corresponding to the incremental restoration point relative to the reference software package installation list, and the incremental configuration file represents the difference of the software package configuration file corresponding to the incremental restoration point relative to the reference configuration file;
downloading and installing the software package according to the software package installation list corresponding to the incremental restore point;
reading a reference configuration file from the reference restore point, reading an incremental configuration file from the incremental restore point, calculating to obtain a software package configuration file corresponding to the incremental restore point, and carrying out system restoration by using the software package configuration file corresponding to the incremental restore point.
4. The system restore method of claim 3, further comprising a backup process, the backup process comprising:
comparing the change of the current software package installation list relative to the reference software package installation list, and storing the change as an incremental software package installation list;
comparing differences between software package configuration files of currently installed software packages and reference configuration files, and storing the differences as incremental configuration files;
and creating an incremental restore point through the incremental software package installation list and the incremental configuration file.
5. A system restore device, comprising:
a backup module, comprising:
the software package inquiring sub-module is used for inquiring the installed software package and storing the name of the installed software package as a software package installation list;
the configuration file searching sub-module is used for searching the software package configuration file of the installed software package and storing the software package configuration file;
the creation sub-module is used for creating the restore point through the software package installation list and the software package configuration file;
the device comprises a reading module, a storage module and a storage module, wherein the reading module is used for reading a software package installation list from a return point, the return point comprises the software package installation list and a software package configuration file, and the software package configuration file is a configuration file of a software package listed in the software package installation list;
the installation module is used for downloading and installing the software package according to the read software package installation list; and the restoration module is used for reading the software package configuration file from the restoration point and performing system restoration by using the software package configuration file.
6. A system restore device, comprising:
the device comprises a reading module, a storage module and a storage module, wherein the reading module is used for reading a reference software package installation list from a reference restoration point, reading an incremental software package installation list from an incremental restoration point, and calculating to obtain a software package installation list corresponding to the incremental restoration point, wherein the reference restoration point comprises the reference software package installation list and a reference configuration file, the reference configuration file is a configuration file of a software package listed in the reference software package installation list, the incremental restoration point comprises the incremental software package installation list and an incremental configuration file, the incremental software package installation list represents the change of the software package installation list corresponding to the incremental restoration point relative to the reference software package installation list, and the incremental configuration file represents the difference of the software package configuration file corresponding to the incremental restoration point relative to the reference configuration file;
the installation module is used for downloading and installing the software package according to the software package installation list corresponding to the incremental restore point;
the restoring module is used for reading the reference configuration file from the reference restoring point, reading the incremental configuration file from the incremental restoring point, calculating to obtain the software package configuration file corresponding to the incremental restoring point, and carrying out system restoration by using the software package configuration file corresponding to the incremental restoring point.
7. The system restore apparatus of claim 6, further comprising a backup module, the backup module comprising:
the reference restore point backup sub-module is used for backing up a reference restore point, and the reference restore point comprises a reference software package installation list and a reference configuration file;
the incremental software package installation list backup sub-module is used for comparing the change of the current software package installation list relative to the reference software package installation list and storing the change as an incremental software package installation list;
the incremental configuration file backup sub-module is used for comparing the difference between the software package configuration file of the currently installed software package and the reference configuration file and storing the difference as an incremental configuration file;
the incremental restore point creation module is configured to create an incremental restore point through the incremental software package installation list and the incremental configuration file.
8. A computing device, comprising:
at least one processor and a memory storing program instructions;
the program instructions, when read and executed by the processor, cause the computing device to perform the system restore method of any of claims 1-4.
9. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the system restore method of any of claims 1-4.
CN202310539251.6A 2023-05-12 2023-05-12 System restore method and apparatus, computing device, and readable storage medium Pending CN116560909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310539251.6A CN116560909A (en) 2023-05-12 2023-05-12 System restore method and apparatus, computing device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310539251.6A CN116560909A (en) 2023-05-12 2023-05-12 System restore method and apparatus, computing device, and readable storage medium

Publications (1)

Publication Number Publication Date
CN116560909A true CN116560909A (en) 2023-08-08

Family

ID=87492764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310539251.6A Pending CN116560909A (en) 2023-05-12 2023-05-12 System restore method and apparatus, computing device, and readable storage medium

Country Status (1)

Country Link
CN (1) CN116560909A (en)

Similar Documents

Publication Publication Date Title
US11934811B2 (en) Container image building using dependency container images
KR100952251B1 (en) A method of updating a software product by a service package, a computer-implemented method, a computer readable storage medium, and a service package
US8495609B2 (en) Methods, systems, and computer program products for taking a snapshot of installed software on a data processing system as part of a software update process
US8745601B1 (en) Methods and systems for using data structures for operating systems
US7814476B2 (en) Systems and methods for updating software
CN112486552A (en) Server hot update method, device, equipment and storage medium
CN108762825B (en) Method and system for realizing heavy load of dynamic library
US20210397426A1 (en) Efficient dependency management for software development environments
CN113326078A (en) Method, equipment and storage medium for dynamically updating software development kit
CN111400256B (en) Method and device for calling resource file by application program
CN117707543A (en) Application installation package manufacturing and installation method, computing device and storage medium
CN114281597A (en) Adaptive thermal reload for class change
CN109558121B (en) Interface driver development method, device, equipment and storage medium
CN112882698A (en) Development environment generation method and device, computer storage medium and electronic device
CN113867768A (en) Operating system processing method and device, electronic equipment and storage medium
CN116049207A (en) Application SQL script processing method and device, processor and electronic equipment
CN111367512B (en) A method and device for creating Android library module dependencies in application development
CN116560909A (en) System restore method and apparatus, computing device, and readable storage medium
US20180341475A1 (en) Just In Time Deployment with Package Managers
CN112416372A (en) AAR modification construction method, apparatus, electronic device and storage medium
CN113867776A (en) Method and device for publishing middle station application, electronic equipment and storage medium
CN113722538B (en) Interface dynamic rendering method and device
CN118245137B (en) Method, system, equipment and medium for managing data object
US20250077191A1 (en) Building software using volume snapshots
CN112579113A (en) Application program upgrading method and device, storage medium and terminal

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