CN114924911B - Method, device, equipment and storage medium for backing up effective data of Windows operating system - Google Patents

Method, device, equipment and storage medium for backing up effective data of Windows operating system Download PDF

Info

Publication number
CN114924911B
CN114924911B CN202210546427.6A CN202210546427A CN114924911B CN 114924911 B CN114924911 B CN 114924911B CN 202210546427 A CN202210546427 A CN 202210546427A CN 114924911 B CN114924911 B CN 114924911B
Authority
CN
China
Prior art keywords
operating system
data
metadata
disk
configuration information
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.)
Active
Application number
CN202210546427.6A
Other languages
Chinese (zh)
Other versions
CN114924911A (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.)
Guangzhou Dingjia Computer Technology Co ltd
Original Assignee
Guangzhou Dingjia Computer 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 Guangzhou Dingjia Computer Technology Co ltd filed Critical Guangzhou Dingjia Computer Technology Co ltd
Priority to CN202210546427.6A priority Critical patent/CN114924911B/en
Publication of CN114924911A publication Critical patent/CN114924911A/en
Application granted granted Critical
Publication of CN114924911B publication Critical patent/CN114924911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to a method and a device for backing up effective data of a Windows operating system, computer equipment, a storage medium and a computer program product. According to the method and the device, the backup data volume can be remarkably reduced, the storage space is saved, a plurality of threads simultaneously read data, and the backup efficiency is improved. The method comprises the following steps: acquiring disk metadata configuration information; creating a plurality of threads according to the disk metadata configuration information; each thread is used for reading metadata in a single disk, reading a data block pointed by the metadata, and merging data according to the continuity of the data block pointed by the metadata; and storing the data blocks obtained by the data merging of each thread into a target storage area according to a preset format in a persistent mode, and obtaining an effective data backup file of the operating system after the data blocks in all the disks are read.

Description

Method, device, equipment and storage medium for backing up effective data of Windows operating system
Technical Field
The present application relates to the field of computer processing technologies, and in particular, to a method and an apparatus for backing up valid data in a Windows operating system, a computer device, a storage medium, and a computer program product.
Background
The operating system is a computer program that manages computer hardware and software resources, and is the basic system software that the computer finds most basic and important. In the daily operation process of a computer, an operating system often loses system files due to disk damage, computer virus intrusion or artificial mistaken deletion and the like, so that the operating system of the computer cannot be normally guided, and therefore, an operating system backup is needed to be used for backing up and storing the operating system in advance, and the backup support is realized after an original file fails.
The current operating System backup method generally adopts a Ghost (General Hardware Oriented System Transfer) tool to perform operating System backup and restoration. However, the backup restoration of the Ghost restoration tool is performed by taking a sector of a disk as a unit, that is, physical information on a hard disk can be completely copied, and not only is data simply copied. If the capacity of the system disk is 100G, but the effective software data of the operating system only occupies 20G, the full disk data of the system disk can be backed up by using Ghost, and this backup method wastes a lot of time and space, and the backup efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, a computer readable storage medium, and a computer program product for efficient data backup in a Windows operating system.
In a first aspect, the present application provides a method for backing up valid data of a Windows operating system. The method comprises the following steps:
acquiring disk metadata configuration information;
creating a plurality of threads according to the disk metadata configuration information; each thread is used for reading metadata in a single disk, reading a data block pointed by the metadata, and merging data according to the continuity of the data block pointed by the metadata;
and storing the data blocks obtained by the data merging of each thread into a target storage area according to a preset format in a persistent mode until the data blocks in all the disks are read completely, and obtaining an effective data backup file of the operating system.
In one embodiment, the obtaining of the configuration information of the disk metadata includes:
and if the local storage system comprises an automatic system recovery service program, acquiring the disk metadata configuration information by calling the automatic system recovery service program.
In one embodiment, the obtaining of the configuration information of the disk metadata includes:
if the local storage system does not comprise an automatic system recovery service program, acquiring a partition table from a preset disk area;
and acquiring the configuration information of the disk metadata from the partition table.
In one embodiment, the disk metadata configuration information includes the number of disks occupied by the operating system file; the creating of the multiple threads according to the disk metadata configuration information includes:
creating the thread according to the number of disks occupied by the operating system file; and the total number of the threads is the same as the number of the disks occupied by the operating system files.
In one embodiment, the method includes that the data block obtained by the data merging of each thread is persistently stored in the target storage area according to a preset format until the data blocks in all the disks are completely read and an operating system valid data backup file is obtained, and the method includes:
calculating a check code aiming at the effective data backup file of the operating system;
and adding the check code to the operating system valid data backup file for storage.
In one of the embodiments, the first and second electrodes are,
each thread is further used for reading metadata in a single disk and reading a data block pointed by the metadata; wherein the size of the data block read each time is a fixed size;
and each thread is also used for carrying out data merging according to the continuity of the data block pointed by the metadata.
In a second aspect, the application further provides a device for backing up valid data of the Windows operating system. The device comprises:
the disk metadata configuration information acquisition module is used for acquiring disk metadata configuration information;
the thread creating module is used for creating a plurality of threads according to the disk metadata configuration information; each thread is used for reading metadata in a single disk, reading a data block pointed by the metadata, and merging data according to the continuity of the data block pointed by the metadata;
and the operating system backup file storage module is used for persistently storing the data blocks obtained by the data combination of each thread into a target storage area according to a preset format until the data blocks in all the disks are completely read, and obtaining an effective data backup file of the operating system.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps in the embodiment of the Windows operating system effective data backup method when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer readable storage medium stores thereon a computer program, and when executed by a processor, the computer program implements the steps in the Windows operating system valid data backup method embodiment.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprises a computer program, and the computer program realizes the steps of the Windows operating system effective data backup method embodiment when being executed by a processor.
According to the method, the device, the computer equipment, the storage medium and the computer program product for backing up the effective data of the Windows operating system, the configuration information of the metadata of the disk is obtained; creating a plurality of threads according to the disk metadata configuration information; each thread is used for reading metadata in a single disk, reading a data block pointed by the metadata, and merging data according to the continuity of the data block pointed by the metadata; and storing the data blocks obtained by the data merging of each thread into a target storage area according to a preset format in a persistent mode, and obtaining an effective data backup file of the operating system after the data blocks in all the disks are read. According to the method and the device, the operating system data blocks are read from different disks by creating the multiple threads simultaneously, compared with the traditional backup method for copying the whole disk data of the disks, the backup data amount can be reduced remarkably, the storage space is saved, the multiple threads read the data simultaneously, and the backup efficiency is improved.
Drawings
FIG. 1 is a flowchart illustrating a method for backing up valid data of a Windows operating system according to an embodiment;
FIG. 2 is a flowchart illustrating a method for backing up Windows operating system active data in another embodiment;
FIG. 3 is a block diagram of an embodiment of a Windows operating system active data backup device;
FIG. 4 is a diagram of an internal structure of a computer device in one embodiment
Fig. 5 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for backing up the effective data of the Windows operating system can be applied to a terminal or a server, wherein the terminal can be but is not limited to various personal computers, notebook computers, smart phones, tablet computers, internet of things equipment and portable wearable equipment, and the Internet of things equipment can be smart sound boxes, smart televisions, smart air conditioners, smart vehicle-mounted equipment and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server may be an independent server or a server cluster composed of a plurality of servers. The operating system applicable to the application comprises a Windows operating system.
In one embodiment, as shown in fig. 1, a method for backing up valid data of a Windows operating system is provided, which is described by taking the method as an example applied to a server or a terminal, and includes the following steps:
step S101, acquiring the configuration information of the disk metadata.
The disk metadata configuration information refers to metadata configuration information of all disks on a terminal or a server where a current operating system is located; metadata, also called medium data, is data describing data, and is mainly information describing attributes of data stored in a disk, and is used to indicate a storage location, support historical data or resource search, support file recording, and the like.
Specifically, the disk metadata configuration information is obtained by calling a VSS ASR (volume show copy service Automatic System Restore), where the VSS ASR is a service program built in a Windows operating System, and is used to coordinate backup operations, such as freezing or releasing I/O (input/output) operations, and may also be used to create a data snapshot, where the data snapshot is a copy of a data copy at a certain time point of a logical volume. In this step, the service program is called to obtain the metadata configuration information of all local disks, and it is known which logical volumes the local disks include, logical volumes occupied by the operating system, which data can be snapshot, and the like.
Step S102, a plurality of threads are created according to the disk metadata configuration information; each thread is used for reading metadata in a single disk, reading a data block pointed by the metadata, and merging data according to the continuity of the data block pointed by the metadata;
the disk metadata configuration information includes the number of disks occupied by the operating system. The data block pointed by the metadata is valid data of the Windows operating system;
specifically, multiple channels are started according to the number of disks occupied by an operating system, and each channel corresponds to one thread; each thread is used for reading metadata of a single disk, starting to read data blocks according to the data blocks pointed by the metadata, and merging the data blocks according to the continuity of the data blocks in the reading process, for example, if a plurality of databases are continuously stored in the disk, merging the data blocks.
And step S103, persistently storing the data blocks obtained by data merging of each thread into a target storage area according to a preset format until all the data blocks in the disks are completely read, and obtaining an effective data backup file of the operating system.
Specifically, the merged data blocks are stored into a target storage area in a persistent manner according to a preset format, and data of integral multiples of a cluster (cluster) or a sector (sector) is written once, if each thread reads the data blocks in the corresponding disk completely, the backup of the operating system is completed at this time, and if each thread does not read the data blocks completely, the steps S102 to S103 are repeated until all the data blocks are read completely and all the data blocks are stored into the target storage area in a persistent manner, and the specific process is shown in fig. 2.
In the above embodiment, the configuration information of the disk metadata is acquired; creating a plurality of threads according to the disk metadata configuration information; each thread is used for reading metadata in a single disk, reading a data block pointed by the metadata, and merging data according to the continuity of the data block pointed by the metadata; and storing the data blocks obtained by the data merging of each thread into a target storage area according to a preset format in a persistent mode, and obtaining an effective data backup file of the operating system after the data blocks in all the disks are read. In the embodiment, the plurality of threads are created to simultaneously read the data blocks of the operating system from different disks, so that compared with the traditional backup method for copying the full disk data of the disks, the backup data amount can be obviously reduced, the storage space is saved, and meanwhile, the plurality of threads simultaneously read the data, so that the backup efficiency is improved.
In an embodiment, the step S101 includes: and if the local storage system comprises an automatic system recovery service program, acquiring the disk metadata configuration information by calling the automatic system recovery service program.
The VSS ASR (volume shadow copy Automatic System Restore) is a service program built in the Windows operating System, and is used for coordinating backup operations, such as freezing or releasing I/O (input/output) operations, and may also be used for creating a data snapshot, where the data snapshot refers to a copy of a data copy at a certain time point of a logical volume.
Specifically, whether the local operating system has the VSS ASR Writer, that is, the above-mentioned automatic system recovery service program, is detected first, and if the local storage system includes the automatic system recovery service program, the automatic system recovery service program is called to read the disk information of the operating system, that is, to obtain the disk metadata configuration information, specifically, to read all the disk information occupied by the entire operating system, for example, the information such as the number of occupied disks.
According to the embodiment, the VSS ASR service program is used for acquiring the disk metadata of the operating system, so that the global information of the operating system can be quickly acquired, and a favorable basis is provided for subsequent backup of effective data.
In an embodiment, the step S101 includes: if the local storage system does not comprise the automatic system recovery service program, acquiring a partition table from a preset disk area; and acquiring the configuration information of the disk metadata from the partition table.
The partition table is a partition format used when the hard disk is partitioned in the process of installing the operating system, and is used for establishing different partitions according to different data and establishing different permissions for the different partitions.
Specifically, if the VSS ASR service program is not included in the local storage system, the partition table information may be read from a preset partition area, for example, the general partition table is located at cylinder 0, head 0, and sector 1 of the hard disk. And acquiring the configuration information of the disk metadata according to the partition table information, so that which disk logical volumes are occupied by the current operating system can be known.
According to the embodiment, the configuration information of the disk metadata is obtained by reading the partition table information, so that a favorable basis is provided for the subsequent backup of the effective data.
In an embodiment, the disk metadata configuration information includes a number of disks occupied by an operating system file, and the step S102 includes: creating a thread according to the number of disks occupied by the operating system file; the total number of the threads is the same as the number of the disks occupied by the operating system files.
Specifically, the configuration information of the disk metadata includes the number of disks occupied by the operating system file, multiple channels are opened according to the number of disks, and each channel corresponds to one thread. The total number of threads and the number of disks occupied by operating system files.
According to the embodiment, the system disk backup is realized by creating the multithreading multichannel, so that the backup efficiency can be improved.
In an embodiment, after the step S103, the method includes: calculating a check code aiming at an effective data backup file of an operating system; and adding the check code to the operating system valid data backup file for storage.
Specifically, after all read data blocks are stored in a target storage area, a primary check code is calculated for all valid data obtained by backup, the check code is added to the back of the valid data, and the valid data are merged for storage. For example, the check code may be a hash value for valid data, and if the valid data is tampered by a person, the original stored hash value is different when the hash value is recalculated.
According to the embodiment, the check code is added, so that the safety of data storage can be improved, and whether the data is tampered when the backup file is used again can be judged.
In an embodiment, each of the threads is further configured to read metadata in a single disk, and read a data block pointed by the metadata; wherein the size of the data block read each time is a fixed size; each thread is also used for carrying out data merging according to the continuity of the data block pointed by the metadata.
Specifically, when each thread reads the metadata of a single disk, the thread reads the fixed size each time, so that excessive memory resources are prevented from being consumed, because the metadata of the disk and the size of the disk are in a linear relationship. And data merging is carried out according to the metadata of the disk, and more data are read as soon as possible, so that the reading times of the disk are reduced, and the efficiency is improved.
According to the embodiment, when the disk data is read, the data is merged and then read, so that the read-write times of the disk can be reduced, and the efficiency is improved.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application also provides a device for backing up the valid data of the Windows operating system, which is used for realizing the method for backing up the valid data of the Windows operating system. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method, so the specific limitations in the following one or more embodiments of the Windows operating system valid data backup device may refer to the limitations on the Windows operating system valid data backup method in the above description, and are not described herein again.
In one embodiment, as shown in fig. 3, there is provided a Windows operating system valid data backup apparatus 300, including: a disk metadata configuration information obtaining module 301, a thread creating module 302, and an operating system backup file storage module 303, where:
a disk metadata configuration information obtaining module 301, configured to obtain disk metadata configuration information;
a thread creating module 302, configured to create multiple threads according to the disk metadata configuration information; each thread is used for reading metadata in a single disk, reading a data block pointed by the metadata, and merging data according to the continuity of the data block pointed by the metadata;
and the operating system backup file storage module 303 is configured to persistently store the data blocks obtained by the data merging in each thread into a target storage area according to a preset format, until the data blocks in all the disks are completely read, and obtain an effective data backup file of the operating system.
In an embodiment, the disk metadata configuration information obtaining module 301 is further configured to:
and if the local storage system comprises an automatic system recovery service program, acquiring the disk metadata configuration information by calling the automatic system recovery service program.
In an embodiment, the disk metadata configuration information obtaining module 301 is further configured to:
if the local storage system does not comprise an automatic system recovery service program, acquiring a partition table from a preset disk area;
and acquiring the configuration information of the disk metadata from the partition table.
In an embodiment, the disk metadata configuration information includes the number of disks occupied by operating system files; the thread creating module 302 is further configured to: creating the thread according to the number of disks occupied by the operating system file; and the total number of the threads is the same as the number of the disks occupied by the operating system files.
In an embodiment, the apparatus 300 further includes a check code calculating unit 304, configured to calculate a check code for the operating system valid data backup file; and adding the check code to the operating system valid data backup file for storage.
In an embodiment, each thread is further configured to read metadata in a single disk, and read a data block pointed to by the metadata; wherein the size of the data block read each time is a fixed size; each thread is further configured to perform data merging according to continuity of the data block pointed by the metadata.
All or part of the modules in the Windows operating system valid data backup device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure thereof may be as shown in fig. 4. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The database of the computer device is used to store operating system files or valid data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method for efficient data backup for a Windows operating system.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method for efficient data backup for a Windows operating system. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the configurations shown in fig. 4 to 5 are only block diagrams of some configurations relevant to the present application, and do not constitute a limitation on the computer apparatus to which the present application is applied, and a particular computer apparatus may include more or less components than those shown in the drawings, or may combine some components, or have a different arrangement of components.
In one embodiment, a computer device is provided, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps in the Windows operating system valid data backup method embodiment when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the Windows operating system active data backup method embodiment.
In one embodiment, a computer program product is provided, which includes a computer program that, when executed by a processor, implements the steps of the above-described embodiments of the Windows operating system method for backing up valid data.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), magnetic Random Access Memory (MRAM), ferroelectric Random Access Memory (FRAM), phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases involved in the embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (8)

1. A method for backing up valid data of a Windows operating system is characterized by comprising the following steps:
acquiring disk metadata configuration information; the configuration information of the disk metadata comprises the number of disks occupied by operating system files; creating threads according to the number of the disks occupied by the operating system files; the total number of the threads is the same as the number of disks occupied by the operating system file, each thread is used for reading metadata in a single disk, reading effective data of the Windows operating system pointed by the metadata, and merging data according to the continuity of the effective data of the Windows operating system pointed by the metadata;
and persistently storing the Windows operating system effective data obtained by the data merging of each thread into a target storage area according to a preset format, and obtaining an operating system effective data backup file after the Windows operating system effective data in all the disks are completely read.
2. The method of claim 1, wherein obtaining disk metadata configuration information comprises:
and if the local storage system comprises an automatic system recovery service program, acquiring the disk metadata configuration information by calling the automatic system recovery service program.
3. The method of claim 1, wherein obtaining disk metadata configuration information comprises:
if the local storage system does not comprise an automatic system recovery service program, acquiring a partition table from a preset disk area;
and acquiring the configuration information of the disk metadata from the partition table.
4. The method according to claim 1, wherein the Windows operating system valid data obtained by merging the data from each thread is persistently stored in a target storage area according to a preset format until after the Windows operating system valid data in all disks are completely read and a backup file of the operating system valid data is obtained, the method comprising:
calculating a check code aiming at the effective data backup file of the operating system;
and adding the check code to the operating system valid data backup file for storage.
5. The method according to any one of claims 1 to 4,
each thread is used for reading metadata in a single disk and reading Windows operating system valid data pointed by the metadata; the size of the Windows operating system valid data read each time is fixed;
and each thread is also used for carrying out data merging according to the continuity of the effective data of the Windows operating system pointed by the metadata.
6. An apparatus for backing up valid data of a Windows operating system, the apparatus comprising:
the disk metadata configuration information acquisition module is used for acquiring disk metadata configuration information; the configuration information of the disk metadata comprises the number of disks occupied by operating system files;
the thread creating module is used for creating threads according to the number of the disks occupied by the operating system files; the total number of the threads is the same as the number of disks occupied by the operating system file, each thread is used for reading metadata in a single disk, reading effective data of the Windows operating system pointed by the metadata, and merging data according to the continuity of the effective data of the Windows operating system pointed by the metadata;
and the operating system backup file storage module is used for persistently storing the Windows operating system effective data obtained by the data merging of each thread into a target storage area according to a preset format until the Windows operating system effective data in all the disks are completely read, so as to obtain an operating system effective data backup file.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 5.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202210546427.6A 2022-05-19 2022-05-19 Method, device, equipment and storage medium for backing up effective data of Windows operating system Active CN114924911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210546427.6A CN114924911B (en) 2022-05-19 2022-05-19 Method, device, equipment and storage medium for backing up effective data of Windows operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210546427.6A CN114924911B (en) 2022-05-19 2022-05-19 Method, device, equipment and storage medium for backing up effective data of Windows operating system

Publications (2)

Publication Number Publication Date
CN114924911A CN114924911A (en) 2022-08-19
CN114924911B true CN114924911B (en) 2023-04-14

Family

ID=82807910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210546427.6A Active CN114924911B (en) 2022-05-19 2022-05-19 Method, device, equipment and storage medium for backing up effective data of Windows operating system

Country Status (1)

Country Link
CN (1) CN114924911B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117539690B (en) * 2023-12-06 2024-04-05 广州鼎甲计算机科技有限公司 Method, device, equipment, medium and product for merging and recovering multi-disk data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158958A (en) * 2019-12-31 2020-05-15 广州鼎甲计算机科技有限公司 Backup method, system, device and storage medium capable of quickly recovering data
CN113419897A (en) * 2021-01-19 2021-09-21 阿里巴巴集团控股有限公司 File processing method and device, electronic equipment and storage medium thereof
CN113626256A (en) * 2021-07-16 2021-11-09 济南浪潮数据技术有限公司 Virtual machine disk data backup method, device, terminal and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004047078A2 (en) * 2002-11-20 2004-06-03 Filesx Ltd. Fast backup storage and fast recovery of data (fbsrd)
US9268651B1 (en) * 2012-10-31 2016-02-23 Amazon Technologies, Inc. Efficient recovery of storage gateway cached volumes
CN103064760B (en) * 2012-12-19 2015-08-05 华为技术有限公司 Backup method and backup device
CN103984508A (en) * 2014-05-15 2014-08-13 中国人民解放军国防科学技术大学 RAID (redundant array of independent disks) multithread parallel read-write method based on FT processor platform
US10303556B1 (en) * 2014-10-29 2019-05-28 Veritas Technologies Llc Modifiable volume snapshots
CN104731886B (en) * 2015-03-12 2018-11-20 深圳市连用科技有限公司 A kind of processing method and system of mass small documents
CN105243109B (en) * 2015-09-25 2021-10-15 华为技术有限公司 Data backup method and data processing system
CN110019063B (en) * 2017-08-15 2022-07-05 厦门雅迅网络股份有限公司 Method for computing node data disaster recovery playback, terminal device and storage medium
CN111831485B (en) * 2020-07-21 2023-01-13 平安科技(深圳)有限公司 Data recovery method, device, electronic equipment and medium
US11663086B2 (en) * 2020-10-15 2023-05-30 EMC IP Holding Company LLC File system slicing in network attached storage for data protection
CN112698987A (en) * 2020-12-29 2021-04-23 广州鼎甲计算机科技有限公司 On-line backup method, device, equipment and storage medium for snapshot-free operating system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158958A (en) * 2019-12-31 2020-05-15 广州鼎甲计算机科技有限公司 Backup method, system, device and storage medium capable of quickly recovering data
CN113419897A (en) * 2021-01-19 2021-09-21 阿里巴巴集团控股有限公司 File processing method and device, electronic equipment and storage medium thereof
CN113626256A (en) * 2021-07-16 2021-11-09 济南浪潮数据技术有限公司 Virtual machine disk data backup method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN114924911A (en) 2022-08-19

Similar Documents

Publication Publication Date Title
US10089191B2 (en) Selectively persisting application program data from system memory to non-volatile data storage
US8965850B2 (en) Method of and system for merging, storing and retrieving incremental backup data
US10489289B1 (en) Physical media aware spacially coupled journaling and trim
CN111177143A (en) Key value data storage method and device, storage medium and electronic equipment
CN114924911B (en) Method, device, equipment and storage medium for backing up effective data of Windows operating system
CN107506466B (en) Small file storage method and system
CN111382011A (en) File data access method and device and computer readable storage medium
CN114924914B (en) Disk partition table information backup and recovery method and system
CN110018986B (en) Abnormal snapshot identification method and device
CN115858471A (en) Service data change recording method, device, computer equipment and medium
CN114691653A (en) Account set migration method and device, computer equipment and storage medium
CN110018985B (en) Snapshot deleting method, device and system
CN115292094B (en) Data recovery processing method, device, equipment, storage medium and program product
CN115269274B (en) Data recovery method, device, computer equipment and storage medium
CN117539690B (en) Method, device, equipment, medium and product for merging and recovering multi-disk data
CN116257531B (en) Database space recovery method
CN117573424A (en) Data recovery method, device, computer equipment and storage medium
CN114020415B (en) Method for realizing hyper-v virtual machine backup based on Bitmap and application
CN109753228B (en) Snapshot deleting method, device and system
CN113311995B (en) Cloud hard disk preparation method and device, computer equipment and storage medium
CN115373903A (en) Logic backup method and device, computer equipment and storage medium
CN114510492A (en) Service data processing method and device, computer equipment and storage medium
CN117742586A (en) Data storage method, device, computer equipment and storage medium
US10296221B1 (en) Systems and methods for improving the efficiency of recording data to tape
CN114647630A (en) File synchronization method, information generation method, file synchronization device, information generation device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant