Data backup method and device, equipment and storage medium
By calculating the database abnormality risk value in real time and performing temporary backups, the problem in the existing technology that database disaster recovery backup cannot deal with sudden abnormalities is solved, data security and storage efficiency are improved, and data loss is avoided.
Patent Information
- Application Number
- CN202410101720.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-24
- Publication Date
- 2024-10-18
AI Technical Summary
Existing database disaster recovery backup methods have problems with data exposure risks and large storage resource usage. They cannot effectively back up unexpected abnormalities, resulting in data loss.
By acquiring database operation data in real time, the abnormal risk value is calculated, and temporary backup is performed when the risk value exceeds the preset threshold. Differential data and scrambling are used to ensure data security and storage efficiency.
While ensuring data security, it reduces storage resource requirements, improves the effect of data disaster recovery and backup, avoids data loss to the greatest extent, and realizes timely backup of unexpected abnormalities.
Smart Images

Figure CN118796548A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data backup method, device, equipment and storage medium. Background Art
[0002] Databases play a key role in modern information systems, so the requirements for the availability and disaster recovery performance of database systems are increasing. When a database system fails, hardware fails, or a natural disaster occurs, it must be quickly restored to ensure the continued operation of the business.
[0003] Data disaster recovery and backup refers to a preventive measure taken to protect data from accidental loss or catastrophic events. In data disaster recovery and backup, data will be copied or backed up to a storage location to ensure that even if data loss, hardware failure, natural disasters or other unexpected situations occur, data can be quickly restored and the normal operation of the business can be maintained. The data disaster recovery and backup system can minimize business interruptions caused by data loss or catastrophic events, and provide fast and reliable data recovery and continuous operation capabilities.
[0004] Currently, the commonly used data disaster recovery solution is to build a mirror server. During the operation of the database, the data generated by the primary database will be synchronized to the mirror database in real time (or periodically). When the primary database fails, the mirror database can immediately take over the service.
[0005] However, the problem with current data disaster recovery solutions is that the backup process requires data to be transferred from the primary database to the mirror database, which poses a risk of data exposure and affects data security. In addition, data backup is performed according to a fixed backup cycle, and a large amount of backup data is generated each time, which takes up a lot of storage space and places great demands on data storage resources.
[0006] It can be seen that how to perform disaster recovery backup of the database while ensuring data security and saving data storage resources has become a problem that needs to be solved urgently. Summary of the invention
[0007] The embodiment of the present application provides a data backup method to solve the problem that the existing database disaster recovery backup method according to a fixed backup cycle cannot back up sudden exceptions, thereby causing data loss.
[0008] The embodiment of the present application also provides a data backup device to solve the problem that the existing database disaster recovery backup method according to a fixed backup cycle cannot back up sudden exceptions, thereby causing data loss.
[0009] The embodiment of the present application also provides a data backup device to solve the problem that the existing database disaster recovery backup method according to a fixed backup cycle cannot back up sudden exceptions, thereby causing data loss.
[0010] The embodiment of the present application also provides a computer-readable storage medium to solve the problem that the existing database disaster recovery backup method according to a fixed backup cycle cannot back up sudden exceptions, thereby causing data loss.
[0011] The present application embodiment adopts the following technical solutions:
[0012] A data backup method comprises: obtaining operation data of a first database; determining an abnormal risk value of the first database based on the operation data, and judging whether the abnormal risk value is greater than a preset risk threshold; when the judgment result is yes, obtaining data to be backed up, and performing disaster recovery backup on the data to be backed up.
[0013] A data backup device comprises: a data acquisition unit, used to acquire operating data of a first database; an abnormal risk judgment unit, a user determines the abnormal risk value of the first database based on the operating data, and judges whether the abnormal risk value is greater than a preset risk threshold; a backup unit, used to acquire data to be backed up when the judgment result obtained by the abnormal risk judgment unit is yes, and perform disaster recovery backup on the data to be backed up.
[0014] A data backup device, comprising:
[0015] A processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor performs the following operations: obtaining operation data of a first database; determining an abnormal risk value of the first database based on the operation data, and judging whether the abnormal risk value is greater than a preset risk threshold; when the judgment result is yes, obtaining data to be backed up, and performing disaster recovery backup on the data to be backed up.
[0016] A computer-readable storage medium stores one or more programs, which, when executed by an electronic device including multiple application programs, enables the electronic device to perform the following operations: obtain operating data of a first database; determine an abnormal risk value of the first database based on the operating data, and judge whether the abnormal risk value is greater than a preset risk threshold; when the judgment result is yes, obtain data to be backed up, and perform disaster recovery backup on the data to be backed up.
[0017] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
[0018] By adopting the data backup method provided by the embodiment of the present application, when the database is running normally, in addition to backing up the data of the first database according to a fixed data backup cycle, the operation data of the first database is obtained in real time, and the abnormal risk value of the first database is determined based on the acquired operation data, and it is judged whether the abnormal risk value is greater than the preset risk threshold. When it is judged that the abnormal risk value of the first database is greater than the preset risk threshold, the data to be backed up is obtained, and the data to be backed up is backed up for disaster recovery. By adopting the data backup method provided by the embodiment of the present application, a temporary backup scheme is first added on the basis of periodic backup. If the specified backup time has not been reached, it can be dynamically determined in real time whether a backup is required based on the failure of the device corresponding to the database and the current modification of the data. When it is determined that there is a risk of loss due to equipment problems or safety issues, temporary data backup is performed in time, which improves the effect of data disaster recovery backup, maximizes the guarantee that data is not lost, and greatly guarantees data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0020] Figure 1 A schematic diagram of a specific process of a data backup method provided in an embodiment of the present application;
[0021] Figure 2 A schematic diagram of the specific structure of a data backup device provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of the specific structure of a data backup device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0024] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0025] A data backup method provided in an embodiment of the present application is used to solve the problem that the existing database disaster recovery backup method according to a fixed backup cycle cannot back up sudden exceptions, thereby causing data loss.
[0026] The executor of the data backup method provided in the embodiment of the present application may be, but is not limited to, at least one of a website server, a network operation and maintenance server, a database backup server, and a database security management server; in addition, the executor of the method may also be an application (Application, APP) running on these servers or the system itself.
[0027] For ease of description, the following takes the execution subject of the method as a database backup system as an example to introduce the implementation of the method. It can be understood that the execution subject of the method as a database backup system is only an exemplary description and should not be understood as a limitation of the method.
[0028] The specific implementation flow chart of the data backup method provided in this application is as follows Figure 1 As shown, it mainly includes the following steps:
[0029] Step 11, obtaining the operation data of the first database;
[0030] The operation data includes the device operation data of the hardware device corresponding to the database during operation, and the security log generated during the operation of the database.
[0031] In the embodiment of the present application, the equipment operation data mainly refers to the maintenance data of the database storage hardware equipment, for example, it may include: standard maintenance cycle and the most recent maintenance time and other data. In the embodiment of the present application, the standard maintenance cycle may be the recommended maintenance cycle given by the storage hardware manufacturer (for example, it is recommended to maintain once every 180 days), or the standard maintenance cycle may also be calculated and determined based on the average value of the time intervals between two adjacent maintenance of the same hardware model equipment in the network. The embodiment of the present application does not limit the specific method of determining the standard maintenance cycle.
[0032] In addition, the database backup system can obtain security logs of the first database (i.e., the main database) through the log data collection module. The security logs may include attack information suffered by the first database during operation and vulnerability information detected by the first database during operation.
[0033] Step 12, determining an abnormal risk value of the first database according to the operation data obtained by executing step 11;
[0034] In an embodiment of the present application, the abnormal risk value of the database is used to characterize the possibility of an abnormal situation occurring in the current situation of the database. If the abnormal risk value is not lower than the preset risk value threshold, it means that under the current operating environment, the database may be at risk of downtime, abnormality, and attack, which may affect the security of the data stored in the database. Therefore, it is necessary to perform disaster recovery backup of the data in the database at this time, so that after the abnormality is resolved, the database can be restored to the latest version based on the backup data to reduce data loss.
[0035] In one implementation, the abnormal risk value can be jointly determined by two dimensions: the risk value corresponding to the database hardware device and the risk value corresponding to the software data. Specifically, in an embodiment of the present application, the database backup system can calculate the abnormal risk value of the first database according to the following method, including: determining the device risk value of the first database according to the device operation data; determining the security risk value of the first database according to the security log; determining the abnormal risk value of the first database of the device according to the device risk value and the security risk value.
[0036] In one embodiment, the equipment operation data collected by executing step 11 may include the following categories:
[0037] Type 1: Equipment maintenance data, which may include standard maintenance cycle and the time of the most recent maintenance;
[0038] Type 2: Equipment failure data, namely the number of times the database hardware equipment fails and the time when the failure occurs.
[0039] In the embodiment of the present application, the database backup system may calculate the device risk value of the first database through the following sub-steps, including:
[0040] Sub-step 1201, determining the device usage time according to the device maintenance data and the current time;
[0041] The database backup system can determine the device usage time of the database storage device based on the device last maintenance time in the device maintenance data and the current time. Specifically, the device usage time can be calculated using the following formula [1]:
[0042]
[0043] Among them, Δt represents the usage time of the device, t 0 Indicates the current moment, Indicates the last maintenance time of the device.
[0044] Sub-step 1202, determining a first probability of a device failure occurring in the first database under the usage time according to the device usage time and the device failure data;
[0045] According to the equipment failure data, trace back from the current moment to determine the number of failures that occurred in each Δt period, and generate a failure set accordingly. Each element in the failure set represents the total number of Δt that the database storage device has experienced since it was put into use, and the number of failures that occurred in each Δt period. The first element in the failure set is the number of failures that occurred in the first Δt time period starting from the current moment, and so on.
[0046] For the convenience of description, the device corresponding to the first database is taken as device 1, and other devices with the same model as device 1 found on the Internet are taken as devices 2 and 3 as an example to introduce a specific method for calculating the first probability of device failure in the first database:
[0047] Assume that the fault sets obtained for devices 1 to 3 are:
[0048] Equipment 1: Collection
[0049] Device 2: Collection
[0050] Device 3: Collection
[0051] Starting from the last element in the fault set corresponding to each device, the elements in the fault set corresponding to each device are divided into two categories according to the number of elements contained in set 1 corresponding to device 1. For example, if set 1 contains 2 elements, then the first category element in set 2 is The second type of elements are The first type of elements in set 3 are The second type of elements are
[0052] Get the first element value of the first type of element in each other device fault set. For example, the first type of element in set 2 is Its first element value is The first type of elements in set 3 are Its first element value is The retrieved element ensures that the value is the data closest to the running time of the hardware in the device corresponding to the first database.
[0053] According to the following formula [2], the first probability of device failure occurring in the first database under the usage time is calculated:
[0054]
[0055] in, represents the probability of failure of device j under the current usage time, The average of the first element values of all the second-category elements and the first-category elements in the failure sets of other devices. It indicates the actual occurrence probability of device 1 corresponding to the first database.
[0056] Sub-step 1203, determining the equipment risk value of the first database according to the first probability.
[0057] In the embodiment of the present application, the device risk value of the first database can be calculated and determined according to the following formula [3]:
[0058]
[0059] In the embodiment of the present application, the database backup system may calculate the security risk value of the first database through the following sub-steps, including:
[0060] Sub-step 12-a, determining a vulnerability score corresponding to each vulnerability in the vulnerability data;
[0061] The vulnerability scores corresponding to the vulnerabilities in the first database are determined by the Common Vulnerability Scoring System (CVSS), which is recorded as CVSS v , where v is the vulnerability identifier.
[0062] Sub-step 12-b, determining the number of attacks corresponding to each vulnerability in the vulnerability data according to the attack data;
[0063] According to the attack data, determine the number of times each vulnerability in the vulnerability data has been actually attacked.
[0064] Sub-step 12-c, determining the security threat value of each vulnerability pair in the vulnerability data according to the number of attacks and the vulnerability score;
[0065] In the embodiment of the present application, the security threat value of each vulnerability pair can be calculated according to the following formula [4]:
[0066]
[0067] Among them, v is the vulnerability identifier, CVSS v is the vulnerability score value of the vulnerability, NA v is the number of times vulnerability v is actually attacked.
[0068] Sub-step 12-d, determining the total number of ports of the device corresponding to the security log and the number of open ports at the current moment;
[0069] Sub-step 12-e, determining the security risk value of the first database according to the total number of ports, the number of open ports and the security threat value.
[0070] In the embodiment of the present application, the security threat value of each vulnerability pair can be calculated according to the following formula [5]:
[0071]
[0072] Where N1 is the number of ports opened by device 1, N2 is the total number of ports of device 1, and p v is the maximum value of the threat levels corresponding to all vulnerabilities of all nodes in the class that the node belongs to. L is the sensitivity of the data stored in the first database, which can be obtained by the amount of sensitive data / the total amount of data included, or can be determined by the user.
[0073] In an embodiment of the present application, when calculating and determining the database abnormality risk value, the data storage requirement D can also be considered. The data storage requirement D indicates the length of time that the data stored in the database has been modified but not backed up. The longer the time, the greater the need for storage.
[0074] For example, if the data in the first database is not currently being edited, D=0; if the data in the first database is currently being edited, D=the time from the most recent backup time to the current time / the average backup time interval.
[0075] In the embodiment of the present application, the abnormal risk value x can be calculated according to the following formula [6]:
[0076] X=AE*(AA+D)[6]
[0077] Step 13, determining whether the abnormal risk value calculated by executing step 12 is greater than a preset risk threshold;
[0078] The preset risk threshold may be set based on manual experience, or the preset risk threshold may be obtained by performing big data analysis on sample data.
[0079] When the judgment result is yes, step 14 is executed; when the judgment result is no, step 15 is executed.
[0080] Step 14: when the judgment result obtained by executing step 13 is yes, the data to be backed up is obtained, and disaster recovery backup is performed on the data to be backed up;
[0081] It should be noted here that in order to avoid the problem of data leakage that may be caused by directly backing up the original data, in an embodiment of the present application, the database backup system can determine the change value of the data stored therein and back up and store the change value, so that the original data is only saved in the first database serving as the primary database, and only the change value is saved in the backup database. In this case, even if the backup database is hacked, the real data will not be leaked, thereby ensuring the security of the data. At the same time, compared with directly backing up the original data, this data disaster recovery backup method of backing up the change value also reduces the amount of data storage and reduces the requirements for the storage space of the backup database.
[0082] In the embodiment of the present application, data disaster recovery backup can be performed according to the following sub-steps, including:
[0083] Sub-step 1401, obtaining the historical backup data currently stored in the backup database;
[0084] The historical backup data is the data stored in the backup database when the database backup system last performed data disaster recovery backup.
[0085] It should be noted here that the backup data stored in the backup database may be represented in a binary format, such as 110.
[0086] Sub-step 1402, determining the difference data between the data to be backed up and the historical backup data;
[0087] The data to be backed up is the latest data currently stored in the first database, and the data to be backed up is also represented in binary format. For example, the acquired data to be backed up may be 100.
[0088] Based on the acquired data to be backed up and historical backup data, the difference data is calculated according to the following formula [7]:
[0089]
[0090] The difference data is 010.
[0091] Sub-step 1403, performing scrambling calculation on the difference data to obtain change data corresponding to the difference data;
[0092] In order to further ensure the data security of the backup data, before performing data disaster recovery backup, the database backup system can scramble the differential data obtained by executing sub-step 1402 to make the differential data less correlated with the original data to be backed up, so that even if the differential data is stolen, the real data will not be leaked.
[0093] In the embodiment of the present application, the disturbance bit of the scrambling calculation can be determined according to the backup time. For example, the value of the last bit of the backup time can be used as the disturbance bit. For example, if the current time is October 21, 2023, the disturbance bit is 1. If the current time is 10:01:00 on October 1, 2023, the disturbance bit is 0.
[0094] Based on the determined disturbance bit, the difference data is scrambled to obtain the changed data. Specifically, the database backup system can search for the value corresponding to the disturbance bit from the last bit of the difference data, and invert the corresponding disturbance bit in the difference data to obtain the changed data.
[0095] For example, if the difference data is 010 and the determined disturbance bit is the last bit 0, then after inversion processing, the obtained change data is 011.
[0096] Sub-step 1404: storing the changed data in the backup database to implement disaster recovery backup of the data to be backed up.
[0097] The changed data and the backup time are stored together in the backup database to achieve disaster recovery backup of the backup data.
[0098] Step 15, when the judgment result obtained by executing step 13 is no, it can be further determined whether the current time is a backup time. If the current time is a backup time, the data to be backed up is obtained and disaster recovery backup is performed on the data to be backed up; if the current time is not a backup time, the process ends.
[0099] In an embodiment of the present application, the database backup system can determine the last backup time of the backup database, and then determine the backup time of this automatic backup based on the last backup time and the preset backup cycle, and then determine whether the current time is the backup time. When the judgment result is yes, the data to be backed up is obtained, and disaster recovery backup is performed according to the method provided in step 14 above; when the judgment result is no, the process ends.
[0100] By adopting the data backup method provided by the embodiment of the present application, when the database is running normally, in addition to backing up the data of the first database according to a fixed data backup cycle, the operation data of the first database is obtained in real time, and the abnormal risk value of the first database is determined based on the acquired operation data, and it is judged whether the abnormal risk value is greater than the preset risk threshold. When it is judged that the abnormal risk value of the first database is greater than the preset risk threshold, the data to be backed up is obtained, and the data to be backed up is backed up for disaster recovery. By adopting the data backup method provided by the embodiment of the present application, a temporary backup scheme is first added on the basis of periodic backup. If the specified backup time has not been reached, it can be dynamically determined in real time whether a backup is required based on the failure of the device corresponding to the database and the current modification of the data. When it is determined that there is a risk of loss due to equipment problems or safety issues, temporary data backup is performed in time, which improves the effect of data disaster recovery backup, maximizes the guarantee that data is not lost, and greatly guarantees data security.
[0101] In one implementation, the present application also provides a data backup device to solve the problem that the existing database disaster recovery backup method according to a fixed backup cycle cannot perform backup for sudden abnormalities, thereby causing data loss. Figure 2 As shown, it includes: a data acquisition unit 21, an abnormal risk judgment unit 22 and a backup unit 23.
[0102] Wherein, the data acquisition unit 21 is used to acquire the operation data of the first database;
[0103] The abnormal risk judgment unit 22, the user determines the abnormal risk value of the first database according to the operation data, and judges whether the abnormal risk value is greater than a preset risk threshold;
[0104] The backup unit 23 is used to obtain the data to be backed up and perform disaster recovery backup on the data to be backed up when the judgment result obtained by the abnormal risk judgment unit is yes.
[0105] In one embodiment, the operation data includes device operation data and security logs, and the abnormal risk judgment unit 22 is specifically used to: determine the device risk value of the first database based on the device operation data; determine the security risk value of the first database based on the security data; determine the abnormal risk value of the first database of the device based on the device risk value and the access risk value.
[0106] In one embodiment, the equipment operation data includes equipment maintenance data and equipment failure data, and the abnormal risk judgment unit 22 is specifically used to: determine the equipment usage time based on the equipment maintenance data and the current time; determine the first probability of equipment failure in the first database under the usage time based on the equipment usage time and the equipment failure data; determine the equipment risk value of the first database based on the first probability.
[0107] In one embodiment, the security log includes attack data and vulnerability data, and the abnormal risk judgment unit 22 is specifically used to: determine the vulnerability score corresponding to each vulnerability in the vulnerability data; determine the number of attacks corresponding to each vulnerability in the vulnerability data based on the attack data; determine the security threat value of each vulnerability in the vulnerability data based on the number of attacks and the vulnerability score; determine the total number of ports of the device corresponding to the security log, and the number of open ports at the current moment; determine the security risk value of the first database based on the total number of ports, the number of open ports and the security threat value.
[0108] In one embodiment, the backup unit 23 is specifically used to: obtain historical backup data currently stored in the backup database; determine the difference data between the data to be backed up and the historical backup data; perform scrambling calculations on the difference data to obtain change data corresponding to the difference data; and store the change data in the backup database to achieve disaster recovery backup of the data to be backed up.
[0109] In one embodiment, it also includes an automatic backup unit, which is specifically used to: when the judgment result obtained by the abnormal risk judgment unit 22 is no, determine the previous backup time of the backup database; determine the second backup time according to the preset backup cycle and the previous backup time; when the second backup time matches the current time, obtain the data to be backed up, and perform disaster recovery backup on the data to be backed up.
[0110] By adopting the data backup device provided by the embodiment of the present application, when the database is operating normally, in addition to backing up the data of the first database according to a fixed data backup cycle, the operation data of the first database is obtained in real time, and the abnormal risk value of the first database is determined based on the acquired operation data, and it is judged whether the abnormal risk value is greater than the preset risk threshold. When it is judged that the abnormal risk value of the first database is greater than the preset risk threshold, the data to be backed up is obtained, and the data to be backed up is backed up for disaster recovery. By adopting the data backup method provided by the embodiment of the present application, a temporary backup scheme is first added on the basis of periodic backup. When the specified backup time is not reached, it can be dynamically determined in real time whether a backup is required based on the failure of the device corresponding to the database and the current modification of the data. When it is determined that there is a risk of loss due to equipment problems or safety problems, temporary data backup is performed in time, which improves the effect of data disaster recovery backup, maximizes the guarantee that data is not lost, and greatly guarantees data security.
[0111] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 3 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0112] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0113] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0114] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a data backup device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations: determine the device risk value of the first database according to the device operation data; determine the security risk value of the first database according to the security data; determine the abnormal risk value of the first database of the device according to the device risk value and the access risk value.
[0115] The above application Figure 3 The method performed by the data backup electronic device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0116] Of course, in addition to software implementation methods, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0117] The embodiment of the present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 1 The method of the illustrated embodiment is specifically used to perform the following operations: determine the device risk value of the first database based on the device operation data; determine the security risk value of the first database based on the security data; determine the abnormal risk value of the first database of the device based on the device risk value and the access risk value.
[0118] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0119] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0120] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0121] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0122] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0123] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0124] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0125] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0126] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0127] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A data backup method, It is characterized in that include: Acquire operation data of the first database; Determine an abnormal risk value of the first database according to the operation data, and judge whether the abnormal risk value is greater than a preset risk threshold; When the judgment result is yes, the data to be backed up is obtained, and disaster recovery backup is performed on the data to be backed up.
2. The method according to claim 1, It is characterized in that The operation data includes equipment operation data and security logs; Then, determining the abnormal risk value of the first database according to the operation data specifically includes: Determining the equipment risk value of the first database according to the equipment operation data; Determining a security risk value of the first database according to the security log; An abnormal risk value of the first database of the device is determined according to the device risk value and the security risk value.
3. The method according to claim 2, It is characterized in that The equipment operation data includes equipment maintenance data and equipment failure data; Then, determining the equipment risk value of the first database according to the equipment operation data specifically includes: Determine the usage time of the device according to the device maintenance data and the current time; Determine, according to the device usage time and the device failure data, a first probability of device failure occurring in the first database under the usage time; According to the first probability, a risk value of equipment in the first database is determined.
4. The method according to claim 2, It is characterized in that The security log includes attack data and vulnerability data; Then, determining the security risk value of the first database according to the security data specifically includes: Determine a vulnerability score corresponding to each vulnerability in the vulnerability data; Determine, according to the attack data, the number of attacks corresponding to each vulnerability in the vulnerability data; Determine the security threat value of each vulnerability pair in the vulnerability data according to the number of attacks and the vulnerability score; Determine the total number of ports of the device corresponding to the security log and the number of open ports at the current moment; A security risk value of the first database is determined according to the total number of ports, the number of open ports, and the security threat value.
5. The method according to claim 1, It is characterized in that The obtaining of the data to be backed up and performing disaster recovery backup on the data to be backed up specifically includes: Get the historical backup data currently stored in the backup database; Determine difference data between the data to be backed up and the historical backup data; Performing scrambling calculation on the difference data to obtain change data corresponding to the difference data; The changed data is stored in the backup database to implement disaster recovery backup of the data to be backed up.
6. The method according to claim 1, It is characterized in that Also includes: When the judgment result is no, determining the last backup time of the backup database; Determine a second backup time according to a preset backup cycle and the previous backup time; When the second backup time matches the current time, the data to be backed up is obtained, and disaster recovery backup is performed on the data to be backed up.
7. A data backup device, It is characterized in that include: A data acquisition unit, used to acquire operation data of the first database; an abnormal risk judgment unit, wherein the user determines the abnormal risk value of the first database according to the operation data, and judges whether the abnormal risk value is greater than a preset risk threshold; The backup unit is used to obtain the data to be backed up and perform disaster recovery backup on the data to be backed up when the judgment result obtained by the abnormal risk judgment unit is yes.
8. The device according to claim 7, It is characterized in that The operation data includes equipment operation data and security logs. The abnormal risk judgment unit is specifically used to: Determining the equipment risk value of the first database according to the equipment operation data; determining a security risk value of the first database according to the security data; An abnormal risk value of the first database of the device is determined according to the device risk value and the access risk value.
9. A data backup device, include: processor; a memory arranged to store computer executable instructions which, when executed, cause the processor to: Acquire operation data of the first database; Determine an abnormal risk value of the first database according to the operation data, and judge whether the abnormal risk value is greater than a preset risk threshold; When the judgment result is yes, the data to be backed up is obtained, and disaster recovery backup is performed on the data to be backed up.
10. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, enable the electronic device to execute the method as claimed in any one of claims 1 to 6.
11. A computer program product, It is characterized in that The invention comprises a computer program, which implements the data backup method according to any one of claims 1 to 6 when executed by a processor.
