Data backup method, apparatus and device
By enabling clients to independently determine data backup strategies and temporary storage solutions, the problem of unreliable data backup caused by failures in centralized backup management systems is solved. This achieves effective backup and rapid recovery under different conditions, improving the flexibility and reliability of data backup.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- PEOPLE'S INSURANCE COMPANY OF CHINA
- Filing Date
- 2023-10-07
- Publication Date
- 2026-06-19
AI Technical Summary
Existing backup management systems generally adopt a centralized master-slave architecture, which leads to excessive concentration of risk. When the backup management system fails, all clients cannot effectively back up their data, seriously affecting the security and reliability of the data.
Based on the status of the backup management system and the target control link, as well as the data backup strategy, the client autonomously decides whether to perform data backup in a normal or faulty state, temporarily stores the data using a preset second storage device, and migrates the data to the formal storage device after the status is restored to normal, generating backup logs for data recovery.
It enables effective backup under different states of the backup management system and target control link, improving the flexibility and reliability of data backup and ensuring timely and accurate data recovery.
Smart Images

Figure CN117331752B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a data backup method, apparatus, and device. Background Technology
[0002] Data security is extremely important for the banking, insurance and other financial industries. Timely and effective data backup is an effective guarantee and the last line of defense for data security.
[0003] In related technologies, existing backup management systems generally adopt a centralized master-slave architecture for data backup, which leads to excessive concentration of risks. When the backup management system fails, all clients will be unable to effectively back up their data, seriously affecting the security and reliability of the data. Summary of the Invention
[0004] To address the problems in the prior art, embodiments of the present invention provide a data backup method, apparatus, and device.
[0005] Specifically, the embodiments of the present invention provide the following technical solutions:
[0006] In a first aspect, embodiments of the present invention provide a data backup method, applied to a client, comprising:
[0007] Receives data backup policies from the backup management system; the backup management system is used to maintain data backup policies for at least one client.
[0008] The client performs data backup based on the status of the backup management system, the status of the target control link, and the data backup strategy; the target control link is the transmission link between the backup management system and the client.
[0009] Furthermore, the client performs data backup based on the status of the backup management system, the status of the target control link, and the data backup policy, including:
[0010] When the backup management system and the target control link are in normal condition, the client receives a data backup instruction sent by the backup management system; the data backup instruction is used to instruct the client to perform data backup based on the data backup policy.
[0011] The client performs data backup on the first storage device according to the data backup instructions and data backup policy.
[0012] Furthermore, the client performs data backup based on the status of the backup management system, the status of the target control link, and the data backup policy, including:
[0013] If the client detects a fault in the status of the backup management system and / or the target control link, the client performs data backup on a preset second storage device based on the data backup policy.
[0014] Furthermore, after the client performs data backup on a preset second storage device based on the data backup strategy, it also includes:
[0015] The client generates a data backup log; the data backup log is used to store the backup time and backup location information of various data.
[0016] The client restores data based on the data backup logs.
[0017] Furthermore, after the client performs data backup on a preset second storage device based on the data backup strategy, it also includes:
[0018] Once the client detects that the status of the backup management system and the target control link has returned to normal, the client sends a request message to the backup management system; the request message is used to request the backup management system to allocate target storage space in the first storage device;
[0019] The client receives a response from the backup management system; the response is used to indicate the target storage space in the first storage device allocated by the backup management system to the client.
[0020] The client sends the backed-up data from the second storage device to the target storage space in the first storage device.
[0021] Furthermore, after the client sends the backed-up data from the second storage device to the target storage space in the first storage device, it also includes:
[0022] The client sends data backup logs to the backup management system; the data backup logs are used to restore the client's backup data.
[0023] Secondly, embodiments of the present invention also provide a data backup device, comprising:
[0024] The receiving module is used to receive data backup policies sent by the backup management system; the backup management system is used to maintain data backup policies for at least one client.
[0025] The backup module is used to perform data backup based on the status of the backup management system, the status of the target control link, and the data backup strategy; the target control link is the transmission link between the backup management system and the client.
[0026] Thirdly, embodiments of the present invention also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the data backup method as described in the first aspect.
[0027] Fourthly, embodiments of the present invention also provide a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the data backup method as described in the first aspect.
[0028] Fifthly, embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the data backup method as described in the first aspect.
[0029] The data backup method, apparatus, and device provided in this invention allow the client to perform data backup based on the status of the backup management system, the status of the target control link, and the data backup strategy. This means the client can perform timely and effective data backup not only when the backup management system and the target control link are in normal states, but also when either the backup management system or the target control link is in a fault state. This effectively solves the deficiency in the prior art where all clients cannot effectively back up data when the backup management system fails. It achieves effective data backup of the backup management system and the target control link under different states, thereby improving the flexibility and reliability of data backup. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0031] Figure 1 This is one of the flowcharts illustrating the data backup method provided in this embodiment of the invention;
[0032] Figure 2 This is a second schematic flowchart of the data backup method provided in this embodiment of the invention;
[0033] Figure 3 This is the third flowchart illustrating the data backup method provided in this embodiment of the invention;
[0034] Figure 4 This is a schematic diagram of the data backup device provided in an embodiment of the present invention;
[0035] Figure 5 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation
[0036] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0037] The method of this invention can be applied to data backup scenarios, enabling effective backup of data between the backup management system and the target control link under different states, thereby improving the flexibility and reliability of data backup.
[0038] In related technologies, existing backup management systems generally adopt a centralized master-slave architecture for data backup, which leads to excessive concentration of risks. When the backup management system fails, all clients will be unable to effectively back up their data, seriously affecting the security and reliability of the data.
[0039] The data backup method of this invention allows the client to perform data backup based on the status of the backup management system, the status of the target control link, and the data backup strategy. This means the client can perform timely and effective data backup not only when the backup management system and the target control link are in normal states, but also when either system or link is in a fault state. This effectively solves the deficiency in existing technologies where all clients cannot effectively back up data when the backup management system fails. It achieves effective data backup of the backup management system and target control link under different states, thereby improving the flexibility and reliability of data backup.
[0040] To facilitate a clearer understanding of the technical solutions of the various embodiments of this application, some technical content related to the various embodiments of this application will be introduced first.
[0041] Existing data security solutions such as Figure 2 The diagram shows a scheduled data backup. Backup management systems typically employ a centralized master-slave architecture, such as Networker, Commvault, NBU, and TSM. The backup steps are as follows:
[0042] 1. The backup management system allocates storage resources and initiates and stops backups.
[0043] 2. Transmit policy information and scheduling commands through the control link;
[0044] 3. The client executes the command;
[0045] 4. Data is transmitted via the "data transmission link";
[0046] 5. Storage space to store data.
[0047] Existing backup management systems generally use a centralized master-slave architecture for data backup, which leads to excessive concentration of risk and seriously affects the security and reliability of data.
[0048] The following is combined Figures 1-5 The technical solution of the present invention will be described in detail with reference to specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0049] Figure 1 This is a flowchart illustrating an embodiment of the data backup method provided by this invention. Figure 1 As shown, the method provided in this embodiment includes:
[0050] Step 101: Receive the data backup policy sent by the backup management system; the backup management system is used to maintain the data backup policy for at least one client.
[0051] Specifically, existing backup management systems generally adopt a centralized master-slave architecture for data backup, which leads to excessive concentration of risk. When the backup management system fails, all clients will be unable to effectively back up their data, seriously affecting the security and reliability of the data.
[0052] To address the aforementioned issues, in this embodiment, the client first receives a data backup policy sent by the backup management system. The backup management system is connected to at least one client and is used to maintain and configure the data backup policies for each client. Optionally, the data backup policy includes information such as the data backup cycle, data backup method, data backup location, and the data to be backed up; no specific limitations are imposed in this embodiment. Optionally, different clients may have different data backup policies, meaning that a data backup policy can be configured specifically for each client.
[0053] Step 102: The client performs data backup based on the status of the backup management system, the status of the target control link, and the data backup strategy; the target control link is the transmission link between the backup management system and the client.
[0054] Specifically, in this embodiment, the status of the backup management system and the target control link can be either normal or faulty. Common faults in the backup management system include certificate issues, backup server logical errors, and server hardware failures. Optionally, a fault in the target control link includes a target control link interruption. When the target control link is interrupted, the scheduling commands of the backup management system cannot be transmitted, resulting in complete failure of client backups. To address these issues, in this embodiment, after receiving the data backup strategy from the backup management system, the client can select the appropriate method for data backup based on the status of the backup management system, the status of the target control link, and the data backup strategy. This means that the client can perform timely and effective data backup not only when the backup management system and target control link are in normal states, but also when either is in a faulty state. This effectively solves the deficiency in the prior art where all clients cannot effectively back up data when the backup management system is faulty, achieving effective data backup of the backup management system and target control link under different states, and improving the flexibility and reliability of data backup. Optionally, in this embodiment, the target control link is a transmission link between the backup management system and the client; alternatively, the backup management system sends the data backup strategy to the client through the target control link.
[0055] The method described in the above embodiments allows the client to perform data backup based on the status of the backup management system, the status of the target control link, and the data backup strategy. This means the client can perform timely and effective data backup not only when the backup management system and the target control link are in normal states, but also when either the backup management system or the target control link is in a fault state. This effectively solves the deficiency in the prior art where all clients cannot effectively back up data when the backup management system fails. It achieves effective data backup of the backup management system and the target control link under different states, thereby improving the flexibility and reliability of data backup.
[0056] In one embodiment, the client performs data backup based on the status of the backup management system, the status of the target control link, and the data backup policy, including:
[0057] The client receives data backup instructions sent by the backup management system; the data backup instructions are used to instruct the client to perform data backup based on the data backup strategy.
[0058] When the backup management system and target control link are in normal condition, the client performs data backup on the first storage device according to the data backup instructions and data backup policy.
[0059] Specifically, in this embodiment, the client can perform timely and effective data backup not only when the backup management system and the target control link are in a normal state, but also when the backup management system or the target control link is in a fault state, thereby effectively improving the reliability of data backup and thus improving data security.
[0060] Optionally, when the backup management system and the target control link are in a normal state, the client receives a data backup instruction from the backup management system and then performs data backup on the first storage device according to the data backup instruction and data backup policy. Optionally, the data backup instruction instructs the client to perform data backup based on the data backup policy, allowing the client to begin data backup upon receiving the instruction. Optionally, the backup instruction may also include storage space allocated by the backup management system for the backup data, enabling the client to effectively store the backup data based on the instruction. This achieves timely and accurate data backup when the backup management system and the target control link are in a normal state, improving the efficiency and accuracy of data backup, and thus enhancing data security.
[0061] For example, if the backup management system and the target control link are in a normal state, the data backup process is as follows:
[0062] 1. Maintain or modify the backup policy of the client in the backup management system. For example, the data backup policy of client A is: "Full backup every Saturday at 19:00, additional backup every day at 19:00".
[0063] 2. The backup management system sends the data backup policy information (full backup every Saturday at 7 pm, incremental backup every day at 7 pm) to client A through the target control link.
[0064] 3. The backup management system allocates storage space X required for data backup to client A and sends a data backup job execution command to client A.
[0065] 4. Client A receives the data backup job execution command, executes the backup data to storage space X, and completes the data backup.
[0066] In the above embodiments, when the backup management system and the target control link are in a normal state, the client can receive data backup instructions sent by the backup management system, and then perform data backup on the storage device according to the data backup instructions and data backup policies. This achieves timely and accurate data backup when the backup management system and the target control link are in a normal state, improving the efficiency and accuracy of data backup and effectively enhancing data security and reliability.
[0067] In one embodiment, the client performs data backup based on the status of the backup management system, the status of the target control link, and the data backup policy, including:
[0068] If the client detects a fault in the status of the backup management system and / or the target control link, the client performs data backup on a preset second storage device based on the data backup policy.
[0069] Specifically, in this embodiment, the client can perform timely and effective data backup not only when the backup management system and the target control link are in a normal state, but also when the backup management system or the target control link is in a fault state, thereby effectively improving the reliability of data backup and thus improving the security and reliability of data.
[0070] Optionally, if the client detects a failure in the status of the backup management system and the target control link, the client performs data backup on a pre-defined second storage device based on the data backup policy. Optionally, the backup management system pre-allocates storage space in the second storage device for each client, which can be used directly in emergencies (i.e., when the backup management system and the target control link are in a failure state) without the need for reallocation. In other words, the client adds a timed detection function to monitor the status of the backup management system and the target control link. Upon detecting a failure in these two systems, the client proactively performs data backup based on the data backup policy, rather than only performing backup after receiving a data backup command. This achieves effective data backup under different scenarios and in different states of the backup management system and the target control link, thereby improving the flexibility and reliability of data backup.
[0071] For example, if the backup management system and the target control link are in a fault state, the data backup process is as follows:
[0072] 1. The client uses a timed detection function to monitor the status of the backup management system and the target control link.
[0073] 2. If the client detects an abnormal failure in the target control link or backup management system, the client will back up the data to the temporary storage space Y according to the backup strategy, without having to receive a data backup instruction before backing up the data. This enables effective backup of data in different scenarios and under different states of the backup management system and the target control link, improving the flexibility and reliability of data backup.
[0074] In the method described above, the client periodically detects the status of the backup management system and the target control link. When the client detects that the backup management system and the target control link are in a fault state, the client proactively performs data backup based on the data backup strategy, instead of having to perform data backup only after receiving a data backup instruction. This enables effective data backup in different scenarios and under different states of the backup management system and the target control link, improving the flexibility and reliability of data backup.
[0075] In one embodiment, after the client performs data backup on a preset second storage device based on a data backup strategy, the method further includes:
[0076] The client generates a data backup log; the data backup log is used to store the backup time and backup location information of various data.
[0077] The client restores data based on the data backup logs.
[0078] Specifically, in this embodiment, when the client detects that the backup management system and the target control link are in a fault state, the client performs data backup on a preset second storage device based on the data backup strategy, and then generates a data backup log. The data backup log includes the backup time and backup location information of each data item. Therefore, when data recovery is required, the client can accurately determine which backup data needs to be recovered and the storage location of each backup data item based on the data backup log, thereby achieving fast and accurate data recovery and improving the efficiency and accuracy of data recovery. On the other hand, the client can perform data recovery directly on the client based on the data backup log, without needing to perform data recovery through the unified control of the backup management system, thus improving the flexibility and efficiency of data recovery.
[0079] In one embodiment, after the client performs data backup on a preset second storage device based on a data backup strategy, the method further includes:
[0080] Once the client detects that the status of the backup management system and the target control link has returned to normal, the client sends a request message to the backup management system; the request message is used to request the backup management system to allocate target storage space in the first storage device;
[0081] The client receives a response from the backup management system; the response is used to indicate the target storage space in the first storage device allocated by the backup management system to the client.
[0082] The client sends the backed-up data from the second storage device to the target storage space in the first storage device.
[0083] Specifically, in this embodiment, after the client performs data backup when the backup management system or the target control link is in a fault state, the client continues to periodically monitor the status of the backup management system and the target control link. When the status of the backup management system and the target control link is detected to be restored to normal, the client requests the backup management system to allocate target storage space in the first storage device. After receiving the target storage space allocated by the backup management system in the first storage device, the client device can transfer the data backed up in the second storage device under the fault state of the backup management system or the target control link to the target storage space allocated by the backup management system in the first storage device. This enables the backup management system to centrally and uniformly manage the backup data of each client under the fault state, improves the management efficiency of the backup management system for the backup data of each client under the fault state, and also improves the reliability of the backup data.
[0084] For example, when both the backup management system and the target control link are in a fault state, the centralized and unified management process of backup data for each client in the fault state by the backup management system is as follows:
[0085] 1. The client uses a timed detection function to monitor the status of the backup management system and the target control link.
[0086] 2. If the client detects an abnormal failure in the target control link or backup management system, the client will back up the data to the temporary storage space Y according to the backup policy, instead of having to wait for the data backup instruction to be received. This enables effective backup of data in different scenarios and under different states of the backup management system and the target control link, improving the flexibility and reliability of data backup.
[0087] 3. If the client detects that the target control link or backup management system has returned to normal, the client requests a formal storage space Z from the backup management system and moves the data from the temporary storage space Y to storage space Z.
[0088] Optionally, after moving the data in temporary storage space Y to storage space Z, the client can clear the data in temporary storage space Y for future use in case of failure of the backup management system or target control link.
[0089] In the method described above, when the status of the backup management system and the target control link is detected to have returned to normal, the client transmits the data backed up in the second storage device during the failure state of the backup management system or the target control link to the target storage space in the first storage device allocated by the backup management system. This enables the backup management system to centrally and uniformly manage the backup data of each client during the failure state, improves the management efficiency of the backup management system for the backup data of each client during the failure state, and also improves the reliability of the backup data.
[0090] In one embodiment, after the client sends the backed-up data from the second storage device to the target storage space in the first storage device, the method further includes:
[0091] The client sends data backup logs to the backup management system; the data backup logs are used to restore the client's backup data.
[0092] Specifically, in this embodiment, when the status of the backup management system and the target control link is detected to have returned to normal, the client transmits the data backed up in the second storage device during the failure state of the backup management system or the target control link to the target storage space in the first storage device allocated by the backup management system. The client also sends the data backup logs of the data backup performed during the failure state of the backup management system or the target control link to the backup management system. Thus, when data recovery is required, the backup management system can perform centralized, unified, and efficient data recovery based on the received data backup logs from each client during the failure state of the backup management system or the target control link. This improves the flexibility of data recovery and also increases the efficiency of large-scale batch data recovery.
[0093] In the method described in the above embodiments, when the status of the backup management system and the target control link is detected to be restored to normal, the client sends the data backup logs of the data backup performed under the fault state of the backup management system or the target control link to the backup management system. Thus, when data recovery is required, the backup management system can perform data recovery in a centralized, unified and efficient manner based on the data backup logs received from each client under the fault state of the backup management system or the target control link, thereby improving the efficiency of large-scale batch data recovery.
[0094] This application also provides a data backup method, applied to a backup management system, the specific process of which is as follows:
[0095] The backup management system sends data backup policies to the client; the backup management system maintains data backup policies for at least one client; the data backup policies, the status of the backup management system, and the status of the target control link are used by the client to perform data backup; the target control link is the transmission link between the backup management system and the client.
[0096] Specifically, existing backup management systems generally adopt a centralized master-slave architecture for data backup, which leads to excessive concentration of risk. When the backup management system fails, all clients will be unable to effectively back up their data, seriously affecting the security and reliability of the data.
[0097] To address the aforementioned issues, in this embodiment, the backup management system sends data backup policies to each client. The backup management system is connected to at least one client to maintain and configure the data backup policies for each client. Optionally, the data backup policy includes information such as the data backup cycle, data backup method, and data backup location; this embodiment does not impose specific limitations. Optionally, different clients may have different data backup policies, meaning that a data backup policy can be configured specifically for each client.
[0098] Optionally, the status of the backup management system and the target control link can be normal or faulty. Common faults in the backup management system include certificate problems, backup server logical errors, and server hardware failures. Optionally, faults in the target control link include control link interruption. When the control link is interrupted, the scheduling commands of the backup management system cannot be transmitted, resulting in complete failure of client backups. To solve the above problems, in this embodiment, after receiving the data backup policy from the backup management system, the client can select the appropriate method for data backup based on the status of the backup management system, the status of the target control link, and the data backup policy. That is, the client can perform timely and effective data backup not only when the status of the backup management system and the target control link is normal, but also when the status of the backup management system or the target control link is faulty. This effectively solves the defect in the prior art where all clients cannot effectively perform data backup when the backup management system is faulty, realizing effective data backup of the backup management system and the target control link under different states, thereby improving the flexibility and reliability of data backup. Optionally, in this embodiment, the target control link is the transmission link between the backup management system and the client. Optionally, the backup management system sends the data backup policy to the client through the target control link.
[0099] In the method described above, after the backup management system sends the data backup policy to each client, the client can perform data backup according to the status of the backup management system, the status of the target control link, and the data backup policy. This means that the client can perform timely and effective data backup not only when the backup management system and the target control link are in a normal state, but also when either the backup management system or the target control link is in a fault state. This effectively solves the deficiency in the prior art where all clients cannot effectively perform data backup when the backup management system fails. It achieves effective data backup of the backup management system and the target control link under different states, thereby improving the flexibility and reliability of data backup.
[0100] For example, the data backup method in this application embodiment is as follows: Figure 3 As shown, when the backup management system or target control link malfunctions, the client uses its detection function to temporarily back up the data to a (pre-configured) temporary storage space. The specific process is as follows:
[0101] 1. Maintain or modify backup policies in the backup management system. For example, the data backup policy of client A is: "Full backup every Saturday at 7 pm, additional backup every day at 7 pm".
[0102] 2. The backup management system sends the data backup policy information (full backup every Saturday at 7 pm, incremental backup every day at 7 pm) to client A through the target control link.
[0103] 3. The backup management system allocates storage space X required for data backup to client A and sends a data backup job execution command to client A.
[0104] 4. Client A receives the data backup job execution command, executes the backup data to storage space X, and completes the data backup.
[0105] 5. The client uses a timed detection function to monitor the status of the backup management system and the target control link.
[0106] 6. If the client detects an abnormal failure in the target control link or backup management system, it backs up the data to temporary storage space Y according to the backup strategy, without necessarily receiving a data backup instruction before performing the backup. This achieves effective data backup under different scenarios and in different states of the backup management system and target control link, improving the flexibility and reliability of data backup. In other words, using the scheme in this application embodiment, temporary storage space Y is pre-allocated to each client, and when an abnormal failure is detected in the target control link or backup management system, data can be backed up to the temporary storage space.
[0107] 7. Upon detecting that the target control link or backup management system has returned to normal, the client requests formal storage space Z from the backup management system and moves the data from temporary storage space Y to storage space Z. This means the client now has a new function to detect abnormalities in the target control link or backup management system, and a new autonomous scheduling function. It can autonomously back up data to temporary storage space, enabling the client to perform timely data backups even when the backup management system or target control link is in a faulty state, thus improving the reliability and security of data backups.
[0108] In the above embodiments, compared with the existing data backup process, the client adds three functions: a timed detection function, a function to add temporary backup to (pre-allocated) temporary storage space, and a technical solution and function to transfer temporary space data to ordinary storage space after abnormal recovery. This enables the client to perform timely and effective data backup not only when the backup management system and target control link are in a normal state, but also when the backup management system or target control link is in a fault state. This achieves effective backup of data in different states of the backup management system and target control link, improving the flexibility and reliability of data backup. Moreover, the backup architecture is more flexible, more available, and more reliable.
[0109] The data backup device provided by the present invention is described below. The data backup device described below and the data backup method described above can be referred to in correspondence.
[0110] Figure 4 This is a schematic diagram of the data backup device provided by the present invention. The data backup device provided in this embodiment includes:
[0111] The receiving module 710 is used to receive data backup policies sent by the backup management system; the backup management system is used to maintain data backup policies for at least one client.
[0112] The backup module 720 is used to perform data backup based on the status of the backup management system, the status of the target control link, and the data backup strategy; the target control link is the transmission link between the backup management system and the client.
[0113] Optionally, the backup module 720 is specifically used to: receive a data backup instruction sent by the backup management system; the data backup instruction is used to instruct data backup to be performed based on the data backup strategy;
[0114] Under normal conditions of the backup management system and the target control link, data backup is performed on the first storage device according to the data backup instructions and data backup strategy.
[0115] Optionally, the backup module 720 is specifically used to: perform data backup on a preset second storage device based on a data backup strategy when the status of the backup management system and / or the target control link is detected to be faulty.
[0116] Optionally, the backup module 720 is further configured to: generate a data backup log; the data backup log is used to store the backup time and backup location information of various data items;
[0117] The client restores data based on the data backup logs.
[0118] Optionally, the backup module 720 is further configured to: send a request message to the backup management system when the status of the backup management system and the target control link is restored to normal; the request message is used to request the backup management system to allocate target storage space in the first storage device;
[0119] Receive response information from the backup management system; the response information is used to instruct the backup management system to allocate the target storage space in the first storage device to the client.
[0120] The data backed up in the second storage device is sent to the target storage space in the first storage device.
[0121] Optionally, the backup module 720 is further configured to: send data backup logs to the backup management system; the data backup logs are used to restore the client's backup data.
[0122] The apparatus of this invention is used to execute the method in any of the foregoing method embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.
[0123] Figure 5 A schematic diagram of the physical structure of an electronic device is provided. This electronic device may include a processor 810, a communications interface 820, a memory 830, and a communication bus 840. The processor 810, communications interface 820, and memory 830 communicate with each other via the communication bus 840. The processor 810 can invoke logical instructions stored in the memory 830 to execute a data backup method. This method includes: receiving a data backup policy sent by a backup management system; the backup management system maintaining a data backup policy for at least one client; and the client performing data backup based on the status of the backup management system, the status of the target control link, and the data backup policy. The target control link is a transmission link between the backup management system and the client.
[0124] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0125] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, wherein when the program instructions are executed by a computer, the computer is able to execute the data backup method provided by the above methods, the method comprising: receiving a data backup strategy sent by a backup management system; the backup management system maintaining a data backup strategy for at least one client; the client performing data backup according to the status of the backup management system, the status of the target control link, and the data backup strategy; the target control link being a transmission link between the backup management system and the client.
[0126] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the data backup methods provided above, the method comprising: receiving a data backup strategy sent by a backup management system; the backup management system maintaining a data backup strategy for at least one client; the client performing data backup based on the status of the backup management system, the status of a target control link, and the data backup strategy; the target control link being a transmission link between the backup management system and the client.
[0127] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0128] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data backup method characterized by, Applied to the client side, including: The system receives data backup policies from a backup management system; the backup management system is used to maintain data backup policies for at least one client and send data backup instructions to the client. The client performs data backup based on the status of the backup management system, the status of the target control link, and the data backup strategy; the target control link is the transmission link between the backup management system and the client. The client performs data backup based on the status of the backup management system, the status of the target control link, and the data backup strategy, including: When the backup management system and the target control link are in normal status, the client receives a data backup instruction sent by the backup management system; the data backup instruction is used to instruct the client to perform data backup based on the data backup strategy; and data backup is performed on the first storage device according to the data backup instruction and the data backup strategy. If the client detects that the backup management system and / or the target control link are in a faulty state, the client performs data backup on a preset second storage device based on the data backup policy.
2. The data backup method according to claim 1, characterized by, After the client performs data backup on the preset second storage device based on the data backup strategy, it also includes: The client generates a data backup log; the data backup log is used to store the backup time and backup location information of various data. The client restores the data based on the data backup logs.
3. The data backup method according to claim 1, characterized by, After the client performs data backup on the preset second storage device based on the data backup strategy, it also includes: When the client detects that the status of the backup management system and the target control link has returned to normal, the client sends a request message to the backup management system; the request message is used to request the backup management system to allocate target storage space in the first storage device. The client receives response information from the backup management system; the response information is used to indicate the target storage space in the first storage device allocated by the backup management system to the client. The client sends the backed-up data from the second storage device to the target storage space in the first storage device.
4. The data backup method according to claim 3, characterized by, After the client sends the backed-up data from the second storage device to the target storage space in the first storage device, it also includes: The client sends data backup logs to the backup management system; the data backup logs are used to restore the client's backup data.
5. A data backup method characterized by, Used in backup management systems, including: The backup management system sends a data backup strategy to the client; the backup management system is used to maintain the data backup strategy of at least one client and send data backup instructions to the client; the data backup strategy, the status of the backup management system, and the status of the target control link are used by the client to perform data backup; the target control link is the transmission link between the backup management system and the client; when the status of the backup management system and the target control link is normal, the client receives the data backup instruction sent by the backup management system; the data backup instruction is used to instruct the client to perform data backup based on the data backup strategy; according to the data backup instruction and the data backup strategy, data backup is performed on the first storage device. If the client detects that the backup management system and / or the target control link are in a faulty state, the client performs data backup on a preset second storage device based on the data backup policy.
6. A data backup apparatus characterized by comprising: include: The receiving module is used to receive data backup strategies sent by the backup management system; The backup management system is used to maintain the data backup strategy of at least one client and send data backup instructions to the client; The backup module is used to perform data backup based on the status of the backup management system, the status of the target control link, and the data backup strategy. The target control link is the transmission link between the backup management system and the client; The step of performing data backup based on the status of the backup management system, the status of the target control link, and the data backup strategy includes: When the backup management system and the target control link are in normal status, a data backup instruction sent by the backup management system is received; the data backup instruction is used to instruct the client to perform data backup based on the data backup strategy; and data backup is performed on the first storage device according to the data backup instruction and the data backup strategy. If the backup management system and / or the target control link are detected to be faulty, data backup is performed on a preset second storage device based on the data backup strategy.
7. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the data backup method as described in any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the data backup method as described in any one of claims 1 to 5.