一种业务恢复方法及设备
Patent Information
- Application Number
- CN202211422229.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-14
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-11-14
AI Technical Summary
目前多数企业采用的备份方式为差异增量备份或者是累积增量备份,其特点是有层次地进行备份,使得备份数据可以占用的较少的存储空间,但是在数据恢复时需要依次恢复多份备份数据,因此导致数据恢复的时间较长,进而导致业务恢复的时间较长
Smart Images

Figure CN115794487B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computing device technology, and in particular to a business recovery method and device. Background Technology
[0002] With the continuous development of computer computing, data assets have become fundamental to the survival of enterprises. Enterprise production, operations, and the formulation of various strategies all rely on data support. Therefore, most enterprises adopt backup methods, backing up business data generated by production equipment to backup devices to mitigate the risks of data loss due to equipment storage failure, accidental data manipulation, or other unforeseen events.
[0003] When production equipment malfunctions and business operations are restored, data must first be restored from backup equipment before business applications can be restarted. Currently, most enterprises use differential incremental backup or cumulative incremental backup, which involves hierarchical backups, allowing backup data to occupy less storage space. However, data recovery requires restoring multiple backups sequentially, resulting in longer data recovery times and consequently longer business recovery times. Summary of the Invention
[0004] This application provides a business recovery method and equipment that can effectively reduce business recovery time.
[0005] In a first aspect, this application provides a service recovery method, the method comprising: receiving a service switching instruction; the service switching instruction instructing a service application running on a production device to be switched to a backup device; the service switching instruction including an identifier of the service application; a first storage space of the backup device storing backup data of service data generated by the service application running on the production device, wherein the backup data includes first full backup data and incremental backup data; responding to the service switching instruction, starting the service application according to the identifier; responding to a read operation of the service application, obtaining first service data from the first full backup data or incremental backup data; the first service data being data required by the backup device to run the service application; and running the service application based on the first service data.
[0006] It should be noted that existing technologies require restoring both full and incremental backup data from the backup data to the production equipment to create updated full backup data before starting the business application. In contrast, the business recovery method provided in this application, when business recovery is needed on the production equipment, first switches the business to the backup equipment. The full or incremental backup data stored on the backup equipment supports the operation of the business application, eliminating the need to wait for the full and incremental backup data to be restored to form new full backup data before normal business operation can be achieved, significantly improving the efficiency of business recovery.
[0007] Understandably, this application addresses the drawback of the time-consuming process of restoring data to production equipment before restarting business applications. It ensures that users can use services normally and promptly when production equipment fails, greatly shortening the recovery time object (RTO). It can be effectively applied in business scenarios with high service-level agreement (SLA) requirements.
[0008] In one possible implementation, in response to a read operation of a business application, obtaining first business data from a first full backup data or incremental backup data includes: obtaining a bitmap of the backup data, the bitmap including multiple bits, each bit being used to indicate the storage unit corresponding to each part of the data in the backup data in the first storage space, and each bit being used to indicate the update status of the data in the storage unit corresponding to the bit; determining a target bit corresponding to the address of the first business data in the read operation in the bitmap, the target bit indicating whether the first business data has been updated; and obtaining the first business data from the first full backup data or incremental backup data according to the target bit and the address of the first business data.
[0009] In another possible implementation, the first service data is obtained from the first full backup data or incremental backup data according to the target bit and the address of the first service data, including: if the target bit indicates that the data has not been updated, obtaining the first service data from the first full backup data according to the address of the first service data; if the target bit indicates that the data has been updated, obtaining the first service data from the incremental backup data according to the address of the first service data.
[0010] In another possible implementation, the above method further includes: in response to a write operation of a business application, writing second business data into a second storage space of the backup device; the second business data is data generated during the operation of the business application on the backup device; the second storage space is different from the first storage space; generating a bitmap of the second business data, the bitmap of the second business data being associated with the bitmap of the backup data.
[0011] In another possible implementation, the above method further includes: restoring backup data based on the bitmap of backup data, the first full backup data, and the incremental backup data to form a second full backup data; and restoring second business data based on the bitmap of second business data, the bitmap of second full backup data, the second business data, and the second full backup data to form a third full backup data.
[0012] In another possible implementation, the above method also includes: releasing the second storage space.
[0013] Secondly, this application provides a service recovery method, the method comprising: receiving a service switching instruction; the service switching instruction instructing a service application running on a production device to be switched to a backup device; the service switching instruction including an identifier of the service application; a first storage space of the backup device storing backup data of service data generated by the service application running on the production device; the backup data including first full backup data and incremental backup data; responding to the service switching instruction, starting the service application according to the identifier; responding to a write operation of the service application, writing second service data into a second storage space of the backup device; the second service data being data generated by the backup device during the process of running the service application based on the first service data; the first service data being obtained by the backup device from the first full backup data or incremental backup data; and the second storage space being different from the first storage space.
[0014] In one possible implementation, the method further includes generating a bitmap of second business data, wherein the bitmap of the second business data is associated with the bitmap of the backup data.
[0015] Thirdly, this application provides a business recovery apparatus, comprising: a receiving module, a processing module, and an acquiring module; the receiving module is configured to receive a business switching instruction; the business switching instruction is configured to instruct the business application running on the production equipment to be switched to a backup equipment; the business switching instruction includes an identifier of the business application; the storage space of the backup equipment stores backup data of business data generated by the business application running on the production equipment, wherein the backup data includes first full backup data and incremental backup data; the processing module is configured to, in response to the business switching instruction, start the business application according to the identifier; the acquiring module is configured to, in response to a read operation of the business application, acquire first business data from the first full backup data or incremental backup data; the first business data is the data required by the backup equipment to run the business application; the processing module is further configured to, based on the first business data, run the business application.
[0016] In one possible implementation, the acquisition module is specifically used to: acquire a bitmap of the backup data, the bitmap including multiple bits, each bit being used to indicate the storage unit corresponding to each part of the backup data in the storage space, and each bit being used to indicate the update status of the data in the storage unit corresponding to the bit; determine the target bit corresponding to the address of the first business data in the read operation in the bitmap, the target bit indicating whether the first business data has been updated; and acquire the first business data from the first full backup or incremental backup data according to the target bit and the address of the first business data.
[0017] In another possible implementation, the acquisition module is specifically used to: acquire the first business data from the first full backup data according to the address of the first business data when the target bit indicates that the data has not been updated; and acquire the first business data from the incremental backup data according to the address of the first business data when the target bit indicates that the data has been updated.
[0018] In another possible implementation, the processing module is further configured to, in response to a write operation by a business application, write second business data into a temporary write data area; the second business data is data generated during the operation of the business application on the backup device; the processing module is further configured to, generate a bitmap of the second business data, the bitmap of the second business data being associated with the bitmap of the backup data.
[0019] In another possible implementation, the above-mentioned device further includes: a recovery module; the recovery module is used to restore the backup data based on the bitmap of the backup data, the first full backup data and the incremental backup data to form a second full backup data; and to restore the second business data based on the bitmap of the second business data, the bitmap of the second full backup data, the second business data and the second full backup data to form a third full backup data.
[0020] In another possible implementation, the processing module is also used to release the temporary write data area.
[0021] Fourthly, this application provides a business recovery apparatus, comprising: a receiving module and a processing module; the receiving module is configured to receive a business switching instruction; the business switching instruction is configured to instruct the business application running on the production equipment to be switched to a backup equipment; the business switching instruction includes an identifier of the business application; a first storage space of the backup equipment stores backup data of business data generated by the business application running on the production equipment; the backup data includes first full backup data and incremental backup data; the processing module is configured to, in response to the business switching instruction, start the business application according to the identifier; the processing module is further configured to, in response to a write operation of the business application, write second business data into a second storage space of the backup equipment; the second business data is data generated by the backup equipment during the process of running the business application based on the first business data; the first business data is obtained by the backup equipment from the first full backup data or incremental backup data; the second storage space is different from the first storage space.
[0022] In one possible implementation, the processing module is further configured to generate a bitmap of the second business data, which is associated with the bitmap of the backup data.
[0023] Fifthly, this application provides a backup device, comprising: a transceiver and a processor; the transceiver is configured to receive a service switching instruction; the service switching instruction is configured to instruct the switching of a business application running on a production device to the backup device; the service switching instruction includes an identifier of the business application; the storage space of the backup device stores backup data of business data generated by the business application running on the production device, wherein the backup data includes first full backup data and incremental backup data; the processor is configured to, in response to the service switching instruction, start the business application according to the identifier; the processor is further configured to, in response to a read operation of the business application, obtain first business data from the first full backup data or incremental backup data; the first business data is data required by the backup device to run the business application; the processor is further configured to, based on the first business data, run the business application.
[0024] In one possible implementation, the processor is specifically configured to: acquire a bitmap of backup data, the bitmap including multiple bits, each bit indicating the storage unit corresponding to each part of the backup data in the first storage space, and each bit indicating the update status of the data in the storage unit corresponding to the bit; determine the target bit corresponding to the address of the first service data in the read operation in the bitmap, the target bit indicating whether the first service data has been updated; and acquire the first service data from the first full backup data or incremental backup data according to the target bit and the address of the first service data.
[0025] In another possible implementation, the processor is specifically used to: obtain the first service data from the first full backup data according to the address of the first service data when the target bit indicates that the data has not been updated; and obtain the first service data from the incremental backup data according to the address of the first service data when the target bit indicates that the data has been updated.
[0026] In another possible implementation, the processor is further configured to, in response to a write operation by a business application, write second business data into a second storage space of the backup device; the second business data is data generated during the operation of the business application on the backup device; the second storage space is different from the first storage space; and generate a bitmap of the second business data, the bitmap of the second business data being associated with the bitmap of the backup data.
[0027] In another possible implementation, the processor is further configured to: restore backup data based on the bitmap of the backup data, the first full backup data, and the incremental backup data to form a second full backup data; and restore second service data based on the bitmap of the second service data, the bitmap of the second full backup data, the second service data, and the second full backup data to form a third full backup data.
[0028] In another possible implementation, the processor is also used to free up the second storage space.
[0029] Sixthly, this application provides a backup device, comprising: a transceiver and a processor; the transceiver is configured to receive a service switching instruction; the service switching instruction is configured to instruct the switching of a business application running on a production device to the backup device; the service switching instruction includes an identifier of the business application; a first storage space of the backup device stores backup data of business data generated by the business application running on the production device; the backup data includes first full backup data and incremental backup data; the processor is configured to, in response to the service switching instruction, start the business application according to the identifier; the processor is further configured to, in response to a write operation of the business application, write second business data into a second storage space of the backup device; the second business data is data generated by the backup device during the process of running the business application based on the first business data; the first business data is obtained by the backup device from the first full backup data or incremental backup data; the second storage space is different from the first storage space.
[0030] In one possible implementation, the processor is also used to generate a bitmap of second business data, which is associated with the bitmap of backup data.
[0031] Seventhly, this application provides a business recovery system, which includes: a disaster recovery device, a production device, and a backup device; the disaster recovery device is connected to the production device via a heartbeat and is used to detect the operating status of the production device; the disaster recovery device is used to send a business switching instruction to the backup device when it detects that the heartbeat of the production device has stopped, so that the backup device performs the method described in the first or second aspect above.
[0032] Eighthly, this application provides a processor comprising: an interface and logic circuitry, the logic circuitry being used to execute the service recovery method described in the first or second aspect above.
[0033] Ninthly, this application provides a computing device comprising: a processor and a memory; the memory storing processor-executable instructions; when the processor is configured to execute the instructions, causing the computing device to implement the methods of the first or second aspect described above.
[0034] In a tenth aspect, this application provides a computer-readable storage medium comprising: computer software instructions; which, when executed in a computing device, cause the computing device to implement the methods of the first or second aspect described above.
[0035] In the eleventh aspect, this application provides a computer program product that, when run on a computing device, causes the computing device to perform the steps of the relevant methods described in the first aspect above, so as to implement the methods of the first or second aspect above.
[0036] The beneficial effects of the second to eleventh aspects mentioned above can be referred to the corresponding descriptions in the first aspect, and will not be repeated here. Attached Figure Description
[0037] Figure 1 A schematic diagram illustrating a full backup provided in this application;
[0038] Figure 2 A schematic diagram illustrating a cumulative incremental backup method provided in this application;
[0039] Figure 3 A schematic diagram illustrating a differential incremental backup method provided in this application;
[0040] Figure 4 This application provides a schematic diagram of the architecture of a business recovery system;
[0041] Figure 5 A flowchart illustrating a business recovery method provided in this application;
[0042] Figure 6 A flowchart illustrating a specific method for obtaining first business data provided in this application;
[0043] Figure 7 This application provides a schematic diagram illustrating the relationship between storage space and bitmap.
[0044] Figure 8 A schematic diagram of a bitmap for backup data provided in this application;
[0045] Figure 9 A schematic diagram of a merged bitmap provided in this application;
[0046] Figure 10 A flowchart illustrating another business recovery method provided in this application;
[0047] Figure 11 A flowchart illustrating yet another business recovery method provided in this application;
[0048] Figure 12 A schematic diagram of the bitmap for the second business data provided in this application;
[0049] Figure 13 A schematic diagram of a business recovery process provided for this application;
[0050] Figure 14 A schematic diagram of a data recovery process provided for this application;
[0051] Figure 15 A schematic diagram of the composition of a service recovery device provided in this application;
[0052] Figure 16A schematic diagram of another business recovery device provided in this application;
[0053] Figure 17 A schematic diagram of the composition of a backup device provided in this application;
[0054] Figure 18 A schematic diagram of another backup device provided in this application;
[0055] Figure 19 This is a schematic diagram of the composition of a computing device provided in this application. Detailed Implementation
[0056] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0057] It should be noted that in the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0058] To facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish the same or similar items with essentially the same function and effect. Those skilled in the art can understand that the terms "first" and "second" are not intended to limit the quantity or execution order.
[0059] To facilitate understanding of this solution, the technical terms involved will be explained first.
[0060] 1. Data backup: This refers to copying and saving the data of production equipment so that the data can be restored in time when the production equipment fails. Backup is the foundation of disaster recovery.
[0061] 2. Disaster recovery: Disaster recovery is a system that can prevent production equipment from being damaged by various disasters. The main purpose of disaster recovery is to ensure business continuity as much as possible when production equipment is damaged by natural or human causes.
[0062] As described in the background section, with the rapid growth in the number of business applications and the volume of data, enterprises have increasingly higher requirements for data security, and most enterprises rely on data backup to ensure data security. Current data backup methods are mainly divided into three types: full backup, cumulative incremental backup, and differential incremental backup.
[0063] Figure 1 This diagram illustrates a full backup method provided in an embodiment of this application. The diagram shows the backup time series from top to bottom, with the horizontal axis representing the amount of data. A full backup refers to backing up all data from the production equipment in each backup operation. Figure 1 As shown, because the amount of data increases daily, backing up all the data every day (e.g., a full backup) results in a large storage space being occupied by the backup data. However, this data backup method is efficient for data recovery. If a production equipment malfunctions and Friday's data needs to be recovered, only Friday's backup data needs to be retrieved for a single recovery.
[0064] Figure 2 This diagram illustrates a cumulative incremental backup method provided in an embodiment of this application. Cumulative incremental backup involves backing up all data at once (e.g., full backup data), and then backing up additional data relative to the full backup data each day (e.g., incremental backup data). Figure 2 As shown, all data was backed up last Sunday, and additional data was backed up on Monday. Tuesday's backup also included the additional data from last Sunday, and so on, until a full backup was performed on Sunday. It can be seen that this backup method uses less storage space than a full backup. However, during data recovery, to restore Friday's data, the full backup from last Sunday must be restored first, followed by the incremental backup from Friday, requiring two restores. Therefore, this backup scheme takes longer to recover data than a full backup.
[0065] Figure 3 This diagram illustrates a differential incremental backup method provided in an embodiment of this application. Differential incremental backup involves backing up all data once (i.e., a full backup), and then backing up the data that has changed relative to the previous backup daily (also known as incremental backup). Figure 3 As shown, all data was backed up last Sunday, and data added compared to last Sunday was backed up on Monday, Tuesday, Wednesday, and so on, until a full backup was performed on Sunday. It can be seen that this backup method backs up the data that has changed since the last backup, thus requiring the least amount of storage space. However, during data recovery, if data from Friday is to be recovered, data from last Sunday to Friday needs to be recovered sequentially, requiring six recovery attempts. Therefore, this backup scheme has the longest data recovery time.
[0066] The rapid iteration and upgrading of information infrastructure, along with the emergence of various virtualization, cloud computing, and hyper-converged technologies, has led to a surge in enterprise data volumes. Since full backup solutions demand enormous storage space, most enterprises currently employ cumulative incremental backups or differential incremental backups to save on storage costs. The current disaster recovery process involves data recovery via backup equipment after a production equipment failure, followed by the restarting of business applications (service resumption) to continue providing services. However, based on the above analysis, the lengthy recovery times required for cumulative incremental backups and differential incremental backups, coupled with the extended service resumption time, significantly impact customer experience and can negatively affect the company's reputation.
[0067] Based on this, this application provides a service recovery method. When data from production equipment needs to be recovered (e.g., due to data loss, data misoperation, or storage device damage), the backup device can receive a service switching instruction and start the service application, running the application based on its own stored backup data. This allows the backup device to replace the production equipment in providing services, ensuring service continuity and effectively improving service recovery efficiency.
[0068] Figure 4 This is a schematic diagram of the architecture of a business recovery system provided in an embodiment of this application. The business recovery system may include a disaster recovery device, a production device, and a backup device, all three types of devices being interconnected. The production device is equipped with business applications to meet users' needs for processing business data. The backup device is used to periodically copy the business data from the production device. When the production device fails, it can restore the backed-up business data for users, preventing data loss. Furthermore, the backup device is equipped with the same business applications as the production device, giving it the data processing capabilities of the production device. It can serve as a replacement for the production device, allowing users to read backup data or write new data through the backup device when the production device is unavailable. The disaster recovery device is a device that monitors the operating status of the production device. Specifically, the disaster recovery device is connected to the production device via a heartbeat mechanism.
[0069] A heartbeat connection is a connection mechanism in which one party periodically sends a heartbeat packet to the other to let the other know that its operating status is normal. For example, in this embodiment, the production equipment can periodically send heartbeat packets to the disaster recovery equipment to indicate that its operating status is normal. If the disaster recovery equipment does not receive a heartbeat packet for a period of time, the disaster recovery equipment can determine that there is a problem with the operation of the production equipment and instruct the backup equipment to start service recovery.
[0070] Optionally, the aforementioned production equipment can be computing devices, and backup equipment and disaster recovery equipment can also be computing devices. This application embodiment does not impose any restrictions on the specific form of the computing device. For example, a computing device can specifically be a terminal device or a network device. A terminal device can be referred to as: a terminal, user equipment (UE), terminal device, mobile device, user terminal, wireless communication device, etc. A terminal device can specifically be a mobile phone, augmented reality (AR) device, virtual reality (VR) device, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), etc. A network device can specifically be a server, etc. A server can be a single physical or logical server, or two or more physical or logical servers sharing different responsibilities and cooperating to achieve the various functions of the server.
[0071] refer to Figure 4 The production equipment may include a motherboard, processor, and memory. The processor is mounted on the motherboard and connected to the memory via the motherboard. The memory in the production equipment stores business data, and the processor can run an operating system. It uses computer instructions stored in the operating system to complete tasks specified by the user for business applications; this process includes the business application's processing of business data. A backup agent, acting as communication software between the backup device and the production equipment, identifies business data in the production equipment and backs it up to the backup device, enabling interaction between the two. The backup device also includes a motherboard, processor, and memory. The processor runs business applications through the operating system, and the memory stores backup data. The processor and memory work together to enable the backup device to process and store backup data.
[0072] In one possible implementation, production equipment and backup equipment can communicate via a network, as can disaster recovery equipment and backup equipment. Optionally, the communication network can be a wired network or a wireless network.
[0073] Optionally, the aforementioned wireless or wired networks use standard communication technologies and / or protocols. The network is typically the Internet, but can also be any network, including but not limited to local area networks (LANs), metropolitan area networks (MANs), wide area networks (WANs), mobile, wired or wireless networks, private networks, or any combination of virtual private networks. In some embodiments, technologies and / or formats including Hypertext Markup Language (HTML), Extensible Markup Language (XML), etc., are used to represent data exchanged over the network. Furthermore, conventional encryption technologies such as Secure Sockets Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), and Internet Protocol Security (IPsec) can be used to encrypt all or some links. In other embodiments, custom and / or dedicated data communication technologies can be used to replace or supplement the aforementioned data communication technologies.
[0074] Figure 5 This is a flowchart illustrating a service recovery method provided in an embodiment of this application. Exemplarily, the service recovery method provided in this application can be applied to... Figure 4 In the backup device of the system architecture shown.
[0075] like Figure 5 As shown, the business recovery method provided in this application may specifically include the following steps:
[0076] S501, Backup device receives service switching instructions.
[0077] The service switching instruction is used to instruct the switching of business applications running on the production equipment to the backup equipment. The service switching instruction includes the identifier of the business application. The first storage space of the backup equipment stores backup data of the business data generated by the business applications running on the production equipment. This backup data includes a first full backup and incremental backups. This first storage space is... Figure 4 The backup device shown has a specific area in its memory used to store backup data.
[0078] As mentioned earlier, the backup device has the same business applications installed as the production device. This allows the backup device to receive a business switching instruction when the production device experiences a storage failure and needs to recover data. In other words, the backup device runs the business applications to provide business services to the outside world in place of the production device.
[0079] In one possible implementation, the production equipment and the disaster recovery equipment are connected via a heartbeat. When the production equipment experiences a storage failure and needs to recover data, the disaster recovery equipment can automatically detect the storage failure based on the heartbeat mechanism and send a service switching instruction carrying the identifier of the business application to the backup equipment to instruct the business application to be switched to the backup equipment.
[0080] In another possible implementation, when a storage failure occurs in the production equipment and data needs to be recovered, staff can proactively send a service switching instruction to the backup device through the disaster recovery device or the user-side terminal to instruct the service application to switch to the backup device. This application embodiment does not limit the specific implementation of this.
[0081] S502. In response to the service switching command, the backup device starts the service application according to the identifier.
[0082] It should be understood that the identifier for a business application can refer to the business application running on the production device at the time of the storage failure, or it can refer to one or more business applications with the highest priority, or all business applications running on the production device. In response to a service switchover command, the backup device can start these business applications based on the identifier to provide services.
[0083] S503, In response to a read operation of a business application, the backup device obtains the first business data from the first full backup data or incremental backup data.
[0084] The first business data is the data required for the backup device to run business applications.
[0085] It is understandable that the operation of business applications requires the support of business data. The primary storage space of the backup device stores backup data of the business data required for the operation of the production equipment. As mentioned earlier, the backup data specifically includes primary full backup data and incremental backup data. Therefore, during the operation of the business application, if the backup device detects a read operation by the business application, the backup device retrieves the primary business data required by the business application from either the primary full backup data or the incremental backup data.
[0086] Specifically, such as Figure 6 As shown, the above S503 can be implemented by S5031-S5033.
[0087] S5031, Bitmap for backup device to acquire backup data.
[0088] The bitmap includes multiple bits, each bit indicating the storage unit corresponding to each part of the backup data in the first storage space, and each bit indicating the update status of the data in the storage unit corresponding to the bit.
[0089] It should be understood that business data is described using bitmaps during backup, and these bitmaps are stored together with the backup data. Therefore, the backup device can access the bitmap of the backup data. Each bit in the bitmap indicates a storage unit within the first storage space for a specific portion of the backup data, specifically indicating the logical address of that storage unit. For example, Figure 7 This document provides a schematic diagram illustrating the relationship between storage space and a bitmap. The storage space is divided into nine equal storage units, labeled from left to right as storage units 1-9, with each storage unit corresponding to a portion of data. Furthermore, the bitmap consists of 3×3 squares, with each square representing one bit, and each bit in the bitmap corresponding one-to-one with a storage unit.
[0090] It should be noted that the size of the storage units can be determined based on the actual scenario. It's easy to understand that the finer the granularity of the division, i.e., the smaller each storage unit, the more storage units there are, and consequently, the more boxes in the bitmap. This application embodiment only illustrates nine storage units and does not constitute a limitation. Furthermore, the bitmap's form is merely illustrative; it could also be shown as nine boxes arranged in rows. This application is only an illustration and does not constitute a limitation.
[0091] In one possible implementation, there are multiple bitmaps. For example, the backup data includes a first full backup and incremental backups. The first full backup has its own corresponding bitmap, and the incremental backup also has one or more corresponding bitmaps. The backup device then obtains the bitmaps for the full backup and the incremental backups, respectively.
[0092] For example, Figure 8 This is a schematic diagram of a bitmap of backup data provided in an embodiment of this application. This embodiment uses incremental backup with bit-difference as an example for illustration. The backup data includes first full backup data and incremental backup data. The incremental backup data includes increment 1, increment 2, and increment 3, representing incremental data backed up at different backup times. It can be seen that each storage unit in the first full backup data stores a portion of data, represented by ABCDEF.
[0093] As mentioned earlier, since the first full backup data represents all the data backed up at the corresponding moment, each bit in bitmap 0 corresponding to the first full backup data is 0, indicating that the data in the corresponding storage unit has not been updated. Compared to the first full backup data, increment 1 indicates that the data in storage unit 2 has been updated, and the updated data is represented as G. Therefore, the bits corresponding to increment 1... Figure 1 In the diagram, the bit corresponding to storage unit 2 (the box in the first row, second column) becomes 1, indicating that the data in storage unit 2 has been updated. Compared to increment 1, increment 2 indicates that the data in storage unit 5 has been updated; the updated data is represented as H. Therefore, the bit corresponding to increment 2... Figure 2 In the diagram, the bit corresponding to storage unit 5 (the box in the second row and second column) is 1, while the others remain 0. Similarly, the bit corresponding to increment 3... Figure 3 There are two digits that are 1, which will not be repeated here.
[0094] S5032. Determine the target bit corresponding to the address of the first service data in the read operation in the bitmap.
[0095] The target bit indicates whether the first business data has been updated.
[0096] It should be understood that the read operation of a business application carries the address of the first business data requested, i.e., the logical address of the data request. As mentioned earlier, the bitmap indicates the logical address of the storage unit; therefore, the backup device can determine the target bit from the bitmap based on the address of the first business data in the read operation. Furthermore, it can also determine whether the first business data has been updated based on the indication status of the target bit.
[0097] It should be noted that when there are multiple bitmaps, the backup device can merge them to facilitate querying the target bit based on the merged bitmap. For example, in conjunction with the aforementioned... Figure 8 The example in the image illustrates this. Bitmap 0-bit Figure 3 All are 3x3 bitmaps, and each bit at the same position in the bitmap points to the same storage unit. Specifically, the backup device merges the bitmaps according to an "OR" relationship; that is, if there is a 1 at the same position in multiple bitmaps, the corresponding bit in the merged bitmap will be 1, otherwise it will be 0. For example... Figure 9 As shown, bitmap 0-bit Figure 3 After processing based on the "OR" relation, the bits in the first row and second column, the second row and second column, and the second row and third column of the merged bitmap are all set to 1. Furthermore, the backup device can determine the target bit based on the merged bitmap using the logical address carried in the read operation.
[0098] S5033. Obtain the first service data from the first full backup data or incremental backup data according to the target bit and the address of the first service data.
[0099] In some embodiments, after determining the target bit, the backup device can obtain the first business data from the first full backup data or incremental backup data based on the address of the first business data carried in the read operation and the indication status of the target bit, so as to support the operation of business applications.
[0100] It should be noted that, taking differential incremental backup as an example, the backup data includes full backup data and incremental backup data. Generally, full backup data and incremental backup data are stored in different locations, such as on different disks. Therefore, for the backup device, the business application needs to determine whether the read operation requires full backup data or incremental backup data. The bitmap also indicates the data update status of the corresponding storage unit. Therefore, S5033 can specifically achieve this through the following steps A and B:
[0101] A. If the target bit indication data is not updated, retrieve the first service data from the first full backup data based on the address of the first service data.
[0102] For example, combining Figure 7 and Figure 9 This will be explained. If the target bit determined by the backup device based on the address of the first business data in the read operation is the first row and first column, that is... Figure 7 The storage unit 1 shown illustrates the read operation requirements of the business application, specifically the first business data stored in storage unit 1. From... Figure 9 It can be seen that since the target bit is 0, it means that the data in storage unit 1 has not been updated since the full backup. Therefore, the backup device can determine the location of storage unit 1 from the first full backup data based on the address, and obtain the first business data from it.
[0103] B. When the target bit indicates that the data has been updated, retrieve the first service data from the incremental backup data based on the address of the first service data.
[0104] For example, continue to combine Figure 7 and Figure 9 This will be explained. If the target bit determined by the backup device based on the address of the first business data in the read operation is the second row and second column, that is... Figure 7 The storage unit 2 shown illustrates the read operation requirements of the business application, specifically the first business data stored in storage unit 2. From... Figure 9 It is known that since the target bit is 1, it indicates that the data in storage unit 2 has been updated relative to the full backup data. If data is still read from the full backup variable, it may lead to read failure. Therefore, when the target bit indicates that the data has been updated, the backup device can determine the location of storage unit 2 from the incremental backup data based on the address and obtain the first business data from it.
[0105] Optionally, as mentioned above, there may be multiple incremental backups, namely incremental 1, incremental 2 and incremental 3. When the backup device obtains the first business data from the incremental backups, it will first obtain it from the latest backup (e.g., incremental 3). If the corresponding data cannot be found, it will obtain it from the second newest backup (e.g., incremental 2), and so on.
[0106] S504. Run business applications based on the first business data.
[0107] It should be understood that after the backup device obtains the first business data, it can return the first business data to the business application to support the operation of the business application.
[0108] It's important to note that the operation of business applications essentially involves reading and writing data. Therefore, for backup devices to support business applications, they must address not only the data reading issue but also the data writing issue. Therefore, combining... Figure 5 ,like Figure 10 As shown, the backup device can also execute the following S505-S506.
[0109] S505, in response to a write operation by a business application, the backup device writes second business data into the second storage space of the backup device.
[0110] The second type of business data refers to data generated during the operation of business applications on the backup device. The second storage space is... Figure 4 The backup device shown has a specific storage area in its memory used to store second business data. Furthermore, this second storage space differs from the first storage space.
[0111] In some embodiments, the backup device can detect a write operation of a business application, the write operation carrying second business data. In response to the write operation, the backup device can write the second business data into a second storage space different from the first storage space.
[0112] It should be noted that the integrity of backup data is the guarantee for data recovery from production equipment. Therefore, new data generated during business application operation cannot be directly written to the backup data to avoid contaminating the backup data (i.e., rewriting the backup data). Therefore, the second storage space for storing the second business data should be different from the first storage space for storing the backup data.
[0113] Optionally, the second storage space can be a preset fixed area in the backup device's memory, or it can be a temporary area automatically allocated in the memory based on the logical address corresponding to the available storage space in the memory after receiving a service switching instruction. This application embodiment does not limit the specific implementation of this.
[0114] S506, The backup device generates a bitmap of the second business data.
[0115] The bitmap of the second business data is related to the bitmap of the backup data.
[0116] As mentioned earlier, using bitmaps for description allows for quick identification of which storage units have experienced data changes, facilitating targeted data recovery. Therefore, the backup device of this application uses bitmaps to describe the second service data, i.e., generates a bitmap of the second service data.
[0117] The bitmap for the second business data is related to the bitmap for the backup data, meaning that the storage units indicated by the bitmaps are identical, and the number of bits in the bitmaps is also identical. For example, if the temporary write data area where the second business data is stored is also divided into 9 storage units, corresponding one-to-one with the storage units where the backup data is stored, then the bitmap corresponding to the second business data is also a 3×3 square. Initially, each bit in the bitmap of the second business data is 0. If a write operation by the business application is detected, writing data to storage unit 2 in the temporary write data area, then the corresponding bitmap number is updated to 1. Similarly, if data is written to other storage units, the corresponding bitmap is updated.
[0118] It should be noted that, in conjunction with the above example, if data is written to storage unit 2 and the corresponding bit is updated to 1, and data is written to storage unit 2 again, the number of that bit in the bitmap will remain unchanged.
[0119] It should be understood that the above process primarily describes the operational flow of business applications, enabling the backup device to provide business services. Additionally, the backup device also performs a data recovery process simultaneously. Combined with... Figure 5 and Figure 10 ,like Figure 11 As shown, the backup device also performs the following S507-S508.
[0120] S507, The backup device uses a bitmap of backup data to generate a first full backup data and incremental backup data, and restores the backup data to form a second full backup data.
[0121] It should be understood that this step can be executed immediately after S501, i.e., upon receiving the service switchover command. In other words, the backup device supports the operation of business applications in the foreground to ensure uninterrupted business operations, while the background performs the data recovery (or data synchronization) process to enable the production equipment to restore data in a timely manner.
[0122] Specifically, backup data includes full backups and incremental backups. The backup device restores data in chronological order of backup time. For example, continuing to combine... Figure 8The process involves first restoring the first full backup data to the production device, and then restoring the incremental backup data (incremental 1, incremental 2, and incremental 3 in sequence). It should be noted that the backup data restoration process can be based on the bitmap of the backup data. For example, during the restoration of incremental 1, its corresponding bitmap... Figure 1 If the bit in the first row and second column is 1, then the data in its corresponding storage unit 2 is restored to the production device. After restoration, the system continues to check if the next bit in the bitmap is 1. Similarly, during the restoration of increment 2, its corresponding bit... Figure 2 If the bit in the second row and second column is 1, then the data in the corresponding storage unit 5 is restored to the production equipment. Finally, if... Figure 8 As shown, the second full backup data formed after restoring the backup data can be represented by the bits AICDHJ in the order of storage units 1-6. It can be seen that by combining recovery with bitmaps, storage units with updated data can be recovered in a targeted manner, shortening the data query and copying time and greatly improving the efficiency of data recovery.
[0123] S508: The backup device restores the second business data based on the bitmap of the second business data, the bitmap of the second full backup data, the second business data, and the second full backup data, forming the third full backup data.
[0124] It should be understood that the second business data refers to new data generated when the business application runs on the backup device. Therefore, during the data recovery process, the second business data also needs to be restored to the production device to ensure data integrity and validity. Specifically, in S506, the backup device generates a bitmap of the second business data. After the backup data recovery is complete, the backup device can restore the second business data based on the bitmap of the second business data, the bitmap of the second full backup data, the second business data, and the second full backup data.
[0125] It should be understood that, as mentioned earlier, the bitmap of the second business data is associated with the bitmap of the backup data. Therefore, based on the bitmap of the second business data and the bitmap of the second full backup data, it is possible to determine which storage units in the second storage space have been updated, and then restore the updated storage units to the production equipment. For example, as... Figure 12As shown, since the second full backup data is obtained by restoring the first full backup data and incremental backup data, there is no data update. Therefore, each bit in the corresponding bitmap of the second full backup data is 0. Further, in the bitmap corresponding to the second business data, the bit in the first row and third column is 1. The updated data in storage unit 3 is represented by K. Comparing the two bitmaps above, it can be determined that the data K in storage unit 2 should be overwritten to the second full backup data to restore the second business data. Therefore, after the backup device restores the second business data based on the second full backup data minus the second business data, the third full data restored to the production device can be represented as AI KDHJ in the order of storage units 1-6.
[0126] Optionally, after S508, the backup device can also release the second storage space. It should be understood that after data recovery, the production equipment can continue to run business applications to provide services, while the backup device can release the temporary write data area to save storage space, continue performing periodic backups, and store the production equipment's business data. Specifically, if the second storage space is a preset fixed area, releasing the second storage space can be represented as clearing all data in the second storage space. If the second storage space is a partitioned temporary area, releasing the second storage space can be represented as clearing all data and deleting the logical address indicating the second storage space.
[0127] Figure 13 This is a schematic diagram of a service recovery process provided in an embodiment of this application. Initially, the backup device receives a service switching instruction and enters service recovery mode. First, a temporary write data area (i.e., the aforementioned second storage space) is established, and a bitmap of the backup data is loaded. If a read operation of a service application is detected, it is determined whether the bitmap is valid (i.e., S5033 above). If valid, data is read from the incremental backup data. If not, data is read from the full backup data. If a write operation of a service application is detected, data is written to the temporary write data area, and the bitmap is refreshed. Furthermore, after entering service recovery mode, data recovery is also initiated (i.e., S508-509 above) to restore the backup data and the data in the temporary write data area to the production device, and the process ends.
[0128] Figure 14 This is a schematic diagram of a data recovery process provided in an embodiment of this application. After data recovery is initiated, the full backup data is recovered first. Then, the validity of the bitmap is determined (any bit in the bitmap that is 1 can be considered valid, i.e., incremental backup data exists). If so, the incremental backup data is synchronized. After synchronization is completed, the temporary write data area (i.e., the aforementioned second storage space) is synchronized. If not, it means there is no incremental backup data, and the temporary write data area is directly synchronized to obtain the full data after data recovery, and the process ends.
[0129] The technical solutions provided by the above embodiments bring at least the following beneficial effects: Existing technologies require restoring both full and incremental backup data from the backup data to the production equipment to form updated full backup data before starting the business application. Compared with the prior art, the business recovery method provided in this application, when business recovery is needed on the production equipment, first switches the business to the backup equipment. The full or incremental backup data stored on the backup equipment supports the operation of the business application. Normal business operation can be achieved without waiting for the full and incremental backup data to be restored to form new full backup data, greatly improving the efficiency of business recovery.
[0130] Understandably, this application addresses the drawback of the time-consuming process of restoring data to production equipment before restarting business applications. It ensures that users can continue to use the business even when production equipment malfunctions, significantly shortening the recovery time object (RTO). This makes it effective for business scenarios with high service-level agreement (SLA) requirements.
[0131] Furthermore, this application can also simultaneously restore data to production equipment, ensuring uninterrupted business operations while promptly restoring the operational functions of the production equipment. Additionally, this solution can save new data generated during business operations and restore this new data to production equipment during the data recovery process, ensuring data integrity and consistency.
[0132] As can be seen, the above mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the embodiments of this application provide corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0133] In an exemplary embodiment, this application also provides a service recovery apparatus, which may be the backup device described above. The service recovery apparatus may include one or more functional modules for implementing the service recovery method of the above method embodiments.
[0134] For example, Figure 15 This is a schematic diagram illustrating the composition of a service recovery device provided in an embodiment of this application. Figure 15As shown, the service recovery device includes: a receiving module 1501, a processing module 1502, and an acquisition module 1503.
[0135] The receiving module 1501 is used to receive a service switching instruction; the service switching instruction is used to instruct the service application running on the production equipment to be switched to the backup equipment; the service switching instruction includes the identifier of the service application; the storage space of the backup equipment stores backup data of the service data generated by the service application running on the production equipment, wherein the backup data includes first full backup data and incremental backup data.
[0136] The processing module 1502 is used to initiate a service application based on an identifier in response to a service switching command.
[0137] The acquisition module 1503 is used to acquire first business data from the first full backup data or incremental backup data in response to a read operation of a business application; the first business data is the data required by the backup device to run the business application.
[0138] The processing module 1502 is also used to run business applications based on the first business data.
[0139] In some embodiments, the acquisition module 1503 is specifically used to: acquire a bitmap of backup data, the bitmap including multiple bits, each bit being used to indicate the storage unit corresponding to each part of the backup data in the storage space, and each bit being used to indicate the update status of the data in the storage unit corresponding to the bit; determine the target bit corresponding to the address of the first service data in the read operation in the bitmap, the target bit indicating whether the first service data has been updated; and acquire the first service data from the first full backup data or incremental backup data according to the target bit and the address of the first service data.
[0140] In some embodiments, the acquisition module 1503 is specifically configured to: acquire first service data from first full backup data according to the address of first service data when the target bit indicates that the data has not been updated; and acquire first service data from incremental backup data according to the address of first service data when the target bit indicates that the data has been updated.
[0141] In some embodiments, the processing module 1502 is further configured to write second business data into a temporary write data area in response to a write operation of a business application; the second business data is data generated during the operation of the business application on the backup device; the processing module 1502 is further configured to generate a bitmap of the second business data, wherein the bitmap of the second business data is associated with the bitmap of the backup data.
[0142] In some embodiments, the above apparatus further includes: a recovery module 1504; the recovery module 1504 is configured to: restore backup data based on the bitmap of the backup data, the first full backup data and the incremental backup data to form second full backup data; and restore second service data based on the bitmap of the second service data, the bitmap of the second full backup data, the second service data and the second full backup data to form third full backup data.
[0143] In some embodiments, the processing module 1502 is further configured to release the temporary write data area.
[0144] For example, Figure 16 This is a schematic diagram illustrating the composition of another service recovery device provided in an embodiment of this application. Figure 16 As shown, the service restoration device includes a receiving module 1601 and a processing module 1602.
[0145] The receiving module 1601 is used to receive a service switching instruction; the service switching instruction is used to instruct the business application running on the production equipment to be switched to the backup equipment; the service switching instruction includes the identifier of the business application; the first storage space of the backup equipment stores backup data of the business data generated by the business application running on the production equipment; the backup data includes first full backup data and incremental backup data.
[0146] The processing module 1602 is used to start the service application according to the identifier in response to the service switching command.
[0147] The processing module 1602 is also used to write second business data into the second storage space of the backup device in response to a write operation of the business application; the second business data is data generated by the backup device during the process of running the business application based on the first business data; the first business data is obtained by the backup device from the first full backup data or incremental backup data; the second storage space is different from the first storage space.
[0148] In some embodiments, the processing module 1602 is further configured to generate a bitmap of second business data, wherein the bitmap of the second business data is associated with the bitmap of the backup data.
[0149] This application also provides a backup device. For example, such as... Figure 17 As shown, the backup device includes a transceiver 1701 and a processor 1702.
[0150] Transceiver 1701 is used to receive service switching instructions; the service switching instructions are used to instruct the switching of the service application running on the production equipment to the backup equipment; the service switching instructions include the identifier of the service application; the storage space of the backup equipment stores backup data of the service data generated by the service application running on the production equipment, wherein the backup data includes first full backup data and incremental backup data.
[0151] The processor 1702 is used to, in response to a service switching instruction, start a service application based on an identifier; the processor 1702 is also used to, in response to a read operation of the service application, obtain first service data from first full backup data or incremental backup data; the first service data is the data required by the backup device to run the service application.
[0152] The processor 1702 is also used to run business applications based on the first business data.
[0153] In some embodiments, the processor 1702 is specifically configured to: acquire a bitmap of backup data, the bitmap including multiple bits, each bit being used to indicate the storage unit corresponding to each part of the backup data in the first storage space, and each bit being used to indicate the update status of the data in the storage unit corresponding to the bit; determine a target bit corresponding to the address of the first service data in the read operation in the bitmap, the target bit indicating whether the first service data has been updated; and acquire the first service data from the first full backup data or incremental backup data according to the target bit and the address of the first service data.
[0154] In some embodiments, the processor 1702 is specifically configured to: obtain first service data from first full backup data according to the address of first service data when the target bit indicates that the data has not been updated; and obtain first service data from incremental backup data according to the address of first service data when the target bit indicates that the data has been updated.
[0155] In some embodiments, the processor 1702 is further configured to, in response to a write operation of a business application, write second business data into a second storage space of the backup device; the second business data is data generated during the operation of the business application on the backup device; the second storage space is different from the first storage space; generate a bitmap of the second business data, wherein the bitmap of the second business data is associated with the bitmap of the backup data;
[0156] In some embodiments, the processor 1702 is further configured to: restore backup data based on a bitmap of backup data, a first full backup data, and incremental backup data to form a second full backup data; and restore second service data based on a bitmap of second service data, a bitmap of the second full backup data, the second service data, and the second full backup data to form a third full backup data.
[0157] In some embodiments, the processor 1702 is also used to free up a second storage space.
[0158] This application also provides another backup device. For example, such as... Figure 18 As shown, the backup device includes a transceiver 1801 and a processor 1802.
[0159] Transceiver 1801 is used to receive service switching instructions; the service switching instructions are used to instruct the switching of the service application running on the production equipment to the backup equipment; the service switching instructions include the identifier of the service application; the first storage space of the backup equipment stores backup data of the service data generated by the service application running on the production equipment; the backup data includes first full backup data and incremental backup data.
[0160] The processor 1802 is used to initiate a service application based on an identifier in response to a service switching instruction.
[0161] The processor 1802 is also used to write second business data into the second storage space of the backup device in response to a write operation of a business application; the second business data is data generated by the backup device during the process of running a business application based on the first business data; the first business data is obtained by the backup device from the first full backup data or incremental backup data; the second storage space is different from the first storage space.
[0162] In some embodiments, the processor 1802 is further configured to generate a bitmap of second service data, the bitmap of the second service data being associated with the bitmap of the backup data.
[0163] This application also provides a processor that can be installed in the aforementioned backup device. The processor includes an interface and logic circuitry, the logic circuitry being used to execute the service recovery method provided in the embodiments of this application.
[0164] This application also provides a business recovery system, which includes: a disaster recovery device, a production device, and a backup device; the disaster recovery device is connected to the production device via a heartbeat and is used to detect the operating status of the production device; the disaster recovery device is used to send a business switching instruction to the backup device when it detects that the heartbeat of the production device has stopped, so that the backup device executes the business recovery method provided in the embodiments of this application.
[0165] In the case where the functions of the integrated modules described above are implemented in hardware, this application embodiment provides a schematic diagram of a computing device, which can be the aforementioned backup device. For example... Figure 19 As shown, the computing device 1900 includes: a processor 1902, a communication interface 1903, and a bus 1904. Optionally, the electronic device may also include a memory 1901.
[0166] Processor 1902 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 1902 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 1902 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0167] The communication interface 1903 is used to connect to other devices via a communication network. This communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc.
[0168] The memory 1901 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0169] As one possible implementation, the memory 1901 can exist independently of the processor 1902. The memory 1901 can be connected to the processor 1902 via the bus 1904 and is used to store instructions or program code. When the processor 1902 calls and executes the instructions or program code stored in the memory 1901, it can implement the service recovery method provided in the embodiments of this application.
[0170] In another possible implementation, the memory 1901 can also be integrated with the processor 1902.
[0171] The 1904 bus can be an extended industry standard architecture (EISA) bus, etc. The 1904 bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 19The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0172] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the service recovery device can be divided into different functional modules to complete all or part of the functions described above.
[0173] This application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware. The program can be stored in the computer-readable storage medium, and when executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be any of the foregoing embodiments or memory. The computer-readable storage medium can also be an external storage device of the above-mentioned service recovery device, such as a plug-in hard drive, smart memory card (SMC), secure digital card (SD) card, flash card, etc., equipped on the service recovery device. Further, the computer-readable storage medium can include both internal storage units of the service recovery device and external storage devices. The computer-readable storage medium is used to store the computer program and other programs and data required by the service recovery device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
[0174] This application also provides a computer program product, which includes a computer program that, when run on a computing device, causes the computer to execute any of the service recovery methods provided in the above embodiments.
[0175] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, disclosure, and appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple instances. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0176] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.
[0177] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A service recovery method, characterized in that, The method includes: Receive a service switching instruction; the service switching instruction is used to instruct the service application running on the production equipment to run on the backup equipment; the service switching instruction includes the identifier of the service application; the first storage space of the backup equipment stores backup data of the service data generated by the production equipment running the service application, wherein the backup data includes first full backup data and incremental backup data; In response to the service switching instruction, the service application is launched according to the identifier; In response to a read operation of the business application, first business data is obtained from the first full backup data or the incremental backup data; the first business data is the data required by the backup device to run the business application. Based on the first business data, run the business application; The step of obtaining first business data from the first full backup data or the incremental backup data in response to the read operation of the business application includes: Obtain a bitmap of the backup data, the bitmap including multiple bits, each bit being used to indicate the storage unit corresponding to each part of the backup data in the first storage space, and each bit being used to indicate the update status of the data in the storage unit corresponding to the bit; In the bitmap, a target bit corresponding to the address of the first service data in the read operation is determined, and the target bit indicates whether the first service data is updated. If the target bit indication data is not updated, the first service data is obtained from the first full backup data according to the address of the first service data; When the target bit indicates that the data has been updated, the first service data is retrieved from the incremental backup data according to the address of the first service data.
2. The method according to claim 1, characterized in that, The method further includes: In response to a write operation by the business application, second business data is written to the second storage space of the backup device; the second business data is data generated during the operation of the business application on the backup device; the second storage space is different from the first storage space. A bitmap of the second service data is generated, and the bitmap of the second service data is associated with the bitmap of the backup data.
3. The method according to claim 2, characterized in that, The method further includes: Based on the bitmap of the backup data, the first full backup data, and the incremental backup data, the backup data is restored to form the second full backup data; Based on the bitmap of the second business data, the bitmap of the second full backup data, the second business data, and the second full backup data, the second business data is restored to form the third full backup data.
4. The method according to claim 3, characterized in that, The method further includes: Release the second storage space.
5. A service recovery method, characterized in that, The method includes: The system receives a service switching instruction; the service switching instruction is used to instruct the service application running on the production equipment to run on the backup equipment; the service switching instruction includes the identifier of the service application; the first storage space of the backup equipment stores backup data of the service data generated by the production equipment running the service application; the backup data includes first full backup data and incremental backup data; In response to the service switching instruction, the service application is launched according to the identifier; In response to a write operation of the business application, second business data is written to the second storage space of the backup device; the second business data is data generated by the backup device during the process of running the business application based on the first business data; the first business data is obtained by the backup device from the first full backup data or the incremental backup data in response to a read operation of the business application; the second storage space is different from the first storage space. The first business data is obtained through the following process: Obtain a bitmap of the backup data, the bitmap including multiple bits, each bit being used to indicate the storage unit corresponding to each part of the backup data in the first storage space, and each bit being used to indicate the update status of the data in the storage unit corresponding to the bit; In the bitmap, a target bit corresponding to the address of the first service data in the read operation is determined, and the target bit indicates whether the first service data is updated. If the target bit indication data is not updated, the first service data is obtained from the first full backup data according to the address of the first service data; When the target bit indicates that the data has been updated, the first service data is retrieved from the incremental backup data according to the address of the first service data.
6. The method according to claim 5, characterized in that, The method further includes: A bitmap of the second service data is generated, and the bitmap of the second service data is associated with the bitmap of the backup data.
7. A backup device, characterized in that, The backup device includes: a transceiver and a processor; The transceiver is used to receive a service switching instruction; the service switching instruction is used to instruct the service application running on the production equipment to be switched to run on the backup equipment; the service switching instruction includes the identifier of the service application; the first storage space of the backup equipment stores backup data of the service data generated by the production equipment running the service application; wherein, the backup data includes first full backup data and incremental backup data; The processor is configured to, in response to the service switching instruction, launch the service application according to the identifier; The processor is further configured to, in response to a read operation of the business application, obtain first business data from the first full backup data or the incremental backup data; the first business data is the data required by the backup device to run the business application; The processor is also used to run the business application based on the first business data; The step of obtaining first business data from the first full backup data or the incremental backup data in response to the read operation of the business application includes: Obtain a bitmap of the backup data, the bitmap including multiple bits, each bit being used to indicate the storage unit corresponding to each part of the backup data in the first storage space, and each bit being used to indicate the update status of the data in the storage unit corresponding to the bit; In the bitmap, a target bit corresponding to the address of the first service data in the read operation is determined, and the target bit indicates whether the first service data is updated. If the target bit indication data is not updated, the first service data is obtained from the first full backup data according to the address of the first service data; When the target bit indicates that the data has been updated, the first service data is retrieved from the incremental backup data according to the address of the first service data.
8. A backup device, characterized in that, The backup device includes: a transceiver and a processor; The transceiver is used to receive a service switching instruction; the service switching instruction is used to instruct the service application running on the production equipment to be switched to run on the backup equipment; the service switching instruction includes the identifier of the service application; the first storage space of the backup equipment stores backup data of the service data generated by the production equipment running the service application; the backup data includes first full backup data and incremental backup data; The processor is configured to, in response to the service switching instruction, launch the service application according to the identifier; The processor is further configured to, in response to a write operation of the business application, write second business data into the second storage space of the backup device; the second business data is data generated by the backup device during the process of running the business application based on the first business data; the first business data is obtained by the backup device from the first full backup data or the incremental backup data in response to a read operation of the business application; the second storage space is different from the first storage space; The first business data is obtained through the following process: Obtain a bitmap of the backup data, the bitmap including multiple bits, each bit being used to indicate the storage unit corresponding to each part of the backup data in the first storage space, and each bit being used to indicate the update status of the data in the storage unit corresponding to the bit; In the bitmap, a target bit corresponding to the address of the first service data in the read operation is determined, and the target bit indicates whether the first service data is updated. If the target bit indication data is not updated, the first service data is obtained from the first full backup data according to the address of the first service data; When the target bit indicates that the data has been updated, the first service data is retrieved from the incremental backup data according to the address of the first service data.
Citation Information
Patent Citations
System and method for big data remote disaster recovery backup of ground application
CN103838646A
Fault processing method and device, network equipment and storage medium
CN114244690A
Data backup method and system and related equipment
CN115248746A
Data recovery processing method and device, equipment, storage medium and program product
CN115292094A
