Data backup method and device based on automatic scheduling and computer equipment

By introducing the automated scheduling mechanism in the database backup system, coordinating nodes to generate and distribute data backup requests, associate backup nodes to perform data backup operations, and switch the backup nodes when faults occur. The problem of insufficient processing capabilities improves data backup efficiency and system fault tolerance capabilities.

CN119356944AInactive Publication Date: 2025-01-24GUANGZHOU DINGJIA COMPUTER TECHNOLOGY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411410479.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-01-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, the database backup system has problems such as long response time, complex management, and insufficient fault processing capabilities, which affects the timeliness of backup tasks and the overall efficiency of the data backup system.

Method used

Generate a data backup request through the coordination node and distribute the request to each associated backup node; upon receiving the data backup request, start and execute the data backup job based on the request parameters through the associated backup node; submit it to the coordination node through the associated backup node Node status report; when a backup node failure is detected, the backup node is determined through the coordination node and the data backup job is performed in place of the failed node.

Benefits of technology

It realizes automated scheduling, improves data backup efficiency, enhances the fault tolerance of the data backup system and the continuity of backup operations, and ensures the timeliness and integrity of data backup.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356944A_ABST
    Figure CN119356944A_ABST
Patent Text Reader

Abstract

The invention relates to a data backup method and device based on automatic scheduling, computer equipment, a storage medium and a computer program product, and is applied to a data backup system, and the data backup system comprises a coordination node and a backup node. The method comprises the following steps: generating a data backup request through a coordination node, and distributing the data backup request to each associated backup node; under the condition that a data backup request is received, starting and executing a data backup operation based on a request parameter in the data backup request through the associated backup node; submitting a node state report when the associated backup node executes the data backup operation to the coordination node through the associated backup node; under the condition that the node state report represents that the associated backup node has a fault, determining a standby backup node for the associated backup node through the coordination node; and replacing the associated backup node with the fault with the standby backup node to execute the data backup operation. By adopting the method, the data backup efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of database technology, and in particular to a data backup method, apparatus, computer equipment, storage medium and computer program product based on automated scheduling. Background Art

[0002] For databases, data backup is an important measure to ensure data security. Data backup operations usually need to be initiated by one or more coordination nodes and assigned to backup nodes for execution.

[0003] At present, the coordination between backup nodes and coordination nodes often relies on manual intervention or traditional scheduling mechanisms. These mechanisms may have problems such as long response time, complex management, and insufficient fault handling capabilities, which affect the timeliness of backup tasks and the overall efficiency of the data backup system. In addition, there may be scheduling and communication problems between backup nodes and coordination nodes, which may cause the backup job to fail to execute as planned, thereby affecting the backup integrity and recovery capabilities of the system.

[0004] Therefore, the data backup system in the traditional technology has the problem of low data backup efficiency. Summary of the invention

[0005] Based on this, it is necessary to provide a data backup method, device, computer equipment, computer-readable storage medium and computer program product based on automated scheduling that can improve data backup efficiency in response to the above technical problems.

[0006] A data backup method based on automated scheduling is applied to a data backup system, wherein the data backup system includes a coordination node and a backup node, including:

[0007] Generate a data backup request through the coordination node, and distribute the data backup request to each associated backup node; the associated backup node is the backup node required to be scheduled to execute the data backup job corresponding to the data backup request;

[0008] In case of receiving a data backup request, starting and executing a data backup job based on request parameters in the data backup request by associating a backup node;

[0009] Submitting a node status report of the associated backup node when executing the data backup job to the coordination node through the associated backup node;

[0010] In the case where the node status report indicates that the associated backup node is faulty, determining a standby backup node for the associated backup node through the coordinating node;

[0011] The standby backup node replaces the failed associated backup node to perform data backup jobs.

[0012] In an exemplary embodiment, generating a data backup request by a coordination node includes:

[0013] Obtaining a preconfigured data backup job scheduling strategy through a coordination node; the preconfigured data backup job scheduling strategy includes a preconfigured data backup job execution strategy and a preconfigured data backup job execution schedule; the preconfigured data backup job execution strategy is configured with job execution strategies for different data backup jobs; the preconfigured data backup job execution schedule is configured with job execution times for different data backup jobs;

[0014] Generate a data backup request through the coordination node according to the pre-configured data backup job scheduling strategy.

[0015] In an exemplary embodiment, after the step of submitting the node status report of the associated backup node when executing the data backup job to the coordination node through the associated backup node, the method further includes:

[0016] When the node status report indicates that the backup progress of the associated backup node does not meet the preset requirements, the job execution strategy corresponding to the data backup job is readjusted through the coordination node.

[0017] In an exemplary embodiment, the method further comprises:

[0018] Send heartbeat signals to associated backup nodes through the coordinating node based on the network protocol;

[0019] The heartbeat signal is used to determine whether the network connection between the coordinating node and the associated backup node is disconnected.

[0020] In an exemplary embodiment, the method further comprises:

[0021] In the event of a failure of the coordinating node, initiating node detection to determine a backup coordinating node for the coordinating node in the data backup system;

[0022] The step of generating the data backup request is performed by replacing the failed coordination node with the standby coordination node.

[0023] A data backup method based on automated scheduling, applied to a data backup monitoring platform, the method comprising:

[0024] In response to a configuration operation on a job scheduling policy configuration interface, obtaining a data backup job scheduling policy configured by the configuration operation;

[0025] Sending the data backup job scheduling strategy to the data backup method as described above;

[0026] Receive the data backup result returned by the data backup system.

[0027] A data backup device based on automated scheduling is applied to a data backup system. The data backup system includes a coordination node and a backup node. The device includes:

[0028] A request generation module is used to generate a data backup request through a coordination node and distribute the data backup request to each associated backup node; the associated backup node is a backup node required to be scheduled to execute the data backup job corresponding to the data backup request;

[0029] A job starting module, used to start and execute a data backup job based on request parameters in the data backup request by associating a backup node when a data backup request is received;

[0030] A report submission module, used to submit a node status report of the associated backup node when executing a data backup job to the coordination node through the associated backup node;

[0031] A fault detection module, used to determine a backup node for the associated backup node through a coordination node when a node status report indicates that the associated backup node has a fault;

[0032] The fault response module is used to perform data backup operations by replacing the associated backup node with a fault through a standby backup node.

[0033] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0034] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0035] A computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0036] The above-mentioned data backup method, device, computer equipment, storage medium and computer program product based on automatic scheduling generate a data backup request through a coordination node, and distribute the data backup request to each associated backup node; the associated backup node is the backup node required to be scheduled to execute the data backup job corresponding to the data backup request; when receiving the data backup request, the associated backup node starts and executes the data backup job based on the request parameters in the data backup request; the associated backup node submits a node status report of the associated backup node when executing the data backup job to the coordination node; when the node status report indicates that the associated backup node has a fault, the coordination node determines a backup backup node for the associated backup node; and The node replaces the failed associated backup node to perform the data backup job; in this way, the data backup request can be accurately distributed to each associated backup node through the coordination node, and the node status of each associated backup node can be monitored in real time through the coordination node. When the coordination node detects that the associated backup node has a failure, the failed associated backup node is quickly switched to the standby backup node, so that the standby backup node continues to perform the data backup job of the failed associated backup job, providing a fault tolerance and recovery mechanism, which can quickly restore normal data backup operations in the event of a node failure, enhance the fault tolerance capability of the data backup system when handling node failures, ensure the continuity of data backup operations, and thus help improve data backup efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] FIG1 is an application environment diagram of a data backup method based on automated scheduling in one embodiment;

[0039] Figure 2 A schematic diagram of a flow chart of a data backup method based on automated scheduling in one embodiment;

[0040] Figure 3 A flowchart of steps for generating a data backup request in one embodiment;

[0041] Figure 4 A schematic diagram of a flow chart of a data backup method based on automatic scheduling in another embodiment;

[0042] Figure 5A schematic diagram of interaction between a SAP IQ database and a management platform in one embodiment;

[0043] Figure 6 A schematic diagram of a flow chart of a data backup method based on automatic scheduling in another embodiment;

[0044] Figure 7 It is a structural block diagram of a data backup device based on automatic scheduling in one embodiment;

