WO2017016139A1 - Procédé et appareil de récupération de système - Google Patents
Procédé et appareil de récupération de système Download PDFInfo
- Publication number
- WO2017016139A1 WO2017016139A1 PCT/CN2015/097345 CN2015097345W WO2017016139A1 WO 2017016139 A1 WO2017016139 A1 WO 2017016139A1 CN 2015097345 W CN2015097345 W CN 2015097345W WO 2017016139 A1 WO2017016139 A1 WO 2017016139A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file
- modification request
- modification
- predetermined directory
- request
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
Definitions
- the present invention relates to the field of computers, and in particular, to a system restoration method and apparatus.
- the existing system restoration method usually copies all the backed up system files to the system disk and restores the system at the level of the sector.
- the restore method cannot distinguish between files and directories, there is no backup in the system file.
- the software or other data stored in the disk is completely lost, causing the user to reinstall the corresponding software after the system is restored, and since the software is reinstalled, the historical information recorded by the software is also disappeared, which affects the use of the software. It brings a lot of inconvenience to the user.
- One of the technical problems solved by the present invention is that it is impossible to distinguish files and directories during system restoration, so that software that does not need to be restored and other data stored in the disk are all lost.
- a system restoration method including:
- the modification request is a modification of a file of a predetermined directory
- the modification request is sent to a disk drive where the file of the predetermined directory is located for restoration.
- a system restoration apparatus comprising:
- FIG. 1 shows a flow chart of a system restoration method in accordance with an embodiment of the present invention.
- FIG. 2 shows a flow chart of step S120 in the system restoration method according to an embodiment of the present invention.
- FIG. 3 shows a block diagram of a system restoration apparatus in accordance with an embodiment of the present invention.
- FIG. 4 is a flow chart showing a method for system restoration by taking a restoration system to protect a C disk from being modified as an example according to an embodiment of the invention.
- Computer device also referred to as “computer” in the context, is meant an intelligent electronic device that can perform predetermined processing, such as numerical calculations and/or logical calculations, by running a predetermined program or instruction, which can include a processor and Memory, executed by the processor in the memory
- predetermined processing such as numerical calculations and/or logical calculations
- the pre-stored surviving instructions are used to execute a predetermined process, or are executed by hardware such as an ASIC, an FPGA, a DSP, or the like, or a combination of the two.
- Computer devices include, but are not limited to, servers, personal computers, notebook computers, tablets, smart phones, and the like.
- the computer device includes a user device and a network device.
- the user equipment includes, but is not limited to, a computer, a smart phone, a PDA, etc.
- the network device includes but is not limited to a single network server, a server group composed of multiple network servers, or a cloud computing based computer Or a cloud composed of a network server, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computers.
- the computer device can be operated separately to implement the present invention, and can also access the network and implement the present invention by interacting with other computer devices in the network.
- the network in which the computer device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and the like.
- the user equipment, the network equipment, the network, and the like are merely examples, and other existing or future possible computer equipment or networks, such as those applicable to the present invention, are also included in the scope of the present invention. It is included here by reference.
- FIG. 1 is a flow chart of a system restoration method in accordance with one embodiment of the present invention.
- the system restoration method described in this embodiment includes:
- modification request is a modification to a file of a predetermined directory
- the modification request may be an operation request for reading, writing, or restoring the file, which is generally an I/O (input and output) manager sent by the user to the terminal through the application, and the I/O manager receives the modification request.
- I/O input and output
- step S120 if the modification request is a modification to a file of a predetermined directory, setting a flag in the modification request; and sending the marked modification request to the pre- The disk drive where the files in the directory are located is restored.
- the following steps may be specifically included:
- S1201 Determine path information corresponding to the modified file in the modification request.
- S1202 Determine, according to the path information, whether the modification request is a modification to a file in a predetermined directory, and if yes, perform steps S1203-S1204; if not, execute step S1205.
- the modification request is directly sent to a disk drive where the file of the predetermined directory is located for restoration.
- S1205 Send the modification request to the restore system disk filter driver for restoration.
- step S120 it is identified whether the modification request is a modification of the file of the predetermined directory, generally at the file system level, first, the file full path name of the current modification request operation is obtained through the file object and the parent directory handle, and then, the target file name For comparison, if it is the same as the target file name, it is determined that the modification request is a modification of the file or the predetermined file of the predetermined directory, and at the same time, the location of the file corresponding to the same target file name of the I/O request packet of the current file operation is recorded.
- the file system filter driver may be employed to identify whether the modification request is a modification to the file of the predetermined directory, wherein the file system filter driver may include a conventional file system filtering framework or a new MiniFiter (micro filter) framework to identify whether the modification request is for a predetermined request.
- the file system filter driver may include a conventional file system filtering framework or a new MiniFiter (micro filter) framework to identify whether the modification request is for a predetermined request.
- the modification of the file of the directory can also adopt the dispatch process driven by the HOOK (hook) file system, etc., wherein the dispatch process can be implemented by the dispatch function, and for each file system driver, the system will create a corresponding function object, in this
- the location of the MajorFunction (main function) of the drive object is stored with a dispatch function, which is exemplified by NTFS (New Technology File System) shown in Table 1 below, wherein the dispatch function corresponding to MajorFunction[00]0xf7361e01 is NtfFsdCreate;
- the dispatch function corresponding to MajorFunction[03]0xf733ef2f is NtfFsdRead; the dispatch function corresponding to MajorFunction[04]0xf733db4b is NtfFsdWrite.
- FIG. 3 is a block diagram of a system restoration apparatus in accordance with one embodiment of the present invention.
- the system restoration apparatus of this embodiment includes:
- Means for receiving a modification request (hereinafter referred to as "receiving device") 110;
- the modification request is a modification of a file of a predetermined directory
- the disk drive to which the modification request is sent to the file of the predetermined directory is restored (hereinafter referred to as “identification and restoration device”) 120.
- the modification request may be an operation request for reading, writing or restoring a file, which is generally an I/O (input and output) manager sent by the user to the terminal through the application, and the I/O manager receives the modification. request.
- I/O input and output
- the modification request is a modification of a file of a predetermined directory
- a flag is set in the modification request
- the disk drive in which the modified modification request is sent to the file in the predetermined directory is located Restore.
- the following devices may be included:
- the specific file identification device 1201 is configured to determine path information corresponding to the modified file in the modification request, and determine, according to the path information, whether the modification request is a modification to a file of a predetermined directory, and if yes, in the modification request Set the tag. For example, if the file in the c: ⁇ mydoc directory is modified when the request is modified, a mark is set to a position of the I/O request packet representing the modification operation, and then the modified request after the mark is sent to the lower layer driver. Sent to the disk operation pre-processing device 1202, wherein the next drive may be a file system, or other filter driver above the file system level. Specifically, the mark may be set in a reserved field in the I/O request, or may be set. In other fields, as long as the identification of the I/O request packet is not affected.
- the disk operation pre-processing device 1202 is configured to detect whether a flag is set in the modification request, that is, whether a certain location of the I/O request packet is set with a flag, and if there is a flag, send the modification request directly to the
- the disk drive device 1203 where the c: ⁇ mydoc directory is located is restored, instead of restoring the system disk filter drive device 1204, so that the file modification operation for the c: ⁇ mydoc directory does not pass through the restore system and is not restored by the restore system. There is no corresponding mapping relationship. Therefore, when the system is restored by the embodiment of the present invention, there is no writeback operation for c: ⁇ mydoc.
- the disk drive device 1203 directly modifies the files in the predetermined directory, and the restore system disk filter driver 1204 needs to establish a mapping relationship between the files in the predetermined directory and the backup files, and writes the backup files back to the disk drive device 1203.
- the identification and restoration device 120 identifies whether the modification request is a modification of the file of the predetermined directory, generally at the file system level, first, obtaining the full path name of the file of the modification request operation by the file object and the parent directory handle, and then, with the target If the file name is the same as the target file name, it is determined that the modification request is a modification of the file or the predetermined file of the predetermined directory, and at the same time, the same target file name corresponding to the I/O request packet of the current file operation is recorded. position.
- the file system filter driver may be employed to identify whether the modification request is a modification to the file of the predetermined directory, wherein the file system filter driver may include a conventional file system filtering framework or a new MiniFiter (micro filter) framework to identify whether the modification request is for a predetermined request.
- the modification of the file of the directory may also adopt a dispatch process driven by a HOOK (hook) file system, etc., wherein the dispatch process can be implemented by a dispatch function.
- the method for restoring the C disk generally backs up the modification operation of a certain sector of the C disk to a certain sector position of the D disk, and records the correspondence between the two locations.
- the data content of the D disk sector is written back to the sector corresponding to the C disk to implement system restoration.
- the embodiment of the present invention takes the restoration system to protect the C disk from being modified (but allows c: ⁇ mydoc to be modified) as an example.
- the system restoration method includes:
- the I/O manager receives the modification request sent by the user through an application programming interface (Application Programming Interface).
- Application Programming Interface Application Programming Interface
- S420 Determine whether the modification request is a modification to a file in a predetermined directory. If yes, add a flag to the modification request, and then send the file through the file system dispatch function; if not, send the file system dispatch function.
- the present invention can be implemented in software and/or a combination of software and hardware.
- the various devices of the present invention can be implemented using an application specific integrated circuit (ASIC) or any other similar hardware device.
- the software program of the present invention may be executed by a processor to implement the steps or functions described above.
- the software program (including related data structures) of the present invention can be stored in a computer readable recording medium such as a RAM memory, a magnetic or optical drive or a floppy disk and the like.
- some of the steps or functions of the present invention may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.
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
L'invention concerne un procédé et un appareil de récupération de système. Le procédé comprend : la réception d'une demande de modification (S110) ; et, si la demande de modification demande une modification sur un fichier d'un répertoire prédéfini, l'envoi de la demande de modification à un lecteur de disque dans lequel le fichier du répertoire prédéfini est situé, pour effectuer la récupération (S120). Par le biais de la reconnaissance d'un fichier d'un répertoire prédéfini, une demande de modification visant le fichier du répertoire prédéfini est envoyée directement à un lecteur de disque correspondant au fichier du répertoire prédéfini, de sorte qu'une opération d'écriture différée est évitée, et qu'on peut être sûr que d'autres fichiers n'ayant pas besoin de récupération sont conservés dans le disque.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510451492.0 | 2015-07-28 | ||
CN201510451492.0A CN105095021A (zh) | 2015-07-28 | 2015-07-28 | 一种系统还原方法与装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017016139A1 true WO2017016139A1 (fr) | 2017-02-02 |
Family
ID=54575519
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/097345 WO2017016139A1 (fr) | 2015-07-28 | 2015-12-15 | Procédé et appareil de récupération de système |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105095021A (fr) |
WO (1) | WO2017016139A1 (fr) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112486733A (zh) * | 2020-12-11 | 2021-03-12 | Oppo广东移动通信有限公司 | 系统还原方法、装置、终端及存储介质 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095021A (zh) * | 2015-07-28 | 2015-11-25 | 安一恒通(北京)科技有限公司 | 一种系统还原方法与装置 |
CN107247641B (zh) * | 2017-06-19 | 2020-04-24 | 深圳市科力锐科技有限公司 | 在线还原操作系统的方法和装置 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007067918A2 (fr) * | 2005-12-06 | 2007-06-14 | Computer Associates Think, Inc. | Systeme et procede de restauration automatique de lecteurs de disques durs en cas de defaillance |
CN101425029A (zh) * | 2007-10-30 | 2009-05-06 | 英业达股份有限公司 | 系统文件还原的方法 |
CN102799798A (zh) * | 2011-05-23 | 2012-11-28 | 金宏中天(北京)科技有限公司 | 一种计算机系统全盘还原环境下写入不还原的方法 |
CN105095021A (zh) * | 2015-07-28 | 2015-11-25 | 安一恒通(北京)科技有限公司 | 一种系统还原方法与装置 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101178676A (zh) * | 2006-11-07 | 2008-05-14 | 英业达股份有限公司 | 可更改数据还原结构的数据备份方法和还原方法 |
US8959280B2 (en) * | 2008-06-18 | 2015-02-17 | Super Talent Technology, Corp. | Super-endurance solid-state drive with endurance translation layer (ETL) and diversion of temp files for reduced flash wear |
-
2015
- 2015-07-28 CN CN201510451492.0A patent/CN105095021A/zh active Pending
- 2015-12-15 WO PCT/CN2015/097345 patent/WO2017016139A1/fr active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007067918A2 (fr) * | 2005-12-06 | 2007-06-14 | Computer Associates Think, Inc. | Systeme et procede de restauration automatique de lecteurs de disques durs en cas de defaillance |
CN101425029A (zh) * | 2007-10-30 | 2009-05-06 | 英业达股份有限公司 | 系统文件还原的方法 |
CN102799798A (zh) * | 2011-05-23 | 2012-11-28 | 金宏中天(北京)科技有限公司 | 一种计算机系统全盘还原环境下写入不还原的方法 |
CN105095021A (zh) * | 2015-07-28 | 2015-11-25 | 安一恒通(北京)科技有限公司 | 一种系统还原方法与装置 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112486733A (zh) * | 2020-12-11 | 2021-03-12 | Oppo广东移动通信有限公司 | 系统还原方法、装置、终端及存储介质 |
CN112486733B (zh) * | 2020-12-11 | 2023-08-18 | Oppo广东移动通信有限公司 | 系统还原方法、装置、终端及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN105095021A (zh) | 2015-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11513926B2 (en) | Systems and methods for instantiation of virtual machines from backups | |
US9778995B2 (en) | Dataset image creation and failure cleanup | |
US7519784B2 (en) | Method and apparatus for reclaiming space in memory | |
US20140317369A1 (en) | Snapshot creation from block lists | |
US20210182156A1 (en) | System and method for a backup and recovery of application data using containerized backups | |
US11768737B2 (en) | Rollback procedure for failed dataset image operation | |
US9785641B2 (en) | Reducing a backup time of a backup of data files | |
US9195670B1 (en) | Tracking write operations for incremental backups of data | |
CN114925084B (zh) | 分布式事务处理方法、系统、设备及可读存储介质 | |
WO2016107219A1 (fr) | Procédé et appareil de récupération de données | |
US9003139B1 (en) | Systems and methods for recovering virtual machines after disaster scenarios | |
US20230342492A1 (en) | Proactive data security using file access permissions | |
WO2017016139A1 (fr) | Procédé et appareil de récupération de système | |
US9805038B2 (en) | Efficient conflict resolution among stateless processes | |
US9122402B2 (en) | Increasing efficiency of block-level processes using data relocation awareness | |
US9852029B2 (en) | Managing a computing system crash | |
US9367457B1 (en) | Systems and methods for enabling write-back caching and replication at different abstraction layers | |
US10540214B2 (en) | Method for managing control-loss processing during critical processing sections while maintaining transaction scope integrity | |
US10360234B2 (en) | Recursive extractor framework for forensics and electronic discovery | |
US10976952B2 (en) | System and method for orchestrated application protection | |
US10146467B1 (en) | Method and system for archival load balancing | |
CN113312002B (zh) | 数据处理的方法、装置、设备和介质 | |
US11816314B1 (en) | Customizable dashboard interaction for a user interface | |
US20230050976A1 (en) | File system aware computational storage block | |
US10936443B2 (en) | System and method for tag based backup infrastructure |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15899487 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 29.05.2018) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15899487 Country of ref document: EP Kind code of ref document: A1 |