[go: up one dir, main page]

CN116662077A - Method, device, equipment and storage medium for adjusting backup cycle - Google Patents

Method, device, equipment and storage medium for adjusting backup cycle Download PDF

Info

Publication number
CN116662077A
CN116662077A CN202310936973.5A CN202310936973A CN116662077A CN 116662077 A CN116662077 A CN 116662077A CN 202310936973 A CN202310936973 A CN 202310936973A CN 116662077 A CN116662077 A CN 116662077A
Authority
CN
China
Prior art keywords
business
host
backup
service
failure
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.)
Pending
Application number
CN202310936973.5A
Other languages
Chinese (zh)
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 CN202310936973.5A priority Critical patent/CN116662077A/en
Publication of CN116662077A publication Critical patent/CN116662077A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Quality & Reliability (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for adjusting a backup period, wherein the method comprises the following steps: judging whether a target service host has service fault risks or not; when the service fault risk exists, determining the fault type generated by the service fault risk; identifying each service host of a service system corresponding to the target service host; and adjusting the backup period of each service host according to the fault type. Because the invention judges whether the target service host has service fault risk, then when the service fault risk exists, the fault type generated by the service fault risk is determined, then each service host of the service system corresponding to the target host is identified, and the backup period of each service host is adjusted.

Description

调整备份周期方法、装置、设备及存储介质Method, device, equipment and storage medium for adjusting backup cycle

技术领域technical field

本发明涉及数据备份技术领域,尤其涉及一种调整备份周期方法、装置、设备及存储介质。The invention relates to the technical field of data backup, in particular to a method, device, equipment and storage medium for adjusting a backup cycle.

背景技术Background technique

现有的数据中心的业务系统在做数据容灾备份的时候,业务系统的备份周期都是固定的。而业务系统的备份周期过长,当发生业务故障的时候,会引起比较多的业务数据丢失;如果业务系统的备份周期太短,又会引起备份数据量过多,投入成本过大。When the business system of the existing data center is doing data disaster recovery backup, the backup cycle of the business system is fixed. However, if the backup cycle of the business system is too long, when a business failure occurs, more business data will be lost; if the backup cycle of the business system is too short, the amount of backup data will be too large, and the investment cost will be too high.

因此,亟需一种调整备份周期方法,自动调整业务系统的备份周期,减少业务数据丢失的同时,减少投入成本。Therefore, there is an urgent need for a method for adjusting the backup cycle, which can automatically adjust the backup cycle of the business system, reduce the loss of business data, and reduce input costs.

上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solution of the present invention, and does not mean that the above content is admitted as prior art.

发明内容Contents of the invention

本发明的主要目的在于提供了一种调整备份周期方法、装置、设备及存储介质,旨在解决现有技术中业务系统的备份周期固定导致业务系统数据丢失过多或投入成本过大的技术问题。The main purpose of the present invention is to provide a method, device, equipment and storage medium for adjusting the backup cycle, aiming to solve the technical problems in the prior art that the fixed backup cycle of the business system leads to excessive data loss or excessive investment in the business system .

为实现上述目的,本发明提供了一种调整备份周期方法,所述方法包括以下步骤:To achieve the above object, the invention provides a method for adjusting backup cycle, said method may further comprise the steps:

判断目标业务主机是否存在业务故障风险;Determine whether the target business host has a business failure risk;

在存在业务故障风险时,确定所述业务故障风险产生的故障类型;When there is a risk of business failure, determine the type of failure caused by the risk of business failure;

识别所述目标业务主机对应的业务系统的各业务主机;identifying each service host of the service system corresponding to the target service host;

根据所述故障类型调整所述各业务主机的备份周期。The backup period of each service host is adjusted according to the failure type.

可选地,所述在存在业务故障风险时,确定所述业务故障风险产生的故障类型的步骤之前,还包括:Optionally, before the step of determining the type of failure caused by the risk of business failure when there is a risk of business failure, it may further include:

对业务崩溃事故进行聚类分析,确定故障类型;Carry out cluster analysis on business crash accidents to determine the type of failure;

依次对所述故障类型的故障日志进行分析,获得分析结果;Analyzing the fault logs of the fault types in turn to obtain analysis results;

根据所述分析结果,确定所述故障类型对应的备份周期;According to the analysis result, determine the backup cycle corresponding to the fault type;

基于所述故障类型和所述故障类型对应的备份周期建立预设故障类型-备份周期对应关系映射表。A preset fault type-backup cycle mapping table is established based on the fault type and the backup cycle corresponding to the fault type.

可选地,所述根据所述故障类型调整所述各业务主机的备份周期的步骤,包括:Optionally, the step of adjusting the backup period of each service host according to the failure type includes:

根据预设故障类型-备份周期对应关系映射表获取目标备份周期;Obtain the target backup cycle according to the default fault type-backup cycle correspondence mapping table;

根据所述目标备份周期调整所述业务系统的各业务主机的备份周期。The backup period of each service host in the service system is adjusted according to the target backup period.

可选地,所述依次对所述故障类型的故障日志进行分析,获得分析结果的步骤,包括:Optionally, the step of analyzing the fault logs of the fault types in sequence to obtain the analysis results includes:

依次获取所述故障类型的故障日志;Acquiring fault logs of the fault types in sequence;

根据所述故障日志,确定所述故障类型对应的风险等级;determining the risk level corresponding to the fault type according to the fault log;

基于预设风险等级表和所述风险等级,获得分析结果。Based on the preset risk level table and the risk level, the analysis result is obtained.

可选地,所述判断目标业务主机是否存在业务故障风险的步骤,包括:Optionally, the step of judging whether the target service host has a service failure risk includes:

对目标业务主机的行为进行行为检测,获得行为检测结果;Conduct behavior detection on the behavior of the target business host, and obtain the behavior detection results;

根据所述行为检测结果,判断目标业务主机是否存在业务故障风险。According to the behavior detection result, it is judged whether the target service host has a service failure risk.

可选地,所述识别所述目标业务主机对应的业务系统的各业务主机的步骤,包括:Optionally, the step of identifying each service host of the service system corresponding to the target service host includes:

获取所述目标业务主机的业务配置;Obtain the service configuration of the target service host;

根据所述业务配置获取所述目标业务主机对应的业务系统中的连接记录;Obtain a connection record in the service system corresponding to the target service host according to the service configuration;

根据所述连接记录确定主机信息出现频率;determining the occurrence frequency of host information according to the connection record;

根据所述主机信息出现频率识别所述业务系统中的各业务主机。Each service host in the service system is identified according to the occurrence frequency of the host information.

可选地,所述方法,还包括:Optionally, the method also includes:

在所述目标业务主机在预设时间范围不存在业务故障风险时,将所述业务系统对应的备份周期调整至默认备份周期。When the target service host has no risk of service failure within the preset time range, the backup period corresponding to the service system is adjusted to a default backup period.

此外,为实现上述目的,本发明还提出一种调整备份周期装置,所述装置包括:In addition, in order to achieve the above purpose, the present invention also proposes a device for adjusting the backup cycle, which includes:

风险判断模块,用于判断目标业务主机是否存在业务故障风险;The risk judgment module is used to judge whether there is a business failure risk in the target business host;

类型确定模块,用于在存在业务故障风险时,确定所述业务故障风险产生的故障类型;A type determination module, configured to determine the type of failure caused by the business failure risk when there is a business failure risk;

主机识别模块,用于识别所述目标业务主机对应的业务系统的各业务主机;A host identification module, configured to identify each service host of the service system corresponding to the target service host;

周期调整模块,用于根据所述故障类型调整所述各业务主机的备份周期。A cycle adjustment module, configured to adjust the backup cycle of each service host according to the type of failure.

此外,为实现上述目的,本发明还提出一种调整备份周期设备,所述设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的调整备份周期程序,所述调整备份周期程序配置为实现如上文所述的调整备份周期方法的步骤。In addition, in order to achieve the above object, the present invention also proposes a device for adjusting the backup cycle, which includes: a memory, a processor, and a program for adjusting the backup cycle that is stored in the memory and can run on the processor. The program for adjusting the backup cycle is configured to implement the steps of the method for adjusting the backup cycle as described above.

此外,为实现上述目的,本发明还提出一种存储介质,所述存储介质上存储有调整备份周期程序,所述调整备份周期程序被处理器执行时实现如上文所述的调整备份周期方法的步骤。In addition, in order to achieve the above object, the present invention also proposes a storage medium, the storage medium stores a program for adjusting the backup period, and when the program for adjusting the backup period is executed by the processor, the method for adjusting the backup period as described above is realized. step.

本发明通过判断目标业务主机是否存在业务故障风险;在存在业务故障风险时,确定所述业务故障风险产生的故障类型;识别所述目标业务主机对应的业务系统的各业务主机;根据所述故障类型调整所述各业务主机的备份周期。由于本发明是判断目标业务主机是否存在业务故障风险,然后当存在业务故障风险时,确定业务故障风险产生的故障类型,在识别目标主机对应的业务系统的各业务主机,并调整各业务主机的备份周期,相比于现有技术中业务系统在做数据容灾备份的时候,业务系统的备份周期都是固定的,本发明实现了自动调整业务系统的备份周期,减少业务数据丢失的同时,减少了投入成本。The present invention judges whether the target business host has a business failure risk; when there is a business failure risk, determines the type of failure caused by the business failure risk; identifies each business host of the business system corresponding to the target business host; according to the fault The type adjusts the backup period of each service host. Because the present invention judges whether there is a business failure risk in the target business host, and then when there is a business failure risk, determines the type of failure caused by the business failure risk, identifies each business host of the business system corresponding to the target host, and adjusts each business host. Backup period, compared with the business system in the prior art when doing data disaster recovery backup, the backup period of the business system is fixed, the invention realizes the automatic adjustment of the backup period of the business system, reduces the loss of business data, Reduced input costs.

附图说明Description of drawings

图1是本发明实施例方案涉及的硬件运行环境的调整备份周期设备的结构示意图;Fig. 1 is a schematic structural diagram of a device for adjusting the backup period of the hardware operating environment involved in the solution of the embodiment of the present invention;

图2为本发明调整备份周期方法第一实施例的流程示意图;Fig. 2 is a schematic flow chart of the first embodiment of the method for adjusting the backup cycle in the present invention;

图3为本发明调整备份周期方法第二实施例的流程示意图;Fig. 3 is a schematic flow chart of the second embodiment of the method for adjusting the backup cycle in the present invention;

图4为本发明调整备份周期方法第三实施例的流程示意图;Fig. 4 is a schematic flow chart of the third embodiment of the method for adjusting the backup cycle according to the present invention;

图5为本发明调整备份周期装置第一实施例的结构框图。Fig. 5 is a structural block diagram of the first embodiment of the device for adjusting the backup period according to the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

参照图1,图1为本发明实施例方案涉及的硬件运行环境的调整备份周期设备结构示意图。Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of equipment for adjusting the backup period of the hardware operating environment involved in the solution of the embodiment of the present invention.

如图1所示,该调整备份周期设备可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真(Wireless-Fidelity,WI-FI)接口)。存储器1005可以是高速的随机存取存储器(RandomAccess Memory,RAM),也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the device for adjusting the backup period may include: a processor 1001 , such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002 , a user interface 1003 , a network interface 1004 , and a memory 1005 . Wherein, the communication bus 1002 is used to realize connection and 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 and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wireless-Fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .

本领域技术人员可以理解,图1中示出的结构并不构成对调整备份周期设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 1 is not limited to the device for adjusting the backup cycle, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及调整备份周期程序。As shown in FIG. 1 , the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a program for adjusting a backup cycle.

在图1所示的调整备份周期设备中,网络接口1004主要用于与网络服务器进行数据通信;用户接口1003主要用于与用户进行数据交互;本发明调整备份周期设备中的处理器1001、存储器1005可以设置在调整备份周期设备中,所述调整备份周期设备通过处理器1001调用存储器1005中存储的调整备份周期程序,并执行本发明实施例提供的调整备份周期方法。In the device for adjusting the backup cycle shown in Figure 1, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001, memory 1005 may be set in the device for adjusting the backup cycle, and the device for adjusting the backup cycle calls the program for adjusting the backup cycle stored in the memory 1005 through the processor 1001, and executes the method for adjusting the backup cycle provided by the embodiment of the present invention.

本发明实施例提供了一种调整备份周期方法,参照图2,图2为本发明调整备份周期方法第一实施例的流程示意图。An embodiment of the present invention provides a method for adjusting a backup period. Referring to FIG. 2 , FIG. 2 is a schematic flowchart of a first embodiment of a method for adjusting a backup period according to the present invention.

本实施例中,所述调整备份周期方法包括以下步骤:In this embodiment, the method for adjusting the backup cycle includes the following steps:

步骤S10:判断目标业务主机是否存在业务故障风险。Step S10: Determine whether the target service host has a service failure risk.

需要说明的是,本实施例的执行主体可以是一种具有数据处理、网络通信以及程序运行功能的计算服务设备,例如服务器、平板电脑、个人电脑、手机等,或者是一种能够实现上述功能的电子设备、调整备份周期设备等。以下以调整备份周期设备为例,对本实施例及下述各实施例进行举例说明。It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a server, tablet computer, personal computer, mobile phone, etc., or a computer that can realize the above functions electronic equipment, adjust backup cycle equipment, etc. In the following, the device for adjusting the backup cycle is taken as an example to illustrate this embodiment and the following embodiments.

可理解的是,本实施例可以是用于数据中心的业务系统在做数据容灾的过程中,由于现有的业务系统在做数据容灾备份的时候,备份周期都是固定的,若业务系统的备份周期过长,当发生业务故障的时候,会引起较多的业务数据丢失;若业务系统的备份周期太短,会引起备份数据过多,导致成本投入过大。本实施例实现了自动调整业务系统的备份周期,减少业务数据丢失的同时,减少了投入成本。It is understandable that this embodiment can be used in the process of data disaster recovery for the business system of the data center. Since the existing business system is performing data disaster recovery backup, the backup period is fixed. If the business If the backup cycle of the system is too long, when a business failure occurs, more business data will be lost; if the backup cycle of the business system is too short, it will cause too much backup data, resulting in excessive cost investment. This embodiment realizes the automatic adjustment of the backup period of the service system, reduces the loss of service data, and reduces the investment cost.

应理解的是,所述业务系统可以是单个业务系统,也可以是多个业务系统,本实施例对此不加以限制。It should be understood that the service system may be a single service system or multiple service systems, which is not limited in this embodiment.

进一步地,上述业务系统可以由多个相互关联的业务主机组成的,所述业务主机可以是计算机、数据终端或者其他功能相同或者相似的其他设备组成,本实施例对此不加以限制。Furthermore, the above service system may be composed of multiple interrelated service hosts, and the service hosts may be computers, data terminals, or other devices with the same or similar functions, which is not limited in this embodiment.

可理解的是,现有业务系统都是由多个主机组成,在出现业务故障的时候(比如遇上了勒索病毒),需要对多个主机进行数据恢复,所以在调整数据备份周期的时候,需要对整个业务系统所有关联的主机的数据备份周期进行调整,保证在出现业务故障的时候,业务系统所有的主机都尽量少丢数据。比如OA系统是由主机A、B、C组成,当主机A发现业务故障的潜在风险的时候(主机B、主机C目前尚未发现风险),需要分析识别主机A的业务配置、业务行为,获取业务系统关联的主机(主机B、主机C),然后同时调整主机A、B、C的备份周期,以保证整个业务系统在出现故障的情况下,尽量少丢业务数据。It is understandable that the existing business system is composed of multiple hosts. When a business failure occurs (for example, when encountering a ransomware virus), data recovery needs to be performed on multiple hosts. Therefore, when adjusting the data backup cycle, It is necessary to adjust the data backup cycle of all associated hosts in the entire business system to ensure that in the event of a business failure, all hosts in the business system will lose as little data as possible. For example, the OA system is composed of hosts A, B, and C. When host A discovers potential risks of business failures (hosts B and C have not yet discovered risks), it is necessary to analyze and identify the business configuration and business behavior of host A to obtain business The hosts associated with the system (host B, host C), and then adjust the backup cycle of hosts A, B, and C at the same time to ensure that the entire business system will lose as little business data as possible in the event of a failure.

进一步地,可以对目标业务主机的行为进行行为检测,获得行为检测结果;根据所述行为检测结果,判断目标业务主机是否存在业务故障风险。Further, behavior detection may be performed on the behavior of the target service host to obtain a behavior detection result; according to the behavior detection result, it is judged whether the target service host has a risk of service failure.

需要说明的是,可以通过预设程序对业务主机的行为进行行为检测,也可以是通过业务故障风险检测的相关软件对业务主机的行为进行行为检测,也可以是通过其他方式检测,本实施例对此不加以限制。It should be noted that the behavior of the business host can be detected through a preset program, or can be detected through software related to business fault risk detection, or can be detected in other ways. There is no restriction on this.

步骤S20:在存在业务故障风险时,确定所述业务故障风险产生的故障类型。Step S20: When there is a business failure risk, determine the failure type caused by the business failure risk.

需要说明的是,在所述目标业务主机在预设时间范围不存在业务故障风险时,将所述目标业务主机所在的业务系统对应的备份周期调整至默认备份周期,以便节省资源。预设时间可以是24小时、48小时、也可以是其它时间范围,本实施例对此不加以限制。It should be noted that when the target business host does not have the risk of business failure within the preset time range, the backup cycle corresponding to the business system where the target business host is located is adjusted to the default backup cycle to save resources. The preset time may be 24 hours, 48 hours, or other time ranges, which is not limited in this embodiment.

可理解的是,当业务主机存在业务故障风险时,可以通过对业务主机中日志文件进行分析,确定业务故障风险产生的故障类型。It is understandable that when the business failure risk exists in the business host, the type of failure caused by the business failure risk can be determined by analyzing the log files in the business host.

进一步地,故障类型可以是提前设定,也可以是通过对大量的业务崩溃事件进行分析后,对业务故障风险产生的故障类型进行分类后获得的。Further, the fault type may be set in advance, or may be obtained after analyzing a large number of business crash events and classifying the fault types generated by business fault risks.

步骤S30:识别所述目标业务主机对应的业务系统的各业务主机。Step S30: Identify each service host of the service system corresponding to the target service host.

需要解释的是,由于现有的业务系统大都是由多个业务主机组成的,因此,在出现业务故障时(例如:遇上勒索病毒),需要对多个业务主机进行数据恢复,所以在调整业务系统的备份周期的时候,需要对业务系统所有关联的业务主机的备份周期进行调整,以保证在出现业务故障的时候,业务系统的各个业务主机都尽量少丢数据,因此,在调整备份周期之前,需要先识别业务系统的各个业务主机。What needs to be explained is that since most of the existing business systems are composed of multiple business hosts, when a business failure occurs (for example: encountering a ransomware virus), it is necessary to recover data from multiple business hosts, so when adjusting During the backup cycle of the business system, it is necessary to adjust the backup cycle of all associated business hosts of the business system to ensure that each business host of the business system loses as little data as possible in the event of a business failure. Therefore, when adjusting the backup cycle Before, each business host of the business system needs to be identified.

应该解释的是,可以通过枚举当前主机的所有业务进程,根据业务进程识别业务类型,通过业务进程找到所有的配置文件信息,根据配置文件获得当前业务关联了哪些主机。如果某个主机运行ceph-osd进程,该进程属于ceph集群的,那么读取集群的配置文件,即可获得当前业务系统是由哪些业务主机组成。It should be explained that by enumerating all the business processes of the current host, identifying the business type according to the business process, finding all the configuration file information through the business process, and obtaining which hosts the current business is associated with according to the configuration file. If a host runs the ceph-osd process, which belongs to the ceph cluster, then read the configuration file of the cluster to obtain which business hosts the current business system consists of.

进一步地,也可以通过获取所述业务系统的主机名-IP地址对应关系映射表,可以根据所述映射表中的主机名、ip地址进而可以得知业务系统有哪些业务主机组成(通常来说,映射表里面涉及到的业务主机都属于同一个业务系统的)。这是因为,业务系统中各业务主机相互之间的网络通信很多都是通过主机名来发起连接请求,而不是直接使用ip地址。所以通过分析系统的“主机名-IP地址”映射列表,也可以得知业务系统由哪些业务主机组成。如linux系统的/etc/hosts文件中就保存了oraclerac集群所有业务主机的主机名、虚拟ip名字、私有网络名字,通过这些信息也可以得知业务系统由哪些业务主机组成。Further, by obtaining the host name-IP address correspondence mapping table of the business system, it is possible to know which business hosts the business system consists of according to the host name and ip address in the mapping table (usually , the business hosts involved in the mapping table all belong to the same business system). This is because many of the network communications between business hosts in the business system initiate connection requests through host names instead of directly using ip addresses. Therefore, by analyzing the "host name-IP address" mapping list of the system, we can also know which business hosts the business system consists of. For example, the /etc/hosts file of the Linux system stores the hostnames, virtual IP names, and private network names of all business hosts in the oraclerac cluster. Through this information, you can also know which business hosts the business system consists of.

步骤S40:根据所述故障类型调整所述各业务主机的备份周期。Step S40: Adjust the backup period of each service host according to the failure type.

可理解的是,不同的故障类型对应的备份频率也不同,例如,若所述业务系统的故障类型属于低分险类型,则上述业务系统的备份周期可以设定为两天备份一下;若所述业务系统的故障类型属于高风险,则上述业务系统的备份周期可以设定为CDP备份,即实时备份。It is understandable that the backup frequency corresponding to different fault types is also different. For example, if the fault type of the business system belongs to the low-risk type, the backup cycle of the above business system can be set to be backed up every two days; If the failure type of the above-mentioned business system belongs to high risk, the backup period of the above-mentioned business system can be set to CDP backup, that is, real-time backup.

在具体实现中,可以是根据预设故障类型-备份周期对应关系映射表获取目标备份周期;然后根据目标备份周期调整业务系统的各业务主机的备份周期。In a specific implementation, the target backup period may be obtained according to the preset fault type-backup period correspondence mapping table; and then the backup period of each service host in the service system is adjusted according to the target backup period.

本实施例通过判断目标业务主机是否存在业务故障风险;在存在业务故障风险时,确定所述业务故障风险产生的故障类型;识别所述目标业务主机对应的业务系统的各业务主机;根据所述故障类型调整所述各业务主机的备份周期。由于本发明是判断目标业务主机是否存在业务故障风险,然后当存在业务故障风险时,确定业务故障风险产生的故障类型,在识别目标主机对应的业务系统的各业务主机,并调整各业务主机的备份周期,相比于现有技术中业务系统在做数据容灾备份的时候,业务系统的备份周期都是固定的,本发明实现了自动调整业务系统的备份周期,减少业务数据丢失的同时,减少了投入成本。In this embodiment, by judging whether the target business host has a business failure risk; when there is a business failure risk, determining the type of failure caused by the business failure risk; identifying each business host of the business system corresponding to the target business host; according to the The fault type adjusts the backup period of each service host. Because the present invention judges whether there is a business failure risk in the target business host, and then when there is a business failure risk, determines the type of failure caused by the business failure risk, identifies each business host of the business system corresponding to the target host, and adjusts each business host. Backup period, compared with the business system in the prior art when doing data disaster recovery backup, the backup period of the business system is fixed, the invention realizes the automatic adjustment of the backup period of the business system, reduces the loss of business data, Reduced input costs.

参考图3,图3为本发明调整备份周期方法第二实施例的流程示意图。Referring to FIG. 3 , FIG. 3 is a schematic flowchart of a second embodiment of a method for adjusting a backup period according to the present invention.

基于上述第一实施例,在本实施例中,所述步骤S20之前,还包括:Based on the first embodiment above, in this embodiment, before the step S20, it also includes:

步骤S201:对业务崩溃事故进行聚类分析,确定故障类型。Step S201: Carry out cluster analysis on business crash accidents to determine the type of failure.

可理解的是,业务崩溃事件是指业务系统因各种原因而发生的不可预测的错误,导致其无法正常运行或停止工作的事件。It is understandable that a business crash event refers to an event in which an unpredictable error occurs in a business system due to various reasons, causing it to fail to operate normally or to stop working.

应理解的是,聚类分析指将物理或抽象对象的集合分组为由类似的对象组成的多个类的分析过程。It should be understood that cluster analysis refers to the analytical process of grouping a collection of physical or abstract objects into classes of similar objects.

在具体实现中,通过对大量业务崩溃事件各业务主机的日志文件和文件的情况进行聚类分析,将故障类型划分为四类,分别为硬件故障、系统故障、主机攻击和运行时风险。In the specific implementation, by clustering and analyzing the log files and files of various business hosts in a large number of business crash events, the fault types are divided into four categories, namely hardware faults, system faults, host attacks, and runtime risks.

需要解释的是,硬件故障包括内存故障、磁盘故障、raid卡故障等。当这些硬件出现故障的时候,操作系统或者底层的硬件系统(比如主板、raid卡)会先检测出来,并且生成告警或者错误日志。What needs to be explained is that hardware failures include memory failures, disk failures, and raid card failures. When these hardware fails, the operating system or the underlying hardware system (such as the motherboard, raid card) will detect it first, and generate an alarm or error log.

系统故障包括系统升级、软件安装、文件系统错误、业务应用故障等,可以通过分析软件的升级日志(包括操作系统升级、应用软件升级)、安装日志、系统日志、应用的运行时日志确定是否业务主机是否存在系统故障。System failures include system upgrades, software installations, file system errors, business application failures, etc., which can be determined by analyzing software upgrade logs (including operating system upgrades, application software upgrades), installation logs, system logs, and application runtime logs. Whether there is a system failure on the host.

业务主机如果出现被攻击的行为,主机的审计日志、安全日志、登录日志会有大量的异常,如mstsc、ssh等远程登录服务会产生大量的登录失败的日志,而且出现的频率很高。通常来说,这些高频的异常登录日志是主机被攻击的征兆,如果主机一旦攻破,那么下一步很有可能是执行破坏行为,比如加密数据进行勒索。所以,如果审计日志、安全日志、登录日志发现攻击风险的时候,需要调整数据备份的备份周期,以保证一旦发生勒索事件,可以通过备份点恢复业务数据。If the business host is attacked, there will be a large number of abnormalities in the audit log, security log, and login log of the host. For example, remote login services such as mstsc and ssh will generate a large number of failed login logs, and the frequency of occurrence is very high. Generally speaking, these high-frequency abnormal log logs are a sign that the host is under attack. If the host is breached, the next step is likely to be to perform destructive actions, such as encrypting data for extortion. Therefore, if an attack risk is found in the audit log, security log, and login log, it is necessary to adjust the backup cycle of data backup to ensure that in the event of a blackmail event, business data can be restored through the backup point.

运行时风险包括恶意程序的启动、大量文件的异常改动(如大量的创建、删除、改名)、磁盘关键区域数据的修改(如磁盘的引导扇区、超级块、元数据)等,这类行为很多情况下意味着系统很有可能遭遇破坏行为,需要提高数据备份的频率。Runtime risks include the startup of malicious programs, abnormal changes of a large number of files (such as a large number of creation, deletion, and renaming), modification of data in key areas of the disk (such as disk boot sector, super block, metadata), etc., such behaviors In many cases, it means that the system is likely to encounter damage, and the frequency of data backup needs to be increased.

步骤S202:依次对所述故障类型的故障日志进行分析,获得分析结果。Step S202: Analyze the fault logs of the fault types in sequence to obtain the analysis results.

需要说明的是,不同类型对应的故障日志也不同,例如,硬件故障对应的故障日志可以是raid卡日志、message日志和操作系统日志等;操作系统故障对应的故障日志可以是软件的升级日志、安装日志、系统日志和应用的运行时日志等;主机攻击对应的故障日志可以是主机的审计日志、安全日志、登录日志等;运行时风险的故障日志可以是恶意程序的启动、大量文件的异常改动和磁盘关键区域数据的修改的相关日志。It should be noted that the fault logs corresponding to different types are also different. For example, the fault logs corresponding to hardware faults can be raid card logs, message logs, and operating system logs, etc.; the fault logs corresponding to operating system faults can be software upgrade logs, Installation logs, system logs, and application runtime logs, etc.; fault logs corresponding to host attacks can be host audit logs, security logs, login logs, etc.; fault logs of runtime risks can be the startup of malicious programs, abnormalities of a large number of files A log of changes and modifications to data in critical regions of the disk.

在具体实现中,可以通过依次获取所述故障类型的故障日志;然后根据所述故障日志,确定所述故障类型对应的风险等级;然后再基于预设风险等级表和所述风险等级,获得分析结果。In a specific implementation, the fault log of the fault type can be obtained in sequence; then according to the fault log, the risk level corresponding to the fault type is determined; and then based on the preset risk level table and the risk level, the analysis is obtained result.

需要解释的是,通过分析故障日志来调整备份周期的频率,通过对故障日志的内容进行分析,确定故障类型对应的风险等级。What needs to be explained is that the frequency of the backup cycle is adjusted by analyzing the fault log, and the risk level corresponding to the fault type is determined by analyzing the content of the fault log.

需要说明的是,上述预设风险等级表可以是预先设定的,预设风险等级表表示的是风险等级与备份周期的映射关系。例如,当风险等级为低风险时,对应的备份周期为每2天备份一次;当风险等级是中风险时,备份周期为每天备份一次;当风险等级是高风险时,需要做CDP备份,即实时备份。It should be noted that the above-mentioned preset risk level table may be preset, and the preset risk level table represents a mapping relationship between a risk level and a backup cycle. For example, when the risk level is low risk, the corresponding backup cycle is every 2 days; when the risk level is medium risk, the backup cycle is once a day; when the risk level is high risk, CDP backup is required, that is Real-time backup.

步骤S203:根据所述分析结果,确定所述故障类型对应的备份周期。Step S203: Determine the backup period corresponding to the failure type according to the analysis result.

需要说明的是,上述分析结果是所述故障类型对应的风险等级,通过确定故障类型的分险等级,然后根据预设风险等级表,确定所述故障类型对应的备份周期。It should be noted that the above analysis result is the risk level corresponding to the failure type, by determining the risk classification level of the failure type, and then according to the preset risk level table, determine the backup period corresponding to the failure type.

步骤S204:基于所述故障类型和所述故障类型对应的备份周期建立预设故障类型-备份周期对应关系映射表。Step S204: Establishing a default fault type-backup cycle mapping table based on the fault type and the backup cycle corresponding to the fault type.

本实施例通过判断目标业务主机是否存在业务故障风险;对业务崩溃事故进行聚类分析,确定故障类型;依次对所述故障类型的故障日志进行分析,获得分析结果;根据所述分析结果,确定所述故障类型对应的备份周期;基于所述故障类型和所述故障类型对应的备份周期建立预设故障类型-备份周期对应关系映射表;在存在业务故障风险时,确定所述业务故障风险产生的故障类型;识别所述目标业务主机对应的业务系统的各业务主机;根据所述故障类型调整所述各业务主机的备份周期。由于本发明是判断目标业务主机是否存在业务故障风险,然后当存在业务故障风险时,确定业务故障风险产生的故障类型,在识别目标主机对应的业务系统的各业务主机,并调整各业务主机的备份周期,相比于现有技术中业务系统在做数据容灾备份的时候,业务系统的备份周期都是固定的,本发明通过对大量业务崩溃事故进行聚类分析,划分故障类型,在目标业务主机存在业务故障风险时,确定业务故障风险产生的故障类型,然后根据预设故障类型-备份周期对应关系映射表调整当前业务系统中各业务主机的备份周期,不仅实现了对业务崩溃事故的故障类型的划分,还自动调整业务系统的备份周期,减少业务数据丢失的同时,减少了投入成本。In this embodiment, by judging whether there is a business failure risk in the target business host; performing cluster analysis on business crash accidents to determine the failure type; analyzing the failure logs of the failure types in turn to obtain analysis results; according to the analysis results, determining The backup cycle corresponding to the fault type; establishing a preset fault type-backup cycle correspondence mapping table based on the fault type and the backup cycle corresponding to the fault type; when there is a business fault risk, determine that the business fault risk occurs the fault type; identify each service host of the service system corresponding to the target service host; adjust the backup period of each service host according to the fault type. Because the present invention judges whether there is a business failure risk in the target business host, and then when there is a business failure risk, determines the type of failure caused by the business failure risk, identifies each business host of the business system corresponding to the target host, and adjusts each business host. Backup period, compared with the business system in the prior art when doing data disaster recovery backup, the backup period of the business system is fixed, the present invention divides the fault types by performing cluster analysis on a large number of business crash accidents, and in the target When the business host has a business failure risk, determine the type of failure caused by the business failure risk, and then adjust the backup cycle of each business host in the current business system according to the preset fault type-backup cycle correspondence mapping table, which not only realizes the recovery of business crash accidents The division of fault types also automatically adjusts the backup cycle of the business system, reducing the loss of business data and reducing investment costs.

参考图4,图4为本发明调整备份周期方法第三实施例的流程示意图。Referring to FIG. 4 , FIG. 4 is a schematic flowchart of a third embodiment of a method for adjusting a backup period according to the present invention.

基于上述各实施例,在本实施例中,所述步骤S30,包括:Based on the above-mentioned embodiments, in this embodiment, the step S30 includes:

步骤S301:获取所述目标业务主机的业务配置。Step S301: Obtain the service configuration of the target service host.

步骤S302:根据所述业务配置获取所述目标业务主机对应的业务系统中的连接记录。Step S302: Obtain the connection record in the service system corresponding to the target service host according to the service configuration.

可理解的是,上述业务系统的连接记录可以是通过业务系统中目标业务主机上对应业务配置获取的计算机之间的连接记录。It can be understood that the above-mentioned connection record of the business system may be a connection record between computers obtained through the corresponding business configuration on the target business host in the business system.

步骤S303:根据所述连接记录确定主机信息出现频率。Step S303: Determine the occurrence frequency of host information according to the connection record.

需要说明的是,计算机业务联系越密切,他们之间的网络通信就越频繁,并且这些网络连接都在同一个子网内,不需要通过路由器转发。像rac集群、分布式文件系统、故障转移集群,基本都存在tcp长连接,其中,至少存在一个tcp连接也可能存在多个,本实施例对此不加以限定,以跟踪业务系统上各个业务主机的工作状态。所以通过分析各个计算节点上的tcp网络连接情况,就可以得知业务系统由哪些计算节点组成。It should be noted that the closer the computer business is, the more frequent the network communication between them is, and these network connections are all in the same subnet and do not need to be forwarded by routers. Like rac clusters, distributed file systems, and failover clusters, basically there are long tcp connections. Among them, there may be at least one tcp connection, and there may be multiple tcp connections. This embodiment does not limit this, so as to track each business host on the business system working status. Therefore, by analyzing the tcp network connections on each computing node, we can know which computing nodes the business system consists of.

步骤S304:根据所述主机信息出现频率识别所述业务系统中的各业务主机。Step S304: Identify each service host in the service system according to the occurrence frequency of the host information.

在具体实现中,可以通过netstat命令、ss命令或者调用系统编程接口,每隔一段时间枚举一下目标业务主机的所有的tcp连接,然后把枚举到的信息保存下来,这些信息包括:本机ip、本机端口、外部ip、外部端口以及进程名,通过上述信息可以得到当前业务主机中的tcp连接,与该tcp连接的对端计算机就是上述业务系统的业务主机。In the specific implementation, you can use the netstat command, ss command or call the system programming interface to enumerate all the tcp connections of the target business host at regular intervals, and then save the enumerated information, which includes: local ip, local port, external ip, external port and process name, the tcp connection in the current service host can be obtained through the above information, and the peer computer connected with the tcp is the service host of the above service system.

本实施例通过判断目标业务主机是否存在业务故障风险;对业务崩溃事故进行聚类分析,确定故障类型;依次对所述故障类型的故障日志进行分析,获得分析结果;根据所述分析结果,确定所述故障类型对应的备份周期;基于所述故障类型和所述故障类型对应的备份周期建立预设故障类型-备份周期对应关系映射表;在存在业务故障风险时,确定所述业务故障风险产生的故障类型;获取所述目标业务主机的业务配置;根据所述业务配置获取所述目标业务主机对应的业务系统中的连接记录;根据所述连接记录确定主机信息出现频率;根据所述主机信息出现频率识别所述业务系统中的各业务主机;根据所述故障类型调整所述各业务主机的备份周期。由于本发明是判断目标业务主机是否存在业务故障风险,然后当存在业务故障风险时,确定业务故障风险产生的故障类型,在识别目标主机对应的业务系统的各业务主机,并调整各业务主机的备份周期,相比于现有技术中业务系统在做数据容灾备份的时候,业务系统的备份周期都是固定的,本发明通过对大量业务崩溃事故进行聚类分析,划分故障类型,在目标业务主机存在业务故障风险时,确定业务故障风险产生的故障类型,然后根据预设故障类型-备份周期对应关系映射表调整当前业务系统中各业务主机的备份周期,不仅实现了对业务崩溃事故的故障类型的划分,还自动调整业务系统的备份周期,减少业务数据丢失的同时,减少了投入成本。In this embodiment, by judging whether there is a business failure risk in the target business host; performing cluster analysis on business crash accidents to determine the failure type; analyzing the failure logs of the failure types in turn to obtain analysis results; according to the analysis results, determining The backup cycle corresponding to the fault type; establishing a preset fault type-backup cycle correspondence mapping table based on the fault type and the backup cycle corresponding to the fault type; when there is a business fault risk, determine that the business fault risk occurs fault type; obtain the service configuration of the target service host; obtain the connection record in the service system corresponding to the target service host according to the service configuration; determine the occurrence frequency of the host information according to the connection record; The occurrence frequency identifies each service host in the service system; adjusts the backup period of each service host according to the fault type. Because the present invention judges whether there is a business failure risk in the target business host, and then when there is a business failure risk, determines the type of failure caused by the business failure risk, identifies each business host of the business system corresponding to the target host, and adjusts each business host. Backup period, compared with the business system in the prior art when doing data disaster recovery backup, the backup period of the business system is fixed, the present invention divides the fault types by performing cluster analysis on a large number of business crash accidents, and in the target When the business host has a business failure risk, determine the type of failure caused by the business failure risk, and then adjust the backup cycle of each business host in the current business system according to the preset fault type-backup cycle correspondence mapping table, which not only realizes the recovery of business crash accidents The division of fault types also automatically adjusts the backup cycle of the business system, reducing the loss of business data and reducing investment costs.

此外,本发明实施例还提出一种存储介质,所述存储介质上存储有调整备份周期程序,所述调整备份周期程序被处理器执行时实现如上文所述的调整备份周期方法的步骤。In addition, the embodiment of the present invention also proposes a storage medium, on which a program for adjusting the backup period is stored, and when the program for adjusting the backup period is executed by a processor, the steps of the method for adjusting the backup period as described above are implemented.

参照图5,图5为本发明调整备份周期装置第一实施例的结构框图。Referring to FIG. 5 , FIG. 5 is a structural block diagram of the first embodiment of the device for adjusting the backup cycle according to the present invention.

如图5所示,本发明实施例提出的调整备份周期装置包括:风险判断模块501、类型确定模块502、主机识别模块503和周期调整模块504。As shown in FIG. 5 , the device for adjusting the backup cycle proposed by the embodiment of the present invention includes: a risk judgment module 501 , a type determination module 502 , a host identification module 503 and a cycle adjustment module 504 .

所述风险判断模块501,用于判断目标业务主机是否存在业务故障风险。The risk judging module 501 is configured to judge whether there is a business failure risk in the target business host.

所述类型确定模块502,用于在存在业务故障风险时,确定所述业务故障风险产生的故障类型。The type determination module 502 is configured to determine the type of failure caused by the business failure risk when there is a business failure risk.

所述主机识别模块503,用于识别所述目标业务主机对应的业务系统的各业务主机。The host identification module 503 is configured to identify each service host of the service system corresponding to the target service host.

所述周期调整模块504,用于根据所述故障类型调整所述各业务主机的备份周期。The period adjustment module 504 is configured to adjust the backup period of each service host according to the failure type.

所述风险判断模块501,还用于对目标业务主机的行为进行行为检测,获得行为检测结果;根据所述行为检测结果,判断目标业务主机是否存在业务故障风险。The risk judging module 501 is further configured to conduct behavior detection on the behavior of the target service host to obtain a behavior detection result; according to the behavior detection result, determine whether the target service host has a business failure risk.

所述风险判断模块501,还用于在所述目标业务主机在预设时间范围不存在业务故障风险时,将所述业务系统对应的备份周期调整至默认备份周期。The risk judging module 501 is further configured to adjust the backup cycle corresponding to the business system to a default backup cycle when the target business host does not have a business failure risk within a preset time range.

所述周期调整模块504,还用于根据所述预设故障类型-备份周期对应关系映射表获取目标备份周期;根据所述目标备份周期调整所述业务系统的各业务主机的备份周期。The period adjustment module 504 is further configured to obtain a target backup period according to the preset fault type-backup period correspondence mapping table; adjust the backup period of each service host in the service system according to the target backup period.

本实施例通过判断目标业务主机是否存在业务故障风险;在存在业务故障风险时,确定所述业务故障风险产生的故障类型;识别所述目标业务主机对应的业务系统的各业务主机;根据所述故障类型调整所述各业务主机的备份周期。由于本发明是判断目标业务主机是否存在业务故障风险,然后当存在业务故障风险时,确定业务故障风险产生的故障类型,在识别目标主机对应的业务系统的各业务主机,并调整各业务主机的备份周期,相比于现有技术中业务系统在做数据容灾备份的时候,业务系统的备份周期都是固定的,本发明实现了自动调整业务系统的备份周期,减少业务数据丢失的同时,减少了投入成本。In this embodiment, by judging whether the target business host has a business failure risk; when there is a business failure risk, determining the type of failure caused by the business failure risk; identifying each business host of the business system corresponding to the target business host; according to the The fault type adjusts the backup period of each service host. Because the present invention judges whether there is a business failure risk in the target business host, and then when there is a business failure risk, determines the type of failure caused by the business failure risk, identifies each business host of the business system corresponding to the target host, and adjusts each business host. Backup period, compared with the business system in the prior art when doing data disaster recovery backup, the backup period of the business system is fixed, the invention realizes the automatic adjustment of the backup period of the business system, reduces the loss of business data, Reduced input costs.

基于本发明上述调整备份周期装置第一实施例,提出本发明调整备份周期装置的第二实施例。Based on the first embodiment of the device for adjusting the backup cycle of the present invention, a second embodiment of the device for adjusting the backup cycle of the present invention is proposed.

在本实施例中,所述类型确定模块502,还用于对业务崩溃事故进行聚类分析,确定故障类型;依次对所述故障类型的故障日志进行分析,获得分析结果;根据所述分析结果,确定所述故障类型对应的备份周期;基于所述故障类型和所述故障类型对应的备份周期建立预设故障类型-备份周期对应关系映射表。In this embodiment, the type determination module 502 is also used to perform cluster analysis on business crash accidents to determine the type of failure; analyze the failure logs of the type of failure in turn to obtain analysis results; according to the analysis results , determining a backup cycle corresponding to the fault type; establishing a preset fault type-backup cycle mapping table based on the fault type and the backup cycle corresponding to the fault type.

本发明调整备份周期装置的其他实施例或具体实现方式可参照上述各方法实施例,此处不再赘述。For other embodiments or specific implementations of the device for adjusting the backup cycle of the present invention, reference may be made to the above-mentioned method embodiments, which will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, as used herein, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or system comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or system. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system comprising that element.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器/随机存取存储器、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as read-only memory/random access Memory, magnetic disk, optical disk), including several instructions to make a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the methods described in various embodiments of the present invention.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (10)

1.一种调整备份周期方法,其特征在于,所述调整备份周期方法包括以下步骤:1. a method for adjusting the backup cycle, characterized in that, the method for adjusting the backup cycle comprises the following steps: 判断目标业务主机是否存在业务故障风险;Determine whether the target business host has a business failure risk; 在存在业务故障风险时,确定所述业务故障风险产生的故障类型;When there is a risk of business failure, determine the type of failure caused by the risk of business failure; 识别所述目标业务主机对应的业务系统的各业务主机;identifying each service host of the service system corresponding to the target service host; 根据所述故障类型调整所述各业务主机的备份周期。The backup period of each service host is adjusted according to the failure type. 2.如权利要求1所述的调整备份周期方法,其特征在于,所述在存在业务故障风险时,确定所述业务故障风险产生的故障类型的步骤之前,还包括:2. The method for adjusting the backup period according to claim 1, wherein, before the step of determining the type of failure caused by the risk of business failure when there is a risk of business failure, further comprising: 对业务崩溃事故进行聚类分析,确定故障类型;Carry out cluster analysis on business crash accidents to determine the type of failure; 依次对所述故障类型的故障日志进行分析,获得分析结果;Analyzing the fault logs of the fault types in turn to obtain analysis results; 根据所述分析结果,确定所述故障类型对应的备份周期;According to the analysis result, determine the backup cycle corresponding to the fault type; 基于所述故障类型和所述故障类型对应的备份周期建立预设故障类型-备份周期对应关系映射表。A preset fault type-backup cycle mapping table is established based on the fault type and the backup cycle corresponding to the fault type. 3.如权利要求2所述的调整备份周期方法,其特征在于,所述根据所述故障类型调整所述各业务主机的备份周期的步骤,包括:3. The method for adjusting the backup period according to claim 2, wherein the step of adjusting the backup period of each service host according to the type of failure comprises: 根据预设故障类型-备份周期对应关系映射表获取目标备份周期;Obtain the target backup cycle according to the default fault type-backup cycle correspondence mapping table; 根据所述目标备份周期调整所述业务系统的各业务主机的备份周期。The backup period of each service host in the service system is adjusted according to the target backup period. 4.如权利要求2所述的调整备份周期方法,其特征在于,所述依次对所述故障类型的故障日志进行分析,获得分析结果的步骤,包括:4. The method for adjusting the backup period according to claim 2, wherein the step of analyzing the failure log of the failure type in turn to obtain the analysis result comprises: 依次获取所述故障类型的故障日志;Acquiring fault logs of the fault types in sequence; 根据所述故障日志,确定所述故障类型对应的风险等级;According to the fault log, determine the risk level corresponding to the fault type; 基于预设风险等级表和所述风险等级,获得分析结果。Based on the preset risk level table and the risk level, the analysis result is obtained. 5.如权利要求1所述的调整备份周期方法,其特征在于,所述判断目标业务主机是否存在业务故障风险的步骤,包括:5. The method for adjusting the backup period according to claim 1, wherein the step of judging whether the target service host has a risk of service failure comprises: 对目标业务主机的行为进行行为检测,获得行为检测结果;Conduct behavior detection on the behavior of the target business host, and obtain the behavior detection results; 根据所述行为检测结果,判断目标业务主机是否存在业务故障风险。According to the behavior detection result, it is judged whether the target service host has a service failure risk. 6.如权利要求1所述的调整备份周期方法,其特征在于,所述识别所述目标业务主机对应的业务系统的各业务主机的步骤,包括:6. The method for adjusting the backup period according to claim 1, wherein the step of identifying each service host of the service system corresponding to the target service host comprises: 获取所述目标业务主机的业务配置;Obtain the service configuration of the target service host; 根据所述业务配置获取所述目标业务主机对应的业务系统中的连接记录;Obtain a connection record in the service system corresponding to the target service host according to the service configuration; 根据所述连接记录确定主机信息出现频率;determining the occurrence frequency of host information according to the connection record; 根据所述主机信息出现频率识别所述业务系统中的各业务主机。Each service host in the service system is identified according to the occurrence frequency of the host information. 7.如权利要求1-6任一项所述的调整备份周期方法,其特征在于,所述方法,还包括:7. The method for adjusting the backup cycle according to any one of claims 1-6, wherein the method further comprises: 在所述目标业务主机在预设时间范围不存在业务故障风险时,将所述业务系统对应的备份周期调整至默认备份周期。When the target service host has no risk of service failure within the preset time range, the backup period corresponding to the service system is adjusted to a default backup period. 8.一种调整备份周期装置,其特征在于,所述装置包括:8. A device for adjusting the backup cycle, characterized in that the device comprises: 风险判断模块,用于判断目标业务主机是否存在业务故障风险;The risk judgment module is used to judge whether there is a business failure risk in the target business host; 类型确定模块,用于在存在业务故障风险时,确定所述业务故障风险产生的故障类型;A type determination module, configured to determine the type of failure caused by the business failure risk when there is a business failure risk; 主机识别模块,用于识别所述目标业务主机对应的业务系统的各业务主机;A host identification module, configured to identify each service host of the service system corresponding to the target service host; 周期调整模块,用于根据所述故障类型调整所述各业务主机的备份周期。A cycle adjustment module, configured to adjust the backup cycle of each service host according to the type of failure. 9.一种调整备份周期设备,其特征在于,所述设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的调整备份周期程序,所述调整备份周期程序配置为实现如权利要求1至7中任一项所述的调整备份周期方法的步骤。9. A device for adjusting a backup cycle, characterized in that the device includes: a memory, a processor, and a backup cycle adjustment program stored on the memory and operable on the processor, the backup cycle adjustment program It is configured to realize the steps of the method for adjusting the backup period according to any one of claims 1-7. 10.一种存储介质,其特征在于,所述存储介质上存储有调整备份周期程序,所述调整备份周期程序被处理器执行时实现如权利要求1至7任一项所述的调整备份周期方法的步骤。10. A storage medium, characterized in that a program for adjusting the backup cycle is stored on the storage medium, and when the program for adjusting the backup cycle is executed by a processor, the adjusted backup cycle as described in any one of claims 1 to 7 is realized method steps.
CN202310936973.5A 2023-07-28 2023-07-28 Method, device, equipment and storage medium for adjusting backup cycle Pending CN116662077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310936973.5A CN116662077A (en) 2023-07-28 2023-07-28 Method, device, equipment and storage medium for adjusting backup cycle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310936973.5A CN116662077A (en) 2023-07-28 2023-07-28 Method, device, equipment and storage medium for adjusting backup cycle

Publications (1)

Publication Number Publication Date
CN116662077A true CN116662077A (en) 2023-08-29

Family

ID=87724559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310936973.5A Pending CN116662077A (en) 2023-07-28 2023-07-28 Method, device, equipment and storage medium for adjusting backup cycle

Country Status (1)

Country Link
CN (1) CN116662077A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119512809A (en) * 2024-09-13 2025-02-25 建信金融科技有限责任公司 Data backup method and device, equipment, storage medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140143610A1 (en) * 2012-11-19 2014-05-22 Kabushiki Kaisha Toshiba Data preserving apparatus, method and system therefor
US10810088B1 (en) * 2016-05-13 2020-10-20 NortonLifeLock Inc. System and method of dynamic backup policy generation
CN113505027A (en) * 2021-09-10 2021-10-15 深圳市科力锐科技有限公司 Business system backup method, device, equipment and storage medium
CN113808299A (en) * 2021-09-14 2021-12-17 中国第一汽车股份有限公司 Vehicle fault snapshot storage method, device and equipment based on fault system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140143610A1 (en) * 2012-11-19 2014-05-22 Kabushiki Kaisha Toshiba Data preserving apparatus, method and system therefor
US10810088B1 (en) * 2016-05-13 2020-10-20 NortonLifeLock Inc. System and method of dynamic backup policy generation
CN113505027A (en) * 2021-09-10 2021-10-15 深圳市科力锐科技有限公司 Business system backup method, device, equipment and storage medium
CN113808299A (en) * 2021-09-14 2021-12-17 中国第一汽车股份有限公司 Vehicle fault snapshot storage method, device and equipment based on fault system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119512809A (en) * 2024-09-13 2025-02-25 建信金融科技有限责任公司 Data backup method and device, equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
US9021480B2 (en) Security management device and method
US8069371B2 (en) Method and system for remotely debugging a hung or crashed computing system
CN109583194B (en) System and method for detecting abnormal events based on popularity of convolution of events
US20160197795A1 (en) Discovering and monitoring server clusters
US7856573B2 (en) WPAR halted attack introspection stack execution detection
CN109379347B (en) Safety protection method and equipment
CN110943984B (en) Asset safety protection method and device
US20220263894A1 (en) Detecting anomalies in a distributed application
CN112769775B (en) Threat information association analysis method, system, equipment and computer medium
CN115794472A (en) Chip error collection and processing method, device and storage medium
US20200342109A1 (en) Baseboard management controller to convey data
CN116662077A (en) Method, device, equipment and storage medium for adjusting backup cycle
KR20220073221A (en) System and Method for Monitoring Web Service Server
CN114785621B (en) Vulnerability detection method and device, electronic equipment and computer readable storage medium
CN117472623A (en) Method, device, equipment and storage medium for processing memory fault
US10754753B1 (en) Performance of virtual machine instances using machine recognition of screenshot images
CN110874474A (en) Lessocian virus defense method, Lessocian virus defense device, electronic device and storage medium
US9141795B2 (en) Techniques for detecting malicious activity
US20070256067A1 (en) Method and system for upgrading a software image
CN113238893A (en) Disaster recovery system, method, computer device and medium for multiple data centers
CN111859386A (en) Trojan detection method and system based on behavior analysis
CN114679295B (en) Firewall security configuration method and device
CN115118464A (en) Method and device for detecting defect host, electronic equipment and storage medium
US10546117B1 (en) Systems and methods for managing security programs
CN115048643A (en) Data processing method and device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230829