CN112612644A - Host data backup method, device, storage medium and device - Google Patents

Host data backup method, device, storage medium and device Download PDF

Info

Publication number
CN112612644A
CN112612644A CN202011556222.3A CN202011556222A CN112612644A CN 112612644 A CN112612644 A CN 112612644A CN 202011556222 A CN202011556222 A CN 202011556222A CN 112612644 A CN112612644 A CN 112612644A
Authority
CN
China
Prior art keywords
backup
host
priority
backed
information
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.)
Granted
Application number
CN202011556222.3A
Other languages
Chinese (zh)
Other versions
CN112612644B (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 CN202011556222.3A priority Critical patent/CN112612644B/en
Priority claimed from CN202011556222.3A external-priority patent/CN112612644B/en
Publication of CN112612644A publication Critical patent/CN112612644A/en
Application granted granted Critical
Publication of CN112612644B publication Critical patent/CN112612644B/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/1448Management of the data involved in backup or backup restore
    • 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/1456Hardware arrangements for backup
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments

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 method, a device, a storage medium and a device for backing up data of a host, wherein the method comprises the following steps: acquiring a preset backup strategy and host data of a host to be backed up, determining backup priority information of the host to be backed up according to the preset backup strategy and the host data, detecting current network bandwidth and backup server information, acquiring a target backup plan according to the backup priority information, the host data, the current network bandwidth information and the backup server information, and backing up the host data of the host to be backed up according to the target backup plan; the invention determines the target backup plan according to the backup priority information, the host data, the current network bandwidth information and the backup server information, and backs up the host data according to the target backup plan, thereby achieving the best resource allocation effect and improving the plan completion rate of the backup task.

Description

Host data backup method, device, storage medium and device
Technical Field
The present invention relates to the field of network resource processing technologies, and in particular, to a method, a device, a storage medium, and an apparatus for backing up data of a host.
Background
At present, with the development of internet technology, the dependence degree of production, office, management and operation of units on IT application systems is higher and higher, the number of application systems and the data scale are increased explosively, and in order to deal with the data loss challenge caused by host faults, system errors, virus attacks and the like, backup protection tasks with different backup frequency strategies need to be executed on all IT application systems. Different backup task plans need to be configured for a large number of backup source hosts respectively, because backup strategies are different (continuous data backup, timed backup with time intervals of minutes, hours and days) and the priorities of the strategies are different, the data volume of the source host to be backup-protected and the data volume newly added in unit time are different in size, the time for executing the backup tasks is different, the network bandwidth is limited, the computing resources of a backup server are limited, a large amount of time is consumed for manually adjusting hundreds of thousands of backup plans, and the backup tasks can not be completed as scheduled, so that the disaster backup protection effect is seriously affected, and the backup data can not be restored. Therefore, how to dynamically adjust the backup plan of the host to be backed up and backup the host data according to the adjusted backup plan is an urgent technical problem to be solved.
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 method, equipment, a storage medium and a device for backing up host data, and aims to solve the technical problems in the prior art that how to dynamically adjust a backup plan of a host to be backed up and back up the host data according to the adjusted backup plan.
In order to achieve the above object, the present invention provides a host data backup method, which includes the following steps:
acquiring a preset backup strategy and host data of a host to be backed up;
determining backup priority information of the host to be backed up according to the preset backup strategy and the host data;
detecting the current network bandwidth and a backup server to obtain current network bandwidth information and backup server information;
and determining a target backup plan according to the backup priority information, the host data, the current network bandwidth information and the backup server information, and backing up the host data of the host to be backed up according to the target backup plan.
Preferably, the determining the backup priority information of the host to be backed up according to the preset backup policy and the host data includes:
determining the initial priority of the host to be backed up according to the preset backup strategy, and generating an initial priority table according to the initial priority;
detecting whether the same initial priority exists in the initial priority table, and if so, taking the same initial priority as the priority to be adjusted;
carrying out priority adjustment on the priority to be adjusted according to the host data to obtain a target priority;
and updating the initial priority table according to the target priority to obtain a target priority table, and taking the target priority table as backup priority information.
Preferably, the determining an initial priority of the host to be backed up according to the preset backup policy and generating an initial priority table according to the initial priority includes:
judging whether the client corresponding to the host to be backed up has set the host priority or not according to the preset backup strategy;
and when the client sets the host priority, taking the host priority as the initial priority of the host to be backed up, and generating an initial priority table according to the initial priority.
Preferably, after the step of determining whether the client corresponding to the host to be backed up has set the host priority according to the preset backup policy, the host data backup method further includes:
when the client does not set the priority of the host, determining the backup frequency of the host to be backed up according to the preset backup strategy;
searching a backup priority corresponding to the backup frequency in a preset mapping relation, and taking the backup priority as an initial priority, wherein the preset mapping relation comprises the corresponding relation between the backup frequency and the backup priority;
and generating an initial priority table according to the initial priority.
Preferably, the determining a target backup plan according to the backup priority information, the host data, the current network bandwidth information, and the backup server information, and backing up the host data of the host to be backed up according to the target backup plan includes:
determining a target backup sequence of the host to be backed up according to the backup priority information;
determining a target backup rate of the host to be backed up according to the target backup sequence, the host data, the current network bandwidth information and the backup server information;
and taking the target backup sequence and the target backup rate as a target backup plan, and backing up the host to be backed up according to the target backup plan.
Preferably, the determining a target backup rate of the host to be backed up according to the target backup sequence, the host data, the current network bandwidth information, and the backup server information includes:
obtaining backup rate samples, wherein the backup rate samples comprise different backup rates;
traversing the backup rate sample, and taking the traversed backup rate sample as a current backup rate sample;
predicting a backup result according to the target backup sequence, the host data, the current network bandwidth information, the backup server information and the current backup rate sample;
and when the traversal is finished, determining the target backup rate of the host to be backed up according to the backup result.
Preferably, before the obtaining the preset backup policy and the host data of the host to be backed up, the method further includes:
and acquiring host information of the host to be backed up, and sending the host information to a target client so that the target client determines a preset backup strategy according to the host information.
In addition, in order to achieve the above object, the present invention further provides a host data backup device, which includes a memory, a processor, and a host data backup program stored in the memory and operable on the processor, wherein the host data backup program is configured to implement the steps of the host data backup method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having a host data backup program stored thereon, wherein the host data backup program, when executed by a processor, implements the steps of the host data backup method as described above.
In addition, to achieve the above object, the present invention further provides a host data backup apparatus, including: the device comprises an acquisition module, a backup priority information determination module, a detection module and a backup module;
the acquisition module is used for acquiring a preset backup strategy and host data of a host to be backed up;
the backup priority information determining module is used for determining the backup priority information of the host to be backed up according to the preset backup strategy and the host data;
the detection module is used for detecting the current network bandwidth and the backup server to obtain the current network bandwidth information and the backup server information;
and the backup module is used for determining a target backup plan according to the backup priority information, the host data, the current network bandwidth information and the backup server information, and backing up the host data of the host to be backed up according to the target backup plan.
In the invention, a preset backup strategy and host data of a host to be backed up are acquired, backup priority information of the host to be backed up is determined according to the preset backup strategy and the host data, current network bandwidth and backup server information are detected, a target backup plan is determined according to the backup priority information, the host data, the current network bandwidth information and the backup server information, and the host data of the host to be backed up is backed up according to the target backup plan; according to the invention, the backup priority information of the host to be backed up is determined through the preset backup strategy of the host to be backed up and the host data, then the target backup plan is determined according to the backup priority information, the host data, the current network bandwidth information and the backup server information, and finally the host data is backed up according to the target backup plan, so that the optimal resource allocation effect can be achieved, and the plan completion rate of the backup task is improved.
Drawings
Fig. 1 is a schematic structural diagram of a host data backup device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a host data backup method according to the present invention;
FIG. 3 is a flowchart illustrating a host data backup method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a host data backup method according to a third embodiment of the present invention;
FIG. 5 is a block diagram of a host data backup 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.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a host data backup device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the host data backup apparatus may include: a processor 1001, such as a Central Processing Unit (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), and the optional user interface 1003 may further include a standard wired interface and a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory or a Non-volatile Memory (NVM), such as a 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 host data backup appliance and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in FIG. 1, memory 1005, identified as one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a host data backup program.
In the host data backup device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting user equipment; the host data backup device calls a host data backup program stored in the memory 1005 through the processor 1001, and executes the host data backup method provided by the embodiment of the present invention.
Based on the hardware structure, the embodiment of the host data backup method is provided.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a host data backup method according to the present invention, and the first embodiment of the host data backup method is provided.
In a first embodiment, the host data backup method includes the steps of:
step S10: and acquiring a preset backup strategy and host data of the host to be backed up.
It should be understood that the main execution body of the present embodiment is the host data backup device, wherein the host data backup device may be an electronic device such as a personal computer or a server.
It should be noted that the preset backup policy may be to acquire host information of the host to be backed up and send the host information to a target client, so that the target client determines the preset backup policy according to the host information, where the host information may be a model, an installation location, a storage data type, and an importance degree of storage data of the host.
It can be understood that the host Data backup device obtains host information of the host to be backed up, and sends the host information to a target client, so that the target client determines a preset backup policy according to the host information, which may be obtaining the host information of the host to be backed up, and sends the host information to the target client, the target client sets a backup frequency of the host to be backed up and/or a host priority according to the host information, wherein the backup frequency may be a timed backup with a Continuous Data backup (CDP), minute, hour, and day as a time interval, and the host priority may be a priority of the host to be backed up when performing a backup task.
Step S20: and determining the backup priority information of the host to be backed up according to the preset backup strategy and the host data.
It should be understood that the determining, by the host data backup device, the backup priority information of the host to be backed up according to the preset backup policy and the host data may be determining an initial priority of the host to be backed up according to the preset backup policy, generating an initial priority table according to the initial priority, detecting whether the same initial priority exists in the initial priority table, if so, taking the same initial priority as a priority to be adjusted, performing priority adjustment on the priority to be adjusted according to the host data to obtain a target priority, updating the initial priority table according to the target priority, obtaining a target priority table, and taking the target priority table as the backup priority information.
Step S30: and detecting the current network bandwidth and the backup server to obtain the current network bandwidth information and the backup server information.
It should be noted that the current network bandwidth information may be a rate total amount of the network bandwidth, a utilization rate of the network bandwidth, and the backup server information may be a resource condition and an occupancy rate of the backup server.
Step S40: and determining a target backup plan according to the backup priority information, the host data, the current network bandwidth information and the backup server information, and backing up the host data of the host to be backed up according to the target backup plan.
It can be understood that, the determining, by the host data backup device, a target backup plan according to the backup priority information, the host data, the current network bandwidth information, and the backup server information, and backing up the host data of the host to be backed up according to the target backup plan may be determining a target backup order of the host to be backed up according to the backup priority information, determining a target backup rate of the host to be backed up according to the target backup order, the host data, the current network bandwidth information, and the backup server information, taking the target backup order and the target backup rate as the target backup plan, and backing up the host to be backed up according to the target backup plan.
In a first embodiment, a preset backup strategy and host data of a host to be backed up are acquired, backup priority information of the host to be backed up is determined according to the preset backup strategy and the host data, a current network bandwidth and a backup server are detected, current network bandwidth information and backup server information are acquired, a target backup plan is determined according to the backup priority information, the host data, the current network bandwidth information and the backup server information, and the host data of the host to be backed up is backed up according to the target backup plan; according to the embodiment, the backup priority information of the host to be backed up is determined through the preset backup strategy of the host to be backed up and the host data, then the target backup plan is determined according to the backup priority information, the host data, the current network bandwidth information and the backup server information, and finally the host data is backed up according to the target backup plan, so that the optimal resource allocation effect can be achieved, and the plan completion rate of the backup task is improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a host data backup method according to a second embodiment of the present invention, and the second embodiment of the host data backup method is provided based on the first embodiment shown in fig. 2.
In the second embodiment, before the step S10, the method further includes:
step S01: and acquiring host information of the host to be backed up, and sending the host information to a target client so that the target client determines a preset backup strategy according to the host information.
It should be noted that the host information may be a model, an installation location, a storage data type, and a storage data importance level of the host.
It should be understood that, the host Data backup device obtains host information of the host to be backed up, and sends the host information to a target client, so that the target client determines, according to the host information, that a preset backup policy may be to obtain the host information of the host to be backed up, and sends the host information to the target client, and the target client sets a backup frequency of the host to be backed up, and/or a host priority, according to the host information, where the backup frequency may be a timed backup with time intervals of Continuous Data backup (CDP), minutes, hours, and days, and the host priority may be a priority of the host to be backed up when performing a backup task.
In the second embodiment, the step S20 includes:
step S201: and determining the initial priority of the host to be backed up according to the preset backup strategy, and generating an initial priority table according to the initial priority.
It should be understood that, the host data backup device determines an initial priority of the host to be backed up according to the preset backup policy, and generates an initial priority table according to the initial priority, may be that whether a client corresponding to the host to be backed up has set a host priority is determined according to the preset backup policy, when the client has set a host priority, the host priority is taken as the initial priority of the host to be backed up, and an initial priority table is generated according to the initial priority; when the client does not set the host priority, determining the backup frequency of the host to be backed up according to the preset backup strategy, searching the backup priority corresponding to the backup frequency in a preset mapping relation, taking the backup priority as an initial priority, wherein the preset mapping relation comprises the corresponding relation between the backup frequency and the backup priority, and generating an initial priority table according to the initial priority.
It should be noted that the preset mapping relationship table may be set according to user requirements, or may be set according to test results when the manufacturer of the host data backup device leaves the factory.
In a specific implementation, for example, the CDP may be set to correspond to a first priority, a minute to a second priority, an hour to a third priority, a day to a fourth priority, a week to a fifth priority, and a month to a sixth priority, wherein the priority order is first priority > second priority > third priority > fourth priority > fifth priority > sixth priority.
Step S202: and detecting whether the same initial priority exists in the initial priority table, and if so, taking the same initial priority as the priority to be adjusted.
It should be understood that the host data backup device may detect whether the same initial priority exists in the initial priority table, and if so, take the same initial priority as the priority to be adjusted.
Step S203: and carrying out priority adjustment on the priority to be adjusted according to the host data to obtain a target priority.
It can be understood that, the host data backup device performs priority adjustment on the priority to be adjusted according to the host data, determines the backup data volume of the priority to be adjusted according to the host data, judges the size of the backup data volume of the priority to be adjusted, and increases the priority to be adjusted with large backup data volume; keeping the priority to be adjusted with small backup data quantity unchanged.
Step S204: and updating the initial priority table according to the target priority to obtain a target priority table, and taking the target priority table as backup priority information.
It should be understood that the host data backup device updating the initial priority table according to the target priority may replace the initial priority in the initial priority table with the target priority and use the replaced initial priority table as the target priority table.
In the second embodiment, the step S40 includes:
step S401: and determining the target backup sequence of the host to be backed up according to the backup priority information.
It can be understood that the determining, by the host data backup device, the target backup order of the host to be backed up according to the backup priority information may be sorting the host to be backed up according to the backup priority information, obtaining a sorting result, and determining the target backup order of the host to be backed up according to the sorting result.
Step S402: and determining the target backup rate of the host to be backed up according to the target backup sequence, the host data, the current network bandwidth information and the backup server information.
It should be understood that, the determining, by the host data backup device, the target backup rate of the host to be backed up according to the target backup order, the host data, the current network bandwidth information, and the backup server information may be obtaining a backup rate sample, where the backup rate sample includes different backup rates, traversing the backup rate sample, taking the traversed backup rate sample as a current backup rate sample, predicting a backup result according to the target backup order, the host data, the current network bandwidth information, the backup server information, and the current backup rate sample, and determining the target backup rate of the host to be backed up according to the backup result when the traversing is finished.
Step S403: and taking the target backup sequence and the target backup rate as a target backup plan, and backing up the host to be backed up according to the target backup plan.
It can be understood that, the host data backup device may use the target backup order and the target backup rate as a target backup plan, and backup the host to be backed up according to the target backup plan.
In a second embodiment, determining an initial priority of the host to be backed up according to the preset backup policy, generating an initial priority table according to the initial priority, detecting whether the same initial priority exists in the initial priority table, if so, taking the same initial priority as a priority to be adjusted, performing priority adjustment on the priority to be adjusted according to the host data to obtain a target priority, updating the initial priority table according to the target priority to obtain a target priority table, and taking the target priority table as backup priority information; the embodiment determines the initial priority of the host to be backed up through the preset backup strategy, and adjusts the initial priority according to the host data when the same initial priority exists, so that a backup plan can be dynamically arranged, and the occupation of related resources is reduced.
Referring to fig. 4, fig. 4 is a flowchart illustrating a host data backup method according to a third embodiment of the present invention, and the third embodiment of the host data backup method is provided based on the first embodiment shown in fig. 2.
In the third embodiment, the step S201 includes:
step S2011: and judging whether the client corresponding to the host to be backed up has set the host priority or not according to the preset backup strategy.
It should be understood that, the host data backup device, according to the preset backup policy, determines whether the client corresponding to the host to be backed up has set the host priority, may perform priority information extraction on the preset backup policy, obtain a priority extraction result, and according to the priority extraction result, determines whether the client corresponding to the host to be backed up has set the host priority.
Step S2012: and when the client sets the host priority, taking the host priority as the initial priority of the host to be backed up, and generating an initial priority table according to the initial priority.
It can be understood that, when the client has set the host priority, the host data backup device may directly use the host priority as the initial priority of the host to be backed up, and generate an initial priority table according to the initial priority.
Further, after the step S2011, the method further includes:
when the client does not set the priority of the host, determining the backup frequency of the host to be backed up according to the preset backup strategy;
searching a backup priority corresponding to the backup frequency in a preset mapping relation, and taking the backup priority as an initial priority, wherein the preset mapping relation comprises the corresponding relation between the backup frequency and the backup priority;
and generating an initial priority table according to the initial priority.
Understandably, when the user does not set the priority of the host, the host data backup device determines the backup frequency of the host to be backed up according to the preset backup strategy, and may perform frequency information extraction on the preset backup strategy to obtain a frequency extraction result, and determines the backup frequency of the host to be backed up according to the frequency extraction result;
it should be noted that the preset mapping relationship table may be set according to user requirements, or may be set according to test results when the manufacturer of the host data backup device leaves the factory.
In a specific implementation, for example, the CDP may be set to correspond to a first priority, a minute to a second priority, an hour to a third priority, a day to a fourth priority, a week to a fifth priority, and a month to a sixth priority, wherein the priority order is first priority > second priority > third priority > fourth priority > fifth priority > sixth priority.
In a third embodiment, the step S402 includes:
step S4021: obtaining backup rate samples, wherein the backup rate samples comprise different backup rates.
It should be understood that the host data backup device may obtain the backup rate samples directly from the database, where the backup rate samples include different backup rates.
Step S4022: and traversing the backup rate sample, and taking the traversed backup rate sample as the current backup rate sample.
It is understood that the host data backup device may traverse the backup rate samples, and use the traversed backup rate samples as current backup rate samples.
Step S4023: predicting a backup result according to the target backup sequence, the host data, the current network bandwidth information, the backup server information and the current backup rate sample.
It should be understood that the host data backup device may predict the backup result according to the target backup order, the host data, the current network bandwidth information, the backup server information, and the current backup rate sample, to obtain predicted host data, predicted network bandwidth information, and preset backup server information, and compare the predicted host data, the predicted network bandwidth information, and the preset backup server information with the host data, the current network bandwidth information, and the backup server information to obtain a comparison result, determine whether the backup is successful according to the comparison result, obtain a determination result, and use the determination result as the backup result.
Step S4024: and when the traversal is finished, determining the target backup rate of the host to be backed up according to the backup result.
It should be understood that, after the traversal of the backup rate samples is completed, the host data backup device predicts all the backup rate samples, and at this time, only the backup results of the backup rate samples need to be compared, and the backup rate sample that can achieve the highest success rate of executing the backup task plan is selected from the backup results, and is taken as the target backup rate sample.
In a third embodiment, a backup rate sample is obtained, the backup rate sample comprises different backup rates, the backup rate sample is traversed, the traversed backup rate sample is used as a current backup rate sample, a backup result is predicted according to the target backup sequence, the host data, the current network bandwidth information, the backup server information and the current backup rate sample, and when traversal is finished, the target backup rate of the host to be backed up is determined according to the backup result; according to the embodiment, the data volume, the data increment and the like of the host to be backed up are counted and the variation trend is calculated, and the network bandwidth and the resources of the backup server are monitored in real time, so that the backup rate with the highest execution success rate can be determined, and the backup frequency is improved.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a host data backup program, and the host data backup program, when executed by a processor, implements the steps of the host data backup method described above.
In addition, referring to fig. 5, an embodiment of the present invention further provides a host data backup apparatus, where the host data backup apparatus includes: the device comprises an acquisition module 10, a backup priority information determination module 20, a detection module 30 and a backup module 40;
the obtaining module 10 is configured to obtain a preset backup policy of a host to be backed up and host data.
It should be understood that the main execution body of the present embodiment is the host data backup device, wherein the host data backup device may be an electronic device such as a personal computer or a server.
It should be noted that the preset backup policy may be to acquire host information of the host to be backed up and send the host information to a target client, so that the target client determines the preset backup policy according to the host information, where the host information may be a model, an installation location, a storage data type, and an importance degree of storage data of the host.
It can be understood that the host Data backup device obtains host information of the host to be backed up, and sends the host information to a target client, so that the target client determines a preset backup policy according to the host information, which may be obtaining the host information of the host to be backed up, and sends the host information to the target client, the target client sets a backup frequency of the host to be backed up and/or a host priority according to the host information, wherein the backup frequency may be a timed backup with a Continuous Data backup (CDP), minute, hour, and day as a time interval, and the host priority may be a priority of the host to be backed up when performing a backup task.
The backup priority information determining module 20 is configured to determine the backup priority information of the host to be backed up according to the preset backup policy and the host data.
It should be understood that the determining, by the host data backup device, the backup priority information of the host to be backed up according to the preset backup policy and the host data may be determining an initial priority of the host to be backed up according to the preset backup policy, generating an initial priority table according to the initial priority, detecting whether the same initial priority exists in the initial priority table, if so, taking the same initial priority as a priority to be adjusted, performing priority adjustment on the priority to be adjusted according to the host data to obtain a target priority, updating the initial priority table according to the target priority, obtaining a target priority table, and taking the target priority table as the backup priority information.
The detection module 30 is configured to detect a current network bandwidth and a backup server, and obtain current network bandwidth information and backup server information.
It should be noted that the current network bandwidth information may be a rate total amount of the network bandwidth, a utilization rate of the network bandwidth, and the backup server information may be a resource condition and an occupancy rate of the backup server.
The backup module 40 is configured to determine a target backup plan according to the backup priority information, the host data, the current network bandwidth information, and the backup server information, and backup the host data of the host to be backed up according to the target backup plan.
It can be understood that, the determining, by the host data backup device, a target backup plan according to the backup priority information, the host data, the current network bandwidth information, and the backup server information, and backing up the host data of the host to be backed up according to the target backup plan may be determining a target backup order of the host to be backed up according to the backup priority information, determining a target backup rate of the host to be backed up according to the target backup order, the host data, the current network bandwidth information, and the backup server information, taking the target backup order and the target backup rate as the target backup plan, and backing up the host to be backed up according to the target backup plan.
In this embodiment, a preset backup strategy and host data of a host to be backed up are acquired, backup priority information of the host to be backed up is determined according to the preset backup strategy and the host data, a current network bandwidth and a backup server are detected, current network bandwidth information and backup server information are acquired, a target backup plan is determined according to the backup priority information, the host data, the current network bandwidth information and the backup server information, and the host data of the host to be backed up is backed up according to the target backup plan; according to the embodiment, the backup priority information of the host to be backed up is determined through the preset backup strategy of the host to be backed up and the host data, then the target backup plan is determined according to the backup priority information, the host data, the current network bandwidth information and the backup server information, and finally the host data is backed up according to the target backup plan, so that the optimal resource allocation effect can be achieved, and the plan completion rate of the backup task is improved.
In an embodiment, the backup priority information determining module is further configured to determine an initial priority of the host to be backed up according to the preset backup policy, generate an initial priority table according to the initial priority, detect whether the same initial priority exists in the initial priority table, if so, take the same initial priority as a priority to be adjusted, perform priority adjustment on the priority to be adjusted according to the host data to obtain a target priority, update the initial priority table according to the target priority to obtain a target priority table, and take the target priority table as backup priority information;
in an embodiment, the backup priority information determining module is further configured to determine, according to the preset backup policy, whether a client corresponding to the host to be backed up has set a host priority, and when the client has set the host priority, use the host priority as an initial priority of the host to be backed up, and generate an initial priority table according to the initial priority;
in an embodiment, the backup priority information determining module is further configured to determine, when the client does not set a host priority, a backup frequency of the host to be backed up according to the preset backup policy, search a backup priority corresponding to the backup frequency in a preset mapping relationship, use the backup priority as an initial priority, where the preset mapping relationship includes a correspondence between the backup frequency and the backup priority, and generate an initial priority table according to the initial priority;
in an embodiment, the backup module is further configured to determine a target backup order of the host to be backed up according to the backup priority information, determine a target backup rate of the host to be backed up according to the target backup order, the host data, the current network bandwidth information, and the backup server information, use the target backup order and the target backup rate as a target backup plan, and backup the host to be backed up according to the target backup plan;
in an embodiment, the backup module is further configured to obtain a backup rate sample, where the backup rate sample includes different backup rates, traverse the backup rate sample, use the traversed backup rate sample as a current backup rate sample, predict a backup result according to the target backup sequence, the host data, the current network bandwidth information, the backup server information, and the current backup rate sample, and determine a target backup rate of the host to be backed up according to the backup result when the traversal is completed;
in one embodiment, the host data backup apparatus further includes: a receiving module;
the receiving module is used for acquiring host information of the host to be backed up and sending the host information to a target client so that the target client can determine a preset backup strategy according to the host information.
Other embodiments or specific implementation manners of the host data backup device according to the present invention may refer to the above method embodiments, and are 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. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order, but rather the words first, second, third, etc. are to be interpreted as names.
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 solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., a Read Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several 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 (10)

1. A host data backup method is characterized by comprising the following steps:
acquiring a preset backup strategy and host data of a host to be backed up;
determining backup priority information of the host to be backed up according to the preset backup strategy and the host data;
detecting the current network bandwidth and a backup server to obtain current network bandwidth information and backup server information;
and determining a target backup plan according to the backup priority information, the host data, the current network bandwidth information and the backup server information, and backing up the host data of the host to be backed up according to the target backup plan.
2. The method for backing up data of a host computer according to claim 1, wherein the step of determining the backup priority information of the host computer to be backed up according to the preset backup policy and the host computer data specifically comprises:
determining the initial priority of the host to be backed up according to the preset backup strategy, and generating an initial priority table according to the initial priority;
detecting whether the same initial priority exists in the initial priority table, and if so, taking the same initial priority as the priority to be adjusted;
carrying out priority adjustment on the priority to be adjusted according to the host data to obtain a target priority;
and updating the initial priority table according to the target priority to obtain a target priority table, and taking the target priority table as backup priority information.
3. The method for backing up data of a host computer according to claim 2, wherein the step of determining the initial priority of the host computer to be backed up according to the preset backup policy and generating an initial priority table according to the initial priority specifically comprises:
judging whether the client corresponding to the host to be backed up has set the host priority or not according to the preset backup strategy;
and when the client sets the host priority, taking the host priority as the initial priority of the host to be backed up, and generating an initial priority table according to the initial priority.
4. The host data backup method according to claim 3, wherein after the step of determining whether the client corresponding to the host to be backed up has set the host priority according to the preset backup policy, the host data backup method further comprises:
when the client does not set the priority of the host, determining the backup frequency of the host to be backed up according to the preset backup strategy;
searching a backup priority corresponding to the backup frequency in a preset mapping relation, and taking the backup priority as an initial priority, wherein the preset mapping relation comprises the corresponding relation between the backup frequency and the backup priority;
and generating an initial priority table according to the initial priority.
5. The method for backing up host data according to claim 1, wherein the step of determining a target backup plan according to the backup priority information, the host data, the current network bandwidth information, and the backup server information, and backing up the host data of the host to be backed up according to the target backup plan specifically comprises:
determining a target backup sequence of the host to be backed up according to the backup priority information;
determining a target backup rate of the host to be backed up according to the target backup sequence, the host data, the current network bandwidth information and the backup server information;
and taking the target backup sequence and the target backup rate as a target backup plan, and backing up the host to be backed up according to the target backup plan.
6. The method for backing up data of a host computer according to claim 5, wherein the step of determining the target backup rate of the host computer to be backed up according to the target backup order, the host computer data, the current network bandwidth information, and the backup server information specifically includes:
obtaining backup rate samples, wherein the backup rate samples comprise different backup rates;
traversing the backup rate sample, and taking the traversed backup rate sample as a current backup rate sample;
predicting a backup result according to the target backup sequence, the host data, the current network bandwidth information, the backup server information and the current backup rate sample;
and when the traversal is finished, determining the target backup rate of the host to be backed up according to the backup result.
7. The method for backing up data of a host computer according to any one of claims 1-6, wherein before the step of obtaining the preset backup policy of the host computer to be backed up and the data of the host computer, the method for backing up data of the host computer further comprises:
and acquiring host information of the host to be backed up, and sending the host information to a target client so that the target client determines a preset backup strategy according to the host information.
8. A host data backup device, the host data backup device comprising: memory, a processor and a host data backup program stored on the memory and executable on the processor, the host data backup program when executed by the processor implementing the steps of the host data backup method according to any of claims 1 to 7.
9. A storage medium having stored thereon a host data backup program which, when executed by a processor, performs the steps of the host data backup method according to any one of claims 1 to 7.
10. A host data backup apparatus, comprising: the device comprises an acquisition module, a backup priority information determination module, a detection module and a backup module;
the acquisition module is used for acquiring a preset backup strategy and host data of a host to be backed up;
the backup priority information determining module is used for determining the backup priority information of the host to be backed up according to the preset backup strategy and the host data;
the detection module is used for detecting the current network bandwidth and the backup server to obtain the current network bandwidth information and the backup server information;
and the backup module is used for determining a target backup plan according to the backup priority information, the host data, the current network bandwidth information and the backup server information, and backing up the host data of the host to be backed up according to the target backup plan.
CN202011556222.3A 2020-12-24 Host data backup method, device, storage medium and apparatus Active CN112612644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011556222.3A CN112612644B (en) 2020-12-24 Host data backup method, device, storage medium and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011556222.3A CN112612644B (en) 2020-12-24 Host data backup method, device, storage medium and apparatus

Publications (2)

Publication Number Publication Date
CN112612644A true CN112612644A (en) 2021-04-06
CN112612644B CN112612644B (en) 2024-06-25

Family

ID=

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032185A (en) * 2021-04-29 2021-06-25 中国工商银行股份有限公司 Backup task management method, device, equipment and storage medium
CN113076224A (en) * 2021-05-07 2021-07-06 中国工商银行股份有限公司 Data backup method, data backup system, electronic device and readable storage medium
CN114721882A (en) * 2022-06-10 2022-07-08 建信金融科技有限责任公司 Data backup method and device, electronic equipment and storage medium
CN116107815A (en) * 2023-04-07 2023-05-12 微网优联科技(成都)有限公司 Internet data backup method, device and server
CN116126593A (en) * 2023-01-10 2023-05-16 华南高科(广东)股份有限公司 Data backup system and method in cloud platform environment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060058602A (en) * 2004-11-25 2006-05-30 한국전자통신연구원 Apparatus for forwarding message based on dynamic priority and apparatus for priority adjustment and method for processing dynamic priority message
CN104580306A (en) * 2013-10-21 2015-04-29 北京计算机技术及应用研究所 Multi-terminal backup service system and task scheduling method thereof
CN109542620A (en) * 2018-11-16 2019-03-29 中国人民解放军陆军防化学院 The scheduling of resource configuration method of associated task stream in a kind of cloud
CN109885426A (en) * 2019-01-29 2019-06-14 广东华伦招标有限公司 Call for bid business datum backup method and system
CN112286734A (en) * 2020-12-24 2021-01-29 深圳市科力锐科技有限公司 Backup task execution method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060058602A (en) * 2004-11-25 2006-05-30 한국전자통신연구원 Apparatus for forwarding message based on dynamic priority and apparatus for priority adjustment and method for processing dynamic priority message
CN104580306A (en) * 2013-10-21 2015-04-29 北京计算机技术及应用研究所 Multi-terminal backup service system and task scheduling method thereof
CN109542620A (en) * 2018-11-16 2019-03-29 中国人民解放军陆军防化学院 The scheduling of resource configuration method of associated task stream in a kind of cloud
CN109885426A (en) * 2019-01-29 2019-06-14 广东华伦招标有限公司 Call for bid business datum backup method and system
CN112286734A (en) * 2020-12-24 2021-01-29 深圳市科力锐科技有限公司 Backup task execution method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SHUYAN FAN: "A Backup LSP Bandwidth Reallocation Mechanism in MPLS Networks", 《2006 INTERNATIONAL CONFERENCE ON COMMUNICATIONS, CIRCUITS AND SYSTEMS》, 26 January 2008 (2008-01-26), pages 1735 - 1739 *
李星 等: "基于移动Agent的备份管理***的设计和实现", 《计算机工程与科学》, 30 September 2006 (2006-09-30), pages 18 - 20 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032185A (en) * 2021-04-29 2021-06-25 中国工商银行股份有限公司 Backup task management method, device, equipment and storage medium
CN113032185B (en) * 2021-04-29 2024-03-26 中国工商银行股份有限公司 Backup task management method, device, equipment and storage medium
CN113076224A (en) * 2021-05-07 2021-07-06 中国工商银行股份有限公司 Data backup method, data backup system, electronic device and readable storage medium
CN113076224B (en) * 2021-05-07 2024-02-27 中国工商银行股份有限公司 Data backup method, data backup system, electronic device and readable storage medium
CN114721882A (en) * 2022-06-10 2022-07-08 建信金融科技有限责任公司 Data backup method and device, electronic equipment and storage medium
CN116126593A (en) * 2023-01-10 2023-05-16 华南高科(广东)股份有限公司 Data backup system and method in cloud platform environment
CN116126593B (en) * 2023-01-10 2023-09-08 华南高科(广东)股份有限公司 Data backup system and method in cloud platform environment
CN116107815A (en) * 2023-04-07 2023-05-12 微网优联科技(成都)有限公司 Internet data backup method, device and server
CN116107815B (en) * 2023-04-07 2023-06-13 微网优联科技(成都)有限公司 Internet data backup method, device and server

Similar Documents

Publication Publication Date Title
CN112214260B (en) Method and device for loading APP (application) of terminal
WO2019075842A1 (en) Task allocation method and apparatus, storage medium and computer device
CN109634730B (en) Task scheduling method, device, computer equipment and storage medium
US8606905B1 (en) Automated determination of system scalability and scalability constraint factors
US20170222910A1 (en) Off-Peak Patching for Enterprise Stability
CN112346829A (en) Method and equipment for task scheduling
CN109559178B (en) Batch invoicing method for electronic invoice, electronic device and readable storage medium
CN109542462B (en) System environment deployment method, storage medium and server
CN109117153B (en) Application processing method, device, terminal and storage medium
CN110837391B (en) Application program hot updating method and device, storage medium and electronic equipment
US11928461B2 (en) Software utilization optimization in managed networks
CN111209060A (en) Capability development platform processing method and device
US11030024B2 (en) Assigning a severity level to a computing service using tenant telemetry data
CN107563188B (en) Application security evaluation method and device and computer storage medium
CN112612644B (en) Host data backup method, device, storage medium and apparatus
CN110569114B (en) Service processing method, device, equipment and storage medium
CN112612644A (en) Host data backup method, device, storage medium and device
CN111552548A (en) Task processing method and device, electronic equipment and machine-readable storage medium
CN110704301B (en) TPC-E automatic test method and TPC-E test system
CN108923938B (en) Channel selection method and equipment
CN111857736B (en) Cloud computing product generation method, device, equipment and storage medium
CN114706772A (en) Installation environment detection method, device, equipment and storage medium
CN113836130A (en) Data quality evaluation method, device, equipment and storage medium
CN113986747A (en) Data generation method and device, electronic equipment and storage medium
CN108363614B (en) Application service module management method and device and server

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