CN112286734B - Backup task execution method, device, equipment and storage medium - Google Patents

Backup task execution method, device, equipment and storage medium Download PDF

Info

Publication number
CN112286734B
CN112286734B CN202011549141.0A CN202011549141A CN112286734B CN 112286734 B CN112286734 B CN 112286734B CN 202011549141 A CN202011549141 A CN 202011549141A CN 112286734 B CN112286734 B CN 112286734B
Authority
CN
China
Prior art keywords
backup
task execution
task
time period
tasks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011549141.0A
Other languages
Chinese (zh)
Other versions
CN112286734A (en
Inventor
章程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Clerware Technology Co ltd
Original Assignee
Shenzhen Clerware Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Clerware Technology Co ltd filed Critical Shenzhen Clerware Technology Co ltd
Priority to CN202011549141.0A priority Critical patent/CN112286734B/en
Publication of CN112286734A publication Critical patent/CN112286734A/en
Application granted granted Critical
Publication of CN112286734B publication Critical patent/CN112286734B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process

Landscapes

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

Abstract

The invention discloses a backup task execution method, a backup task execution device, backup task execution equipment and a backup task execution storage medium, and belongs to the technical field of data security. According to the method and the device, the backup requirement information of each backup object is obtained, the backup task and the task execution frequency corresponding to each backup object are determined based on the backup requirement information, the task execution plan in the preset time range is generated according to the backup task and the task execution frequency corresponding to each backup object, and finally the task is executed in the preset time range according to the task execution plan.

Description

Backup task execution method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data security technologies, and in particular, to a backup task execution method, apparatus, device, and storage medium.
Background
With the development of internet technology, the degree of dependence of production, office, management and operation of an organization on an IT application system is higher and higher, and the application system and data become core assets of the organization. In order to deal with the challenge of data loss caused by host faults, system errors, virus attacks and the like, backup protection with different backup frequency strategies needs to be executed on all IT application systems to ensure that data is not lost and can be returned to the previous backup time point.
The most important value of a backup system is to be able to recover lost data, restore the services of an application system as quickly as possible in case of a failure or disaster. However, due to the diversity of backup recovery modes, the high technical difficulty of recovery, the complex recovery environment requiring coordination preparation, and the complex resources requiring coordination, the data security of the backup system cannot be ensured.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a backup task execution method, a backup task execution device and a backup task execution storage medium, and aims to solve the technical problems that in the prior art, due to the diversity of backup recovery modes, the technical difficulty of recovery is high, the recovery environment needing coordination preparation is complex, and resources needing coordination are complicated, the data security of a backup system cannot be guaranteed.
In order to achieve the above object, the present invention provides a backup task execution method, including the following steps:
acquiring backup demand information of each backup object;
determining backup tasks and task execution frequency corresponding to the backup objects based on the backup demand information;
generating a task execution plan within a preset time range according to the backup tasks corresponding to the backup objects and the task execution frequency;
and executing the task within the preset time range according to the task execution plan.
Optionally, the step of generating a task execution plan within a preset time range according to the backup task corresponding to each backup object and the task execution frequency specifically includes:
acquiring equipment resources required by backup tasks corresponding to the backup objects;
and generating a task execution plan within a preset time range based on the backup tasks corresponding to the backup objects, the equipment resources required by the backup tasks and the task execution frequency.
Optionally, the step of determining the backup tasks and the task execution frequency corresponding to each backup object based on the backup requirement information specifically includes:
determining backup tasks and task execution frequency corresponding to the backup objects based on the backup demand information, and determining backup priorities corresponding to the backup objects based on the backup demand information;
the step of generating a task execution plan within a preset time range based on the backup tasks corresponding to the backup objects, the device resources required by the backup tasks, and the task execution frequency specifically includes:
and generating a task execution plan within a preset time range based on the backup tasks corresponding to the backup objects, the equipment resources required by the backup tasks, the task execution frequency and the backup priority.
Optionally, the step of generating a task execution plan within a preset time range based on the device resources, the task execution frequency, and the backup priority required by the backup task corresponding to each backup object specifically includes:
generating backup tasks corresponding to all time periods within a preset time range based on the task execution frequency of all backup objects;
determining the total amount of equipment resources corresponding to each time period according to the backup task corresponding to each time period and the equipment resources required by the backup task;
traversing each time period in the preset time range, and taking the traversed time period as the current time period;
judging whether the total amount of the equipment resources corresponding to the current time period exceeds a preset resource threshold value or not;
when the total amount of the equipment resources exceeds a preset resource threshold value, adjusting the backup tasks corresponding to the current time period based on the backup priority of each backup object;
and after traversing each time period in the preset time range, generating a task execution plan in the preset time range according to the backup tasks respectively corresponding to each time period.
Optionally, when the total amount of the device resources exceeds a preset resource threshold, the step of adjusting the device resources of the backup task corresponding to the current time period based on the backup priority of each backup object specifically includes:
when the total amount of the equipment resources exceeds a preset resource threshold value, releasing the equipment resources of the backup task with the lowest backup priority in the backup tasks corresponding to the current time period;
and returning to the step of judging whether the total amount of the equipment resources corresponding to the current time period exceeds a preset resource threshold value or not until the total amount of the equipment resources does not exceed the preset resource threshold value.
Optionally, before the step of executing the task within the preset time range according to the task execution plan, the backup task execution method further includes:
displaying the task execution plan;
receiving an adjusting instruction input by a user based on the task execution plan;
and adjusting the task execution plan according to the adjusting instruction to obtain a new task execution plan.
Optionally, the backup tasks corresponding to the backup objects respectively include: a backup data validation task and/or a backup data rehearsal task.
In addition, to achieve the above object, the present invention further provides a backup task execution device, including: the backup task execution program is configured to implement the steps of the backup task execution method as described above.
Further, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a backup task execution program, which when executed by a processor, implements the steps of the backup task execution method as described above.
In addition, to achieve the above object, the present invention further provides a backup task execution device, including:
the information acquisition module is used for acquiring backup demand information of each backup object;
the task frequency determining module is used for determining backup tasks and task execution frequency corresponding to each backup object based on the backup demand information;
the task plan generating module is used for generating a task execution plan within a preset time range according to the backup tasks corresponding to the backup objects and the task execution frequency;
and the task execution module is used for executing the tasks within the preset time range according to the task execution plan.
According to the method and the device, the backup requirement information of each backup object is obtained, the backup task and the task execution frequency corresponding to each backup object are determined based on the backup requirement information, the task execution plan in the preset time range is generated according to the backup task and the task execution frequency corresponding to each backup object, and finally the task is executed in the preset time range according to the task execution plan.
Drawings
FIG. 1 is a diagram illustrating a backup task execution device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a backup task performing device method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a backup task performing device method according to a second embodiment of the present invention;
fig. 4 is a block diagram of a backup task performing device according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, the backup task performing device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in FIG. 1 does not constitute a limitation of the backup task performing apparatus and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a backup task execution program.
In the backup task execution apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with an external network; the user interface 1003 is mainly used for receiving input instructions of a user; the backup task execution device calls the backup task execution program stored in the memory 1005 by the processor 1001, and performs the following operations:
acquiring backup demand information of each backup object;
determining backup tasks and task execution frequency corresponding to the backup objects based on the backup demand information;
generating a task execution plan within a preset time range according to the backup tasks corresponding to the backup objects and the task execution frequency;
and executing the task within the preset time range according to the task execution plan.
Further, the processor 1001 may call the backup task execution program stored in the memory 1005, and also perform the following operations:
acquiring equipment resources required by backup tasks corresponding to the backup objects;
and generating a task execution plan within a preset time range based on the backup tasks corresponding to the backup objects, the equipment resources required by the backup tasks and the task execution frequency.
Further, the processor 1001 may call the backup task execution program stored in the memory 1005, and also perform the following operations:
determining backup tasks and task execution frequency corresponding to the backup objects based on the backup demand information, and determining backup priorities corresponding to the backup objects based on the backup demand information;
and generating a task execution plan within a preset time range based on the backup tasks corresponding to the backup objects, the equipment resources required by the backup tasks, the task execution frequency and the backup priority.
Further, the processor 1001 may call the backup task execution program stored in the memory 1005, and also perform the following operations:
generating backup tasks corresponding to all time periods within a preset time range based on the task execution frequency of all backup objects;
determining the total amount of equipment resources corresponding to each time period according to the backup task corresponding to each time period and the equipment resources required by the backup task;
traversing each time period in the preset time range, and taking the traversed time period as the current time period;
judging whether the total amount of the equipment resources corresponding to the current time period exceeds a preset resource threshold value or not;
when the total amount of the equipment resources exceeds a preset resource threshold value, adjusting the backup tasks corresponding to the current time period based on the backup priority of each backup object;
and after traversing each time period in the preset time range, generating a task execution plan in the preset time range according to the backup tasks respectively corresponding to each time period.
Further, the processor 1001 may call the backup task execution program stored in the memory 1005, and also perform the following operations:
when the total amount of the equipment resources exceeds a preset resource threshold value, releasing the equipment resources of the backup task with the lowest backup priority in the backup tasks corresponding to the current time period;
and returning to the step of judging whether the total amount of the equipment resources corresponding to the current time period exceeds a preset resource threshold value or not until the total amount of the equipment resources does not exceed the preset resource threshold value.
Further, the processor 1001 may call the backup task execution program stored in the memory 1005, and also perform the following operations:
displaying the task execution plan;
receiving an adjusting instruction input by a user based on the task execution plan;
and adjusting the task execution plan according to the adjusting instruction to obtain a new task execution plan.
According to the scheme, by acquiring the backup requirement information of each backup object, determining the backup task and the task execution frequency corresponding to each backup object based on the backup requirement information, generating the task execution plan within the preset time range according to the backup task and the task execution frequency corresponding to each backup object, and executing the task within the preset time range according to the task execution plan, the task execution plan can be obtained in advance before executing the task, so that resource coordination can be performed based on the task execution plan in advance, and the data security in the backup system is ensured.
Based on the hardware structure, the embodiment of the backup task execution method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a backup task execution method according to a first embodiment of the present invention.
In a first embodiment, the backup task execution method includes the steps of:
s10: and obtaining backup requirement information of each backup object.
It should be noted that the backup object is an object that needs to be backed up, and it may be a host, a file system, an application system, a database, a file, or the like, and of course, it may also be other objects, which is not limited in this embodiment.
It should be understood that, when the backup requirement information of each backup object is obtained, the backup requirement information may be extracted from the requirement information table by displaying the requirement information table, and filling the backup requirement information in the requirement information table by the user.
S20: and determining backup tasks and task execution frequency corresponding to the backup objects based on the backup demand information.
It can be understood that the backup requirement information is requirement information of the backup object during backup, which usually reflects backup tasks and task execution frequency corresponding to each backup object, and therefore, the backup tasks and task execution frequency corresponding to each backup object can be determined based on the backup requirement information.
In a specific implementation, each backup object corresponds to a backup task, for example: the backup object is a service server, and at this time, the backup task corresponding to the service server needs to be executed at a certain time interval, and it is a matter of course that the backup task generally requires tasks of verifying and/or practicing the backup data in addition to tasks of backing up the data of the service server, and these tasks have different task execution frequencies, so that the backup task and the task execution frequency corresponding to each backup object can be determined based on the backup requirement information.
It should be noted that the backup data verification is to verify whether the backup data is normal, for example: the backup data a is data generated by performing backup at a certain time point, but due to problems such as network transmission, there may be problems such as data loss or data error, that is, it cannot be determined whether the data can be normally operated after the data recovery is performed by using the backup data a, and if the backup data is not verified, one backup data is directly selected for data recovery, which is easy to cause data risk and affects normal processing of the service.
It can be understood that the backup data drilling is the recovery drilling of the backup data, so as to determine the recovery time required by each backup data under different recovery strategies, thereby facilitating the user to predict the required data recovery time.
S30: and generating a task execution plan within a preset time range according to the backup tasks corresponding to the backup objects and the task execution frequency.
Two backup objects are assumed to be divided into a backup object A and a backup object B; the backup task corresponding to the backup object a includes three types: the first is data backup, and the task execution frequency is data backup once every 10 min; the second is backup data verification, and the task execution frequency is once every 1 hour; the third is backup data drilling, and the task execution frequency is once every 1 half hour;
the backup task of backup object B includes two types: the first is data backup, and the task execution frequency is data backup once every 30 min; the second is backup data verification, and the task execution frequency is once every 1 half hour.
If the preset time range is 2 hours in the future, at this time, the first 10min, the second 10min and the third 10min in the preset time range can be determined, and the task execution plan is to execute the data backup of the backup object A; in the fourth 10min within the preset time range, the task execution plan is to execute the data backup of the backup object A and execute the data backup of the backup object B (because the data backup of the backup object B is yes); in the fifth 10min and the sixth 10min within the preset time range, the task execution plan is to execute the data backup of the backup object A; in the seventh 10min within the preset time range, the task execution plan is to execute the data backup of the backup object A, execute the data backup of the backup object B and execute the backup data verification of the backup object A; in the eighth 10min and the ninth 10min within the preset time range, the task execution plan is to execute the data backup of the backup object A; in the tenth 10min within the preset time range, the task execution plan is to execute data backup of the backup object A, execute data backup of the backup object B, execute backup data rehearsal of the backup object A and execute backup data verification of the backup object B; and in the eleventh 10min and the twelfth 10min within the preset time range, the task execution plan is to execute the data backup of the backup object A.
It should be noted that, since the task execution plan is generated in many cases according to actual situations, in order to ensure flexibility of task execution for the user, in this embodiment, the task execution plan may be displayed first, then an adjustment instruction input by the user based on the task execution plan is received, and then the task execution plan is adjusted according to the adjustment instruction, so as to obtain a new task execution plan.
And adjusting the task execution plan according to the adjustment instruction to obtain a new task execution plan, so that the task execution plan to be executed subsequently is the new task execution plan.
S40: and executing the task within the preset time range according to the task execution plan.
In the specific time, since the task execution plan within the preset time range has been previously determined, it is very convenient to execute the task in accordance with the task execution plan.
According to the method and the device, the backup requirement information of each backup object is obtained, the backup task and the task execution frequency corresponding to each backup object are determined based on the backup requirement information, the task execution plan in the preset time range is generated according to the backup task and the task execution frequency corresponding to each backup object, and finally the task is executed in the preset time range according to the task execution plan.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for executing a backup task according to a second embodiment of the present invention, and the method for executing a backup task according to the second embodiment of the present invention is provided based on the embodiment illustrated in fig. 2.
In the second embodiment, step S30 specifically includes:
s31: and acquiring equipment resources required by the backup task corresponding to each backup object.
It should be noted that, for different backup tasks, there may be differences in the required device resources, such as: the device resources required for data backup of the backup object A are that the CPU occupancy rate is 10% and the bandwidth occupancy rate is 15%; the equipment resources required for verifying the backup data of the backup object A are 30% of the CPU occupancy rate and 20% of the bandwidth occupancy rate; the equipment resources required by the backup data drilling of the backup object A are 40% of the CPU occupancy rate and 30% of the bandwidth occupancy rate; the device resources required for data backup of the backup object B are 15% of the CPU occupancy rate and 20% of the bandwidth occupancy rate, and the device resources required for data verification of the backup object B are 25% of the CPU occupancy rate and 15% of the bandwidth occupancy rate.
S32: and generating a task execution plan within a preset time range based on the backup tasks corresponding to the backup objects, the equipment resources required by the backup tasks and the task execution frequency.
It can be understood that, because the backup tasks all correspond to the required device resources, the resources of the server are limited, and it is further required to ensure that the system can normally operate, only a part of the device resources can be reserved for implementing the backup tasks in the same time period, for example: the equipment resources for ensuring the normal operation of the system are 25% of the CPU occupancy rate and 10% of the bandwidth occupancy rate, and at the moment, the equipment resources for performing the backup task are 75% of the CPU occupancy rate and 90% of the bandwidth occupancy rate.
Assume that during a certain period of time, the tasks that need to be performed include: performing data backup of the backup object a (required CPU occupancy of 10% and bandwidth occupancy of 15%), performing data backup of the backup object B (required CPU occupancy of 15% and bandwidth occupancy of 20%), performing backup data exercise of the backup object a (required CPU occupancy of 40% and bandwidth occupancy of 30%), and performing backup data verification of the backup object B (required CPU occupancy of 25% and bandwidth occupancy of 15%), when the total required CPU occupancy of 90% and bandwidth occupancy of 80% can be calculated, and therefore there is necessarily a case where device resources are not sufficient during this period of time, and thus it is necessary to delay execution of a part of tasks that need to be executed, for example: and delaying the execution of the verification of the backup data of the backup object B, or delaying the execution of the drilling of the backup data of the backup object A.
However, if a task that is executed later is randomly selected, important data is likely to be not backed up in time, and thus data security is affected, and therefore, in this embodiment, when a backup task and a task execution frequency corresponding to each backup object are determined based on the backup requirement information, a backup priority corresponding to each backup object is also determined based on the backup requirement information, and then a task execution plan within a preset time range is generated based on the backup task corresponding to each backup object, device resources required by the backup task, the task execution frequency, and the backup priority.
For example: the backup priority can be set to three levels, i.e. high, medium and low, of course, two levels, i.e. high and low, or more levels, for example: if a task requiring deferred execution occurs, the backup data with a lower priority level may be deferred executed, and if the priority level for executing the data backup of the backup object a is high, the priority level for executing the data backup of the backup object B is high, the priority level for executing the backup data drilling of the backup object a is low, and the priority level for executing the backup data verification of the backup object B is medium, then the backup data drilling of the backup object a may be deferred executed.
It should be noted that, under some extreme conditions, a situation that a plurality of backup tasks need to be delayed may occur, and in order to facilitate determining a task execution plan, in this embodiment, backup tasks corresponding to time periods within a preset time range may be generated based on a task execution frequency of each backup object; then, determining the total amount of equipment resources corresponding to each time period according to the backup task corresponding to each time period and the equipment resources required by the backup task; traversing each time period within the preset time range, and taking the traversed time period as the current time period; then judging whether the total amount of the equipment resources corresponding to the current time period exceeds a preset resource threshold value; when the total amount of the equipment resources exceeds a preset resource threshold value, adjusting the backup tasks corresponding to the current time period based on the backup priority of each backup object; and after traversing each time period in the preset time range, generating a task execution plan in the preset time range according to the backup tasks respectively corresponding to each time period.
In order to ensure that the backup tasks with relatively high priority levels are not affected, in this embodiment, when the backup task corresponding to the current time period is adjusted based on the backup priority of each backup object, the device resource of the backup task with the lowest backup priority in the backup tasks corresponding to the current time period may be released, and the step of determining whether the total amount of the device resource corresponding to the current time period exceeds the preset resource threshold is returned until the total amount of the device resource does not exceed the preset resource threshold.
Assuming that the preset resource threshold is 80% of the CPU occupancy rate, in the current time period, a total of 8 backup tasks need to be executed, which respectively include: task D (CPU occupancy 10%, priority high), task E (CPU occupancy 15%, priority high), task F (CPU occupancy 15%, priority high), task G (CPU occupancy 10%, priority medium), task H (CPU occupancy 20%, priority medium), task I (CPU occupancy 10%, priority medium), task J (CPU occupancy 5%, priority low), and task K (CPU occupancy 10%, priority low).
For the backup task, it may be determined that the CPU occupancy required by the 8 backup tasks is 95%, and at this time, the CPU occupancy will certainly exceed the preset resource threshold, so that the resource required by the task with the low priority level may be released first, and for the tasks with the same priority level, the resource may be released randomly, or the task with the higher resource may be released first, for example: releasing the resources required by the task K, determining that the required CPU occupancy rate is 85% and still exceeds the preset resource threshold, continuing to release the task J with the low priority level, determining that the required CPU occupancy rate is 80% and thus does not exceed the preset resource threshold, performing delay processing on the task K and the task J at the moment, wherein the backup tasks required to be executed in the current time period are as follows: task D, task E, task F, task G, task H and task I, so as to generate a task execution plan within a preset time range.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a backup task execution program is stored on the computer-readable storage medium, and when executed by a processor, the backup task execution program implements the following operations:
acquiring backup demand information of each backup object;
determining backup tasks and task execution frequency corresponding to the backup objects based on the backup demand information;
generating a task execution plan within a preset time range according to the backup tasks corresponding to the backup objects and the task execution frequency;
and executing the task within the preset time range according to the task execution plan.
The backup task execution program of this embodiment may also be used to implement the steps of the backup task execution method, which are not described herein again.
In addition, an embodiment of the present invention further provides a backup task execution device, and with reference to fig. 4, the backup task execution device includes:
an information obtaining module 401, configured to obtain backup requirement information of each backup object;
a task frequency determining module 402, configured to determine, based on the backup requirement information, a backup task and a task execution frequency corresponding to each backup object;
a task plan generating module 403, configured to generate a task execution plan within a preset time range according to the backup task corresponding to each backup object and the task execution frequency;
and a task execution module 404, configured to execute a task within the preset time range according to the task execution plan.
Each module of this embodiment may also be used to implement each step of the backup task execution method, which is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A backup task execution method is characterized by comprising the following steps:
acquiring backup demand information of each backup object;
determining backup tasks and task execution frequency corresponding to the backup objects based on the backup demand information, and determining backup priorities corresponding to the backup objects based on the backup demand information;
acquiring equipment resources required by backup tasks corresponding to the backup objects;
generating a task execution plan within a preset time range based on the backup tasks corresponding to the backup objects, equipment resources required by the backup tasks, task execution frequency and backup priority;
executing the task within the preset time range according to the task execution plan;
the step of generating a task execution plan within a preset time range based on the device resources, the task execution frequency and the backup priority required by the backup task corresponding to each backup object specifically includes:
generating backup tasks corresponding to all time periods within a preset time range based on the task execution frequency of all backup objects;
determining the total amount of equipment resources corresponding to each time period according to the backup task corresponding to each time period and the equipment resources required by the backup task;
traversing each time period in the preset time range, and taking the traversed time period as the current time period;
judging whether the total amount of the equipment resources corresponding to the current time period exceeds a preset resource threshold value or not;
when the total amount of the equipment resources exceeds a preset resource threshold value, adjusting the backup tasks corresponding to the current time period based on the backup priority of each backup object;
and after traversing each time period in the preset time range, generating a task execution plan in the preset time range according to the backup tasks respectively corresponding to each time period.
2. The method for executing a backup task according to claim 1, wherein the step of adjusting the device resource of the backup task corresponding to the current time period based on the backup priority of each backup object when the total amount of the device resource exceeds a preset resource threshold specifically includes:
when the total amount of the equipment resources exceeds a preset resource threshold value, releasing the equipment resources of the backup task with the lowest backup priority in the backup tasks corresponding to the current time period;
and returning to the step of judging whether the total amount of the equipment resources corresponding to the current time period exceeds a preset resource threshold value or not until the total amount of the equipment resources does not exceed the preset resource threshold value.
3. The backup task execution method according to claim 1 or 2, wherein prior to the step of executing the task within the preset time range according to the task execution plan, the backup task execution method further comprises:
displaying the task execution plan;
receiving an adjusting instruction input by a user based on the task execution plan;
and adjusting the task execution plan according to the adjusting instruction to obtain a new task execution plan.
4. The backup task execution method according to claim 1 or 2, wherein the backup task corresponding to each backup object respectively comprises: a backup data validation task and/or a backup data rehearsal task.
5. A backup task execution device, characterized in that the backup task execution device comprises: a memory, a processor and a backup task execution program stored on the memory and executable on the processor, the backup task execution program being configured to implement the steps of the backup task execution method according to any of claims 1 to 4.
6. A computer-readable storage medium, on which a backup task execution program is stored, which when executed by a processor implements the steps of the backup task execution method according to any one of claims 1 to 4.
7. A backup task execution apparatus, comprising:
the information acquisition module is used for acquiring backup demand information of each backup object;
the task frequency determining module is used for determining backup tasks and task execution frequency corresponding to the backup objects based on the backup demand information and determining backup priorities corresponding to the backup objects based on the backup demand information;
the task plan generating module is used for generating a task execution plan within a preset time range according to the backup tasks corresponding to the backup objects and the task execution frequency;
the task execution module is used for executing tasks within the preset time range according to the task execution plan;
the task plan generating module is also used for acquiring equipment resources required by the backup tasks corresponding to the backup objects; generating a task execution plan within a preset time range based on the backup tasks corresponding to the backup objects, equipment resources required by the backup tasks, task execution frequency and backup priority;
the task plan generating module is further used for generating backup tasks corresponding to all time periods within a preset time range based on the task execution frequency of all backup objects; determining the total amount of equipment resources corresponding to each time period according to the backup task corresponding to each time period and the equipment resources required by the backup task; traversing each time period in the preset time range, and taking the traversed time period as the current time period; judging whether the total amount of the equipment resources corresponding to the current time period exceeds a preset resource threshold value or not; when the total amount of the equipment resources exceeds a preset resource threshold value, adjusting the backup tasks corresponding to the current time period based on the backup priority of each backup object; and after traversing each time period in the preset time range, generating a task execution plan in the preset time range according to the backup tasks respectively corresponding to each time period.
CN202011549141.0A 2020-12-24 2020-12-24 Backup task execution method, device, equipment and storage medium Active CN112286734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011549141.0A CN112286734B (en) 2020-12-24 2020-12-24 Backup task execution method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011549141.0A CN112286734B (en) 2020-12-24 2020-12-24 Backup task execution method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112286734A CN112286734A (en) 2021-01-29
CN112286734B true CN112286734B (en) 2021-06-11

Family

ID=74426083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011549141.0A Active CN112286734B (en) 2020-12-24 2020-12-24 Backup task execution method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112286734B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612644B (en) * 2020-12-24 2024-06-25 深圳市科力锐科技有限公司 Host data backup method, device, storage medium and apparatus
CN114138554B (en) * 2021-11-22 2022-08-09 深圳互信互通科技有限公司 Wireless AP configuration information backup and system recovery control system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101276301A (en) * 2007-03-27 2008-10-01 赛门铁克公司 Method and apparatus for allocating resources among backup tasks in a data backup system
CN101599079A (en) * 2009-07-22 2009-12-09 中国科学院计算技术研究所 A kind of Backup Data is concentrated the management method of storage
CN102081560A (en) * 2011-03-03 2011-06-01 杭州电子科技大学 Backup method based on proxy operation
CN106569911A (en) * 2016-10-14 2017-04-19 深圳前海微众银行股份有限公司 Data backup method and device
CN111708625A (en) * 2020-06-16 2020-09-25 中国建设银行股份有限公司 Multi-user task execution method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200479A1 (en) * 2002-04-18 2003-10-23 Steffan Bansemer Advanced method for data backup
CN101414277B (en) * 2008-11-06 2010-06-09 清华大学 Need-based increment recovery disaster-tolerable system and method based on virtual machine
CN103617098B (en) * 2013-12-03 2017-06-16 上海爱数信息技术股份有限公司 Intelligent backup method and intelligent backup system based on data variation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101276301A (en) * 2007-03-27 2008-10-01 赛门铁克公司 Method and apparatus for allocating resources among backup tasks in a data backup system
CN101599079A (en) * 2009-07-22 2009-12-09 中国科学院计算技术研究所 A kind of Backup Data is concentrated the management method of storage
CN102081560A (en) * 2011-03-03 2011-06-01 杭州电子科技大学 Backup method based on proxy operation
CN106569911A (en) * 2016-10-14 2017-04-19 深圳前海微众银行股份有限公司 Data backup method and device
CN111708625A (en) * 2020-06-16 2020-09-25 中国建设银行股份有限公司 Multi-user task execution method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112286734A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
US20210248062A1 (en) System and Method for Data Collection and Analysis of Information Relating to Mobile Applications
CN108040108B (en) Communication switching method, device, coordination server and readable storage medium
CN112286734B (en) Backup task execution method, device, equipment and storage medium
EP2989543B1 (en) Method and device for updating client
CN104994060A (en) Method and device for providing verification for user login
CN105302722B (en) CTS automatic testing method and device
CN105897461A (en) Multi-system OTA upgrading method and multi-system device
CN109451020B (en) Timeout management method, timeout management device, and computer-readable storage medium
CN112650520A (en) Ammeter upgrading method and system, intelligent ammeter and storage medium
CN107248995B (en) Account verification method and device
CN109034603B (en) Business process execution method, device and computer readable storage medium
CN111143023A (en) Resource changing method and device, equipment and storage medium
CN108390786B (en) Business operation and maintenance method and device and electronic equipment
CN105550071A (en) System file upgrading and detecting method and communication device
CN110597662A (en) Backup data automatic verification method and device, user equipment and storage medium
CN108196975B (en) Data verification method and device based on multiple checksums and storage medium
CN111045725B (en) Control method and device of code management system and storage medium
CN109104292B (en) Update deployment processing method, related device, and computer-readable storage medium
CN111274204B (en) Terminal identification method, method for generating mobile equipment identification combined code and device thereof
CN112306758B (en) Backup success rate prediction method, device, equipment and storage medium
CN112667272A (en) Ammeter upgrading method and system, intelligent ammeter and storage medium
CN115499487B (en) Updating method and device of server configuration file, storage medium and equipment
CN109684274B (en) File archiving method, device and computer readable storage medium
CN109753782B (en) Adaptive processing method and device for cloud security resource pool
CN114091909A (en) Collaborative development method, system, device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant