CN112579361B - Backup data reconstruction method, device, equipment and storage medium - Google Patents

Backup data reconstruction method, device, equipment and storage medium Download PDF

Info

Publication number
CN112579361B
CN112579361B CN202011573435.7A CN202011573435A CN112579361B CN 112579361 B CN112579361 B CN 112579361B CN 202011573435 A CN202011573435 A CN 202011573435A CN 112579361 B CN112579361 B CN 112579361B
Authority
CN
China
Prior art keywords
data
information
target
system volume
disk
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
CN202011573435.7A
Other languages
Chinese (zh)
Other versions
CN112579361A (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.)
Shenzhen Clerware Technology Co ltd
Original Assignee
Shenzhen Clerware 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 Shenzhen Clerware Technology Co ltd filed Critical Shenzhen Clerware Technology Co ltd
Priority to CN202011573435.7A priority Critical patent/CN112579361B/en
Publication of CN112579361A publication Critical patent/CN112579361A/en
Application granted granted Critical
Publication of CN112579361B publication Critical patent/CN112579361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • 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/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

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

Abstract

The invention discloses a backup data reconstruction method, a device, equipment and a storage medium, wherein the method comprises the following steps: analyzing the backup data to be restored to determine system volume data and non-system volume data in the backup data to be restored; acquiring storage information of non-system volume data; and sending the storage information of the non-system volume data and the system volume data to a target computer so that the target computer runs an operating system based on the system volume data, and mounting the non-system volume in the operating system through the storage information to realize quick reconstruction of backup data. In the prior art, full data recovery or quick data recovery is required, but the invention transmits the storage information of the non-system volume data and the system volume data to the target computer, so that the target computer operates an operating system based on the system volume data, and mounts the non-system volume in the operating system through the storage information, thereby realizing quick reconstruction of backup data and further shortening the service system reconstruction period.

Description

Backup data reconstruction method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data recovery technologies, and in particular, to a backup data reconstruction method, apparatus, device, and storage medium.
Background
With the rapid development of the internet, backup data reconstruction is an important point of attention for all enterprises and users. In the scene of recovering the backup data of the whole computer, the prior art adopts full data recovery and quick data recovery, wherein the full data recovery has low requirements on network environment, but the recovery service consumes long time, especially when the service data volume is large. The fast data recovery has short time consumption, and can recover the data while recovering the service, but network configuration needs to be completed in the early stage of system startup, otherwise, the subsequent data recovery and service recovery cannot be performed.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a backup data reconstruction method, device, equipment and storage medium, which aim to solve the technical problem of realizing quick reconstruction of backup data under the condition of shortening the service system reconstruction period.
In order to achieve the above object, the present invention provides a backup data reconstruction method, which includes:
analyzing the backup data to be restored to determine system volume data and non-system volume data in the backup data to be restored;
Acquiring storage information of the non-system volume data;
and sending the storage information of the non-system volume data and the system volume data to a target computer so that the target computer runs an operating system based on the system volume data, and mounting the non-system volume in the operating system through the storage information to realize quick reconstruction of backup data.
Optionally, the step of sending the storage information of the non-system volume data and the system volume data to a target computer, so that the target computer runs an operating system based on the system volume data, and mounts the non-system volume data in the operating system through the storage information, so as to realize quick reconstruction of backup data includes:
performing system reorganization according to the system volume data to obtain disk partitions, disk volumes and disk files;
determining a target system volume according to the disk partition, the disk volume and the disk file, and acquiring target system configuration information of a target computer according to the target system volume;
the target system configuration information, the storage information of the non-system volume data and the system volume data are sent to the target computer, so that the target computer runs an operating system based on the system volume data and the target system configuration information, and the non-system volume is mounted in the operating system through the storage information, so that the quick reconstruction of backup data is realized;
The step of sending the storage information of the non-system volume data and the system volume data to a target computer so that the target computer runs an operating system based on the system volume data, and mounting the non-system volume in the operating system through the storage information to realize quick reconstruction of backup data further comprises the following steps:
and generating a service starting instruction according to the non-system service information, and sending the service starting instruction to the target computer so that the target computer starts the non-system service according to the service starting instruction.
Optionally, the step of performing system reorganization according to the system volume data to obtain a disk partition, a disk volume and a disk file includes:
obtaining disk partition metadata information, disk volume metadata information and disk file metadata information according to the system volume data;
reorganizing the disk partition according to the disk partition metadata information;
reorganizing a disk volume according to the disk volume metadata information;
and reorganizing the disk file according to the disk file metadata information.
Optionally, the step of determining a target system volume according to the disk partition, the disk volume and the disk file includes:
Obtaining disk partition information corresponding to the disk partition, disk volume information corresponding to the disk volume and disk file information corresponding to the disk file;
and determining a target system volume according to the disk partition information, the disk volume information and the disk file information.
Optionally, the step of acquiring the target system configuration information of the target computer according to the target system volume includes:
acquiring system starting configuration information and registration service information of a target computer;
analyzing the registration service information to obtain non-system service information;
and modifying the system start configuration information according to the target system volume and the non-system service information, and disabling the non-system service to obtain target system configuration information.
Optionally, the step of sending the target system configuration information, the storage information of the non-system volume data, and the system volume data to the target computer, so that the target computer runs an operating system based on the system volume data and the target system configuration information, and mounts the non-system volume data in the operating system through the storage information, so as to implement fast rebuilding of backup data includes:
And sending the target system configuration information, the storage information of the non-system volume data and the system volume data to the target computer so that the target computer runs an operating system based on the system volume data and the target system configuration information, acquires network configuration information from the system volume data, and enables the target computer to perform network configuration based on the network configuration information, and when the network configuration is successful, mounting the non-system volume in the operating system through the storage information so as to realize quick reconstruction of backup data.
Optionally, the sending the target system configuration information, the storage information of the non-system volume data and the system volume data to the target computer, so that the target computer runs an operating system based on the system volume data and the target system configuration information, obtains network configuration information from the system volume data, and makes the target computer perform network configuration based on the network configuration information, and when the network configuration is successful, the step of mounting the non-system volume in the operating system through the storage information to implement fast reconstruction of backup data further includes:
Acquiring superblock data of a non-system volume in the backup data to be restored, and determining target storage position information corresponding to the superblock data;
the step of sending the target system configuration information, the storage information of the non-system volume data and the system volume data to the target computer, so that the target computer runs an operating system based on the system volume data and the target system configuration information, obtains network configuration information from the system volume data, and enables the target computer to perform network configuration based on the network configuration information, and when the network configuration is successful, mounts the non-system volume in the operating system through the storage information, so as to realize quick reconstruction of backup data, includes:
and sending the target storage position information, the target system configuration information, the storage information of the non-system volume data and the system volume data to the target computer so that the target computer runs an operating system based on the system volume data and the target system configuration information, acquires network configuration information from the system volume data, and enables the target computer to perform network configuration based on the network configuration information, when the network configuration is successful, the super block data is read based on the target storage position information, and the non-system volume is mounted in the operating system through the storage information so as to realize quick reconstruction of backup data.
In addition, in order to achieve the above object, the present invention also provides a backup data reconstruction device, including:
the determining module is used for analyzing the backup data to be restored to determine the system volume data and the non-system volume data in the backup data to be restored;
the acquisition module is used for acquiring the storage information of the non-system volume data;
and the reconstruction module is used for sending the storage information of the non-system volume data and the system volume data to a target computer so that the target computer runs an operating system based on the system volume data and mounts the non-system volume data in the operating system through the storage information to realize quick reconstruction of backup data.
In addition, to achieve the above object, the present invention also proposes a backup data reconstruction apparatus, the apparatus comprising: the system comprises a memory, a processor and a backup data reconstruction program stored on the memory and capable of running on the processor, wherein the backup data reconstruction program is configured to realize the steps of the backup data reconstruction method.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a backup data reconstruction program which, when executed by a processor, implements the steps of the backup data reconstruction method as described above.
The method comprises the steps of firstly analyzing backup data to be restored to determine system volume data and non-system volume data in the backup data to be restored, then obtaining storage information of the non-system volume data, and then sending the storage information of the non-system volume data and the system volume data to a target computer so that the target computer runs an operating system based on the system volume data, and mounting the non-system volume data in the operating system through the storage information to realize quick reconstruction of the backup data. In the prior art, full data recovery or quick data recovery is required, but the invention transmits the storage information of the non-system volume data and the system volume data to the target computer, so that the target computer operates an operating system based on the system volume data, and mounts the non-system volume in the operating system through the storage information, thereby realizing quick reconstruction of backup data and further shortening the service system reconstruction period.
Drawings
FIG. 1 is a schematic diagram of a backup data reconstruction device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a backup data reconstruction method according to the present invention;
FIG. 3 is a flowchart of a backup data reconstruction method according to a second embodiment of the present invention;
Fig. 4 is a block diagram of a backup data reconstruction apparatus according to a first embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a backup data reconstruction device of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the backup data reconstruction apparatus may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 1 is not limiting of the backup data reconstruction apparatus and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a data storage module, a network communication module, a user interface module, and a backup data reconstruction program may be included in the memory 1005 as one type of storage medium.
In the backup data reconstruction device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the backup data reconstruction device of the present invention may be disposed in the backup data reconstruction device, where the backup data reconstruction device invokes a backup data reconstruction program stored in the memory 1005 through the processor 1001, and executes the backup data reconstruction method provided by the embodiment of the present invention.
An embodiment of the present invention provides a backup data reconstruction method, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the backup data reconstruction method of the present invention.
In this embodiment, the backup data reconstruction method includes the following steps:
Step S10: and analyzing the backup data to be restored to determine the system volume data and the non-system volume data in the backup data to be restored.
It is to be understood that the execution body of the embodiment may be a backup data reconstruction device with functions of data processing, network communication, program running, and the like, or may be other computer devices with similar functions, and the backup data reconstruction device in the embodiment may be a backup program, and the backup program is taken as the execution body for illustration, which is not limited in this embodiment.
The backup program may backup metadata such as the operating system, applications, service data, partitions of the disk, volumes, and file systems of the computer to other computers.
In this embodiment, there are a source computer and a target computer, where the source computer and the target computer may be the same or different, and if the source computer and the target computer are different, the backup data to be restored is data backed up by all valid data on the disk of the source computer, including an operating system, an application program, service data of the source computer, and partition, volume, file system metadata of the disk, and so on.
It should be noted that, the system volume refers to a volume for storing a boot program, an operating system program, and an application program, such as a C disk and a reserved partition on Windows, and a boot partition and a root partition on Linux, and these volumes/partitions may be automatically created when the operating system is installed. The data on the system volume is typically relatively small.
Non-system volumes (also referred to as data volumes) refer to volumes on a computer other than system volumes, and after the system is installed, the user/administrator creates volumes/partitions for storing business data or material, such as windows' D-disk, E-disk, etc. The data on non-system volumes is typically relatively large.
In a specific implementation, when a source computer encounters a fault and a service system cannot be started, data backed up in advance needs to be restored to a target computer to reconstruct the service system, wherein the backup data needs to be analyzed before the data is restored to obtain system volume data, non-system volume data and the like.
Step S20: and acquiring storage information of the non-system volume data.
The storage information of the non-system volume data may be understood as a storage location of the non-system volume data on the disk in the backup data, and the like.
Step S30: and sending the storage information of the non-system volume data and the system volume data to a target computer so that the target computer runs an operating system based on the system volume data, and mounting the non-system volume in the operating system through the storage information to realize quick reconstruction of backup data.
Further, in order to quickly reconstruct backup data, storage information of non-system volume data and system volume data are sent to a target computer, so that the target computer runs an operating system based on the system volume data and mounts the non-system volume in the operating system through the storage information, so that quick reconstruction of the backup data can be realized. That is, previously disabled non-system services are re-enabled and all power-on auto-started services are re-started one pass. Since there is a dependency relationship in the service initiation, before the service is initiated, it is necessary to analyze the dependency relationship of the service and to preferentially initiate the dependent service.
After all the service programs are started, the service programs on the system can normally provide services to the outside, and the rest unreduced data can be recovered in the subsequent service providing process or when the system is idle.
In a specific implementation, when a source computer encounters a fault, and a service system cannot be started, data backed up in advance needs to be restored to a target computer, and the service system is rebuilt, wherein the backup data needs to be analyzed before being restored, a system volume is identified, and then the data of the system volume is restored to the target computer.
The method for identifying the system volumes is that some volumes in the backup data may be virtual volumes, such as logical volume management (Logical Volume Manager, lvm) of Linux, flexible raid, dynamic disks of microsoft Windows operating system (Microsoft Windows, windows), which are identified and assembled one by one, then the partition, the volume, the file system, which are identical to those of the original computer, are reassembled according to the partition, the volume, the file system metadata information of the disk in the backup data, and then the identification of the system volumes is started after the partition, the volume, the file system of the disk are assembled.
It should be noted that, the system of the target computer may be a Windows system, or may be a Linux system, where a system volume of Windows includes a msr partition, an esp partition, a system partition, and a reserved partition; the Linux system wraps map partitions, boot partitions, root partitions, and/etc,/home,/var directory dependent partitions, etc.
The processing manner of obtaining the disk partition, disk volume and disk file according to the system volume data may be that the disk partition metadata information, the disk volume metadata information and the disk file metadata information are obtained according to the system volume data, then the disk partition is recombined according to the disk partition metadata information, the disk volume is recombined according to the disk volume metadata information, the disk file is recombined according to the disk file metadata information, a target system volume is determined according to the disk partition information, the disk volume information and the disk file information, finally the system start configuration information and the registration service information of the target computer are obtained, the registration service information is identified, the system service information and the non-system service information are obtained, the non-system service information is disabled, and finally the system start configuration information is modified according to the target system volume and the non-system service information, and the target system configuration information is obtained.
In a specific implementation, after all system volumes are required to be identified, network configuration information of a target computer and disk area information of a non-system volume are acquired, the network configuration information and the disk area information are written into configuration files in the target system volume, then the network configuration information, the target system configuration information, storage information of the non-system volume data and the system volume data are sent to the target computer, so that the target computer runs an operating system based on the system volume data and the target system configuration information, and the target computer performs network configuration based on the network configuration information, when the network configuration is successful, a kernel restoration program enters a reconstruction state, and then the non-system volume is mounted in the operating system through the storage information, and the like, so that quick reconstruction of backup data is realized.
In this embodiment, the configuration of the system needs to be modified, otherwise, after the system volume is restored, the system may not work normally on the target computer. The step of modifying the configuration of the system includes disabling non-system services. Whether Windows or Linux systems, many services are registered, both with the system itself and with the application, which will run automatically after the system is started (and also manually, depending on the type of registered service). Since the first phase is to restore the system volumes only in full, the data of non-system volumes is not restored, if some service programs access the volumes, access failure occurs, and the service abnormality is caused, so that the problem does not occur after the service program is disabled.
The method for identifying the non-system service may be that all registered services are system services when the system is just installed, or else, are non-system services. When the configuration is modified, the non-system services are disabled so that the restored system will not start up when the non-system service program is started up.
The step of modifying the configuration of the system further includes hiding the non-system volume and disabling the automatic mounting of the non-system volume. Since the first phase is to restore the system volumes only in full, the data of non-system volumes is not restored, and if these volumes are to be mounted after the system is started, system startup failure may result. Hiding and disabling these non-system volumes, the presence of these volumes cannot be perceived at the time of the restored system startup (just as when the system was just installed), so it can be started up normally.
The network configuration information of the target computer and the disk area information of the non-system volume are acquired, and then the network configuration information and the disk area information are written into a configuration file in the target system volume, so that the network configuration information and the disk area information are needed to be used in the subsequent quick reconstruction.
After the configuration is revised, the data of all the system volumes are pushed to the target computer, and since the volume of data is not too large (substantially equivalent to the volume of data when the system was just installed), it does not take too much time.
After the system volume data is pushed, the disk area corresponding to the super block of the non-system volume is cleared on the target computer, so that the non-system volume is hidden. The target computer is then restarted, and the system is booted from the restored system volume after the start.
Because the system volume is restored in full quantity, complex network configuration such as connection with VPN or network card aggregation can be performed after the system is started, and after the network configuration is successful, the kernel restoration program can be connected to the backup server to quickly reconstruct the volume which is not restored.
The processing mode of the unreduced volume can be that all disk read-write operations of an operating system and an application program are captured, whether data of an operating disk area are restored or not is judged, if not, the data of the area are restored first, and then the disk read-write operations are carried out. Therefore, the operating system and the application program can normally access whether the data of the disk is restored or not.
After the kernel restore program enters a fast rebuilding state, extracting superblock data from the non-system volume data, and determining target storage position information corresponding to the superblock data, namely, reading the superblock data of all the non-system volumes from the backup server, writing the superblock data into the corresponding volumes, and after the superblock data is successfully written, notifying an operating system to rescan all the volume devices so as to activate the non-system volumes. At the same time, the automatic mounting function of the volumes is also started, and all non-system volumes are mounted on the corresponding paths, so that the application program can normally access the data on the volumes.
Further, to ensure that non-system services can operate properly, it is necessary to re-enable previously disabled non-system services and re-start all boot-up auto-started services once. Since there is a dependency relationship in the service initiation, before the service is initiated, it is necessary to analyze the dependency relationship of the service and to preferentially initiate the dependent service.
After all the service programs are started, the service programs on the system can normally provide services to the outside, and the rest unreduced data can be recovered in the subsequent service providing process or when the system is idle.
In this embodiment, the system volume in the backup data is identified, the data on the system volume is restored in full quantity, and after the system is started, the network configuration is successful, and then the data of the non-system volume is restored. During the data restoration, the business program on the system can be started normally and provide service to the outside. Because the system volume is restored in full quantity, a backup server is not required to be connected in the system starting process to restore data. After the system is started successfully, the network configuration is finished (the virtual private network (Virtual Private Network, VPN) is connected or network card aggregation is performed, etc.), and the rest data is quickly rebuilt. In general, the system volume data of the service system is not too large, which is basically equal to the data volume when the operating system is just installed (Linux system is generally smaller than 5GB and windows system is generally smaller than 30 GB), so that it does not take too much time to restore the data, but the data of the non-system is too large (in many cases, the data exceeds 1000 GB), and the restoration is time-consuming. Under the scene, the method of firstly restoring the system volume in full quantity and then quickly reconstructing the service data volume can also realize the quick reconstruction of the system service.
In this embodiment, the backup data to be restored is first analyzed to determine the system volume data and the non-system volume data in the backup data to be restored, then the storage information of the non-system volume data is obtained, and then the storage information of the non-system volume data and the system volume data are sent to the target computer, so that the target computer runs the operating system based on the system volume data, and the non-system volume data is mounted in the operating system through the storage information, so as to realize quick reconstruction of the backup data. In the prior art, full data recovery or rapid data recovery is needed, the full data recovery has low requirements on network environment, but the recovery service consumes long time, especially when the service data volume is large; the fast data recovery consumes short time, can restore the service and restore the data, but needs to complete network configuration in the early stage of system startup, otherwise, the later data recovery and service recovery cannot be performed, and the embodiment sends the storage information of the non-system volume data and the system volume data to the target computer, so that the target computer runs the operating system based on the system volume data, and mounts the non-system volume in the operating system through the storage information, thereby realizing the fast reconstruction of the backup data and further shortening the service system reconstruction period.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of a backup data reconstruction method according to the present invention.
Based on the first embodiment, in this embodiment, the step S30 further includes:
step S301: and performing system reorganization according to the system volume data to obtain disk partitions, disk volumes and disk files.
In a specific implementation, when a source computer encounters a fault, and a service system cannot be started, data backed up in advance needs to be restored to a target computer, and the service system is rebuilt, wherein the backup data needs to be analyzed before being restored, a system volume is identified, and then the data of the system volume is restored to the target computer.
The processing mode of identifying the system volume is that some volumes in the backup data can be virtual volumes, such as lvm, flexible raid and dynamic disk of Windows, which are identified and assembled one by one, and then the partition, the volume and the file system which are identical to those of the original computer are assembled according to the partition, the volume and the file system metadata information of the disk in the backup data.
Step S302: and determining a target system volume according to the disk partition, the disk volume and the disk file, and acquiring target system configuration information of a target computer according to the target system volume.
It should be noted that, the system of the target computer may be a Windows system, or may be a Linux system, where a system volume of Windows includes a msr partition, an esp partition, a system partition, and a reserved partition; the Linux system wraps map partitions, boot partitions, root partitions, and/etc,/home,/var directory dependent partitions, etc.
In this embodiment, the configuration of the system, that is, the system start configuration information of the target computer needs to be modified, otherwise, after the system volume is restored in full, the system may not work normally on the target computer. The step of modifying the configuration of the system includes disabling non-system services. Whether Windows or Linux systems, many services are registered, both with the system itself and with the application, which will run automatically after the system is started (and also manually, depending on the type of registered service). Since the first phase is to restore the system volumes only in full, the data of non-system volumes is not restored, if some service programs access the volumes, access failure occurs, and the service abnormality is caused, so that the problem does not occur after the service program is disabled.
When the configuration is modified, the non-system services are disabled so that the restored system will not start up when the non-system service program is started up.
The step of modifying the configuration of the system further includes hiding the non-system volume and disabling the automatic mounting of the non-system volume. Since the first phase is to restore the system volumes only in full, the data of non-system volumes is not restored, and if these volumes are to be mounted after the system is started, system startup failure may result. Hiding and disabling these non-system volumes, the presence of these volumes cannot be perceived at the time of the restored system startup (just as when the system was just installed), so it can be started up normally.
The network configuration information of the target computer and the disk area information of the non-system volume are acquired, and then the network configuration information and the disk area information are written into a configuration file in the target system volume, so that the network configuration information and the disk area information are needed to be used in the subsequent quick reconstruction.
Step S303: and sending the target system configuration information, the storage information of the non-system volume data and the system volume data to the target computer so that the target computer runs an operating system based on the system volume data and the target system configuration information, and mounting the non-system volume data in the operating system through the storage information to realize quick reconstruction of backup data.
After configuration is corrected, the target system configuration information, storage information of non-system volume data and system volume data are sent to the target computer, so that the target computer runs the operating system based on the system volume data and the target system configuration information, and as the volume data are not too large (basically equivalent to the volume data when the system is just installed), too much time is not consumed, and then the non-system volume data are mounted in the operating system through the storage information, so that quick reconstruction of backup data is realized.
In a specific implementation, after the system volume data is pushed, a disk area corresponding to a super block of the non-system volume is cleared on the target computer, so that the non-system volume is hidden. The target computer is then restarted, and the system is booted from the restored system volume after the start.
Because the system volume is restored in full quantity, complex network configuration such as connection with VPN or network card aggregation can be performed after the system is started, and after the network configuration is successful, the kernel restoration program can be connected to the backup server to quickly reconstruct the volume which is not restored.
The processing mode of the unreduced volume can be that all disk read-write operations of an operating system and an application program are captured, whether data of an operating disk area are restored or not is judged, if not, the data of the area are restored first, and then the disk read-write operations are carried out. Therefore, the operating system and the application program can normally access whether the data of the disk is restored or not.
After the kernel restore program enters a fast rebuilding state, extracting superblock data from the non-system volume data, and determining target storage position information corresponding to the superblock data, namely, reading the superblock data of all the non-system volumes from the backup server, writing the superblock data into the corresponding volumes, and after the superblock data is successfully written, notifying an operating system to rescan all the volume devices so as to activate the non-system volumes. At the same time, the automatic mounting function of the volumes is also started, and all non-system volumes are mounted on the corresponding paths, so that the application program can normally access the data on the volumes.
Further, to ensure that non-system services can operate properly, it is necessary to re-enable previously disabled non-system services and re-start all boot-up auto-started services once. Since there is a dependency relationship in the service initiation, before the service is initiated, it is necessary to analyze the dependency relationship of the service and to preferentially initiate the dependent service.
After all the service programs are started, the service programs on the system can normally provide services to the outside, and the rest unreduced data can be recovered in the subsequent service providing process or when the system is idle.
In this embodiment, system reorganization is performed according to system volume data to obtain a disk partition, a disk volume and a disk file, then a target system volume is determined according to the disk partition, the disk volume and the disk file, target system configuration information of a target computer is obtained according to the target system volume, then the target system configuration information, storage information of non-system volume data and the system volume data are sent to the target computer, so that the target computer runs an operating system based on the system volume data and the target system configuration information, and the non-system volume is mounted in the operating system through the storage information, so that quick reconstruction of backup data is achieved, and further a data recovery period is shortened.
Referring to fig. 4, fig. 4 is a block diagram illustrating a first embodiment of a backup data reconstruction apparatus according to the present invention.
As shown in fig. 4, the backup data reconstruction device provided in the embodiment of the present invention includes:
a determining module 4001, configured to analyze backup data to be restored to determine system volume data and non-system volume data in the backup data to be restored;
an obtaining module 4002, configured to obtain storage information of the non-system volume data;
and the reconstruction module 4003 is configured to send the storage information of the non-system volume data and the system volume data to a target computer, so that the target computer runs an operating system based on the system volume data, and mounts the non-system volume data in the operating system through the storage information, so as to implement quick reconstruction of backup data.
In this embodiment, the backup data to be restored is first analyzed to determine the system volume data and the non-system volume data in the backup data to be restored, then the storage information of the non-system volume data is obtained, and then the storage information of the non-system volume data and the system volume data are sent to the target computer, so that the target computer runs the operating system based on the system volume data, and the non-system volume data is mounted in the operating system through the storage information, so as to realize quick reconstruction of the backup data. In the prior art, full data recovery or rapid data recovery is needed, the full data recovery has low requirements on network environment, but the recovery service consumes long time, especially when the service data volume is large; the fast data recovery consumes short time, can restore the service and restore the data, but needs to complete network configuration in the early stage of system startup, otherwise, the later data recovery and service recovery cannot be performed, and the embodiment sends the storage information of the non-system volume data and the system volume data to the target computer, so that the target computer runs the operating system based on the system volume data, and mounts the non-system volume in the operating system through the storage information, thereby realizing the fast reconstruction of the backup data and further shortening the service system reconstruction period.
Further, the reconstruction module 4003 is further configured to perform system reorganization according to the system volume data to obtain a disk partition, a disk volume, and a disk file;
the reconstruction module 4003 is further configured to determine a target system volume according to the disk partition, the disk volume, and the disk file, and obtain target system configuration information of a target computer according to the target system volume;
the rebuilding module 4003 is further configured to send the target system configuration information, the storage information of the non-system volume data, and the system volume data to the target computer, so that the target computer runs an operating system based on the system volume data and the target system configuration information, and mounts the non-system volume in the operating system through the storage information, so as to implement quick rebuilding of backup data;
the rebuilding module 4003 is further configured to generate a service start instruction according to the non-system service information, and send the service start instruction to the target computer, so that the target computer starts the non-system service according to the service start instruction.
Further, the reconstruction module 4003 is further configured to obtain disk partition metadata information, disk volume metadata information, and disk file metadata information according to the system volume data;
The reconstruction module 4003 is further configured to reorganize a disk partition according to the disk partition metadata information;
the reconstruction module 4003 is further configured to reorganize a disk volume according to the disk volume metadata information;
the reconstruction module 4003 is further configured to reconstruct a disk file according to the disk file metadata information.
Further, the reconstruction module 4003 is further configured to obtain disk partition information corresponding to the disk partition, disk volume information corresponding to the disk volume, and disk file information corresponding to the disk file.
The reconstruction module 4003 is further configured to determine a target system volume according to the disk partition information, the disk volume information, and the disk file information.
Further, the rebuilding module 4003 is further configured to obtain system start configuration information of the target computer;
the rebuilding module 4003 is further configured to modify the system startup configuration information according to the target system volume, so as to obtain target system configuration information.
Further, the rebuilding module 4003 is further configured to send the target system configuration information, the storage information of the non-system volume data, and the system volume data to the target computer, so that the target computer runs an operating system based on the system volume data and the target system configuration information, obtains network configuration information from the system volume data, and makes the target computer perform network configuration based on the network configuration information, and when the network configuration is successful, mounts the non-system volume in the operating system through the storage information, so as to implement quick rebuilding of backup data. .
Further, the rebuilding module 4003 is further configured to obtain superblock data of a non-system volume in the backup data to be restored, and determine target storage location information corresponding to the superblock data;
the rebuilding module 4003 is further configured to send the target storage location information, the target system configuration information, the storage information of the non-system volume data, and the system volume data to the target computer, so that the target computer runs an operating system based on the system volume data and the target system configuration information, obtains network configuration information from the system volume data, and makes the target computer perform network configuration based on the network configuration information, and when the network configuration is successful, reads the superblock data based on the target storage location information, and mounts the non-system volume in the operating system through the storage information, so as to implement fast rebuilding of backup data.
Other embodiments or specific implementation manners of the backup data reconstruction device of the present invention may refer to the above method embodiments, and are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. read-only memory/random-access memory, magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The backup data reconstruction method is characterized by comprising the following steps of:
analyzing the backup data to be restored to determine system volume data and non-system volume data in the backup data to be restored;
acquiring storage information of the non-system volume data, wherein the storage information of the non-system volume data is a storage position of the non-system volume data on a disk in backup data;
performing system reorganization according to the system volume data to obtain disk partitions, disk volumes and disk files;
determining a target system volume according to the disk partition, the disk volume and the disk file, and acquiring target system configuration information of a target computer according to the target system volume;
and sending the target system configuration information, the storage information of the non-system volume data and the system volume data to the target computer so that the target computer runs an operating system based on the system volume data and the target system configuration information, and mounting the non-system volume in the operating system through the storage information to realize quick reconstruction of backup data.
2. The method of claim 1, wherein after the step of sending the storage information of the non-system volume data and the system volume data to a target computer to cause the target computer to run an operating system based on the system volume data and mount the non-system volume in the operating system through the storage information to achieve the fast rebuilding of the backup data, further comprising:
And generating a service starting instruction according to the non-system service information, and sending the service starting instruction to the target computer so that the target computer starts the non-system service according to the service starting instruction.
3. The method of claim 2, wherein the step of performing system reorganization based on the system volume data to obtain disk partitions, disk volumes, and disk files comprises:
obtaining disk partition metadata information, disk volume metadata information and disk file metadata information according to the system volume data;
reorganizing the disk partition according to the disk partition metadata information;
reorganizing a disk volume according to the disk volume metadata information;
and reorganizing the disk file according to the disk file metadata information.
4. The method of claim 3, wherein the step of determining a target system volume from the disk partition, the disk volume, and the disk file comprises:
obtaining disk partition information corresponding to the disk partition, disk volume information corresponding to the disk volume and disk file information corresponding to the disk file;
and determining a target system volume according to the disk partition information, the disk volume information and the disk file information.
5. The method of claim 4, wherein the step of obtaining target system configuration information for a target computer from the target system volume comprises:
acquiring system starting configuration information and registration service information of a target computer;
analyzing the registration service information to obtain non-system service information;
and modifying the system starting configuration information according to the target system volume and the non-system service information to obtain target system configuration information.
6. The method of any of claims 1-5, wherein the step of sending the target system configuration information, the storage information of the non-system volume data, and the system volume data to the target computer to cause the target computer to run an operating system based on the system volume data and the target system configuration information, and mounting the non-system volume in the operating system via the storage information to achieve fast rebuilding of backup data comprises:
and sending the target system configuration information, the storage information of the non-system volume data and the system volume data to the target computer so that the target computer runs an operating system based on the system volume data and the target system configuration information, acquires network configuration information from the system volume data, and enables the target computer to perform network configuration based on the network configuration information, and when the network configuration is successful, mounting the non-system volume in the operating system through the storage information so as to realize quick reconstruction of backup data.
7. The method of claim 6, wherein the sending the target system configuration information, the storage information of the non-system volume data, and the system volume data to the target computer, so that the target computer runs an operating system based on the system volume data and the target system configuration information, obtains network configuration information from the system volume data, and makes the target computer perform network configuration based on the network configuration information, and when the network configuration is successful, the step of mounting the non-system volume in the operating system through the storage information to implement fast rebuilding of backup data further comprises:
acquiring superblock data of a non-system volume in the backup data to be restored, and determining target storage position information corresponding to the superblock data;
the step of sending the target system configuration information, the storage information of the non-system volume data and the system volume data to the target computer, so that the target computer runs an operating system based on the system volume data and the target system configuration information, obtains network configuration information from the system volume data, and enables the target computer to perform network configuration based on the network configuration information, and when the network configuration is successful, mounts the non-system volume in the operating system through the storage information, so as to realize quick reconstruction of backup data, includes:
And sending the target storage position information, the target system configuration information, the storage information of the non-system volume data and the system volume data to the target computer so that the target computer runs an operating system based on the system volume data and the target system configuration information, acquires network configuration information from the system volume data, and enables the target computer to perform network configuration based on the network configuration information, when the network configuration is successful, the super block data is read based on the target storage position information, and the non-system volume is mounted in the operating system through the storage information so as to realize quick reconstruction of backup data.
8. A backup data reconstruction apparatus, characterized in that the backup data reconstruction apparatus comprises:
the determining module is used for analyzing the backup data to be restored to determine the system volume data and the non-system volume data in the backup data to be restored;
the acquisition module is used for acquiring the storage information of the non-system volume data, wherein the storage information of the non-system volume data is the storage position of the non-system volume data on a disk in the backup data;
the reconstruction module is used for carrying out system reorganization according to the system volume data so as to obtain a disk partition, a disk volume and a disk file; determining a target system volume according to the disk partition, the disk volume and the disk file, and acquiring target system configuration information of a target computer according to the target system volume; and sending the target system configuration information, the storage information of the non-system volume data and the system volume data to the target computer so that the target computer runs an operating system based on the system volume data and the target system configuration information, and mounting the non-system volume in the operating system through the storage information to realize quick reconstruction of backup data.
9. A backup data reconstruction apparatus, characterized in that the backup data reconstruction apparatus comprises: a memory, a processor and a backup data reconstruction program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the backup data reconstruction method as claimed in any one of claims 1 to 7.
10. A storage medium having stored thereon a backup data reconstruction program which, when executed by a processor, implements the steps of the backup data reconstruction method as claimed in any one of claims 1 to 7.
CN202011573435.7A 2020-12-25 2020-12-25 Backup data reconstruction method, device, equipment and storage medium Active CN112579361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011573435.7A CN112579361B (en) 2020-12-25 2020-12-25 Backup data reconstruction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011573435.7A CN112579361B (en) 2020-12-25 2020-12-25 Backup data reconstruction method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112579361A CN112579361A (en) 2021-03-30
CN112579361B true CN112579361B (en) 2024-04-02

Family

ID=75140124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011573435.7A Active CN112579361B (en) 2020-12-25 2020-12-25 Backup data reconstruction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112579361B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020541B (en) * 2022-01-05 2022-05-06 深圳市科力锐科技有限公司 Backup data display method, device, equipment and storage medium
CN114816571B (en) * 2022-04-15 2023-06-16 西安广和通无线通信有限公司 Method, device, equipment and storage medium for plug-in flash memory

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968422A (en) * 2011-08-31 2013-03-13 中国航天科工集团第二研究院七○六所 System and method for controlling streaming data storage
CN104407931A (en) * 2014-10-28 2015-03-11 国云科技股份有限公司 Method for obtaining mirror image of damaged system disk of virtual machine
CN106201654A (en) * 2016-06-30 2016-12-07 国云科技股份有限公司 A kind of rescue method of dummy machine system
CN107122267A (en) * 2017-05-31 2017-09-01 广州鼎甲计算机科技有限公司 A kind of Windows operating system carry restoration methods
CN108241550A (en) * 2016-12-23 2018-07-03 研祥智能科技股份有限公司 A kind of operating system backup and reduction method
CN110941515A (en) * 2019-12-04 2020-03-31 深圳市科力锐科技有限公司 Host backup reconstruction method, device, server and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10754733B2 (en) * 2015-07-16 2020-08-25 Gil Peleg System and method for mainframe computers backup and restore

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968422A (en) * 2011-08-31 2013-03-13 中国航天科工集团第二研究院七○六所 System and method for controlling streaming data storage
CN104407931A (en) * 2014-10-28 2015-03-11 国云科技股份有限公司 Method for obtaining mirror image of damaged system disk of virtual machine
CN106201654A (en) * 2016-06-30 2016-12-07 国云科技股份有限公司 A kind of rescue method of dummy machine system
CN108241550A (en) * 2016-12-23 2018-07-03 研祥智能科技股份有限公司 A kind of operating system backup and reduction method
CN107122267A (en) * 2017-05-31 2017-09-01 广州鼎甲计算机科技有限公司 A kind of Windows operating system carry restoration methods
CN110941515A (en) * 2019-12-04 2020-03-31 深圳市科力锐科技有限公司 Host backup reconstruction method, device, server and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Toward cost effective and optimal selection of IT disaster recovery cloud solution;Ahmad H. Al-Sharidah等;《2017 9th Computer Science and Electronic Engineering (CEEC)》;20171109;43-48 *
管理Docker容器的数据卷;张永夏;《网络安全和信息化》;20171005;83-85 *

Also Published As

Publication number Publication date
CN112579361A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
US11789823B2 (en) Selective processing of file system objects for image level backups
CN107870968B (en) Performing real-time updates to a file system volume
EP3474138B1 (en) Item-level restoration and verification of image level backups
US7694123B2 (en) Storing files for operating system restoration
JP4066325B2 (en) User data backup method
US20100174943A1 (en) Method for restoring client operating system-based system, virtual machine manager and system using the same
CN105117246A (en) Method for rapidly booting electronic equipment
US20120311279A1 (en) Data recovery and backup system and process
CN112579361B (en) Backup data reconstruction method, device, equipment and storage medium
CN108241550B (en) Backup and restoration method for operating system
CN110825419B (en) Firmware refreshing method and device, electronic equipment and storage medium
WO2012031567A1 (en) Fault tolerance method and device for file system
CN104572354A (en) Backup and restoration method for operating system based on restoration service and equipment thereof
WO2015085755A1 (en) Operating system recovery method, apparatus and terminal device
CN113553218A (en) Method for cloning and backing up real machine based on cloud mobile phone, terminal device and storage medium
CN111930429A (en) Method for quickly starting Android operating system and electronic equipment
CN113485755B (en) Device driver verification method, device and storage medium
US20200349009A1 (en) Information Handling System And Method To Restore System Firmware To A Selected Restore Point
EP3159797A1 (en) Efficient processing of file system objects for image level backups
CN110941516B (en) Operating system restoration method, device, equipment and storage medium
US20150212866A1 (en) Management system for service of multiple operating environments, and methods thereof
CN112596954A (en) Data backup and reconstruction method, device, equipment and storage medium
KR101552580B1 (en) Method for system recovery including mobile device and backup supporting multi operation system
CN113342365A (en) Operating system deployment method, device, equipment and computer-readable storage medium
CN108509252B (en) Virtual machine starting device and method and host

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