[0045] Figure 8 It is a structural block diagram of a data backup device based on automatic scheduling in another embodiment;

[0046] FIG. 9 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] The data backup method provided in the embodiment of the present application can be applied to the data backup system 100 shown in FIG. 1 . The data backup system 100 includes a coordination node and a backup node. In actual applications, the data backup system 100 can be a SAP IQ database.

[0049] In an exemplary embodiment, Figure 2 As shown, a data backup method based on automatic scheduling is provided, and the method is applied to the data backup system 100 in FIG. 1 as an example for description, including the following steps 202 to 206. Among them:

[0050] Step 202: Generate a data backup request through the coordination node, and distribute the data backup request to each associated backup node; the associated backup node is the backup node required to be scheduled to execute the data backup job corresponding to the data backup request.

[0051] Among them, the coordination node can be a node responsible for initiating data backup requests, distributing data backup requests to backup nodes, monitoring the node status of backup nodes in real time, receiving status reports of backup nodes, adjusting the job execution strategy of data backup jobs, and other coordination work. That is, the coordination node is responsible for the generation, distribution and scheduling strategy management of data backup requests. In actual applications, the coordination node should have strong computing power and stable network connection.

[0052] Among them, the backup node can be a node responsible for receiving data backup requests sent by the coordination node, executing data backup jobs, etc. The backup node performs actual data backup operations, and it performs data backup jobs according to the instructions of the coordination node. In actual applications, the backup node needs to have sufficient storage space and processing power.

[0053] The data backup request may be a request sent by the coordinating node to request the backup node to execute a corresponding data backup job.

[0054] The associated backup node may be a backup node determined among all backup nodes and required to be scheduled for executing the data backup job.

[0055] The data backup job may be a job corresponding to backing up data.

[0056] Optionally, the data backup system generates a data backup request through a coordination node, and distributes the data backup request to all relevant backup nodes, ie, each associated backup node.

[0057] In actual applications, the coordination node distributes the data backup request to all associated backup nodes and uses a scheduling algorithm to ensure that the data backup request reaches each associated backup node within the specified time.

[0058] Step 204: upon receiving the data backup request, starting and executing the data backup job based on the request parameters in the data backup request by associating with the backup node.

[0059] The request parameters in the data backup request may include information of each backup node in the data backup system, job execution strategy of the data backup job, backup type, backup storage, etc. For example, the request parameters in the data backup request may include SAP IQ database cluster node information, job execution strategy of the data backup job, backup type, backup storage, etc.

[0060] Optionally, when the associated backup node of the data backup system receives a data backup request distributed by the coordination node, it starts and executes the data backup job through the associated backup node based on the information of each backup node in the data backup request, the job execution policy of the data backup job, the backup type, the backup storage and other request parameters.

[0061] Step 206: Submitting a node status report of the associated backup node when executing the data backup job to the coordination node through the associated backup node.

[0062] The node status report when the associated backup node executes the data backup job may include job execution progress information and node status information when the associated backup node executes the data backup job.

[0063] In actual applications, a status reporting mechanism is used to enable the backup node to regularly report its job execution progress and node status to the coordination node. In the event of a backup node failure, the failure information can be quickly reported to the coordination node. The status report uses a standardized reporting format and interface to ensure that the coordination node can accurately receive and parse the status information of the backup node.

[0064] Optionally, the data backup system submits a node status report of the associated backup node when executing the data backup job to the coordination node through the associated backup node, so as to report its job execution progress and node status to the coordination node.

[0065] Step 208: When the node status report indicates that the associated backup node is faulty, determine a standby backup node for the associated backup node through the coordination node.

[0066] The standby backup node may be a backup node used to replace a failed backup node when the backup node fails to perform a data backup operation.

[0067] Optionally, when the node status report shows that the associated backup node is faulty, the data backup system determines, through the coordination node, a backup node among the backup nodes that can be used to replace the associated backup node to perform the data backup job as a standby backup node.

[0068] Step 210: The standby backup node replaces the failed associated backup node to perform the data backup operation.

[0069] Optionally, the data backup system uses a standby backup node to replace a failed associated backup node to execute the data backup job originally executed by the associated backup node.

[0070] In the above-mentioned data backup method based on automatic scheduling, a data backup request is generated by a coordination node, and the data backup request is distributed to each associated backup node; the associated backup node is a backup node required to be scheduled to execute the data backup job corresponding to the data backup request; when the data backup request is received, the data backup job is started and executed by the associated backup node based on the request parameters in the data backup request; the associated backup node submits a node status report of the associated backup node when executing the data backup job to the coordination node; when the node status report indicates that the associated backup node has a fault, the coordination node determines a backup backup node for the associated backup node; and the backup backup node replaces the failed key node. The backup node performs the data backup job; in this way, the data backup request can be accurately distributed to each associated backup node through the coordination node, and the node status of each associated backup node can be monitored in real time through the coordination node. When the coordination node detects that the associated backup node fails, the failed associated backup node is quickly switched to the standby backup node, so that the standby backup node continues to perform the data backup job of the failed associated backup job, providing a fault tolerance and recovery mechanism, which can quickly restore normal data backup operations in the event of a node failure, enhance the fault tolerance capability of the data backup system when handling node failures, ensure the continuity of data backup operations, and thus help improve data backup efficiency.

[0071] In an exemplary embodiment, Figure 3 As shown, step 202 includes steps 302 to 304. Among them:

[0072] Step 302, obtaining a preconfigured data backup job scheduling strategy through a coordination node; the preconfigured data backup job scheduling strategy includes a preconfigured data backup job execution strategy and a preconfigured data backup job execution schedule; the preconfigured data backup job execution strategy is configured with job execution strategies for different data backup jobs; the preconfigured data backup job execution schedule is configured with job execution times for different data backup jobs.

[0073] The preconfigured data backup job scheduling strategy may include a preconfigured data backup job execution strategy and a preconfigured data backup job execution schedule.

[0074] The data backup job execution strategy refers to a job execution strategy preset for each data backup job.

[0075] In actual applications, data backup job execution strategies can include periodic backup strategies, event-triggered backup strategies, and custom backup strategies. Periodic backup strategies refer to backups performed at fixed time intervals (such as daily or weekly). Event-triggered backups refer to automatically starting backup jobs when specific events occur (such as data updates or system maintenance). Custom backups allow users to set backup rules and schedules based on specific needs.

[0076] The data backup job execution schedule includes the job execution time corresponding to each data backup job. In actual applications, the pre-configured data backup job scheduling strategy can be sent to the coordination node by the data backup monitoring platform, and the user can customize the data backup job scheduling strategy through the job scheduling strategy configuration interface of the data backup monitoring platform.

[0077] Optionally, the coordination node of the data backup system obtains a pre-configured data backup job scheduling policy sent by the data backup monitoring platform.

[0078] Step 304: Generate a data backup request through the coordination node according to a pre-configured data backup job scheduling policy.

[0079] Optionally, the data backup system generates a data backup request through the coordination node within the backup cycle according to a preconfigured data backup job scheduling policy.

[0080] In this embodiment, a preconfigured data backup job scheduling policy is obtained through the coordination node; the preconfigured data backup job scheduling policy includes a preconfigured data backup job execution policy and a preconfigured data backup job execution schedule; the preconfigured data backup job execution policy is configured with job execution policies for different data backup jobs; the preconfigured data backup job execution schedule is configured with job execution times for different data backup jobs; the coordination node generates a data backup request according to the preconfigured data backup job scheduling policy; in this way, the data backup request can be generated according to the preconfigured data backup job scheduling policy, the automatic scheduling of the data backup request is realized, the automation level of the data backup job is improved, and the request scheduling problem between the backup node and the coordination node can be automatically realized, making the data backup more efficient and reliable.

[0081] In an exemplary embodiment, after the step of submitting a node status report of the associated backup node when executing the data backup job to the coordination node through the associated backup node, the method also includes: when the node status report indicates that the backup progress of the associated backup node does not meet the preset requirements, readjusting the job execution strategy corresponding to the data backup job through the coordination node.

[0082] The backup progress not meeting the preset requirement may refer to the backup progress of the backup job lagging behind.

[0083] Optionally, when the backup progress of the associated backup node lags behind, the data backup system readjusts the job execution strategy corresponding to the data backup job through the coordination node.

[0084] In this embodiment, after the associated backup node submits a node status report of the associated backup node when executing the data backup job to the coordination node through the associated backup node, when the node status report indicates that the backup progress of the associated backup node does not meet the preset requirements, the job execution strategy corresponding to the data backup job is readjusted through the coordination node; in this way, the coordination node can dynamically adjust the job scheduling strategy of the data backup job according to the feedback from the backup node to cope with the status changes of the backup node, thereby enhancing the fault tolerance capability of the data backup system when handling node failures and ensuring the continuity of the data backup operation.

[0085] In an exemplary embodiment, the method further includes: sending a heartbeat signal to the associated backup node through the coordinating node based on a network protocol; wherein the heartbeat signal is used to determine whether the network connection between the coordinating node and the associated backup node is disconnected.

[0086] The heartbeat signal may be a signal used to ensure a stable network connection between the coordination node and the backup node.

[0087] Optionally, the data backup system periodically sends heartbeat signals to the backup nodes through the coordinating node based on the network protocol. The coordinating node can monitor the status of the backup nodes in real time to help detect the availability of the nodes and the network connection status.

[0088] In this embodiment, the coordinating node periodically sends heartbeat signals to the associated backup nodes based on the network protocol, and the coordinating node can monitor the status of the backup nodes in real time. These heartbeat signals can help detect the availability and network connection of the nodes, enhance the communication and coordination capabilities between nodes, and promptly detect the failure or delay of data backup jobs, which is conducive to ensuring the continuity of data backup operations.

[0089] In an exemplary embodiment, the method further includes: initiating node detection to determine a backup coordinating node for the coordinating node in the data backup system when the coordinating node fails; and performing the step of generating a data backup request by replacing the failed coordinating node with the backup coordinating node.

[0090] The standby coordination node may be a coordination node that replaces the coordination node when the coordination node is transferred. The transfer of the coordination node may be due to excessive load or node damage, which is a behavior of the SAP IQ database.

[0091] Optionally, when the coordination node of the data backup system is transferred, the periodic data backup job automatically detects the job initiating node, that is, the periodic data backup job automatically detects other nodes that can be used to generate data backup requests, and determines the detected nodes as standby coordination nodes. The data backup system executes the step of generating data backup requests through the standby coordination node, and then distributes the data backup requests to each associated backup node through the standby coordination node.

[0092] In this embodiment, when a coordination node fails, node detection is initiated to determine a backup coordination node for the coordination node in the data backup system; the backup coordination node replaces the failed coordination node to execute the step of generating a data backup request; in this way, when a coordination node fails, the node with the function of generating a data backup request can be automatically detected, the node that can generate a data backup request can be found, and the normal operation of the data backup job can be restored, thereby enhancing the fault tolerance capability of the data backup system to node failures.

[0093] In an exemplary embodiment, Figure 4 As shown, a data backup method based on automatic scheduling is provided, and the method is applied to a data backup monitoring platform as an example for description, including the following steps 402 to 406. Among them:

[0094] Step 402: In response to a configuration operation on a job scheduling policy configuration interface, a data backup job scheduling policy configured by the configuration operation is obtained.

[0095] The job scheduling strategy configuration interface may be an interface displayed on the front end of the data backup monitoring platform and provided for users to set information.

[0096] The configuration operation may be an operation corresponding to the configuration of the job scheduling strategy by the user.

[0097] Optionally, the server of the data backup monitoring platform obtains the data backup job scheduling policy configured by the user in response to a configuration operation performed by the user on the job scheduling policy configuration interface.

[0098] Step 404: Send the data backup job scheduling policy to the data backup system.

[0099] The data backup system is used to execute the data backup method as described above, and the data backup system is the system shown in FIG. 1 .

[0100] Optionally, the server of the data backup monitoring platform sends information corresponding to the data backup job scheduling policy configured by the user to the system node of the data backup system. After the data backup system receives the information corresponding to the data backup job scheduling policy, it executes the data backup method in the above embodiments.

[0101] Step 406: Receive the data backup result returned by the data backup system.

[0102] The data backup result may be a job execution result corresponding to the data backup job returned to the coordination node and the backup node.

[0103] Optionally, the server of the data backup monitoring platform receives the job execution results returned by the coordination node and the backup node in the data backup system after executing the data backup method in each of the above embodiments.

[0104] In the above-mentioned data backup method based on automatic scheduling, in response to the configuration operation on the job scheduling strategy configuration interface, the data backup job scheduling strategy configured by the configuration operation is obtained; the data backup job scheduling strategy is sent to the data backup system; and the data backup result returned by the data backup system is received; in this way, the entire data backup process of the data backup system can be monitored through the data backup monitoring evaluation, the status and results of the data backup job can be collected and analyzed, and a user interface is provided for users to configure the data backup job scheduling strategy and view the data backup report. Through the data backup monitoring platform, the scheduling flexibility of the data backup request of the data backup system can be improved, the data backup process can enhance the response and fault tolerance capabilities of the node failure and network problems, and the communication and coordination capabilities between nodes in the data backup system can be improved, the possibility of failure or delay of the data backup task can be reduced, and the continuity of the data backup operation can be ensured.

[0105] In order to facilitate the understanding of those skilled in the art, Figure 5 An exemplary schematic diagram of data interaction between a SAP IQ database and a management platform is provided, which corresponds to the data interaction between the data backup system and the data backup monitoring system of the present application. In which, a data backup job execution strategy is set through the management platform (data backup monitoring system), and then the data backup job execution strategy is sent to the coordination node of the SAP IQ database (data backup system) through the management platform (data backup monitoring system), and the generation, distribution and scheduling of data backup requests are completed through the coordination node of the SAP IQ database (data backup system) based on the data backup job execution strategy, and the data backup job is executed through the backup node of the SAP IQ database (data backup system), and the job result of the data backup job is returned to the management platform (data backup monitoring system) through the SAP IQ database (data backup system). Figure 5 The specific process of data interaction between the SAP IQ database and the management platform shown can be referred to the data backup method in the above embodiments, which will not be described in detail here.

[0106] The present application completes the data backup operation through data interaction between the coordination node of the data backup system, the backup node of the data backup system and the data backup monitoring system; for the data backup operation, periodic backup strategies, event-triggered backup strategies and custom backup strategies can be predefined; for the interaction between the coordination node and the backup node, a communication mechanism is proposed, which regularly sends heartbeat signals through the network protocol to ensure the stability of the connection between the nodes, and uses a standardized report format and interface when generating the node status report of the backup node to ensure that the coordination node can accurately receive and parse the status information of the backup node; for the failure of the coordination node and the backup node, a fault-tolerant recovery mechanism is proposed, which can recover the status information of the backup node when the coordination node is transferred. , the periodic backup job automatically detects other nodes to replace the coordination node with the detected node that can generate data backup requests to ensure the normal operation of the data backup job. When the coordination node monitors that the backup node has a fault, the standby backup node is used to execute the data backup job executed by the failed backup node to restore the normal data backup operation; the data backup automatic scheduling method provided by the present application improves the automation level and reliability of the data backup job by optimizing the data backup job scheduling strategy, the node communication coordination mechanism, the execution mechanism and the fault-tolerant mechanism of the data backup job, effectively solves the scheduling problem between the backup node and the coordination node in the prior art, and provides a more efficient and reliable data backup solution for data backup systems, such as SAP IQ database systems.

[0107] In another embodiment, Figure 6 As shown, a data backup method based on automatic scheduling is provided, and the method is applied to the data backup system 100 in FIG. 1 as an example for description, including the following steps:

[0108] Step 602, obtaining a preconfigured data backup job scheduling strategy through a coordination node; the preconfigured data backup job scheduling strategy includes a preconfigured data backup job execution strategy and a preconfigured data backup job execution schedule; the preconfigured data backup job execution strategy is configured with job execution strategies for different data backup jobs; the preconfigured data backup job execution schedule is configured with job execution times for different data backup jobs.

[0109] Step 604, the coordination node generates a data backup request according to a preconfigured data backup job scheduling policy, and distributes the data backup request to each associated backup node; the associated backup node is the backup node required to be scheduled to execute the data backup job corresponding to the data backup request.

[0110] Step 606: upon receiving the data backup request, start and execute the data backup job based on the request parameters in the data backup request by associating with the backup node.

[0111] Step 608: Submitting a node status report of the associated backup node when executing the data backup job to the coordination node through the associated backup node.

[0112] Step 610: When the node status report indicates that the associated backup node is faulty, determine a standby backup node for the associated backup node through the coordination node.

[0113] Step 612: The standby backup node replaces the failed associated backup node to perform the data backup operation.

[0114] It should be noted that the specific limitations of the above steps can refer to the specific limitations of a data backup method based on automatic scheduling above.

[0115] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0116] Based on the same inventive concept, the embodiment of the present application also provides a data backup device based on automatic scheduling for implementing the data backup method based on automatic scheduling involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in the one or more data backup device embodiments based on automatic scheduling provided below can refer to the limitations of the data backup method based on automatic scheduling above, and will not be repeated here.

[0117] In an exemplary embodiment, Figure 7 As shown, a data backup device based on automated scheduling is provided, which is applied to the data backup system 100 shown in FIG. 1 , and includes: a request generation module 702, a job start module 704, a report submission module 706, a fault detection module 708 and a fault response module 710, wherein:

[0118] The request generation module 702 is used to generate a data backup request through a coordination node and distribute the data backup request to each associated backup node; the associated backup node is a backup node required to be scheduled to execute the data backup job corresponding to the data backup request;

[0119] The job initiation module 704 is used to initiate and execute the data backup job based on the request parameters in the data backup request by associating the backup node when receiving the data backup request;

[0120] A report submission module 706, used to submit a node status report of the associated backup node when executing the data backup job to the coordination node through the associated backup node;

[0121] A fault detection module 708, configured to determine a backup node for the associated backup node through the coordination node when the node status report indicates that the associated backup node has a fault;

[0122] The fault response module 710 is used to replace the faulty associated backup node with a standby backup node to perform a data backup operation.

[0123] In an exemplary embodiment, the request generation module 702 is specifically used to obtain a preconfigured data backup job scheduling policy through a coordination node; the preconfigured data backup job scheduling policy includes a preconfigured data backup job execution policy and a preconfigured data backup job execution schedule; the preconfigured data backup job execution policy is configured with job execution policies for different data backup jobs; the preconfigured data backup job execution schedule is configured with job execution times for different data backup jobs; and a data backup request is generated through the coordination node according to the preconfigured data backup job scheduling policy.

[0124] In an exemplary embodiment, the device further includes: a policy adjustment module, which is used to readjust the job execution policy corresponding to the data backup job through the coordination node when the node status report indicates that the backup progress of the associated backup node does not meet the preset requirements.

[0125] In an exemplary embodiment, the device further includes: a signal sending module, configured to send a heartbeat signal to an associated backup node through the coordinating node based on a network protocol; wherein the heartbeat signal is used to determine whether the network connection between the coordinating node and the associated backup node is disconnected.

[0126] In an exemplary embodiment, the device also includes: a node detection module, which is used to initiate node detection when a coordination node fails, so as to determine a backup coordination node for the coordination node in the data backup system; and to replace the failed coordination node with the backup coordination node to execute the step of generating a data backup request.

[0127] In an exemplary embodiment, Figure 8As shown, a data backup device based on automatic scheduling is provided, which is applied to a data backup monitoring platform, including: a response module 802, an execution module 804 and a receiving module 806, wherein:

[0128] A response module 802 is used to respond to a configuration operation on the job scheduling policy configuration interface and obtain the data backup job scheduling policy configured by the configuration operation;

[0129] An execution module 804 is used to send the data backup job scheduling policy to the data backup system;

[0130] The receiving module 806 is used to receive the data backup result returned by the data backup system.

[0131] Each module in the above-mentioned data backup device based on automatic scheduling can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0132] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG9. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data backup data based on automated scheduling. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a data backup method is implemented.

[0133] Those skilled in the art will understand that the structure shown in FIG. 9 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0134] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned data backup method based on automatic scheduling. Here, the steps of the data backup method based on automatic scheduling can be the steps of the data backup method based on automatic scheduling in each of the above-mentioned embodiments.

[0135] In one embodiment, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the above-mentioned data backup method based on automatic scheduling. The steps of the data backup method based on automatic scheduling here can be the steps of the data backup method based on automatic scheduling in each of the above-mentioned embodiments.

[0136] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the processor executes the steps of the above-mentioned data backup method based on automatic scheduling. The steps of the data backup method based on automatic scheduling here can be the steps of the data backup method based on automatic scheduling in each of the above-mentioned embodiments.

[0137] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0138] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0139] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A data backup method based on automated scheduling, characterized in that: Applied to a data backup system, the data backup system includes a coordination node and a backup node, and the method includes: Generate a data backup request through the coordination node, and distribute the data backup request to each associated backup node; the associated backup node is a backup node required to be scheduled to execute the data backup job corresponding to the data backup request; In case of receiving the data backup request, starting and executing the data backup job based on the request parameters in the data backup request through the associated backup node; Submitting, through the associated backup node, to the coordination node a node status report of the associated backup node when executing the data backup job; In a case where the node status report indicates that the associated backup node has a fault, determining a standby backup node for the associated backup node through the coordination node; The data backup operation is performed by replacing the failed associated backup node with the standby backup node.

2. The method according to claim 1, characterized in that The generating of the data backup request by the coordination node includes: The preconfigured data backup job scheduling strategy is obtained through the coordination node; the preconfigured data backup job scheduling strategy includes a preconfigured data backup job execution strategy and a preconfigured data backup job execution schedule; the preconfigured data backup job execution strategy is configured with job execution strategies for different data backup jobs; the preconfigured data backup job execution schedule is configured with job execution times for the different data backup jobs; The data backup request is generated by the coordination node according to the preconfigured data backup job scheduling policy.

3. The method according to claim 2, characterized in that After the step of submitting, through the associated backup node, to the coordination node, a node status report of the associated backup node when executing the data backup job, the method further includes: When the node status report indicates that the backup progress of the associated backup node does not meet the preset requirement, the job execution strategy corresponding to the data backup job is readjusted through the coordination node.

4. The method according to claim 1, characterized in that The method further comprises: Sending a heartbeat signal to the associated backup node based on a network protocol by the coordinating node; The heartbeat signal is used to determine whether the network connection between the coordinating node and the associated backup node is disconnected.

5. The method according to claim 1, characterized in that The method further comprises: In the event that the coordinating node fails, initiating node detection to determine a backup coordinating node for the coordinating node in the data backup system; The step of generating a data backup request is performed by replacing the failed coordinating node with the standby coordinating node.

6. A data backup method based on automated scheduling, characterized in that: Applied to a data backup monitoring platform, the method comprises: In response to a configuration operation on a job scheduling policy configuration interface, obtaining a data backup job scheduling policy configured by the configuration operation; Sending the data backup job scheduling strategy to the data backup system according to any one of claims 1 to 5; Receive the data backup result returned by the data backup system.

7. A data backup device based on automated scheduling, characterized in that: Applied to a data backup system, the data backup system includes a coordination node and a backup node, and the device includes: A request generation module, used to generate a data backup request through the coordination node, and distribute the data backup request to each associated backup node; the associated backup node is a backup node required to be scheduled to execute the data backup job corresponding to the data backup request; A job starting module, configured to start and execute the data backup job based on request parameters in the data backup request through the associated backup node when the data backup request is received; A report submission module, used for submitting a node status report of the associated backup node when executing the data backup job to the coordination node through the associated backup node; A fault detection module, configured to determine a standby backup node for the associated backup node through the coordination node when the node status report indicates that the associated backup node has a fault; A fault response module is used to perform the data backup operation by replacing the associated backup node with a fault through the standby backup node.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Distributed task scheduling method and system based on messaging middleware

    CN102521044A

  • Data backup method and node

    CN105354108A

  • Method and device for realizing high availability of network equipment, and storage medium

    CN114513402A

  • Data backup method, device and system for database cluster

    CN114780296A

  • Data backup management method and system and server

    CN116881046A