WO2024027314A1 - Backup data recovery method and computing device - Google Patents

Backup data recovery method and computing device Download PDF

Info

Publication number
WO2024027314A1
WO2024027314A1 PCT/CN2023/097148 CN2023097148W WO2024027314A1 WO 2024027314 A1 WO2024027314 A1 WO 2024027314A1 CN 2023097148 W CN2023097148 W CN 2023097148W WO 2024027314 A1 WO2024027314 A1 WO 2024027314A1
Authority
WO
WIPO (PCT)
Prior art keywords
backup data
data
restored
backup
incremental
Prior art date
Application number
PCT/CN2023/097148
Other languages
French (fr)
Chinese (zh)
Inventor
陈琪
Original Assignee
超聚变数字技术有限公司
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 超聚变数字技术有限公司 filed Critical 超聚变数字技术有限公司
Publication of WO2024027314A1 publication Critical patent/WO2024027314A1/en

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
    • G06F11/1453Management of the data involved in backup or backup restore using de-duplication of the data
    • 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
    • G06F11/1469Backup restoration techniques

Definitions

  • This application relates to the field of data backup and recovery, and in particular to a backup data recovery method and computing device.
  • full data backup and incremental data backup are usually used for data backup.
  • the full data backup method refers to backing up all data
  • the incremental data backup method refers to backing up based on the differential data generated from the last backup data. For example, on the first day, the full data backup method is used for backup, and on the second day, the differential data generated based on the first day's full data is backed up, that is, the incremental data backup method is used for backup.
  • the full data backup method and the incremental data backup method the computing resources and time costs occupied when backing up data are reduced.
  • full data recovery is usually used to restore all backup data.
  • the full data is restored; when restoring the second day's backup data, the first day's full data and the second day's incremental data are restored, and then the next day's backup data is obtained. All data. There is no suitable way to reduce the resources occupied when restoring backup data, resulting in low recovery efficiency of backup data.
  • Embodiments of the present application provide a backup data recovery method and computing device, which are used to reduce the resources occupied when recovering data and improve the efficiency of data recovery.
  • a backup data recovery method which includes: obtaining the identification of the backup data to be restored; when determining that the backup data to be restored is incremental backup data, obtaining the restored backup data according to the identification of the backup data to be restored; Among them, the restored backup data and the backup data to be restored are backup data based on the same full backup data.
  • the backup time of the restored backup data is earlier than the backup time of the backup data to be restored; when it is determined that no data changes have been made to the restored backup data.
  • restore the backup data to be restored according to the incremental data recovery method where the incremental backup data recovery method refers to the method of restoring the backup data to be restored based on the incremental backup data based on the difference between the backup data to be restored and the restored backup data.
  • the incremental backup data recovery method refers to the method of restoring the backup data to be restored based on the incremental backup data based on the difference between the backup data to be restored and the restored backup data.
  • the full data recovery method is used to restore backup data.
  • the backup data recovery method proposed in this application is adopted.
  • the backup data to be restored is incremental backup data
  • the restored backup data is available, In this case, incremental backup data is restored, thereby greatly reducing the resources occupied when restoring backup data and improving the efficiency of data restoration.
  • the backup data to be restored is restored according to the incremental data recovery method, including: based on the identification of the restored backup data and the identity of the backup data to be restored. Identification, read the differential incremental backup data between the restored backup data and the backup data to be restored; restore the backup data to be restored based on the differential incremental backup data and the restored backup data.
  • This possible implementation method provides a specific method of restoring the backup data to be restored based on the incremental data recovery method.
  • Implementation method wherein the differential incremental backup data is determined and restored, and then the required backup data is obtained by combining the restored backup data. Compared with the method of recovering all data, it greatly saves the computing resources and time cost when recovering data.
  • the method also includes: after restoring the restored backup data, when the restored backup data undergoes data changes, recording the data change status of the restored backup data as changed; when the restored backup data When no data changes are made, the data change status of the restored backup data is recorded as unchanged; after obtaining the restored backup data, the method also includes: based on the data change status of the restored backup data, determine whether the restored backup data has changed .
  • This possible implementation method provides a specific implementation method for recording the data change status of restored backup data, thereby improving the implementability of the solution.
  • the method also includes: after restoring the restored backup data, when the restored backup data undergoes data changes, recording the data change status of the restored backup data; when the restored backup data does not undergo data changes, When changing, the data change status of the restored backup data is not recorded; after obtaining the restored backup data, the method also includes: determining whether the restored backup data has changed based on whether the data change status of the restored backup data is recorded.
  • This possible implementation method provides a specific implementation method for recording the data change status of restored backup data, thereby improving the implementability of the solution.
  • the method before determining whether data changes have been made to the restored backup data, the method also includes: using MyWrite to write the file system function to replace the operating system's writing file system function, and the MyWrite writing file system function is used to record the restored backup data. The data change status of the backup data.
  • This possible implementation method provides a specific implementation method for recording the data change status of restored backup data, thereby improving the implementability of the solution.
  • the method further includes: if the identifier of the backup data to be restored is an incremental backup identifier, determining that the backup data to be restored is the incremental backup data.
  • This possible implementation method provides a specific implementation method of determining the backup data type of the backup data to be restored based on the identification of the backup data to be restored. By determining that the backup data to be restored is incremental backup data, it is convenient to follow up based on the backup data to be restored.
  • the backup data type for restoring backup data determines the method of restoring backup data, improving the implementability of the solution.
  • the identifier of the backup data to be restored includes a full backup data sequence number and an incremental backup data sequence number; if the identifier of the backup data to be restored is an incremental backup identifier, determine that the backup data to be restored is an incremental Backup data, including: If the incremental backup data identifier includes the incremental backup data sequence number, it is determined that the backup data to be restored is incremental backup data.
  • This possible implementation method provides a specific implementation method of determining the backup data type of the backup data to be restored based on the identification of the backup data to be restored, and determining the backup data to be restored based on whether there is an incremental backup data sequence number in the identification. Whether the backup data is incremental will facilitate the subsequent determination of the backup data recovery method based on the backup data type of the backup data to be restored, thereby improving the implementability of the solution.
  • the method also includes: when the backup data to be restored is full backup data, restoring the backup data to be restored according to a full data recovery method; wherein the full data recovery method refers to the backup data to be restored. All data for data recovery.
  • This possible implementation method provides a recovery method when the backup data to be restored is full backup data, which helps to improve the integrity of the solution.
  • the method also includes: when it is determined that the restored backup data has undergone data changes, restoring the backup data to be restored according to a full data recovery method; wherein the full data recovery method refers to the backup data to be restored. All data in the backup data can be recovered.
  • This possible implementation method provides a recovery method for the backup data to be restored when data changes occur in the restored backup data, which helps to improve the integrity of the solution.
  • a second aspect provides a computing device, including: a functional unit for executing any method provided in the first aspect, and the actions performed by each functional unit are implemented by hardware or by hardware executing corresponding software.
  • the computing device may include: an acquisition unit and a processing unit; an acquisition unit configured to acquire an identification of the backup data to be restored; an acquisition unit further configured to: when it is determined that the backup data to be restored is incremental backup data, according to the backup data to be restored The identifier is used to obtain the restored backup data; among them, the restored backup data and the backup data to be restored are backup data obtained based on the same full backup data, and the backup time of the restored backup data is earlier than the backup time of the backup data to be restored.
  • the processing unit is used to restore the backup data to be restored according to the incremental data recovery method when it is determined that the restored backup data has not been changed.
  • the incremental backup data recovery method refers to the method based on the backup data to be restored and the restored backup. The difference between the data, incremental backup data, and the way to restore the backup data to be restored.
  • a computing device including: a processor and a memory.
  • the processor is connected to the memory, the memory is used to store computer execution instructions, and the processor executes the computer execution instructions stored in the memory, thereby implementing any method provided in the first aspect.
  • the fourth aspect provides a chip, which includes: a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor is used to run the code instructions to execute any of the instructions provided in the first aspect. a way.
  • a computer-readable storage medium which includes computer-executable instructions.
  • the computer-executable instructions When the computer-executable instructions are run on a computer, they cause the computer to execute any method provided in the first aspect.
  • a sixth aspect provides a computer program product, which includes computer execution instructions. When the computer execution instructions are run on a computer, they cause the computer to execute any method provided in the first aspect.
  • Figure 1 is a schematic diagram of a data backup and recovery scenario
  • Figure 2 is a schematic diagram of the hardware structure of a computing device provided by an embodiment of the present application.
  • Figure 3 is a schematic diagram of a differential incremental data backup method provided by an embodiment of the present application.
  • Figure 4 is a schematic flow chart of a backup data recovery method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an operating system provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of an incremental backup data recovery method provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of a cumulative incremental data backup method provided by an embodiment of the present application.
  • Figure 8 is a schematic flow chart of a backup data recovery method provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of the composition of a computing device provided by an embodiment of the present application.
  • the production system can be understood as the user host, used to meet the user's data processing needs.
  • the backup system is used to regularly copy the data of the production system. When the production system fails, the backup data can be restored for users to avoid data loss.
  • the backup system when the backup system has the data processing capabilities of the production system, it can also be used as a replacement production system, allowing users to read or write backup data through the backup system when the production system is unavailable.
  • the production system includes computing equipment and storage equipment, and the processing equipment is used to call data in the storage device for processing.
  • the processing device completes the tasks specified by the user for the application through computer instructions saved in the operating system, and this process includes the data processing process for the application.
  • the backup agent is used to identify the information in the production system and copy the data to the backup system to realize the interaction between the backup system and the production system.
  • the backup system also includes computing devices and storage devices to process and store backup data.
  • the computing device may be a terminal device or a network device.
  • the terminal device may be called: terminal, user equipment (UE), terminal equipment, mobile device, user terminal, wireless communication equipment, etc.
  • the terminal device may be a mobile phone, an augmented reality (AR) device, a virtual reality (VR) device, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, or a personal computer.
  • Digital assistant personal digital assistant, PDA
  • the network device may specifically be a server, etc.
  • the server can be a physical or logical server, or there can be two or more physical or logical servers that share different responsibilities and cooperate with each other to realize various functions of the server.
  • the production system and the backup system can communicate through a network.
  • the communication network is a wired network or a wireless network.
  • the above-mentioned wireless network or wired network uses standard communication technologies and/or protocols.
  • the network is usually the Internet, but can be any network, including but not limited to local area network (LAN), metropolitan area network (MAN), wide area network (WAN), mobile, wired or wireless Any combination of networks, private networks, or virtual private networks.
  • data exchanged over the network is represented using technologies and/or formats including hypertext mark-up language (HTML), extensible markup language (XML), etc.
  • HTTP hypertext mark-up language
  • XML extensible markup language
  • customized and/or dedicated data communication technologies may also be used in place of or in addition to the above-described data communication technologies.
  • Embodiments of the present application provide a backup data recovery method, which can be applied to computing devices.
  • the embodiments of this application do not place any restrictions on the specific form of the computing device.
  • the terminal device may specifically be a terminal device.
  • the terminal device may be called: terminal, user equipment (UE), terminal equipment, user terminal, wireless communication device, user agent or user device, etc.
  • the terminal device may be a mobile phone, an augmented reality (AR) device, a virtual reality (VR) device, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, or a personal computer.
  • Digital assistant personal digital assistant, PDA
  • the computing device can be a device corresponding to the above-mentioned production system or backup system, or it can also be a device corresponding to the above-mentioned production system or backup system.
  • the structure of the computing device may be as shown in Figure 2.
  • FIG. 2 it is a schematic diagram of the hardware structure of a computing device 20 provided by an embodiment of the present application.
  • the computing device 20 may be used to implement the functions of the computing device described above.
  • the computing device 20 shown in FIG. 2 may include: a processor 201, a memory 202, a communication interface 203, and a bus 204.
  • the processor 201, the memory 202 and the communication interface 203 may be connected through a bus 204.
  • the processor 201 is the control center of the computing device 20 and can be a general central processing unit (CPU) or other general processor.
  • the general processor may be a microprocessor or any conventional processor.
  • processor 201 may include one or more CPUs, such as CPU 0 and CPU 1 shown in FIG. 2 .
  • Memory 202 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory (RAM)) or other type that can store information and instructions.
  • a dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or can be used to carry or store instructions or data structures.
  • EEPROM electrically erasable programmable read-only memory
  • the memory 202 may exist independently of the processor 201.
  • the memory 202 can be connected to the processor 201 through the bus 204 for storing data, instructions or program codes.
  • the processor 201 calls and executes the instructions or program codes stored in the memory 202, it can implement the backup data recovery method provided by the embodiment of the present application.
  • the memory 202 can also be integrated with the processor 201 .
  • the communication interface 203 is used to connect the computing device 20 with other devices through a communication network.
  • the communication network can be Ethernet, wireless access network (radio access network, RAN), wireless local area networks (WLAN), etc.
  • the communication interface 203 may include a receiving unit for receiving data, and a transmitting unit for transmitting data.
  • the bus 204 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc.
  • ISA industry standard architecture
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 2, but it does not mean that there is only one bus or one type of bus.
  • the structure shown in Figure 2 does not constitute a limitation on the computing device 20.
  • the computing device 20 may include more or less components than shown in the figure, or a combination of certain components. components, or different component arrangements.
  • an incremental data backup method is proposed, which is based on the differential data generated by the backup data.
  • differential incremental data backup there are two methods of differential incremental data backup and cumulative incremental data backup. The following is a description of the technical solutions provided by the embodiments of the present application with respect to the two incremental data backup methods in conjunction with the accompanying drawings.
  • the differential incremental data backup method refers to backing up based on the differential data generated from the last backup data. For example, on the first day, use the full data backup method to back up all data; on the second day, use the differential incremental data backup method to back up the differential data generated based on all the data on the first day; on the third day, use The differential incremental data backup method is used to back up the differential data generated based on all the data on the second day; the differential incremental data backup method is used on the fourth day to back up the differential data generated based on all the data on the third day. ; Use full data backup method to back up all data on the fifth day.
  • the backup data on the first and fifth days are full backup data
  • the backup data on the second, third and fourth days are incremental backup data.
  • Full backup data refers to all data
  • incremental backup data refers to data generated based on the backed up data. difference data.
  • the above-mentioned full backup data and incremental backup data are backup data types and correspond to the backup methods one-to-one, that is, the full data backup method is used to obtain full backup data, and the incremental data backup method is used to obtain incremental backup data.
  • the incremental backup data on the second, third and fourth days do not represent all the data on the second, third and fourth days.
  • you want to obtain all the data for the next day you need to restore the full backup data of the first day and the incremental backup data of the next day.
  • you can obtain All the data of the second day similarly, to obtain all the data of the third day, you need to restore the full backup data of the first day, the incremental backup data of the second day and the incremental backup data of the third day.
  • the full backup data, the incremental backup data of the next day, and the incremental backup data of the third day are used to obtain all the data of the third day.
  • backing up differential data helps to complete data backup with less computing resources and time costs, thus greatly improving the efficiency of backing up data.
  • the above time information such as the first day and the second day represents the backup time.
  • the first day mentioned above can be understood as the time to start the backup
  • the second to the fourth day can be understood as the backup time for the differential data generated by the backup data
  • the fifth day can be understood as the time for complete backup of the data, for example weekend.
  • the full data backup time is a backup cycle
  • performing full data backup periodically and using differential incremental data backup within the cycle will help improve the efficiency of backup data while ensuring the accuracy of the backup data.
  • this application proposes a backup data recovery method, which determines whether the restored backup data is available by monitoring whether the restored backup data has changed, and restores the incremental backup data when the restored backup data is available, thereby maximizing the Significantly reduces the resources consumed when restoring backup data.
  • FIG. 4 it is a flow chart of a backup data recovery method provided by an embodiment of the present application.
  • the method includes:
  • the method provided by the present application is used to restore backup data.
  • the computing device can obtain the backup data and has the ability to restore the backup data
  • the method provided by the embodiment of the present application can be executed. Therefore, when the production system or backup system restores the backup data, the method provided by the embodiment of the present application can be executed.
  • the device integrating the production system and the backup system restores the backup data
  • the method provided by the embodiment of the present application can be executed.
  • other equipment restores backup data for example, when the production system and/or the backup system's data recovery processing device fails, other equipment can achieve recovery by executing the method provided by the embodiments of the present application on the premise of obtaining the backup data. Back up your data. This application does not impose any restrictions on this.
  • the backup data to be restored refers to the target data that the user needs to obtain.
  • the identifier of the backup data to be restored is used to indicate the target data.
  • the identification of the backup data to be restored includes a full backup data sequence number and an incremental backup data sequence number.
  • Table 1 it is an example of the information indicated by the identifier of the backup data.
  • the identifier indicates unique backup data, and the backup data has corresponding full backup data sequence numbers and incremental backup data sequence numbers.
  • the identification is expressed in the form of a serial number of X.Y, where X is the full backup serial number, indicating the serial number of the full backup data.
  • Y is the incremental backup sequence number, which represents the sequence number of the incremental backup data based on the full backup data X. Both X and Y are natural numbers greater than zero.
  • the identifier of the backup data on the first day is 1. According to its identifier, it can be known that the backup method of the backup data is the full data backup method; the identifier of the backup data of the second day is 1.1.
  • the backup data of the backup data is 1.1.
  • the backup method is incremental data backup, and the identifier of the incremental backup data is 1.1, and the identifier of the corresponding full backup data is 1, that is, based on the backup data of the first day, the incremental data backup method is used for backup. .
  • the above-mentioned serial number has a corresponding relationship with the backup time of the backup data.
  • the backup data is represented by serial numbers from small to large, each backup data corresponds to its own backup time, and the backup data with a smaller serial number corresponds to The backup time is earlier, and the backup data with larger serial number corresponds to a later backup time.
  • the above serial number representation of backup data helps improve the efficiency of users in locating the required backup data and facilitates search.
  • carrying the identifier of the full backup data before the identifier of the incremental backup data helps the computing device determine the full backup data corresponding to the incremental backup data.
  • the backup data identified as 1.1 is used to indicate the first incremental backup data based on the full backup data 1
  • the backup data identified as 1.2 is used to indicate the second incremental backup data based on the full backup data 1.
  • the identification of the backup data to be restored does not include the incremental backup data sequence number, it means that the backup data to be restored is full backup data.
  • the incremental backup data sequence number may be zero, indicating that the backup data to be restored is full backup data.
  • identification of backup data in the form of serial numbers is only an example.
  • the identification of backup data can also be in the form of alphabetical sequences or other forms, and this embodiment of the present application does not limit this.
  • the restored backup data and the backup data to be restored are backup data based on the same full backup data, and the backup time of the restored backup data is earlier than the backup time of the backup data to be restored.
  • the computing device determines whether the backup data to be restored is incremental backup data based on the identification of the backup data to be restored. As described in the above step S401 of the identification of the backup data to be restored, when the incremental backup sequence number of the backup data to be restored exists, it means that the backup data to be restored is incremental backup data. Similarly, if the above conditions are not met, it means that the backup data to be restored is full backup data.
  • the computing device restores the backup data to be restored according to the full data recovery method.
  • the full data recovery method refers to data recovery of all data in the backup data to be restored. For example, as shown in Table 1, the corresponding relationship between backup data and identifiers, when the identifier of the backup data to be restored is 1 or 2, the computing device determines that the backup data to be restored is full backup data, and directly restores the data according to the full data recovery method. Restore the backup data to be restored.
  • the computing device obtains the restored backup data based on the full backup sequence number and the incremental backup sequence number in the identification of the backup data to be restored.
  • the restored backup data is determined in the identification manner in step S401. Specifically, the first restored backup data set with the same full backup sequence number is determined according to the full backup sequence number of the backup data to be restored. Then, based on the incremental backup data sequence number of each backup data in the first restored backup data set, it is determined that the restored backup data corresponding to the incremental backup data sequence number that is smaller than the incremental backup data sequence number of the backup data to be restored is used as the second restored backup data. Restore the backup data set. Any restored backup data in the second restored backup data set can be used for the purposes provided by this application. Backup data recovery methods.
  • the computing device determines the restored backup data closest to the incremental backup data sequence number of the backup data to be restored based on the incremental backup data sequence number of each backup data in the second restored backup data set, and restores the restored backup data.
  • the backup data is used as the target restored backup data for subsequent restoration of the backup data to be restored. For example, when the identifier of the backup data to be restored is 1.2, if it is determined that the restored backup data set with the same full backup sequence number includes ⁇ 1,1.1 ⁇ , then the latest backup data set is determined based on the incremental sequence number 2 of the backup data to be restored.
  • the restored backup data is 1.1.
  • the embodiment of the present application adopts the method of restoring incremental backup data to save data recovery resources.
  • the backup time of the full backup data based on the incremental backup data is closer to the backup time of the backup data to be restored, it is necessary to The less incremental backup data is restored, the fewer resources are occupied to restore the backup data, and the higher the efficiency of restoring the backup data.
  • Differential incremental backup data a way to restore the backup data to be restored.
  • the computing device determines whether data changes have been made to the restored backup data. Among them, whether data changes have been made to the restored backup data refers to whether the restored backup data has been changed after the restoration. If no data changes have been made, it means that the restored data is consistent with the backup data before restoration. ; If data changes are made, it means that the data after recovery has changed and is inconsistent with the backup data before recovery.
  • the computing device when the restored backup data undergoes data changes, the computing device records that the data change status of the restored backup data is changed; when the restored backup data copy does not undergo data changes, the computing device records that the data has been changed. The data change status of the restored backup data is unchanged.
  • the computing device when the restored backup data undergoes data changes, the computing device records the data change status of the restored backup data; when the restored backup data copy does not undergo data changes, the computing device does not record the restored backup. The data change status of the data.
  • the computing device determines whether the restored backup data has changed based on the data change status of the restored backup.
  • the data change status includes changed or unchanged.
  • the computing device determines whether the restored backup data has changed based on whether the data change status of the restored backup data is recorded.
  • the data change status is 1 to indicate that the restored backup data has been changed, and the data change status is 0 to indicate that the restored backup data has been changed. Indicates that the backup data has been restored without data changes. After the restored backup data is restored, the data change status is recorded as 0. If a change occurs, the data change status is updated to 1. Or, when the data changes, the data change status is recorded, and when the data does not change, the data change status is not recorded.
  • the above-mentioned recording of whether the restored backup data has been changed can be achieved in the following way: before the computing device determines whether the restored backup data has been changed, it uses the MyWrite write file system function to replace the operating system write file system function.
  • the MyWrite The write file system function is used to record the data change status of restored backup data.
  • the MyWrite write file system function compared with the write file system function in the Linux operating system, not only has the data writing function, but also can monitor whether the written data changes the restored backup data.
  • the operating system LD_PRELOAD environment variable replace the preloaded library (preloaded library) database schema definition language (data definition language) in the original operating system (portable operating system interface, POSIX) , DDL) library file address, replace the write file system function with the MyWrite write file system function.
  • the above method is used to monitor whether the restored backup data undergoes data changes, and determines whether to record the data change status, so that the computing device determines the recovery method of the backup data to be restored based on the data change status of the restored backup data.
  • FIG. 6 it is a schematic diagram of an incremental data recovery method.
  • step S403 will be described in detail below by taking the application to FIG. 5 as an example.
  • the backup data to be restored is the third day's incremental backup data 1.2, and the computing device obtains the restored backup data as the first day's backup data as the full backup data 1.
  • the restored backup data meets the conditions that its backup time is earlier than the backup time of the backup data to be restored, and both are backup data based on the same full backup data.
  • the backup data to be restored is restored by restoring the incremental backup data that is the difference between the full backup data 1 and the incremental backup data 1.2.
  • the incremental backup data includes the incremental backup data 1.1 and the incremental backup data 1.2.
  • the backup data to be restored is the third day's incremental backup data 1.2
  • the computing device obtains the restored backup data as the next day's backup data, which is the full backup data 1 and the incremental backup data 1.1.
  • the restored backup data meets the conditions that its backup time is earlier than the backup time of the backup data to be restored, and both are backup data based on the same full backup data.
  • the backup data to be restored is restored by restoring the incremental backup data that is the difference between the incremental backup data 1.1 and the incremental backup data 1.2.
  • the difference between the full backup data 1 and the incremental backup data 1.2, the incremental backup data includes the incremental backup data 1.2.
  • the backup data to be restored is incremental backup data
  • the cumulative incremental data backup method means that the differential data generated by the last full backup data is accumulated and then backed up. For example, on the first day, use the full data backup method to separate all data; on the second day, use the cumulative incremental data backup method to back up the differential data based on all the data on the first day; on the third day Using the cumulative incremental data backup method, the differential data generated based on all the data on the first day is accumulated and then backed up. Among them, the difference data accumulated on the third day includes the difference data of the second day and the difference data of the third day. At this time, if you want to obtain the data of the third day, you need to restore the full data of the first day and the accumulated difference data of the third day compared to the first day.
  • the backup data on the first day is full backup data
  • the backup data on the second and third days are cumulative incremental backup data.
  • the accumulated incremental backup data refers to the differential data generated based on the full backup data, which is a special kind of incremental backup data.
  • the cumulative incremental data backup method can be understood as a special differential incremental data backup method.
  • backing up accumulated differential data helps to complete data backup with less computing resources and time costs, thus greatly improving the efficiency of backing up data.
  • the computing device when the computing device determines that the backup data to be restored is incremental backup data, it can determine whether the full backup data corresponding to the full backup data sequence number of the backup data to be restored is restored backup data. If the restored backup exists, data, the corresponding accumulated incremental backup data can be restored according to the incremental backup data sequence number of the backup data to be restored, and then the restored backup data to be restored can be obtained through the accumulated incremental backup data and the restored backup data.
  • the full backup data recovery method is used when restoring the backup data, which helps to reduce the amount of backup data that needs to be restored, thereby improving Recovery efficiency of backup data.
  • the computing device determines whether the backup data is full backup data based on the identification of the backup data to be restored.
  • step S803 If yes, perform step S803; if not, perform step S808 to restore using the full data recovery method.
  • step S804 If yes, continue to execute step S804; if not, execute step S808.
  • step S808 If yes, perform step S808; if not, perform step S805.
  • the minimum backup data set can be determined based on a set of differential incremental backup data between the identifiers of the restored backup data and the backup data to be restored.
  • the backup method is cumulative incremental data backup
  • the minimum backup data set can be determined based on the cumulative incremental data corresponding to the backup data to be restored.
  • the minimum backup data set can determine the closest backup data to be restored as the restored backup data among the incremental backup data sequence numbers smaller than the backup data to be restored in the above step S805, and then the restored backup data is the same as the backup to be restored.
  • the difference data between data is the minimum backup data set.
  • the computing device performs recovery using incremental data recovery.
  • the computing device restores the above-mentioned minimum backup data set, and restores the backup data to be restored based on the restored backup data and the minimum backup data set.
  • the computing device resets the data change status.
  • resetting the data change status means updating the currently restored backup data, and accordingly, the data change status is also updated.
  • the identifier of the backup data to be restored is 1.1
  • the identifier of the restored backup data is 1. If the data change status indicating that the restored backup data is 1 or 0, it is used to indicate the backup data with the identifier 1 data change status; when the backup data identified as 1.1 is restored, the currently restored backup data should be updated to 1.1, and its data
  • the change status should also be updated, e.g. reset to -1, in contrast to the data change status above indicating whether the data has changed or not.
  • the backup data recovery method provided through the above steps S801-S809 helps the user determine the specific recovery method according to the different states of the backup data, and determine the minimum backup data set when the restored backup data is available, so as to achieve the goal of achieving the goal through comparison. Use as little time and computing resources as possible to restore the required backup data with the highest possible efficiency.
  • the backup data recovery device includes at least one of a hardware structure and a software module corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
  • Embodiments of the present application can divide the backup data recovery device (such as a computing device) into functional units according to the above method examples.
  • each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one in the processing unit.
  • the above integrated units can be implemented in the form of hardware or software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
  • FIG. 9 shows a possible structural diagram of the computing device involved in the above embodiment.
  • the computing device 90 includes an acquisition unit 901 and a processing unit 902 .
  • the obtaining unit 901 is used to obtain the identification of the backup data to be restored. For example, the above steps S401 and S801.
  • the acquisition unit 901 is also used to obtain the restored backup data according to the identification of the backup data to be restored when it is determined that the backup data to be restored is incremental backup data; wherein the restored backup data and the backup data to be restored are based on the same full backup
  • the backup data obtained by the data, the backup time of the restored backup data is earlier than the backup time of the backup data to be restored. For example, the above-mentioned steps S402 and S805.
  • the processing unit 902 is configured to restore the backup data to be restored according to the incremental data recovery method when it is determined that the restored backup data has not been changed.
  • the incremental backup data recovery method refers to the method based on the backup data to be restored and the restored backup data. The difference between the backup data, the incremental backup data, and the way to restore the backup data to be restored. For example, the above-mentioned steps S403 and S807.
  • the processing unit 902 is specifically configured to: read the differential incremental backup data between the restored backup data and the backup data to be restored according to the identifier of the restored backup data and the identifier of the backup data to be restored; Differential incremental backup data and restored backup data restore the backup data to be restored.
  • the processing unit 902 is also configured to: after restoring the restored backup data, when the restored backup data undergoes data changes, record the data change status of the restored backup data as changed; when the restored backup data When no data changes are made, the data change status of the restored backup data is recorded as unchanged; based on the data change status of the restored backup data, it is determined whether the restored backup data has changed.
  • the processing unit 902 is also configured to: after restoring the restored backup data, when the restored backup data undergoes data changes, record the data change status of the restored backup data; when the restored backup data does not undergo data changes, When changing, the data change status of the restored backup data is not recorded; based on whether the data change status of the restored backup data is recorded, it is determined whether the restored backup data has changed.
  • the processing unit 902 is also configured to replace the operating system's file system writing function with the MyWrite writing file system function, which is used to record the data change status of the restored backup data.
  • the processing unit 902 is also configured to: if the identifier of the backup data to be restored is an incremental backup identifier, confirm The backup data to be restored is incremental backup data.
  • the identifier of the backup data to be restored includes a full backup data sequence number and an incremental backup data sequence number.
  • the processing unit 902 is specifically configured to: if the incremental backup data identifier includes an incremental backup data sequence number, determine Restoring backup data is incremental backup data.
  • the processing unit 902 is also configured to: when the backup data to be restored is full backup data, restore the backup data to be restored according to a full data recovery method; where the full data recovery method refers to the backup data to be restored. All data for data recovery.
  • the processing unit 902 is also configured to: when it is determined that the backup data has been restored and the data has been changed, restore the backup data to be restored according to the full data recovery method; where the full data recovery method refers to the backup data to be restored All data in the file can be recovered.
  • the computing device provided by the embodiment of the present application includes but is not limited to the above-mentioned units.
  • the computing device may also include a storage unit 903.
  • Storage unit 903 may be used to store program codes and data for the computing device.
  • the acquisition unit 901 in the computing device 90 can correspondingly execute the function of the receiving unit in the communication interface 203 in FIG. 2
  • the processing unit 902 can correspondingly execute the function of the processor 201 in FIG. 2 .
  • Embodiments of the present application also provide a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium. When the computer program is run on a computer, it causes the computer to execute any of the computing devices provided above. The method performed.
  • An embodiment of the present application also provides a chip.
  • the chip integrates a control circuit and one or more ports for implementing the above computing device functions.
  • the functions supported by this chip can be referred to above and will not be described again here.
  • the program may be stored in a computer-readable storage medium.
  • the storage medium mentioned above may be a read-only memory, a random access memory, etc.
  • the above-mentioned processing unit or processor can be a central processing unit, a general-purpose processor, an application specific integrated circuit (ASIC), a microprocessor (digital signal processor, DSP), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
  • ASIC application specific integrated circuit
  • DSP digital signal processor
  • FPGA field programmable gate array
  • Embodiments of the present application also provide a computer program product containing instructions. When the instructions are run on a computer, they cause the computer to perform any of the methods in the above embodiments.
  • the computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, processes or functions according to embodiments of the present application are generated in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., computer instructions may be transmitted from a website, computer, server or data center via a wired (e.g.
  • Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless means to transmit to another website, computer, server or data center.
  • Computer-readable storage media can be any available media that can be accessed by a computer or include one or more data storage devices such as servers and data centers that can be integrated with the media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, SSD), etc.
  • the computer program product includes one or more computer instructions.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., computer instructions may be transmitted from a website, computer, server or data center via a wired (e.g.
  • Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless means to transmit to another website, computer, server or data center.
  • Computer-readable storage media can be any available media that can be accessed by a computer or include one or more data storage devices such as servers and data centers that can be integrated with the media. Available media may be magnetic media (eg, floppy disk, hard disk, tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc.

Abstract

A backup data recovery method and a computing device, relating to the technical field of data backup and recovery, and used for reducing resources occupied during data recovery and improving the efficiency of data recovery. The method comprises: obtaining an identifier of backup data to be recovered (S401); when it is determined that the backup data to be recovered is incremental backup data, obtaining recovered backup data according to the identifier of the backup data to be recovered (S402), wherein the recovered backup data and the backup data to be recovered are backup data obtained on the basis of the same full backup data, and the backup time of the recovered backup data is earlier than the backup time of the backup data to be recovered; and when it is determined that the recovered backup data is not subjected to data change, according to an incremental data recovery mode, recovering the backup data to be recovered, wherein the incremental backup data recovery mode is to recover, on the basis of differential incremental backup data between the backup data to be recovered and the recovered backup data, the backup data to be recovered (S403).

Description

备份数据恢复方法及计算设备Backup data recovery method and computing device
本申请要求于2022年07月30日提交国家知识产权局、申请号为202210912494.5、申请名称为“备份数据恢复方法及计算设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on July 30, 2022, with the application number 202210912494.5 and the application name "Backup Data Recovery Method and Computing Device", the entire content of which is incorporated into this application by reference. middle.
技术领域Technical field
本申请涉及数据备份与恢复领域,尤其涉及一种备份数据恢复方法及计算设备。This application relates to the field of data backup and recovery, and in particular to a backup data recovery method and computing device.
背景技术Background technique
当前,通常采用全量数据备份方式和增量数据备份方式进行数据备份,全量数据备份方式是指对全部数据进行备份,增量数据备份方式是指基于上一次备份数据所产生的差异数据进行备份。例如,在第一天,采用全量数据备份方式进行备份,在第二天,将基于第一天的全量数据所产生的差异数据进行备份,即采用增量数据备份方式进行备份。通过结合全量数据备份方式与增量数据备份方式实现降低备份数据时所占用的计算资源以及时间成本。然而,在恢复备份数据时,通常采用全量数据恢复方式,对全部备份数据进行恢复。例如,恢复第一天的备份数据时,对全量数据进行恢复;恢复第二天的备份数据时,对第一天的全量数据以及第二天的增量数据进行恢复,进而得到第二天的全部数据。对于恢复备份数据时所占用的资源没有合适的方式进行缩减,导致备份数据的恢复效率较低。Currently, full data backup and incremental data backup are usually used for data backup. The full data backup method refers to backing up all data, and the incremental data backup method refers to backing up based on the differential data generated from the last backup data. For example, on the first day, the full data backup method is used for backup, and on the second day, the differential data generated based on the first day's full data is backed up, that is, the incremental data backup method is used for backup. By combining the full data backup method and the incremental data backup method, the computing resources and time costs occupied when backing up data are reduced. However, when restoring backup data, full data recovery is usually used to restore all backup data. For example, when restoring the first day's backup data, the full data is restored; when restoring the second day's backup data, the first day's full data and the second day's incremental data are restored, and then the next day's backup data is obtained. All data. There is no suitable way to reduce the resources occupied when restoring backup data, resulting in low recovery efficiency of backup data.
发明内容Contents of the invention
本申请实施例提供了一种备份数据恢复方法及计算设备,用于降低恢复数据时所占用的资源,提升恢复数据的效率。Embodiments of the present application provide a backup data recovery method and computing device, which are used to reduce the resources occupied when recovering data and improve the efficiency of data recovery.
为达到上述目的,本申请实施例提供如下技术方案:In order to achieve the above objectives, the embodiments of this application provide the following technical solutions:
第一方面,提供了一种备份数据恢复方法,包括:获取待恢复备份数据的标识;在确定待恢复备份数据是增量备份数据时,根据待恢复备份数据的标识,获取已恢复备份数据;其中,已恢复备份数据与待恢复备份数据是基于同一全量备份数据得到的备份数据,已恢复备份数据的备份时间早于待恢复备份数据的备份时间;在确定已恢复备份数据未进行数据变更的情况下,按照增量数据恢复方式恢复待恢复备份数据;其中,增量备份数据恢复方式是指基于待恢复备份数据与已恢复备份数据之间的差异增量备份数据,恢复待恢复备份数据的方式。In the first aspect, a backup data recovery method is provided, which includes: obtaining the identification of the backup data to be restored; when determining that the backup data to be restored is incremental backup data, obtaining the restored backup data according to the identification of the backup data to be restored; Among them, the restored backup data and the backup data to be restored are backup data based on the same full backup data. The backup time of the restored backup data is earlier than the backup time of the backup data to be restored; when it is determined that no data changes have been made to the restored backup data. In this case, restore the backup data to be restored according to the incremental data recovery method; where the incremental backup data recovery method refers to the method of restoring the backup data to be restored based on the incremental backup data based on the difference between the backup data to be restored and the restored backup data. Way.
当前,对于备份数据恢复均采用全量数据恢复方式,在恢复备份数据过程中,占用较多的资源,恢复效率较低。对此,采用本申请提出的备份数据恢复方法,在待恢复备份数据为增量备份数据时,通过监听已恢复备份数据是否发生变更,以确定已恢复备份数据是否可用,在已恢复备份数据可用的情况下,恢复增量备份数据,从而大幅度降低恢复备份数据时所占用的资源,提升恢复数据的效率。Currently, the full data recovery method is used to restore backup data. During the process of restoring backup data, it takes up a lot of resources and the recovery efficiency is low. In this regard, the backup data recovery method proposed in this application is adopted. When the backup data to be restored is incremental backup data, it is determined whether the restored backup data is available by monitoring whether the restored backup data is changed. When the restored backup data is available, In this case, incremental backup data is restored, thereby greatly reducing the resources occupied when restoring backup data and improving the efficiency of data restoration.
在一种可能的实现方式中,在确定已恢复备份数据未进行数据变更的情况下,按照增量数据恢复方式恢复待恢复备份数据,包括:根据已恢复备份数据的标识和待恢复备份数据的标识,读取已恢复备份数据与待恢复备份数据之间的差异增量备份数据;根据差异增量备份数据和已恢复备份数据恢复待恢复备份数据。In one possible implementation, when it is determined that no data changes have been made to the restored backup data, the backup data to be restored is restored according to the incremental data recovery method, including: based on the identification of the restored backup data and the identity of the backup data to be restored. Identification, read the differential incremental backup data between the restored backup data and the backup data to be restored; restore the backup data to be restored based on the differential incremental backup data and the restored backup data.
该种可能的实现方式中,提供了一种根据增量数据恢复方式恢复待恢复备份数据的具体 实现方式,其中,通过确定差异增量备份数据并进行恢复,再结合已恢复备份数据得到所需的备份数据。相比于恢复全部数据的方式,大幅度节省了恢复数据时所占用的计算资源和时间成本。This possible implementation method provides a specific method of restoring the backup data to be restored based on the incremental data recovery method. Implementation method, wherein the differential incremental backup data is determined and restored, and then the required backup data is obtained by combining the restored backup data. Compared with the method of recovering all data, it greatly saves the computing resources and time cost when recovering data.
在一种可能的实现方式中,该方法还包括:在恢复已恢复备份数据之后,当已恢复备份数据进行数据变更时,记录已恢复备份数据的数据变更状态为已变更;当已恢复备份数据未进行数据变更时,记录已恢复备份数据的数据变更状态为未变更;在获取已恢复备份数据之后,该方法还包括:基于已恢复备份数据的数据变更状态,确定已恢复备份数据是否发生变更。In a possible implementation, the method also includes: after restoring the restored backup data, when the restored backup data undergoes data changes, recording the data change status of the restored backup data as changed; when the restored backup data When no data changes are made, the data change status of the restored backup data is recorded as unchanged; after obtaining the restored backup data, the method also includes: based on the data change status of the restored backup data, determine whether the restored backup data has changed .
该种可能的实现方式中,提供了一种记录已恢复备份数据的数据变更状态的具体实现方式,提升方案可实施性。This possible implementation method provides a specific implementation method for recording the data change status of restored backup data, thereby improving the implementability of the solution.
在一种可能的实现方式中,该方法还包括:在恢复已恢复备份数据之后,当已恢复备份数据进行数据变更时,记录已恢复备份数据的数据变更状态;当已恢复备份数据未进行数据变更时,不记录已恢复备份数据的数据变更状态;在获取已恢复备份数据之后,该方法还包括:基于是否记录已恢复备份数据的数据变更状态,确定已恢复备份数据是否发生变更。In a possible implementation, the method also includes: after restoring the restored backup data, when the restored backup data undergoes data changes, recording the data change status of the restored backup data; when the restored backup data does not undergo data changes, When changing, the data change status of the restored backup data is not recorded; after obtaining the restored backup data, the method also includes: determining whether the restored backup data has changed based on whether the data change status of the restored backup data is recorded.
该种可能的实现方式中,提供了一种记录已恢复备份数据的数据变更状态的具体实现方式,提升方案可实施性。This possible implementation method provides a specific implementation method for recording the data change status of restored backup data, thereby improving the implementability of the solution.
在一种可能的实现方式中,在确定已恢复备份数据是否进行数据变更之前,该方法还包括:采用MyWrite写文件系统函数替换操作系统写文件系统函数,MyWrite写文件系统函数用于记录已恢复备份数据的数据变更状态。In a possible implementation, before determining whether data changes have been made to the restored backup data, the method also includes: using MyWrite to write the file system function to replace the operating system's writing file system function, and the MyWrite writing file system function is used to record the restored backup data. The data change status of the backup data.
该种可能的实现方式中,提供了一种实现记录已恢复备份数据的数据变更状态的具体实现方式,提升方案可实施性。This possible implementation method provides a specific implementation method for recording the data change status of restored backup data, thereby improving the implementability of the solution.
在一种可能的实现方式中,在获取待恢复备份数据的标识之后,该方法还包括:若待恢复备份数据的标识为增量备份标识,确定待恢复备份数据是增量备份数据。In one possible implementation, after obtaining the identifier of the backup data to be restored, the method further includes: if the identifier of the backup data to be restored is an incremental backup identifier, determining that the backup data to be restored is the incremental backup data.
该种可能的实现方式中,提供了一种根据待恢复备份数据的标识确定待恢复备份数据的备份数据类型的具体实现方式,通过确定待恢复备份数据为为增量备份数据,便于后续根据待恢复备份数据的备份数据类型确定恢复备份数据方式,提升方案可实施性。This possible implementation method provides a specific implementation method of determining the backup data type of the backup data to be restored based on the identification of the backup data to be restored. By determining that the backup data to be restored is incremental backup data, it is convenient to follow up based on the backup data to be restored. The backup data type for restoring backup data determines the method of restoring backup data, improving the implementability of the solution.
在一种可能的实现方式中,待恢复备份数据的标识包括全量备份数据序列号和增量备份数据序列号;若待恢复备份数据的标识为增量备份标识,确定待恢复备份数据是增量备份数据,包括:若增量备份数据标识包括增量备份数据序列号,确定待恢复备份数据是增量备份数据。In a possible implementation, the identifier of the backup data to be restored includes a full backup data sequence number and an incremental backup data sequence number; if the identifier of the backup data to be restored is an incremental backup identifier, determine that the backup data to be restored is an incremental Backup data, including: If the incremental backup data identifier includes the incremental backup data sequence number, it is determined that the backup data to be restored is incremental backup data.
该种可能的实现方式中,提供了一种根据待恢复备份数据的标识确定待恢复备份数据的备份数据类型的具体实现方式,根据标识中是否存在增量备份数据序列号,确定待恢复备份数据是否为增量备份数据,便于后续根据待恢复备份数据的备份数据类型确定恢复备份数据方式,提升方案可实施性。This possible implementation method provides a specific implementation method of determining the backup data type of the backup data to be restored based on the identification of the backup data to be restored, and determining the backup data to be restored based on whether there is an incremental backup data sequence number in the identification. Whether the backup data is incremental will facilitate the subsequent determination of the backup data recovery method based on the backup data type of the backup data to be restored, thereby improving the implementability of the solution.
在一种可能的实现方式中,该方法还包括:在待恢复备份数据为全量备份数据时,按照全量数据恢复方式恢复待恢复备份数据;其中,全量数据恢复方式是指对待恢复备份数据中的全部数据进行数据恢复。In a possible implementation, the method also includes: when the backup data to be restored is full backup data, restoring the backup data to be restored according to a full data recovery method; wherein the full data recovery method refers to the backup data to be restored. All data for data recovery.
该种可能的实现方式中,提供了当待恢复备份数据为全量备份数据时的恢复方式,有助于提升方案完整性。This possible implementation method provides a recovery method when the backup data to be restored is full backup data, which helps to improve the integrity of the solution.
在一种可能的实现方式中,该方法还包括:在确定已恢复备份数据进行数据变更的情况下,按照全量数据恢复方式恢复待恢复备份数据;其中,全量数据恢复方式是指对待恢复备 份数据中的全部数据进行数据恢复。In a possible implementation, the method also includes: when it is determined that the restored backup data has undergone data changes, restoring the backup data to be restored according to a full data recovery method; wherein the full data recovery method refers to the backup data to be restored. All data in the backup data can be recovered.
该种可能的实现方式中,提供了当已恢复备份数据发生数据变更时,待恢复备份数据的恢复方式,有助于提升方案完整性。This possible implementation method provides a recovery method for the backup data to be restored when data changes occur in the restored backup data, which helps to improve the integrity of the solution.
第二方面,提供了一种计算设备,包括:用于执行第一方面提供的任意一种方法的功能单元,各个功能单元所执行的动作通过硬件实现或通过硬件执行相应的软件实现。例如,计算设备可以包括:获取单元和处理单元;获取单元,用于获取待恢复备份数据的标识;获取单元,还用于在确定待恢复备份数据是增量备份数据时,根据待恢复备份数据的标识,获取已恢复备份数据;其中,已恢复备份数据与待恢复备份数据是基于同一全量备份数据得到的备份数据,已恢复备份数据的备份时间早于待恢复备份数据的备份时间。处理单元,用于在确定已恢复备份数据未进行数据变更的情况下,按照增量数据恢复方式恢复待恢复备份数据;其中,增量备份数据恢复方式是指基于待恢复备份数据与已恢复备份数据之间的差异增量备份数据,恢复待恢复备份数据的方式。A second aspect provides a computing device, including: a functional unit for executing any method provided in the first aspect, and the actions performed by each functional unit are implemented by hardware or by hardware executing corresponding software. For example, the computing device may include: an acquisition unit and a processing unit; an acquisition unit configured to acquire an identification of the backup data to be restored; an acquisition unit further configured to: when it is determined that the backup data to be restored is incremental backup data, according to the backup data to be restored The identifier is used to obtain the restored backup data; among them, the restored backup data and the backup data to be restored are backup data obtained based on the same full backup data, and the backup time of the restored backup data is earlier than the backup time of the backup data to be restored. The processing unit is used to restore the backup data to be restored according to the incremental data recovery method when it is determined that the restored backup data has not been changed. The incremental backup data recovery method refers to the method based on the backup data to be restored and the restored backup. The difference between the data, incremental backup data, and the way to restore the backup data to be restored.
第三方面,提供了一种计算设备,包括:处理器和存储器。处理器与存储器连接,存储器用于存储计算机执行指令,处理器执行存储器存储的计算机执行指令,从而实现第一方面提供的任意一种方法。In a third aspect, a computing device is provided, including: a processor and a memory. The processor is connected to the memory, the memory is used to store computer execution instructions, and the processor executes the computer execution instructions stored in the memory, thereby implementing any method provided in the first aspect.
第四方面,提供了一种芯片,该芯片包括:处理器和接口电路;接口电路,用于接收代码指令并传输至处理器;处理器,用于运行代码指令以执行第一方面提供的任意一种方法。The fourth aspect provides a chip, which includes: a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor is used to run the code instructions to execute any of the instructions provided in the first aspect. a way.
第五方面,提供了一种计算机可读存储介质,包括计算机执行指令,当计算机执行指令在计算机上运行时,使得计算机执行第一方面提供的任意一种方法。In a fifth aspect, a computer-readable storage medium is provided, which includes computer-executable instructions. When the computer-executable instructions are run on a computer, they cause the computer to execute any method provided in the first aspect.
第六方面,提供了一种计算机程序产品,包括计算机执行指令,当计算机执行指令在计算机上运行时,使得计算机执行第一方面提供的任意一种方法。A sixth aspect provides a computer program product, which includes computer execution instructions. When the computer execution instructions are run on a computer, they cause the computer to execute any method provided in the first aspect.
第二方面至第六方面中的任一种实现方式所带来的技术效果可参见第一方面中对应实现方式所带来的技术效果,此处不再赘述。The technical effects brought by any implementation method in the second to sixth aspects can be found in the technical effects brought by the corresponding implementation method in the first aspect, and will not be described again here.
附图说明Description of drawings
图1为一种数据备份与恢复的场景示意图;Figure 1 is a schematic diagram of a data backup and recovery scenario;
图2为本申请实施例提供的一种计算设备的硬件结构示意图;Figure 2 is a schematic diagram of the hardware structure of a computing device provided by an embodiment of the present application;
图3为本申请实施例提供的一种差异增量数据备份方式的示意图;Figure 3 is a schematic diagram of a differential incremental data backup method provided by an embodiment of the present application;
图4为本申请实施例提供的一种备份数据恢复方法的流程示意图;Figure 4 is a schematic flow chart of a backup data recovery method provided by an embodiment of the present application;
图5为本申请实施例提供的一种操作系统的示意图;Figure 5 is a schematic diagram of an operating system provided by an embodiment of the present application;
图6为本申请实施例提供的一种增量备份数据恢复方式的示意图;Figure 6 is a schematic diagram of an incremental backup data recovery method provided by an embodiment of the present application;
图7为本申请实施例提供的一种累积增量数据备份方式的示意图;Figure 7 is a schematic diagram of a cumulative incremental data backup method provided by an embodiment of the present application;
图8为本申请实施例提供的一种备份数据恢复方法的流程示意图;Figure 8 is a schematic flow chart of a backup data recovery method provided by an embodiment of the present application;
图9为本申请实施例提供的一种计算设备的组成示意图。Figure 9 is a schematic diagram of the composition of a computing device provided by an embodiment of the present application.
具体实施方式Detailed ways
在本申请的描述中,除非另有说明,“/”表示“或”的意思,例如,A/B可以表示A或B。本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。此外,“至少一个”是指一个或多个,“多个”是指两个或两个以上。“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。 In the description of this application, unless otherwise stated, "/" means "or". For example, A/B can mean A or B. "And/or" in this article is just an association relationship that describes related objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone these three situations. In addition, "at least one" means one or more, and "plurality" means two or more. Words such as "first" and "second" do not limit the quantity and order of execution, and words such as "first" and "second" do not limit the number or order of execution.
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that in this application, words such as “exemplary” or “for example” are used to represent examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "such as" is not intended to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary" or "such as" is intended to present the concept in a concrete manner.
当前,数据备份与恢复可应用于如图1所示的场景中,包括生产系统和备份系统,其中,生产系统可以理解为用户主机,用于满足用户对数据的处理需求。备份系统用于定期复制生产系统的数据,当生产系统发生故障时,能够为用户恢复备份数据,避免造成数据丢失。另外,当备份系统具备生产系统中的数据处理能力时,还可以作为替换的生产系统,便于用户在生产系统无法使用时,通过备份系统对备份数据进行读取或写入。其中,生产系统中包括计算设备和存储设备,处理设备用于调用存储设备中的数据进行处理。其中,处理设备通过操作系统中保存的计算机指令完成用户针对应用指定的任务,该过程包含对应用的数据处理过程。备份代理(agent)作为备份系统与生产系统之间的通信模块,用于识别生产系统中的信息并将数据复制至备份系统,实现备份系统与生产系统之间的交互。备份系统中同样包含计算设备与存储设备,以实现对备份数据的处理与存储。Currently, data backup and recovery can be applied to scenarios as shown in Figure 1, including production systems and backup systems. The production system can be understood as the user host, used to meet the user's data processing needs. The backup system is used to regularly copy the data of the production system. When the production system fails, the backup data can be restored for users to avoid data loss. In addition, when the backup system has the data processing capabilities of the production system, it can also be used as a replacement production system, allowing users to read or write backup data through the backup system when the production system is unavailable. Among them, the production system includes computing equipment and storage equipment, and the processing equipment is used to call data in the storage device for processing. Among them, the processing device completes the tasks specified by the user for the application through computer instructions saved in the operating system, and this process includes the data processing process for the application. As a communication module between the backup system and the production system, the backup agent is used to identify the information in the production system and copy the data to the backup system to realize the interaction between the backup system and the production system. The backup system also includes computing devices and storage devices to process and store backup data.
本申请实施例对计算设备的具体形式不作任何限制。例如,计算设备具体可以是终端装置,也可以是网络设备。其中,终端装置可以被称为:终端、用户设备(user equipment,UE)、终端设备、移动设备、用户终端、无线通信设备等。终端装置具体可以是手机、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等。网络设备具体可以是服务器等。其中,服务器可以是一个物理或逻辑服务器,也可以是有两个或两个以上分担不同职责的物理或逻辑服务器、相互协同来实现服务器的各项功能。The embodiments of this application do not place any restrictions on the specific form of the computing device. For example, the computing device may be a terminal device or a network device. Among them, the terminal device may be called: terminal, user equipment (UE), terminal equipment, mobile device, user terminal, wireless communication equipment, etc. The terminal device may be a mobile phone, an augmented reality (AR) device, a virtual reality (VR) device, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, or a personal computer. Digital assistant (personal digital assistant, PDA), etc. The network device may specifically be a server, etc. Among them, the server can be a physical or logical server, or there can be two or more physical or logical servers that share different responsibilities and cooperate with each other to realize various functions of the server.
在一种可能的实现方式中,生产系统与备份系统可以通过网络进行通信。可选的,通信网络是有线网络或无线网络。In a possible implementation, the production system and the backup system can communicate through a network. Optionally, the communication network is a wired network or a wireless network.
可选的,上述的无线网络或有线网络使用标准通信技术和/或协议。网络通常为因特网、但也可以是任何网络,包括但不限于局域网(local area network,LAN)、城域网(metropolitan area network,MAN)、广域网(wide area network,WAN)、移动、有线或者无线网络、专用网络或者虚拟专用网络的任何组合。在一些实施例中,使用包括超文本标记语言(hyper text mark-up language,HTML)、可扩展标记语言(extensible markup language,XML)等的技术和/或格式来代表通过网络交换的数据。此外还可以使用诸如安全套接字层(secure socket layer,SSL)、传输层安全(transport layer security,TLS)、虚拟专用网络(virtual private network,VPN)、网际协议安全(internet protocol security,IPsec)等常规加密技术来加密所有或者一些链路。在另一些实施例中,还可以使用定制和/或专用数据通信技术取代或者补充上述数据通信技术。Optionally, the above-mentioned wireless network or wired network uses standard communication technologies and/or protocols. The network is usually the Internet, but can be any network, including but not limited to local area network (LAN), metropolitan area network (MAN), wide area network (WAN), mobile, wired or wireless Any combination of networks, private networks, or virtual private networks. In some embodiments, data exchanged over the network is represented using technologies and/or formats including hypertext mark-up language (HTML), extensible markup language (XML), etc. In addition, you can also use protocols such as secure socket layer (SSL), transport layer security (TLS), virtual private network (VPN), and Internet protocol security (IPsec). Wait for conventional encryption techniques to encrypt all or some links. In other embodiments, customized and/or dedicated data communication technologies may also be used in place of or in addition to the above-described data communication technologies.
本申请实施例提供了一种备份数据恢复方法,可应用于计算设备。本申请实施例对计算设备的具体形式不作任何限制。例如,具体可以是终端装置。其中,终端装置可以被称为:终端、用户设备(user equipment,UE)、终端设备、用户终端、无线通信设备、用户代理或用户装置等。终端装置具体可以是手机、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等。Embodiments of the present application provide a backup data recovery method, which can be applied to computing devices. The embodiments of this application do not place any restrictions on the specific form of the computing device. For example, it may specifically be a terminal device. Wherein, the terminal device may be called: terminal, user equipment (UE), terminal equipment, user terminal, wireless communication device, user agent or user device, etc. The terminal device may be a mobile phone, an augmented reality (AR) device, a virtual reality (VR) device, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, or a personal computer. Digital assistant (personal digital assistant, PDA), etc.
可以理解的是,计算设备可以为上述生产系统或备份系统对应的装置,或者,也可以为 集成生产系统和备份系统对应的装置,或者还可以为能够获取备份系统中备份数据所对应的装置。It can be understood that the computing device can be a device corresponding to the above-mentioned production system or backup system, or it can also be a device corresponding to the above-mentioned production system or backup system. A device corresponding to the integrated production system and the backup system, or a device corresponding to the backup data in the backup system.
在本申请中,计算设备的结构可以如图2所示。如图2所示,为本申请实施例提供的一种计算设备20的硬件结构示意图。计算设备20可以用于实现上述计算设备的功能。In this application, the structure of the computing device may be as shown in Figure 2. As shown in FIG. 2 , it is a schematic diagram of the hardware structure of a computing device 20 provided by an embodiment of the present application. The computing device 20 may be used to implement the functions of the computing device described above.
图2所示的计算设备20可以包括:处理器201、存储器202、通信接口203以及总线204。处理器201、存储器202以及通信接口203之间可以通过总线204连接。The computing device 20 shown in FIG. 2 may include: a processor 201, a memory 202, a communication interface 203, and a bus 204. The processor 201, the memory 202 and the communication interface 203 may be connected through a bus 204.
处理器201是计算设备20的控制中心,可以是一个通用中央处理单元(central processing unit,CPU),也可以是其他通用处理器等。其中,通用处理器可以是微处理器或者是任何常规的处理器等。The processor 201 is the control center of the computing device 20 and can be a general central processing unit (CPU) or other general processor. The general processor may be a microprocessor or any conventional processor.
作为示例,处理器201可以包括一个或多个CPU,例如图2中所示的CPU 0和CPU 1。As an example, processor 201 may include one or more CPUs, such as CPU 0 and CPU 1 shown in FIG. 2 .
存储器202可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。Memory 202 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory (RAM)) or other type that can store information and instructions. A dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or can be used to carry or store instructions or data structures. The desired program code and any other medium capable of being accessed by a computer, without limitation.
一种可能的实现方式中,存储器202可以独立于处理器201存在。存储器202可以通过总线204与处理器201相连接,用于存储数据、指令或者程序代码。处理器201调用并执行存储器202中存储的指令或程序代码时,能够实现本申请实施例提供的备份数据恢复方法。In a possible implementation, the memory 202 may exist independently of the processor 201. The memory 202 can be connected to the processor 201 through the bus 204 for storing data, instructions or program codes. When the processor 201 calls and executes the instructions or program codes stored in the memory 202, it can implement the backup data recovery method provided by the embodiment of the present application.
另一种可能的实现方式中,存储器202也可以和处理器201集成在一起。In another possible implementation, the memory 202 can also be integrated with the processor 201 .
通信接口203,用于计算设备20与其他设备通过通信网络连接,该通信网络可以是以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。通信接口203可以包括用于接收数据的接收单元,以及用于发送数据的发送单元。The communication interface 203 is used to connect the computing device 20 with other devices through a communication network. The communication network can be Ethernet, wireless access network (radio access network, RAN), wireless local area networks (WLAN), etc. The communication interface 203 may include a receiving unit for receiving data, and a transmitting unit for transmitting data.
总线204,可以是工业标准体系结构(industry standard architecture,ISA)总线、外部设备互连(peripheral component interconnect,PCI)总线或扩展工业标准体系结构(extended industry standard architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图2中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 204 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 2, but it does not mean that there is only one bus or one type of bus.
需要指出的是,图2中示出的结构并不构成对计算设备20的限定,除图2所示部件之外,计算设备20可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be noted that the structure shown in Figure 2 does not constitute a limitation on the computing device 20. In addition to the components shown in Figure 2, the computing device 20 may include more or less components than shown in the figure, or a combination of certain components. components, or different component arrangements.
当前,在备份数据时,为了节约资源,提出增量数据备份方式,基于备份数据所产生的差异数据进行备份。其中,包括差异增量数据备份和累积增量数据备份两种方式,以下针对两种增量数据备份方式,结合附图,说明本申请实施例提供的技术方案。Currently, in order to save resources when backing up data, an incremental data backup method is proposed, which is based on the differential data generated by the backup data. Among them, there are two methods of differential incremental data backup and cumulative incremental data backup. The following is a description of the technical solutions provided by the embodiments of the present application with respect to the two incremental data backup methods in conjunction with the accompanying drawings.
如图3所示,为一种差异增量数据备份方式的示意图。差异增量数据备份方式是指,基于上一次备份数据所产生的差异数据进行备份。例如,在第一天采用全量数据备份方式对全部数据进行备份;在第二天采用差异增量数据备份方式,对基于第一天的全部数据所产生的差异数据进行备份;在第三天采用差异增量数据备份方式,对基于第二天的全部数据所产生的差异数据进行备份;在第四天采用差异增量数据备份方式,对基于第三天的全部数据所产生的差异数据进行备份;在第五天采用全量数据备份方式对全部数据进行备份。As shown in Figure 3, it is a schematic diagram of a differential incremental data backup method. The differential incremental data backup method refers to backing up based on the differential data generated from the last backup data. For example, on the first day, use the full data backup method to back up all data; on the second day, use the differential incremental data backup method to back up the differential data generated based on all the data on the first day; on the third day, use The differential incremental data backup method is used to back up the differential data generated based on all the data on the second day; the differential incremental data backup method is used on the fourth day to back up the differential data generated based on all the data on the third day. ; Use full data backup method to back up all data on the fifth day.
其中,第一天、第五天的备份数据为全量备份数据,第二天、第三天和第四天的备份数据为增量备份数据。全量备份数据是指全部数据,增量备份数据是指基于已备份数据所产生 的差异数据。上述全量备份数据与增量备份数据为备份数据的类型,与备份方式一一对应,即采用全量数据备份方式得到全量备份数据,采用增量数据备份方式得到增量备份数据。Among them, the backup data on the first and fifth days are full backup data, and the backup data on the second, third and fourth days are incremental backup data. Full backup data refers to all data, and incremental backup data refers to data generated based on the backed up data. difference data. The above-mentioned full backup data and incremental backup data are backup data types and correspond to the backup methods one-to-one, that is, the full data backup method is used to obtain full backup data, and the incremental data backup method is used to obtain incremental backup data.
可以理解的是,第二天、第三天以及第四天的增量备份数据并不代表该第二天、第三天以及第四天的全部数据。也就是说,若要获取第二天的全部数据,需要恢复第一天的全量备份数据以及第二天的增量备份数据,根据恢复后的全量备份数据以及第二天的增量备份数据得到第二天的全部数据;类似地,获取第三天的全部数据,需要恢复第一天的全量备份数据、第二天的增量备份数据以及第三天的增量备份数据,根据恢复后的全量备份数据、第二天的增量备份数据以及第三天的增量备份数据得到第三天的全部数据。It is understandable that the incremental backup data on the second, third and fourth days do not represent all the data on the second, third and fourth days. In other words, if you want to obtain all the data for the next day, you need to restore the full backup data of the first day and the incremental backup data of the next day. Based on the restored full backup data and the incremental backup data of the next day, you can obtain All the data of the second day; similarly, to obtain all the data of the third day, you need to restore the full backup data of the first day, the incremental backup data of the second day and the incremental backup data of the third day. According to the restored The full backup data, the incremental backup data of the next day, and the incremental backup data of the third day are used to obtain all the data of the third day.
可以理解的是,备份差异数据相对于备份全部数据,有助于实现通过较少的计算资源与时间成本完成数据备份,从而大幅度地提升备份数据的效率。It is understandable that compared with backing up all data, backing up differential data helps to complete data backup with less computing resources and time costs, thus greatly improving the efficiency of backing up data.
其中,上述第一天、第二天等时间信息表示备份时间。例如,上述第一天可以理解为开始备份的时间,第二天至第四天可以理解为针对备份数据所产生差异数据的备份时间,第五天可以理解为对数据进行完整备份的时间,例如周末。假设以全量数据备份时间为一个备份周期,那么通过周期性进行全量数据备份,在周期内采用差异增量数据备份,有助于提升备份数据的效率的同时保证备份数据的准确性。Among them, the above time information such as the first day and the second day represents the backup time. For example, the first day mentioned above can be understood as the time to start the backup, the second to the fourth day can be understood as the backup time for the differential data generated by the backup data, and the fifth day can be understood as the time for complete backup of the data, for example weekend. Assuming that the full data backup time is a backup cycle, then performing full data backup periodically and using differential incremental data backup within the cycle will help improve the efficiency of backup data while ensuring the accuracy of the backup data.
针对上述差异增量数据备份方式得到的备份数据,当前,在恢复备份数据时,通常采用全量数据恢复方式,如上文描述获取第二天、第三天的全部数据时所执行的恢复动作。然而,该种恢复方式较为繁琐,恢复过程占用较多的计算资源与时间成本。对此,本申请提出一种备份数据恢复方法,通过监听已恢复备份数据是否发生变更,以确定已恢复备份数据是否可用,在已恢复备份数据可用的情况下,恢复增量备份数据,从而大幅度降低恢复备份数据时所占用的资源。For the backup data obtained by the above differential incremental data backup method, currently, when restoring the backup data, the full data recovery method is usually used, as described above for the recovery actions performed when obtaining all the data of the second and third days. However, this recovery method is more cumbersome, and the recovery process takes up more computing resources and time costs. In this regard, this application proposes a backup data recovery method, which determines whether the restored backup data is available by monitoring whether the restored backup data has changed, and restores the incremental backup data when the restored backup data is available, thereby maximizing the Significantly reduces the resources consumed when restoring backup data.
如图4所示,为本申请实施例提供的一种备份数据恢复方法的流程图。该方法包括:As shown in Figure 4, it is a flow chart of a backup data recovery method provided by an embodiment of the present application. The method includes:
S401、获取待恢复备份数据的标识。S401. Obtain the identifier of the backup data to be restored.
可以理解的是,本申请提供的方法用于恢复备份数据,当计算设备能够获取备份数据并具备恢复备份数据的能力时,即可执行本申请实施例提供的方法。因此,当生产系统或备份系统恢复备份数据时,可以执行本申请实施例提供的方法。或者,当集成生产系统和备份系统的装置恢复备份数据时,可以执行本申请实施例提供的方法。或者,当其他设备恢复备份数据时,例如在生产系统和/或备份系统恢复数据的处理装置发生故障时,其他设备在获取备份数据的前提下,可以通过执行本申请实施例提供的方法实现恢复备份数据。本申请对此不作任何限制。It can be understood that the method provided by the present application is used to restore backup data. When the computing device can obtain the backup data and has the ability to restore the backup data, the method provided by the embodiment of the present application can be executed. Therefore, when the production system or backup system restores the backup data, the method provided by the embodiment of the present application can be executed. Alternatively, when the device integrating the production system and the backup system restores the backup data, the method provided by the embodiment of the present application can be executed. Alternatively, when other equipment restores backup data, for example, when the production system and/or the backup system's data recovery processing device fails, other equipment can achieve recovery by executing the method provided by the embodiments of the present application on the premise of obtaining the backup data. Back up your data. This application does not impose any restrictions on this.
其中,待恢复备份数据是指用户需要获取的目标数据。待恢复备份数据的标识用于指示目标数据。Among them, the backup data to be restored refers to the target data that the user needs to obtain. The identifier of the backup data to be restored is used to indicate the target data.
在一种可能的实现方式中,待恢复备份数据的标识包括全量备份数据序列号和增量备份数据序列号。示例性的,如下表1所示,为一种备份数据的标识所指示信息的示例。In a possible implementation manner, the identification of the backup data to be restored includes a full backup data sequence number and an incremental backup data sequence number. Illustratively, as shown in Table 1 below, it is an example of the information indicated by the identifier of the backup data.
表1

Table 1

其中,在上表1中,标识指示唯一的备份数据,该备份数据具有相应的全量备份数据序列号和增量备份数据序列号。如上表1中所示,标识以X.Y的序列号形式表示,其中,X为全量备份序列号,表示全量备份数据的序列号。Y为增量备份序列号,表示基于全量备份数据X的增量备份数据的序列号。X和Y均为大于零的自然数。例如,第一天的备份数据的标识为1,根据其标识可知,该备份数据的备份方式为全量数据备份方式;第二天的备份数据的标识为1.1,根据其标识可知,该备份数据的备份方式为增量数据备份方式,并且该增量备份数据的标识为1.1,其相应的全量备份数据的标识为1,即以第一天的备份数据为基础,采用增量数据备份方式进行备份。Among them, in Table 1 above, the identifier indicates unique backup data, and the backup data has corresponding full backup data sequence numbers and incremental backup data sequence numbers. As shown in Table 1 above, the identification is expressed in the form of a serial number of X.Y, where X is the full backup serial number, indicating the serial number of the full backup data. Y is the incremental backup sequence number, which represents the sequence number of the incremental backup data based on the full backup data X. Both X and Y are natural numbers greater than zero. For example, the identifier of the backup data on the first day is 1. According to its identifier, it can be known that the backup method of the backup data is the full data backup method; the identifier of the backup data of the second day is 1.1. According to its identifier, it can be known that the backup data of the backup data is 1.1. The backup method is incremental data backup, and the identifier of the incremental backup data is 1.1, and the identifier of the corresponding full backup data is 1, that is, based on the backup data of the first day, the incremental data backup method is used for backup. .
可以理解的是,采用上述序列号与备份数据的备份时间具有对应关系,例如,按照由小到大的序列号表示备份数据,各个备份数据对应各自的备份时间,序列号较小的备份数据对应的备份时间较早,序列号较大的备份数据对应的备份时间较晚。通过上述序列号表示备份数据的方式,有助于提升用户定位所需备份数据的效率,便于查找。It can be understood that the above-mentioned serial number has a corresponding relationship with the backup time of the backup data. For example, the backup data is represented by serial numbers from small to large, each backup data corresponds to its own backup time, and the backup data with a smaller serial number corresponds to The backup time is earlier, and the backup data with larger serial number corresponds to a later backup time. The above serial number representation of backup data helps improve the efficiency of users in locating the required backup data and facilitates search.
另外,在上述示例中,在增量备份数据的标识前携带全量备份数据的标识,有助于计算设备确定该增量备份数据所对应的全量备份数据。例如,上述标识为1.1的备份数据用于指示基于全量备份数据1的第一个增量备份数据,标识为1.2的备份数据用于指示基于全量备份数据1的第2个增量备份数据。In addition, in the above example, carrying the identifier of the full backup data before the identifier of the incremental backup data helps the computing device determine the full backup data corresponding to the incremental backup data. For example, the backup data identified as 1.1 is used to indicate the first incremental backup data based on the full backup data 1, and the backup data identified as 1.2 is used to indicate the second incremental backup data based on the full backup data 1.
可以理解的是,上述待恢复备份数据的标识中不包含增量备份数据序列号时,表示该待恢复备份数据为全量备份数据。在另一种可能的实现方式中,增量备份数据序列号可以为零,用于表示待恢复备份数据为全量备份数据。It can be understood that when the identification of the backup data to be restored does not include the incremental backup data sequence number, it means that the backup data to be restored is full backup data. In another possible implementation, the incremental backup data sequence number may be zero, indicating that the backup data to be restored is full backup data.
需要说明的是,上述以序列号形式作为备份数据的标识仅作为示例,还可以按照字母序列或者其他形式作为备份数据的标识,本申请实施例对此不做限制。It should be noted that the above-mentioned identification of backup data in the form of serial numbers is only an example. The identification of backup data can also be in the form of alphabetical sequences or other forms, and this embodiment of the present application does not limit this.
S402、在确定待恢复备份数据是增量备份数据时,根据待恢复备份数据的标识,获取已恢复备份数据。S402. When it is determined that the backup data to be restored is incremental backup data, obtain the restored backup data according to the identification of the backup data to be restored.
其中,已恢复备份数据与待恢复备份数据是基于同一全量备份数据得到的备份数据,已恢复备份数据的备份时间早于待恢复备份数据的备份时间。Among them, the restored backup data and the backup data to be restored are backup data based on the same full backup data, and the backup time of the restored backup data is earlier than the backup time of the backup data to be restored.
可选的,计算设备根据待恢复备份数据的标识确定待恢复备份数据是否为增量备份数据。如上述步骤S401中描述的待恢复备份数据的标识,当待恢复备份数据的增量备份序列号存在时,则表示该待恢复备份数据为增量备份数据。类似地,若不满足上述情况,则表示该待恢复备份数据为全量备份数据。Optionally, the computing device determines whether the backup data to be restored is incremental backup data based on the identification of the backup data to be restored. As described in the above step S401 of the identification of the backup data to be restored, when the incremental backup sequence number of the backup data to be restored exists, it means that the backup data to be restored is incremental backup data. Similarly, if the above conditions are not met, it means that the backup data to be restored is full backup data.
可以理解的是,当待恢复备份数据是全量备份数据时,计算设备按照全量数据恢复方式恢复该待恢复备份数据。其中,全量数据恢复方式是指对待恢复备份数据中的全部数据进行数据恢复。示例性的,如表1所示的备份数据与标识的对应关系,当待恢复备份数据的标识为1或2时,则计算设备确定待恢复备份数据是全量备份数据,按照全量数据恢复方式直接恢复待恢复备份数据。It can be understood that when the backup data to be restored is full backup data, the computing device restores the backup data to be restored according to the full data recovery method. Among them, the full data recovery method refers to data recovery of all data in the backup data to be restored. For example, as shown in Table 1, the corresponding relationship between backup data and identifiers, when the identifier of the backup data to be restored is 1 or 2, the computing device determines that the backup data to be restored is full backup data, and directly restores the data according to the full data recovery method. Restore the backup data to be restored.
可选的,计算设备根据待恢复备份数据的标识中的全量备份序列号和增量备份序列号获取已恢复备份数据。以步骤S401中的标识方式确定已恢复备份数据,具体地,根据待恢复备份数据的全量备份序列号确定具有相同全量备份序列号的第一已恢复备份数据集合。再根据第一已恢复备份数据集合中各个备份数据的增量备份数据序列号,确定增量备份数据序列号小于待恢复备份数据的增量备份数据序列号对应的已恢复备份数据作为第二已恢复备份数据集合,该第二已恢复备份数据集合中的任意一个已恢复备份数据均可以用于本申请所提供的 备份数据恢复方法。Optionally, the computing device obtains the restored backup data based on the full backup sequence number and the incremental backup sequence number in the identification of the backup data to be restored. The restored backup data is determined in the identification manner in step S401. Specifically, the first restored backup data set with the same full backup sequence number is determined according to the full backup sequence number of the backup data to be restored. Then, based on the incremental backup data sequence number of each backup data in the first restored backup data set, it is determined that the restored backup data corresponding to the incremental backup data sequence number that is smaller than the incremental backup data sequence number of the backup data to be restored is used as the second restored backup data. Restore the backup data set. Any restored backup data in the second restored backup data set can be used for the purposes provided by this application. Backup data recovery methods.
可选的,计算设备基于第二已恢复备份数据集合中各个备份数据的增量备份数据序列号,确定距离待恢复备份数据的增量备份数据序列号最近的已恢复备份数据,将该已恢复备份数据作为目标已恢复备份数据,用于后续恢复待恢复备份数据。示例性的,当待恢复备份数据的标识为1.2时,若确定相同全量备份序列号的已恢复备份数据集合包括{1,1.1},再根据待恢复备份数据的增量序列号2,确定最新的已恢复备份数据为1.1。Optionally, the computing device determines the restored backup data closest to the incremental backup data sequence number of the backup data to be restored based on the incremental backup data sequence number of each backup data in the second restored backup data set, and restores the restored backup data. The backup data is used as the target restored backup data for subsequent restoration of the backup data to be restored. For example, when the identifier of the backup data to be restored is 1.2, if it is determined that the restored backup data set with the same full backup sequence number includes {1,1.1}, then the latest backup data set is determined based on the incremental sequence number 2 of the backup data to be restored. The restored backup data is 1.1.
可以理解的是,本申请实施例采用恢复增量备份数据的方式以节省恢复数据的资源,当增量备份数据所基于的全量备份数据的备份时间越接近待恢复备份数据的备份时间时,需要恢复的增量备份数据越少,则恢复备份数据所占用的资源越少,恢复备份数据的效率越高。It can be understood that the embodiment of the present application adopts the method of restoring incremental backup data to save data recovery resources. When the backup time of the full backup data based on the incremental backup data is closer to the backup time of the backup data to be restored, it is necessary to The less incremental backup data is restored, the fewer resources are occupied to restore the backup data, and the higher the efficiency of restoring the backup data.
S403、在确定已恢复备份数据未进行数据变更的情况下,按照增量数据恢复方式恢复待恢复备份数据;其中,增量备份数据的恢复方式是基于待恢复备份数据与已恢复备份数据之间的差异增量备份数据,恢复待恢复备份数据的方式。S403. When it is determined that the restored backup data has not undergone data changes, restore the backup data to be restored according to the incremental data recovery method; wherein the recovery method of the incremental backup data is based on the difference between the backup data to be restored and the restored backup data. Differential incremental backup data, a way to restore the backup data to be restored.
可选的,计算设备在执行步骤S403之前,判断已恢复备份数据是否进行数据变更。其中,已恢复备份数据是否进行数据变更是指,已恢复备份数据在恢复后,是否针对恢复后的数据进行变更,若未进行数据变更,则表示该恢复后的数据与恢复前的备份数据一致;若进行数据变更,则表示该恢复后的数据发生变更,与恢复前的备份数据不一致。Optionally, before executing step S403, the computing device determines whether data changes have been made to the restored backup data. Among them, whether data changes have been made to the restored backup data refers to whether the restored backup data has been changed after the restoration. If no data changes have been made, it means that the restored data is consistent with the backup data before restoration. ; If data changes are made, it means that the data after recovery has changed and is inconsistent with the backup data before recovery.
可选的,上述已恢复备份数据是否进行数据变更,在恢复已恢复备份数据之后,可通过以下方式记录。Optionally, whether data changes have been made to the above restored backup data, after restoring the restored backup data, it can be recorded in the following way.
第一种可能的实现方式中,当已恢复备份数据进行数据变更时,计算设备记录已恢复备份数据的数据变更状态为已变更;当已恢复备份数据副本未进行数据变更时,计算设备记录已恢复备份数据的数据变更状态为未变更。In the first possible implementation manner, when the restored backup data undergoes data changes, the computing device records that the data change status of the restored backup data is changed; when the restored backup data copy does not undergo data changes, the computing device records that the data has been changed. The data change status of the restored backup data is unchanged.
第二种可能的实现方式中,当已恢复备份数据进行数据变更时,计算设备记录已恢复备份数据的数据变更状态;当已恢复备份数据副本未进行数据变更时,计算设备不记录已恢复备份数据的数据变更状态。In the second possible implementation method, when the restored backup data undergoes data changes, the computing device records the data change status of the restored backup data; when the restored backup data copy does not undergo data changes, the computing device does not record the restored backup. The data change status of the data.
基于上述第一种可能的实现方式,计算设备在获取已恢复备份数据之后,基于已恢复备份的数据变更状态,确定已恢复备份数据是否发生变更。其中,数据变更状态包括已变更或未变更。Based on the above first possible implementation method, after obtaining the restored backup data, the computing device determines whether the restored backup data has changed based on the data change status of the restored backup. Among them, the data change status includes changed or unchanged.
基于上述第二种可能的实现方式,计算设备在获取已恢复备份数据之后,基于是否记录已恢复备份数据的数据变更状态,确定已恢复备份数据是否发生变更。Based on the above second possible implementation method, after obtaining the restored backup data, the computing device determines whether the restored backup data has changed based on whether the data change status of the restored backup data is recorded.
示例性的,通过“1”和“0”分别指示数据变更状态为已变更或未变更,其中,数据变更状态为1用于指示已恢复备份数据已进行数据变更,数据变更状态为0用于指示已恢复备份数据未进行数据变更。在恢复已恢复备份数据之后,记录数据变更状态为0,若发生变更则将该数据变更状态更新为1。或者,在数据发生变更时,记录数据变更状态,在数据未发生变更时,不记录数据变更状态。For example, "1" and "0" respectively indicate that the data change status is changed or unchanged. The data change status is 1 to indicate that the restored backup data has been changed, and the data change status is 0 to indicate that the restored backup data has been changed. Indicates that the backup data has been restored without data changes. After the restored backup data is restored, the data change status is recorded as 0. If a change occurs, the data change status is updated to 1. Or, when the data changes, the data change status is recorded, and when the data does not change, the data change status is not recorded.
可选的,若上述已恢复备份数据进行数据变更,则对待恢复备份数据进行全量数据恢复方式。Optionally, if the above restored backup data undergoes data changes, perform full data recovery on the backup data to be restored.
可以理解的是,若已恢复备份数据发生数据变更,则表示该已恢复备份数据相对于恢复前的备份数据发生的变更,因此,无法基于该已恢复备份数据以及增量备份数据得到需要恢复的备份数据。计算设备通过全量数据恢复方式实现获取需要的备份数据。It can be understood that if data changes occur in the restored backup data, it means that the restored backup data has changed relative to the backup data before restoration. Therefore, it is impossible to obtain the information that needs to be restored based on the restored backup data and incremental backup data. Back up your data. The computing device obtains the required backup data through full data recovery.
可选的,若上述已恢复备份数据未进行数据变更,则对待恢复备份数据进行增量数据恢复方式。 Optionally, if no data changes have been made to the restored backup data, perform incremental data recovery on the backup data to be restored.
可选的,上述记录已恢复备份数据是否发生变更,可以通过以下方式实现:计算设备在确定已恢复备份数据是否进行数据变更之前,采用MyWrite写文件系统函数替换操作系统写文件系统函数,该MyWrite写文件系统函数用于记录已恢复备份数据的数据变更状态。Optionally, the above-mentioned recording of whether the restored backup data has been changed can be achieved in the following way: before the computing device determines whether the restored backup data has been changed, it uses the MyWrite write file system function to replace the operating system write file system function. The MyWrite The write file system function is used to record the data change status of restored backup data.
其中,MyWrite写文件系统函数相对于Linux操作系统中的写文件系统函数,在具备数据写入功能的同时,还可以监听写入的数据是否对已恢复备份数据进行数据变更。如图5所示,通过修改操作系统LD_PRELOAD环境变量,替换原有操作系统中的可移植操作系统接口(portable operating system interface,POSIX)中预加载库(preloaded library)数据库模式定义语言(data definition language,DDL)库文件地址,将写文件系统函数替换为MyWrite写文件系统函数。Among them, the MyWrite write file system function, compared with the write file system function in the Linux operating system, not only has the data writing function, but also can monitor whether the written data changes the restored backup data. As shown in Figure 5, by modifying the operating system LD_PRELOAD environment variable, replace the preloaded library (preloaded library) database schema definition language (data definition language) in the original operating system (portable operating system interface, POSIX) , DDL) library file address, replace the write file system function with the MyWrite write file system function.
可以理解的是,采用上述方式监听已恢复备份数据是否进行数据变更,并决定是否记录数据变更状态,用于计算设备根据已恢复备份数据的数据变更状态确定待恢复备份数据的恢复方式。It can be understood that the above method is used to monitor whether the restored backup data undergoes data changes, and determines whether to record the data change status, so that the computing device determines the recovery method of the backup data to be restored based on the data change status of the restored backup data.
如图6所示,为一种增量数据恢复方式的示意图。上述步骤S403以应用于图5为示例在下文进行具体说明。As shown in Figure 6, it is a schematic diagram of an incremental data recovery method. The above-mentioned step S403 will be described in detail below by taking the application to FIG. 5 as an example.
一种可能的实现方式中,待恢复备份数据为第三天的增量备份数据1.2,计算设备获取已恢复备份数据为第一天的备份数据为全量备份数据1。此时,已恢复备份数据满足其备份时间早于待恢复备份数据的备份时间,并且二者是基于同一全量备份数据得到的备份数据的条件。计算设备采用增量数据恢复方式时,通过恢复全量备份数据1与增量备份数据1.2之间的差异增量备份数据,恢复待恢复备份数据。其中,全量备份数据1与增量备份数据1.2之间差异增量备份数据包括增量备份数据1.1和增量备份数据1.2。In one possible implementation, the backup data to be restored is the third day's incremental backup data 1.2, and the computing device obtains the restored backup data as the first day's backup data as the full backup data 1. At this time, the restored backup data meets the conditions that its backup time is earlier than the backup time of the backup data to be restored, and both are backup data based on the same full backup data. When the computing device adopts the incremental data recovery method, the backup data to be restored is restored by restoring the incremental backup data that is the difference between the full backup data 1 and the incremental backup data 1.2. Among them, the difference between the full backup data 1 and the incremental backup data 1.2. The incremental backup data includes the incremental backup data 1.1 and the incremental backup data 1.2.
在另一种可能的实现方式中,待恢复备份数据为第三天的增量备份数据1.2,计算设备获取已恢复备份数据为第二天的备份数据为全量备份数据1以及增量备份数据1.1。此时,已恢复备份数据满足其备份时间早于待恢复备份数据的备份时间,并且二者是基于同一全量备份数据得到的备份数据的条件。计算设备采用增量数据恢复方式时,通过恢复增量备份数据1.1与增量备份数据1.2之间的差异增量备份数据,恢复待恢复备份数据。其中,全量备份数据1与增量备份数据1.2之间差异增量备份数据包括增量备份数据1.2。In another possible implementation, the backup data to be restored is the third day's incremental backup data 1.2, and the computing device obtains the restored backup data as the next day's backup data, which is the full backup data 1 and the incremental backup data 1.1. . At this time, the restored backup data meets the conditions that its backup time is earlier than the backup time of the backup data to be restored, and both are backup data based on the same full backup data. When the computing device adopts the incremental data recovery method, the backup data to be restored is restored by restoring the incremental backup data that is the difference between the incremental backup data 1.1 and the incremental backup data 1.2. Among them, the difference between the full backup data 1 and the incremental backup data 1.2, the incremental backup data includes the incremental backup data 1.2.
通过上述方法,在待恢复备份数据为增量备份数据时,通过监听已恢复备份数据是否发生变更,以确定已恢复备份数据是否可用,在已恢复备份数据可用的情况下,恢复增量备份数据,从而大幅度降低恢复备份数据时所占用的资源,提升恢复数据的效率。Through the above method, when the backup data to be restored is incremental backup data, it is determined whether the restored backup data is available by monitoring whether the restored backup data has changed. If the restored backup data is available, the incremental backup data is restored. , thereby greatly reducing the resources occupied when restoring backup data and improving the efficiency of data restoration.
如图7所示,为一种累积增量数据备份方式的示意图。累积增量数据备份方式是指,基于上一次全量备份数据所产生的差异数据进行累积,再进行备份。例如,在第一天采用全量数据备份方式对全部数据进行别分;在第二天采用累积增量数据备份方式,对基于第一天的全部数据所产生的差异数据进行备份;在第三天采用累积增量数据备份方式,对基于第一天的全部数据所产生的差异数据进行累积,再进行备份。其中,第三天累积的差异数据包括第二天的差异数据和第三天的差异数据。此时,若想要获取第三天的数据,则需要恢复第一天的全量数据以及第三天相对于第一天累积的差异数据。As shown in Figure 7, it is a schematic diagram of a cumulative incremental data backup method. The cumulative incremental data backup method means that the differential data generated by the last full backup data is accumulated and then backed up. For example, on the first day, use the full data backup method to separate all data; on the second day, use the cumulative incremental data backup method to back up the differential data based on all the data on the first day; on the third day Using the cumulative incremental data backup method, the differential data generated based on all the data on the first day is accumulated and then backed up. Among them, the difference data accumulated on the third day includes the difference data of the second day and the difference data of the third day. At this time, if you want to obtain the data of the third day, you need to restore the full data of the first day and the accumulated difference data of the third day compared to the first day.
可以理解的是,第一天的备份数据为全量备份数据,第二天、第三天的备份数据为累积增量备份数据。其中,该累积增量备份数据是指基于全量备份数据所产生的差异数据,是一种特殊的增量备份数据。累积增量数据备份方式可以理解为一种特殊的差异增量数据备份方式。It is understandable that the backup data on the first day is full backup data, and the backup data on the second and third days are cumulative incremental backup data. Among them, the accumulated incremental backup data refers to the differential data generated based on the full backup data, which is a special kind of incremental backup data. The cumulative incremental data backup method can be understood as a special differential incremental data backup method.
其中,如图7所示,若要获取第二天的全部数据,需要恢复第一天的全量备份数据以及 第二天的累积增量备份数据。类似地,若要获取第三天的全部数据,需要恢复第一天的全量备份数据以及第三天的累积增量备份数据。Among them, as shown in Figure 7, if you want to obtain all the data of the next day, you need to restore the full backup data of the first day and The next day's cumulative incremental backup data. Similarly, to obtain all the data on the third day, you need to restore the full backup data on the first day and the cumulative incremental backup data on the third day.
可以理解的是,备份累积差异数据相对于备份全部数据,有助于实现通过较少的计算资源与时间成本完成数据备份,从而大幅度地提升备份数据的效率。It is understandable that compared to backing up all data, backing up accumulated differential data helps to complete data backup with less computing resources and time costs, thus greatly improving the efficiency of backing up data.
相应地,计算设备在确定待恢复备份数据是增量备份数据时,可以通过确定与待恢复备份数据的全量备份数据序列号对应的全量备份数据是否为已恢复备份数据,若存在该已恢复备份数据,则可以根据待恢复备份数据的增量备份数据序列号恢复相应的累计增量备份数据,再通过累积增量备份数据和已恢复备份数据得到恢复后的待恢复备份数据。Correspondingly, when the computing device determines that the backup data to be restored is incremental backup data, it can determine whether the full backup data corresponding to the full backup data sequence number of the backup data to be restored is restored backup data. If the restored backup exists, data, the corresponding accumulated incremental backup data can be restored according to the incremental backup data sequence number of the backup data to be restored, and then the restored backup data to be restored can be obtained through the accumulated incremental backup data and the restored backup data.
通过上述方式,相比于针对所有采用累积增量数据备份方式进行备份的数据,在恢复备份数据时采用全量备份数据恢复方式,有助于减小所需恢复的备份数据的数据量,从而提升备份数据的恢复效率。Through the above method, compared with all data backed up using the cumulative incremental data backup method, the full backup data recovery method is used when restoring the backup data, which helps to reduce the amount of backup data that needs to be restored, thereby improving Recovery efficiency of backup data.
综上所述,如图8所示,为本申请实施例提供的一种备份数据恢复方法的完整的流程示意图。包括步骤S801-S809。To sum up, as shown in Figure 8, it is a complete flow chart of a backup data recovery method provided by an embodiment of the present application. Including steps S801-S809.
S801、获取待恢复备份数据的标识。S801. Obtain the identifier of the backup data to be restored.
与上述步骤S401相同。Same as step S401 above.
S802、判断是否为全量备份数据。S802. Determine whether the data is fully backed up.
可选的,计算设备根据待恢复备份数据的标识,判断是否为全量备份数据。Optionally, the computing device determines whether the backup data is full backup data based on the identification of the backup data to be restored.
若是,执行步骤S803;若否,执行步骤S808、采用全量数据恢复方式进行恢复。If yes, perform step S803; if not, perform step S808 to restore using the full data recovery method.
S803、判断是否存在已恢复备份数据。S803. Determine whether restored backup data exists.
具体地,根据上述步骤S402确定已恢复备份数据。Specifically, it is determined that the backup data has been restored according to the above step S402.
若是,继续执行步骤S804;若否,执行步骤S808。If yes, continue to execute step S804; if not, execute step S808.
S804、判断是否进行数据变更。S804. Determine whether to perform data changes.
可选的,根据已恢复备份数据的数据变更状态,确定已恢复备份数据是否发生数据变更。Optionally, determine whether data changes have occurred in the restored backup data based on the data change status of the restored backup data.
若是,执行步骤S808;若否,执行步骤S805。If yes, perform step S808; if not, perform step S805.
S805、获取已恢复备份数据。S805. Obtain the restored backup data.
具体地,根据上述步骤S403确定已恢复备份数据。Specifically, it is determined that the backup data has been restored according to the above step S403.
S806、计算需要恢复的最小备份数据集。S806. Calculate the minimum backup data set that needs to be restored.
其中,当备份方式为差异增量数据备份方式时,最小备份数据集可以根据已恢复备份数据与待恢复备份数据的标识之间的差异增量备份数据构成的集合确定。当备份方式为累积增量数据备份方式时,最小备份数据集可以根据待恢复备份数据所对应的累积增量数据确定。When the backup method is differential incremental data backup, the minimum backup data set can be determined based on a set of differential incremental backup data between the identifiers of the restored backup data and the backup data to be restored. When the backup method is cumulative incremental data backup, the minimum backup data set can be determined based on the cumulative incremental data corresponding to the backup data to be restored.
其中,最小备份数据集可以在上述步骤S805中在小于待恢复备份数据的增量备份数据序列号中确定距离最近的待恢复备份数据作为已恢复备份数据,进而该已恢复备份数据与待恢复备份数据之间的差异数据为最小备份数据集。Among them, the minimum backup data set can determine the closest backup data to be restored as the restored backup data among the incremental backup data sequence numbers smaller than the backup data to be restored in the above step S805, and then the restored backup data is the same as the backup to be restored. The difference data between data is the minimum backup data set.
S807、计算设备采用增量数据恢复方式进行恢复。S807. The computing device performs recovery using incremental data recovery.
具体地,计算设备恢复上述最小备份数据集,并根据已恢复备份数据和最小备份数据集恢复待恢复备份数据。Specifically, the computing device restores the above-mentioned minimum backup data set, and restores the backup data to be restored based on the restored backup data and the minimum backup data set.
S809、计算设备重置数据变更状态。S809. The computing device resets the data change status.
其中,重置数据变更状态是指,将当前已恢复备份数据进行更新,相应地,数据变更状态也随之更新。例如,在图3中,待恢复备份数据的标识为1.1,已恢复备份数据的标识为1,若指示已恢复备份数据的数据变更状态为1或0时,用于指示标识为1的备份数据的数据变更状态;当标识为1.1的备份数据恢复后,当前已恢复备份数据应当更新为1.1,并且其数据 变更状态也应当随之更新,例如将其重置为-1,区别于上述指示数据变更或未变更的数据变更状态。Among them, resetting the data change status means updating the currently restored backup data, and accordingly, the data change status is also updated. For example, in Figure 3, the identifier of the backup data to be restored is 1.1, and the identifier of the restored backup data is 1. If the data change status indicating that the restored backup data is 1 or 0, it is used to indicate the backup data with the identifier 1 data change status; when the backup data identified as 1.1 is restored, the currently restored backup data should be updated to 1.1, and its data The change status should also be updated, e.g. reset to -1, in contrast to the data change status above indicating whether the data has changed or not.
通过上述步骤S801-S809提供的备份数据恢复方法,有助于用户根据备份数据不同状态,确定具体的恢复方式,在已恢复备份数据可利用的情况下,确定最小备份数据集,以实现通过较少的时间和计算资源,按照尽可能高的效率恢复需要的备份数据。The backup data recovery method provided through the above steps S801-S809 helps the user determine the specific recovery method according to the different states of the backup data, and determine the minimum backup data set when the restored backup data is available, so as to achieve the goal of achieving the goal through comparison. Use as little time and computing resources as possible to restore the required backup data with the highest possible efficiency.
上述主要从方法的角度对本申请实施例的方案进行了介绍。可以理解的是,备份数据恢复装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和软件模块中的至少一个。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above mainly introduces the solutions of the embodiments of the present application from the perspective of methods. It can be understood that, in order to implement the above functions, the backup data recovery device includes at least one of a hardware structure and a software module corresponding to each function. Persons skilled in the art should easily realize that, with the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对备份数据恢复装置(如计算设备)进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。Embodiments of the present application can divide the backup data recovery device (such as a computing device) into functional units according to the above method examples. For example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one in the processing unit. The above integrated units can be implemented in the form of hardware or software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
在采用对应各个功能划分各个功能模块的情况下,图9示出上述实施例中所涉及的计算设备的一种可能的结构示意图。如图9所示,计算设备90包括获取单元901和处理单元902。In the case where each functional module is divided corresponding to each function, FIG. 9 shows a possible structural diagram of the computing device involved in the above embodiment. As shown in FIG. 9 , the computing device 90 includes an acquisition unit 901 and a processing unit 902 .
获取单元901,用于获取待恢复备份数据的标识。例如上述步骤S401、S801。The obtaining unit 901 is used to obtain the identification of the backup data to be restored. For example, the above steps S401 and S801.
获取单元901,还用于在确定待恢复备份数据是增量备份数据时,根据待恢复备份数据的标识,获取已恢复备份数据;其中,已恢复备份数据与待恢复备份数据是基于同一全量备份数据得到的备份数据,已恢复备份数据的备份时间早于待恢复备份数据的备份时间。例如上述步骤S402、S805。The acquisition unit 901 is also used to obtain the restored backup data according to the identification of the backup data to be restored when it is determined that the backup data to be restored is incremental backup data; wherein the restored backup data and the backup data to be restored are based on the same full backup The backup data obtained by the data, the backup time of the restored backup data is earlier than the backup time of the backup data to be restored. For example, the above-mentioned steps S402 and S805.
处理单元902,用于在确定已恢复备份数据未进行数据变更的情况下,按照增量数据恢复方式恢复待恢复备份数据;其中,增量备份数据恢复方式是指基于待恢复备份数据与已恢复备份数据之间的差异增量备份数据,恢复待恢复备份数据的方式。例如上述步骤S403、S807。The processing unit 902 is configured to restore the backup data to be restored according to the incremental data recovery method when it is determined that the restored backup data has not been changed. The incremental backup data recovery method refers to the method based on the backup data to be restored and the restored backup data. The difference between the backup data, the incremental backup data, and the way to restore the backup data to be restored. For example, the above-mentioned steps S403 and S807.
在一种示例中,处理单元902,具体用于:根据已恢复备份数据的标识和待恢复备份数据的标识,读取已恢复备份数据与待恢复备份数据之间的差异增量备份数据;根据差异增量备份数据和已恢复备份数据恢复待恢复备份数据。In one example, the processing unit 902 is specifically configured to: read the differential incremental backup data between the restored backup data and the backup data to be restored according to the identifier of the restored backup data and the identifier of the backup data to be restored; Differential incremental backup data and restored backup data restore the backup data to be restored.
在一种示例中,处理单元902,还用于:在恢复已恢复备份数据之后,当已恢复备份数据进行数据变更时,记录已恢复备份数据的数据变更状态为已变更;当已恢复备份数据未进行数据变更时,记录已恢复备份数据的数据变更状态为未变更;基于已恢复备份数据的数据变更状态,确定已恢复备份数据是否发生变更。In one example, the processing unit 902 is also configured to: after restoring the restored backup data, when the restored backup data undergoes data changes, record the data change status of the restored backup data as changed; when the restored backup data When no data changes are made, the data change status of the restored backup data is recorded as unchanged; based on the data change status of the restored backup data, it is determined whether the restored backup data has changed.
在一种示例中,处理单元902,还用于:在恢复已恢复备份数据之后,当已恢复备份数据进行数据变更时,记录已恢复备份数据的数据变更状态;当已恢复备份数据未进行数据变更时,不记录已恢复备份数据的数据变更状态;基于是否记录已恢复备份数据的数据变更状态,确定已恢复备份数据是否发生变更。In one example, the processing unit 902 is also configured to: after restoring the restored backup data, when the restored backup data undergoes data changes, record the data change status of the restored backup data; when the restored backup data does not undergo data changes, When changing, the data change status of the restored backup data is not recorded; based on whether the data change status of the restored backup data is recorded, it is determined whether the restored backup data has changed.
在一种示例中,处理单元902,还用于:采用MyWrite写文件系统函数替换操作系统写文件系统函数,MyWrite写文件系统函数用于记录已恢复备份数据的数据变更状态。In one example, the processing unit 902 is also configured to replace the operating system's file system writing function with the MyWrite writing file system function, which is used to record the data change status of the restored backup data.
在一种示例中,处理单元902,还用于:若待恢复备份数据的标识为增量备份标识,确 定待恢复备份数据是增量备份数据。In one example, the processing unit 902 is also configured to: if the identifier of the backup data to be restored is an incremental backup identifier, confirm The backup data to be restored is incremental backup data.
在一种示例中,待恢复备份数据的标识包括全量备份数据序列号和增量备份数据序列号,处理单元902,具体用于:若增量备份数据标识包括增量备份数据序列号,确定待恢复备份数据是增量备份数据。In one example, the identifier of the backup data to be restored includes a full backup data sequence number and an incremental backup data sequence number. The processing unit 902 is specifically configured to: if the incremental backup data identifier includes an incremental backup data sequence number, determine Restoring backup data is incremental backup data.
在一种示例中,处理单元902,还用于:在待恢复备份数据为全量备份数据时,按照全量数据恢复方式恢复待恢复备份数据;其中,全量数据恢复方式是指对待恢复备份数据中的全部数据进行数据恢复。In one example, the processing unit 902 is also configured to: when the backup data to be restored is full backup data, restore the backup data to be restored according to a full data recovery method; where the full data recovery method refers to the backup data to be restored. All data for data recovery.
在一种示例中,处理单元902,还用于:在确定已恢复备份数据进行数据变更的情况下,按照全量数据恢复方式恢复待恢复备份数据;其中,全量数据恢复方式是指对待恢复备份数据中的全部数据进行数据恢复。In one example, the processing unit 902 is also configured to: when it is determined that the backup data has been restored and the data has been changed, restore the backup data to be restored according to the full data recovery method; where the full data recovery method refers to the backup data to be restored All data in the file can be recovered.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。All relevant content of each step involved in the above method embodiments can be quoted from the functional description of the corresponding functional module, and will not be described again here.
当然,本申请实施例提供的计算设备包括但不限于上述单元,例如:计算设备还可以包括存储单元903。Of course, the computing device provided by the embodiment of the present application includes but is not limited to the above-mentioned units. For example, the computing device may also include a storage unit 903.
存储单元903可以用于存储该计算设备的程序代码和数据。Storage unit 903 may be used to store program codes and data for the computing device.
其中,计算设备90中的获取单元901可对应执行图2中通信接口203中接收单元的功能,处理单元902可对应执行图2中处理器201的功能。The acquisition unit 901 in the computing device 90 can correspondingly execute the function of the receiving unit in the communication interface 203 in FIG. 2 , and the processing unit 902 can correspondingly execute the function of the processor 201 in FIG. 2 .
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,当该计算机程序在计算机上运行时,使得该计算机执行上文提供的任一种计算设备所执行的方法。Embodiments of the present application also provide a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run on a computer, it causes the computer to execute any of the computing devices provided above. The method performed.
关于上述提供的任一种计算机可读存储介质中相关内容的解释及有益效果的描述,均可以参考上述对应的实施例,此处不再赘述。For explanations of relevant contents and descriptions of beneficial effects in any of the computer-readable storage media provided above, reference may be made to the corresponding embodiments described above and will not be described again here.
本申请实施例还提供了一种芯片。该芯片中集成了用于实现上述计算设备功能的控制电路和一个或者多个端口。可选的,该芯片支持的功能可以参考上文,此处不再赘述。本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可通过程序来指令相关的硬件完成。所述的程序可以存储于一种计算机可读存储介质中。上述提到的存储介质可以是只读存储器,随机接入存储器等。上述处理单元或处理器可以是中央处理器,通用处理器、特定集成电路(application specific integrated circuit,ASIC)、微处理器(digital signal processor,DSP),现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。An embodiment of the present application also provides a chip. The chip integrates a control circuit and one or more ports for implementing the above computing device functions. Optionally, the functions supported by this chip can be referred to above and will not be described again here. Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by instructing relevant hardware through programs. The program may be stored in a computer-readable storage medium. The storage medium mentioned above may be a read-only memory, a random access memory, etc. The above-mentioned processing unit or processor can be a central processing unit, a general-purpose processor, an application specific integrated circuit (ASIC), a microprocessor (digital signal processor, DSP), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
本申请实施例还提供了一种包含指令的计算机程序产品,当该指令在计算机上运行时,使得计算机执行上述实施例中的任意一种方法。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如SSD)等。 Embodiments of the present application also provide a computer program product containing instructions. When the instructions are run on a computer, they cause the computer to perform any of the methods in the above embodiments. The computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, processes or functions according to embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., computer instructions may be transmitted from a website, computer, server or data center via a wired (e.g. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website, computer, server or data center. Computer-readable storage media can be any available media that can be accessed by a computer or include one or more data storage devices such as servers and data centers that can be integrated with the media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, SSD), etc.
应注意,本申请实施例提供的上述用于存储计算机指令或者计算机程序的器件,例如但不限于,上述存储器、计算机可读存储介质和通信芯片等,均具有非易失性(non-transitory)。It should be noted that the above-mentioned devices for storing computer instructions or computer programs provided by the embodiments of the present application, such as but not limited to the above-mentioned memories, computer-readable storage media, communication chips, etc., are all non-transitory. .
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, processes or functions according to embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., computer instructions may be transmitted from a website, computer, server or data center via a wired (e.g. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website, computer, server or data center. Computer-readable storage media can be any available media that can be accessed by a computer or include one or more data storage devices such as servers and data centers that can be integrated with the media. Available media may be magnetic media (eg, floppy disk, hard disk, tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc.
尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the present application has been described herein in connection with various embodiments, in practicing the claimed application, those skilled in the art can understand and implement the disclosure by reviewing the drawings, the disclosure, and the appended claims. Other variations of the embodiment. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may perform several of the functions recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not mean that a combination of these measures cannot be combined to advantageous effects.
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 Although the present application has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations may be made without departing from the spirit and scope of the application. Accordingly, the specification and drawings are intended to be merely illustrative of the application as defined by the appended claims and are to be construed to cover any and all modifications, variations, combinations or equivalents within the scope of the application. Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (10)

  1. 一种备份数据恢复方法,其特征在于,包括:A backup data recovery method, characterized by including:
    获取待恢复备份数据的标识;Obtain the identification of the backup data to be restored;
    在确定所述待恢复备份数据是增量备份数据时,根据所述待恢复备份数据的标识,获取已恢复备份数据;其中,所述已恢复备份数据与所述待恢复备份数据是基于同一全量备份数据得到的备份数据,所述已恢复备份数据的备份时间早于所述待恢复备份数据的备份时间;When it is determined that the backup data to be restored is incremental backup data, the restored backup data is obtained according to the identification of the backup data to be restored; wherein the restored backup data and the backup data to be restored are based on the same full amount. The backup data obtained from the backup data, the backup time of the restored backup data is earlier than the backup time of the backup data to be restored;
    在确定所述已恢复备份数据未进行数据变更的情况下,按照增量数据恢复方式恢复所述待恢复备份数据;其中,所述增量备份数据恢复方式是指基于所述待恢复备份数据与所述已恢复备份数据之间的差异增量备份数据,恢复所述待恢复备份数据的方式。When it is determined that the restored backup data has not undergone data changes, the backup data to be restored is restored according to an incremental data recovery method; wherein the incremental backup data recovery method refers to a method based on the backup data to be restored and the backup data to be restored. The difference between the restored backup data and the incremental backup data, and the method of restoring the backup data to be restored.
  2. 根据权利要求1所述的方法,其特征在于,所述在确定所述已恢复备份数据未进行数据变更的情况下,按照增量数据恢复方式恢复所述待恢复备份数据,包括:The method according to claim 1, characterized in that, when it is determined that the restored backup data has not undergone data changes, restoring the backup data to be restored according to an incremental data recovery method includes:
    根据所述已恢复备份数据的标识和所述待恢复备份数据的标识,读取所述已恢复备份数据与所述待恢复备份数据之间的差异增量备份数据;According to the identifier of the restored backup data and the identifier of the backup data to be restored, read the differential incremental backup data between the restored backup data and the backup data to be restored;
    根据所述差异增量备份数据和所述已恢复备份数据恢复所述待恢复备份数据。The backup data to be restored is restored according to the differential incremental backup data and the restored backup data.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, characterized in that, the method further includes:
    在恢复所述已恢复备份数据之后,当所述已恢复备份数据进行数据变更时,记录所述已恢复备份数据的数据变更状态为已变更;当所述已恢复备份数据未进行数据变更时,记录所述已恢复备份数据的数据变更状态为未变更;After restoring the restored backup data, when the restored backup data undergoes data changes, record the data change status of the restored backup data as changed; when the restored backup data does not undergo data changes, Record the data change status of the restored backup data as unchanged;
    在所述获取已恢复备份数据之后,所述方法还包括:After obtaining the restored backup data, the method further includes:
    基于所述已恢复备份数据的数据变更状态,确定所述已恢复备份数据是否发生变更。Based on the data change status of the restored backup data, it is determined whether the restored backup data has been changed.
  4. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, characterized in that, the method further includes:
    在恢复所述已恢复备份数据之后,当所述已恢复备份数据进行数据变更时,记录所述已恢复备份数据的数据变更状态;当所述已恢复备份数据未进行数据变更时,不记录所述已恢复备份数据的数据变更状态;After the restored backup data is restored, when the restored backup data undergoes data changes, the data modification status of the restored backup data is recorded; when the restored backup data does not undergo data changes, all data changes are not recorded. Describe the data change status of the restored backup data;
    在所述获取已恢复备份数据之后,所述方法还包括:After obtaining the restored backup data, the method further includes:
    基于是否记录所述已恢复备份数据的数据变更状态,确定所述已恢复备份数据是否发生变更。Based on whether the data change status of the restored backup data is recorded, it is determined whether the restored backup data has changed.
  5. 根据权利要求3或4所述的方法,其特征在于,所述在确定所述已恢复备份数据是否进行数据变更之前,所述方法还包括:The method according to claim 3 or 4, characterized in that, before determining whether the restored backup data undergoes data changes, the method further includes:
    采用MyWrite写文件系统函数替换操作系统写文件系统函数,所述MyWrite写文件系统函数用于记录所述已恢复备份数据的数据变更状态。The MyWrite file system writing function is used to replace the operating system writing file system function. The MyWrite writing file system function is used to record the data change status of the restored backup data.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,在所述获取待恢复备份数据的标识之后,所述方法还包括:The method according to any one of claims 1 to 5, characterized in that, after obtaining the identification of the backup data to be restored, the method further includes:
    若所述待恢复备份数据的标识为增量备份数据标识,确定所述待恢复备份数据是所述增量备份数据。If the identifier of the backup data to be restored is an incremental backup data identifier, it is determined that the backup data to be restored is the incremental backup data.
  7. 根据权利要求6所述的方法,其特征在于,所述待恢复备份数据的标识包括全量备份数据序列号和增量备份数据序列号;所述若所述待恢复备份数据的标识为增量备份数据标识,确定所述待恢复备份数据是所述增量备份数据,包括:The method according to claim 6, wherein the identification of the backup data to be restored includes a full backup data serial number and an incremental backup data sequence number; if the identification of the backup data to be restored is an incremental backup Data identification, which determines that the backup data to be restored is the incremental backup data, including:
    若所述增量备份数据标识包括所述增量备份数据序列号,确定所述待恢复备份数据是所述增量备份数据。If the incremental backup data identifier includes the incremental backup data sequence number, it is determined that the backup data to be restored is the incremental backup data.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述方法还包括: The method according to any one of claims 1-7, characterized in that the method further includes:
    在确定所述待恢复备份数据为全量备份数据时,按照全量数据恢复方式恢复所述待恢复备份数据;其中,所述全量数据恢复方式是指对所述待恢复备份数据中的全部数据进行数据恢复。When it is determined that the backup data to be restored is full backup data, the backup data to be restored is restored according to a full data recovery method; wherein the full data recovery method refers to performing data recovery on all data in the backup data to be restored. recover.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-8, characterized in that the method further includes:
    在确定所述已恢复备份数据进行数据变更的情况下,按照全量数据恢复方式恢复所述待恢复备份数据;其中,所述全量数据恢复方式是指对所述待恢复备份数据中的全部数据进行数据恢复。When it is determined that the restored backup data has undergone data changes, the backup data to be restored is restored according to the full data recovery method; wherein the full data recovery method refers to performing all data in the backup data to be restored. Data Recovery.
  10. 一种计算设备,其特征在于,包括存储器和处理器;所述存储器用于存储程序代码;所述处理器用于调用所述程序代码,以使所述计算设备执行如权利要求1-9任一项所述的方法。 A computing device, characterized in that it includes a memory and a processor; the memory is used to store program code; the processor is used to call the program code, so that the computing device executes any one of claims 1-9 method described in the item.
PCT/CN2023/097148 2022-07-30 2023-05-30 Backup data recovery method and computing device WO2024027314A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210912494.5 2022-07-30
CN202210912494.5A CN115421969A (en) 2022-07-30 2022-07-30 Backup data recovery method and computing device

Publications (1)

Publication Number Publication Date
WO2024027314A1 true WO2024027314A1 (en) 2024-02-08

Family

ID=84196833

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/097148 WO2024027314A1 (en) 2022-07-30 2023-05-30 Backup data recovery method and computing device

Country Status (2)

Country Link
CN (1) CN115421969A (en)
WO (1) WO2024027314A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115421969A (en) * 2022-07-30 2022-12-02 超聚变数字技术有限公司 Backup data recovery method and computing device
CN117369338A (en) * 2023-11-15 2024-01-09 广州飞数工业软件有限公司 Operation and maintenance management system and method for industrial manufacturing equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446828A (en) * 2014-09-30 2016-03-30 北京金山云网络技术有限公司 Database backup and recovery method, apparatus and system
CN111880966A (en) * 2020-07-09 2020-11-03 腾讯科技(深圳)有限公司 Database data recovery method and device
CN112114999A (en) * 2020-09-01 2020-12-22 阿里云计算有限公司 Data backup method, data recovery method, data backup device, data recovery device and electronic equipment
CN113821232A (en) * 2020-11-25 2021-12-21 北京沃东天骏信息技术有限公司 Model updating method and device
CN113918658A (en) * 2020-07-08 2022-01-11 北京罗克维尔斯科技有限公司 Method and device for recovering data
CN115421968A (en) * 2022-07-28 2022-12-02 超聚变数字技术有限公司 Data recovery method and electronic equipment
CN115421969A (en) * 2022-07-30 2022-12-02 超聚变数字技术有限公司 Backup data recovery method and computing device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446828A (en) * 2014-09-30 2016-03-30 北京金山云网络技术有限公司 Database backup and recovery method, apparatus and system
CN113918658A (en) * 2020-07-08 2022-01-11 北京罗克维尔斯科技有限公司 Method and device for recovering data
CN111880966A (en) * 2020-07-09 2020-11-03 腾讯科技(深圳)有限公司 Database data recovery method and device
CN112114999A (en) * 2020-09-01 2020-12-22 阿里云计算有限公司 Data backup method, data recovery method, data backup device, data recovery device and electronic equipment
CN113821232A (en) * 2020-11-25 2021-12-21 北京沃东天骏信息技术有限公司 Model updating method and device
CN115421968A (en) * 2022-07-28 2022-12-02 超聚变数字技术有限公司 Data recovery method and electronic equipment
CN115421969A (en) * 2022-07-30 2022-12-02 超聚变数字技术有限公司 Backup data recovery method and computing device

Also Published As

Publication number Publication date
CN115421969A (en) 2022-12-02

Similar Documents

Publication Publication Date Title
WO2024027314A1 (en) Backup data recovery method and computing device
JP6602369B2 (en) Secure data access after memory failure
EP4033374A1 (en) Method and device for synchronizing node data
EP3036634B1 (en) Disconnected operation for systems utilizing cloud storage
US10152246B1 (en) Application aware AMQP durable messages backup and restore
US8516210B2 (en) Application consistent snapshots of a shared volume
CN111078147A (en) Processing method, device and equipment for cache data and storage medium
US9946740B2 (en) Handling server and client operations uninterruptedly during pack and audit processes
US20140280811A1 (en) Enhanced Remote Presence
WO2019153702A1 (en) Interrupt processing method, apparatus and server
WO2024021861A1 (en) Data recovery method and electronic device
CN111865831A (en) Data processing method, network equipment, computing node and system
US10437754B1 (en) Diagnostic fault management controller for distributed computing
CN114661248A (en) Data processing method and device
US10127270B1 (en) Transaction processing using a key-value store
CN112328561A (en) Log transmission method, system, electronic equipment and storage medium
JP2014038564A (en) System and method which perform processing to database
US11940878B2 (en) Uninterrupted block-based restore operation using a read-ahead buffer
WO2022022546A1 (en) Data synchronization method and device for mobile distributed system
CN117643015A (en) Snapshot-based client-side key modification of log records manages keys across a series of nodes
CN114443216A (en) Cloud platform mirror image management method and management system
US9686206B2 (en) Temporal based collaborative mutual exclusion control of a shared resource
JP7305898B2 (en) Operation response method, operation response device, electronic device and storage medium
US11372844B1 (en) Systems and methods for stateless asynchronous database loading while maintaining ordering
US11379317B2 (en) Uninterrupted file level restore service using siamese engine

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23849024

Country of ref document: EP

Kind code of ref document: A1