Data information processing method and device, electronic equipment and computer program product

By scanning the distributed file system, determining the backup strategy, and configuring the backup media server in the NBU backup system, the problem that the NBU backup system is difficult to back up the target database is solved, and backup efficiency and data security are improved.

CN118860741APending Publication Date: 2024-10-29INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410850193.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing NBU backup system is difficult to effectively back up the target database, resulting in low backup efficiency, and the distributed file system has deficiencies in long-term data retention and ransomware virus protection.

Method used

Obtain the backup information of the target database by scanning the distributed file system, determine the backup strategy, configure multiple backup media servers, and back up data to the NBU backup system based on the backup information and strategies, including circular scanning of file directories, backup set analysis, compression, and Encryption processing, generating a backup list, and scanning the backup status according to a preset time period.

Benefits of technology

It realizes the safe backup of the target database to the NBU backup system, improves the backup efficiency and data security, and solves the problem that the NBU backup system is difficult to back up the target database.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860741A_ABST
    Figure CN118860741A_ABST
Patent Text Reader

Abstract

The invention discloses a data information processing method and device, electronic equipment and a computer program product. The method comprises the following steps: acquiring backup information of a plurality of applications in a target database by scanning a distributed file system; determining a backup strategy for backing up the backup information of the plurality of applications to the NBU backup system; configuring a plurality of backup medium servers according to the number of applications to be backed up in the backup information; and backing up the backup information of the plurality of applications in the target database to the NBU backup system through each backup medium server according to the backup information and the backup strategy. Through the method and the device, the problem that the NBU backup system is difficult to backup the target database in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of financial technology, and specifically, to a method, device, electronic device and computer program product for processing data information. Background Art

[0002] When working in the banking system, we need to save and back up all kinds of file data in the system. At present, we mainly use the self-developed backup system to perform offline backup of database data, and back up the data to the distributed file system through the database component. However, there is a problem with this backup solution. The distributed file system has an upper limit and cannot retain data for a long period of time. At the same time, due to the problem of ransomware and the need for off-site storage, the current NBU (NetBackup) backup system cannot back up the database.

[0003] With regard to the problem in the related art that the NBU backup system is difficult to back up the target database, no effective solution has been proposed yet. Summary of the invention

[0004] The present application provides a data information processing method, device, electronic device and computer program product to solve the problem in the related art that when migrating data files from a distributed file system to an NBU backup system, there is a huge amount of migration resulting in low tape backup efficiency.

[0005] According to one aspect of the present application, a method for processing data information is provided. The method includes: obtaining backup information of multiple applications in a target database by scanning a distributed file system; determining a backup strategy for backing up the backup information of multiple applications to an NBU backup system, wherein the backup strategy is a strategy determined based on the level of each application and the backup type corresponding to each application, wherein the backup type is one of the following: full, incremental; configuring multiple backup media servers based on the number of applications to be backed up in the backup information; and backing up the backup information of multiple applications in the target database to the NBU backup system through each backup media server based on the backup information and the backup strategy.

[0006] Furthermore, obtaining backup information of multiple applications in the target database by scanning the distributed file system includes: cyclically scanning the file directory under the distributed file system to obtain a backup set of the file directory under the distributed file system; analyzing the backup set data of the file directory under the distributed file system to obtain backup information of multiple applications in the target database.

[0007] Furthermore, determining a backup strategy for backing up backup information of multiple applications to the NBU backup system includes: determining the level of each application in the distributed file system; determining the backup type corresponding to each application in the distributed file system; configuring the backup strategy of each application based on the level of each application and the backup type corresponding to each application, and setting the policy status of the backup strategy of each application, wherein the policy status is enabled or disabled; determining the backup strategy to be backed up to the NBU backup system based on the backup strategy of each application and the policy status of the backup strategy of each application.

[0008] Furthermore, after configuring multiple backup media servers according to the number of applications to be backed up in the backup information, the method also includes: after detecting that the backup program is started, determining the application that needs to be backed up among the multiple applications of the distributed file system to obtain the target application; determining the backup policy corresponding to the target application from the backup policy of the NBU backup system; obtaining the backup set corresponding to the target application from the backup information; and generating a backup list based on the target application, the backup policy corresponding to the target application, and the backup set corresponding to the target application.

[0009] Furthermore, through each backup media server, based on the backup information and the backup strategy, the backup information of multiple applications in the target database is backed up to the NBU backup system, including: creating a task queue on each backup media server, and inputting the backup list into the task queue; obtaining the backup set corresponding to the target application through the task queue, and determining the information in the distributed file system where the backup set corresponding to the target application is located; based on the backup set corresponding to the target application and the information in the distributed file system where it is located, backing up the backup set corresponding to the target application to the NBU backup system.

[0010] Furthermore, based on the backup set corresponding to the target application and the information in the distributed file system where the backup set is located, backing up the backup set corresponding to the target application to the NBU backup system includes: determining whether the backup set corresponding to the target application exists in the distributed file system based on the information in the distributed file system where the backup set corresponding to the target application is located; if so, determining whether the size of the space occupied by the backup set corresponding to the target application is smaller than the size of the temporary space in the backup media server; if the size of the space occupied by the backup set corresponding to the target application is smaller than the size of the temporary space in the backup media server, storing the backup set corresponding to the target application in the temporary space in the backup media server; and backing up the backup set corresponding to the target application in the temporary space on the backup media server to the NBU backup system.

[0011] Furthermore, backing up the backup set corresponding to the target application in the temporary space under the backup media server to the NBU backup system includes: compressing and encrypting the backup set corresponding to the target application in the temporary space in the backup media server to obtain a processed backup set; and backing up the processed backup set to the NBU backup system according to the backup policy corresponding to the target application.

[0012] Furthermore, after backing up the backup information of multiple applications in the target database to the NBU backup system through each backup media server according to the backup information and the backup strategy, the method also includes: scanning the NBU backup system to obtain the backup status information of the target database according to a preset time period, wherein the backup status information includes at least the backup status and backup status of the target database; and generating backup report information based on the backup status information of the target database in the NBU backup system.

[0013] According to another aspect of the present application, a data information processing device is provided. The device includes: an acquisition unit, which is to acquire the backup information of multiple applications in the target database by scanning the distributed file system; a determination unit, which is to determine the backup strategy of backing up the backup information of multiple applications to the NBU backup system, wherein the backup strategy is a strategy determined according to the level of each application and the backup type corresponding to each application, wherein the backup type is one of the following: full amount, incremental; a configuration unit, which is to configure multiple backup media servers according to the number of applications to be backed up in the backup information; a backup unit, which is to back up the backup information of multiple applications in the target database to the NBU backup system through each backup media server according to the backup information and the backup strategy.

[0014] According to another aspect of the present application, an electronic device is provided, comprising a processor and a memory; the memory stores computer-readable instructions, and the processor is used to execute the computer-readable instructions, wherein a method for processing data information is executed when the computer-readable instructions are executed.

[0015] According to another aspect of the present application, a computer program product is provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the above-mentioned methods for processing data information is implemented.

[0016] Through this application, the following steps are adopted: obtaining backup information of multiple applications in the target database by scanning the distributed file system; determining a backup strategy for backing up the backup information of multiple applications to the NBU backup system; configuring multiple backup media servers according to the number of applications to be backed up in the backup information; and backing up the backup information of multiple applications in the target database to the NBU backup system through each backup media server based on the backup information and the backup strategy, thereby solving the problem in the related technology that the NBU backup system is difficult to back up the target database, and then realizing the backup of the target database to the NBU backup system, thereby achieving the effect of improving the backup security and data security of the target database. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 is a flowchart of a method for processing data information provided in an embodiment of the present application;

[0019] Figure 2 is a schematic diagram of an optional data information processing system provided according to an embodiment of the present application;

[0020] Figure 3 is a schematic diagram of a data information processing device provided according to an embodiment of the present application;

[0021] Figure 4 is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. 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 creative work should fall within the scope of protection of the present application.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0026] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:

[0027] NBU backup system refers to: NetBackup system, an open platform centralized backup software tool. NetBackup system is widely used on various platforms, including but not limited to Windows, UNIX and Linux systems, providing enterprises with comprehensive and flexible data protection solutions. It supports automated backup operations, allowing administrators to set regular or calendar-based backup schedules to achieve automatic backup of clients in the network. NetBackup supports full backup and incremental backup, as well as functions that allow users to back up, restore or archive files from their own computers. In addition, NetBackup also includes server software and client software. The server software is deployed on the computer that manages the storage device, while the client software is installed on the computer containing the data to be backed up.

[0028] According to an embodiment of the present application, a method for processing data information is provided.

[0029] Figure 1 is a flow chart of a method for processing data information according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0030] Step S101, acquiring backup information of multiple applications in a target database by scanning a distributed file system.

[0031] It should be noted that the distributed file system cluster OBS of the present application is a system for storing data file backups of the target database on a daily basis. The distributed file system cluster OBS has two versions: OBS2.0 and OBS3.0. Among them, OBS2.0 uses Python's boto3 module to read directories and file operations, and OBS3.0 uses Python's subprocess module and obsutil command line tool to cooperate with each other to read directories and file operations. The data files include at least: application configuration files, system log files, and user-uploaded files. The backup information of multiple applications includes at least: the application, database, backup strategy, strategy type, number of files, backup set storage space size, and backup start and end time to which the backup set belongs in the file directory.

[0032] Before scanning the distributed file system, it is necessary to deploy a circular backup set check module on the main server of the target database. First, when the target database completes the daily backup, start the above circular backup set check module to perform a circular scan on the target file directory of the distributed file system. The format of the target file directory is: distributed file system cluster OBS / bucket / application name / database IP / iSQL backup strategy name / iSQL backup strategy type / id_backup start time / (backup set specific file), where iSQL is the target database, the bucket is used as a data grouping or division method in the database, and the backup set is the information of the target file directory obtained after the circular scan. Secondly, the backup information of multiple applications in the target file directory is analyzed, and the backup information of multiple applications includes: the application, database, backup strategy, strategy type (full backup or incremental) to which the backup set belongs, and the time when the backup starts. Finally, the number of files in the backup set and the size of the backup set storage space are obtained by reading the target file directory, and the backup end time is determined by the last modification time of the file saved in the target file directory path. The backup information of multiple applications, the number of files in the backup set, the size of the backup set storage space, and the backup end time are recorded in the first database table.

[0033] Step S102, determining a backup strategy for backing up backup information of multiple applications to an NBU backup system.

[0034] It should be noted that a backup strategy needs to be determined before performing a backup operation, and the backup operation can only be performed according to the backup strategy.

[0035] The object to be backed up can be one application or multiple applications. Each application has its own level. Different NBU backup system backup policies are set according to the application level from high to low and the backup type. The process of determining the backup policy of the NBU backup system is as follows: first set the transfer backup policy and write it into the second database table. The fields of the database table are: application name, transfer backup policy, backup domain, backup type, and startup status; then set the NBU backup policy in a specific backup domain according to the target application and backup type. The backup types are full and incremental, and the startup status is startup or shutdown. The mode of the NBU backup policy is User Manual, which is started manually.

[0036] Step S103: configuring multiple backup media servers according to the number of applications to be backed up in the backup information.

[0037] It should be noted that the number of applications to be backed up is the number of files in the backup set in step S101. The backup media server is one or more computer servers running the backup system software at the physical level. It is an important component in the backup system architecture at the logical level. It is responsible for managing the storage media used in the backup and recovery process. These storage media can be in various forms such as tapes, disks, cloud storage, etc. The storage medium in the embodiment of the present application is a tape.

[0038] Configure multiple backup media servers based on the number of applications to be backed up, and the status of the multiple backup media servers is multi-concurrency. Obtain the list of applications to be backed up and the backup policy of the NBU backup system corresponding to the above applications to be backed up from the second database table, and then obtain the distributed file system cluster OBS list and PIECE list through the first database table, wherein the distributed file system cluster OBS list is a list and list stored in the distributed file system cluster OBS object storage service, and the PIECE list is a fragment list or shard of the backup data, and each shard has name, location, size and other information. Create multiple concurrent tasks under multiple backup media servers based on the distributed file system cluster OBS list, and input the PIECE list into the queue of the multiple concurrent tasks, waiting for subsequent calls.

[0039] For example, in an embodiment of the present application, the default queues for multiple concurrent tasks are 5, namely Queue A, Queue B, Queue C, Queue D, and Queue E. When there are 100 PIECE lists, the 5 queues for multiple concurrent tasks pull 1 list from the 100 PIECE lists to execute the task. During the task execution process, if Queue A completes a task first, it will pull another list from the remaining multiple PIECE lists and execute it.

[0040] Step S104: backing up the backup information of multiple applications in the target database to the NBU backup system through each backup media server according to the backup information and the backup policy.

[0041] The distributed file system cluster OBS list and PIECE list are obtained in sequence through the multi-concurrent task queue of step S103, wherein the distributed file system cluster OBS list includes the information of the distributed file system, and the PIECE list includes the information of the backup set. When the existence of the backup set is detected, the size of the space occupied by the backup set is compared with the size of the temporary space in the backup media server. When the size of the space occupied by the backup set is obtained to be smaller than the size of the temporary space in the backup media server, the backup set is downloaded and stored in the first temporary directory on the backup media server. If the size of the space occupied by the backup set file and the backup set in the first temporary directory is exactly the same as the size of the space occupied by the backup set file and the backup set on the distributed file system, the backup set file in the first temporary directory is compressed and encrypted by the compression and encryption tool under the backup media server, and stored in the second temporary directory. The compressed and encrypted backup set files in the second temporary directory are backed up to the tape based on the backup strategy of the NBU backup system. After completing the backup operation, the first temporary directory and the second temporary directory are cleaned up.

[0042] The data information processing method provided in the embodiment of the present application obtains the backup information of multiple applications in the target database by scanning the distributed file system; determines the backup strategy for backing up the backup information of multiple applications to the NBU backup system; configures multiple backup media servers according to the number of applications to be backed up in the backup information; and backs up the backup information of multiple applications in the target database to the NBU backup system through each backup media server according to the backup information and the backup strategy, thereby solving the problem in the related art that the NBU backup system is difficult to back up the target database, and further realizing the backup of the target database to the NBU backup system, thereby achieving the effect of improving the backup security and data security of the target database.

[0043] Optionally, in the data information processing method provided in the embodiment of the present application, obtaining the backup information of multiple applications in the target database by scanning the distributed file system includes: performing a cyclic scan on the file directory under the distributed file system to obtain the backup set of the file directory under the distributed file system; analyzing the backup set data of the file directory under the distributed file system to obtain the backup information of multiple applications in the target database. A cyclic backup set check module is deployed on the computer as the main server, and each distributed cluster in the actual production environment is scanned in turn by the cyclic backup set check module, wherein the distributed cluster establishes a distributed file system based on the storage architecture of the object storage service OBS (Object-Based Storage Service). The scanned object is a directory under a bucket, and a bucket is a container for storing objects in the object storage service OBS. Each object storage service OBS account can contain multiple buckets, and each bucket contains an unlimited number of objects. The user simulates the directory structure by using a path separator (such as a forward slash) in the object name. For example, the form of the directory under the bucket is object storage service OBS / bucket / application name / database IP / iSQL backup policy name / iSQL backup policy type / id_backup start time / (backup set specific file). By analyzing the data in the backup set, the backup status of the target database (corresponding to the backup information of the above-mentioned multiple applications) is obtained.

[0044] In addition, the number of files in the backup set, the size of the backup set storage space, and the backup end time are obtained by reading the directory under the bucket, and the information and the backup information of multiple applications are recorded in the first database table, wherein the backup end time is determined according to the last modification time of the directory file under the bucket. Each row of the first database table is initially set, and the initial setting includes a flag for judging whether to start transferring backup, a flag for transferring backup, NBU backup domain, NBU backup strategy, NBU backup batch number, backup medium and other fields. For example, there are two different fields in the initial setting, a flag for judging whether to start transferring backup, piece_status, and a flag for transferring backup, to_tape_status. When piece_status=1, it means that the transfer backup has started. To_tape_status is a further flag. When to_tape_status=1, it means that there is an operation of transferring backup or preparing to transfer backup. In the initial setting, the NBU backup domain, NBU backup strategy, NBU backup batch number, backup medium and other fields are all blank.

[0045] Through this embodiment, the file directory under the distributed file system is cyclically scanned to obtain a backup set of the file directory under the distributed file system; the backup set data of the file directory under the distributed file system is analyzed to obtain backup information of multiple applications in the target database, in preparation for subsequent transfer and backup operations.

[0046] Optionally, in the data information processing method provided in the embodiment of the present application, after configuring multiple backup media servers according to the number of applications to be backed up in the backup information, the method also includes: after detecting that the backup program is started, determining the application that needs to be backed up in multiple applications of the distributed file system, and obtaining the target application; determining the backup strategy corresponding to the target application from the backup strategy of the NBU backup system; obtaining the backup set corresponding to the target application from the backup information; generating a backup list based on the target application, the backup strategy corresponding to the target application, and the backup set corresponding to the target application. Multiple concurrent backup media servers are configured based on the number of applications to be backed up, and one application is backed up and transferred by one backup media server. Before the transfer backup, the transfer backup main program is transformed through the schedule module of Python, the main program is activated regularly and the main program is continuously executed after activation, wherein, after regular activation, the backup media server will execute a complete process, and when it is detected that there are backup sets corresponding to multiple applications, a cycle of the process will be executed. If no backup set is found or the transfer backup task of the cycle has been completed, the cycle will be directly ended. For example, regular activation can be set to activate at 9:00 every day, and a complete process may be executed for 2 to 3 hours.

[0047] Through this embodiment, a backup list is generated according to the target application, the backup policy corresponding to the target application and the backup set corresponding to the target application, thereby achieving the purpose of providing a backup list for each subsequent backup media server to perform tasks.

[0048] Optionally, in the data information processing method provided in the embodiment of the present application, the backup information of multiple applications in the target database is backed up to the NBU backup system through each backup media server according to the backup information and the backup strategy, including: creating a task queue on each backup media server, and inputting the backup list into the task queue; obtaining the backup set corresponding to the target application through the task queue, and determining the information in the distributed file system where the backup set corresponding to the target application is located; and backing up the backup set corresponding to the target application to the NBU backup system according to the backup set corresponding to the target application and the information in the distributed file system where the backup set is located. There can be multiple task queues created on each backup media server, and the backup list is the execution object of the task queue. The task queue obtains the backup set information and the information in the distributed file system where the backup set is located in turn through the backup list. After obtaining the above information, the backup media server backs up the backup set to the NBU backup system.

[0049] Through this embodiment, the task queue on each backup medium server executes the transfer backup task according to the backup list, thereby achieving the purpose of backing up the backup set to the NBU backup system.

[0050] Optionally, in the data information processing method provided in the embodiment of the present application, backing up the backup set corresponding to the target application to the NBU backup system based on the backup set corresponding to the target application and the information in the distributed file system where the backup set is located includes: determining whether the backup set corresponding to the target application exists in the distributed file system based on the information in the distributed file system where the backup set corresponding to the target application is located; if so, determining whether the space occupied by the backup set corresponding to the target application is smaller than the size of the temporary space in the backup media server; if the space occupied by the backup set corresponding to the target application is smaller than the size of the temporary space in the backup media server, storing the backup set corresponding to the target application in the temporary space in the backup media server; and backing up the backup set corresponding to the target application in the temporary space on the backup media server to the NBU backup system.

[0051] In this embodiment, there are three situations of backup transfer, the first is that the backup set exists, the second is that the backup set does not exist, and the third is that the backup set is expired. The situation of the backup set can be determined through the information of the backup set and the distributed file system cluster OBS. When the backup set exists, piece_status is set to 1 to ensure that the backup will not be repeated in the future, and then the space occupied by the backup set and the storage space of the backup medium server are compared; when the backup set does not exist, an error is reported to record the data and the backup transfer of this backup set is skipped; when the backup set expires, piece_status is set to 4, and the judgment of the next backup set is continued in sequence.

[0052] When transferring and backing up a single PIECE list, it is divided into six steps. The first step is that when the first type of backup set exists, the results of comparing the space occupied by the backup set and the temporary space size of the backup media server are divided into two types. The first result is that when the space occupied by the backup set is smaller than the temporary space size of the backup media server, the backup set is downloaded to the first temporary directory on the backup media server through the tool of the distributed file system cluster OBS. For example, the address of the first temporary directory is: temporary directory 1 / application name / IP / backup mode / id_backup start time. The second result is that when the space occupied by the backup set is larger than the temporary space size of the backup media server, the operation of downloading the backup set is skipped and the thread of the current backup task of this backup set is jumped out. The second step is that after detecting a successful download, check whether the backup set data file and size under the first temporary directory are consistent with the backup set data file and size on the distributed file system cluster OBS. If the download is unsuccessful, the thread of the current backup task of this backup set is jumped out. The third step is to determine whether the backup set data files and sizes in the first temporary directory are consistent with the backup set data files and sizes on the distributed file system cluster OBS. If the judgment results are consistent, the backup set in the first temporary directory is compressed and encrypted through Linux zip, openssl and other tools, and the compressed and encrypted backup set is saved in the second temporary directory. For example, the address of the second temporary directory is: temporary directory 2 / application name / IP / backup mode / id_backup start time; if the backup set data files and sizes in the first temporary directory are inconsistent with the backup set data files and sizes on the distributed file system cluster OBS, then the thread of the current backup task of this backup set is jumped out. The fourth step is to jump out of the thread of the current backup task of this backup set if the compression backup fails. The fifth step is to clean up the first temporary directory and the second temporary directory. If the cleaning fails, then the thread of the current backup task of this backup set is jumped out. The sixth step is to back up the compressed and encrypted backup set files in the second temporary directory to the tape based on the backup policy of the NBU backup system.

[0053] After the current thread of the transfer backup task is completed, the completion information to_tape_status is set to 9. If the judgment result in the six steps of the transfer backup is no, that is, an error is reported, the step information corresponding to the error is recorded in to_tape_status, which is conducive to further analysis and processing. In addition, in order to enable the backup set to be quickly restored from the tape, the batch number of the backup strategy of the NBU backup system in the sixth step of the transfer backup, the tape label and other information are recorded in the first database.

[0054] Through this embodiment, the backup set goes through six steps in sequence, namely, determining whether the backup set exists, determining the size of the space occupied by the backup set and the temporary space, determining whether the backup set is successfully downloaded, determining whether the downloaded backup set is consistent with the distributed file system cluster OBS, determining whether the compression and encryption tasks are completed, and determining whether the temporary directory is cleaned up. This completes the purpose of transferring and backing up the backup set of a single PIECE list.

[0055] Optionally, in the data information processing method provided in the embodiment of the present application, after backing up the backup information of multiple applications in the target database to the NBU backup system through each backup media server according to the backup information and the backup strategy, the method further includes: scanning the NBU backup system to obtain the backup status information of the target database according to the preset time period, wherein the backup status information at least includes the backup status and backup status of the target database; generating backup report information according to the backup status information of the target database in the NBU backup system. First, according to the preset time period, regularly inspect the completion information to_tape_status and analyze the daily successful transfer of backup data, and at the same time obtain error information from to_tape_status. Then, analyze the number of files and the size of the backup set of the first database table to obtain information such as the actual daily backup volume of the target database. Finally, based on the completion status and completion time of the transfer backup, provide a data basis for expanding the capacity of the backup media server.

[0056] Through this embodiment, the daily successful transfer of backup data, the number of files in the first database table and the size of the backup set are analyzed, and combined with the actual completion status and completion time of the transfer backup, the purpose of analyzing the transferred backup data is achieved, so as to facilitate the subsequent optimization and improvement of the capacity expansion of the backup media server.

[0057] Figure 2 Schematic diagram of an optional data information processing system provided according to an embodiment of the present application. Figure 2As shown, the embodiment of the present application provides an optional data information processing system, in which the backup set and database backup status are obtained on the distributed file system cluster regularly through the circular backup set check module and recorded in a unified database table. Different NBU backup strategies and policy states are defined in the transfer strategy module, wherein the policy state includes startup and shutdown. The circular main transfer task module is deployed on the backup media server, and the backup traffic is changed from IP to FC optical fiber through the underlying link library of the NBU backup software on the backup media server, thereby improving the transfer rate. The caller is activated regularly, and the application that needs to be transferred is clearly defined according to the setting of the transfer strategy module, and the backup set and distributed file system cluster information of the application are obtained. According to the distributed file system cluster as a group (multiple clusters cannot be mixed in one batch, because the situation involving OBS3.0 requires the registration of the distributed file system cluster, and only one cluster can be on the backup media server at the same time), the transfer task is performed in batches. At the same time, the backup media server bandwidth is backed up, and the transfer previous generation subtask (concurrent transfer on-band module) is set according to the adjustable concurrent speed. The transfer on-band module is deployed to execute the transfer previous generation tasks of each backup set according to the concurrent serial. It is mainly divided into: check whether the backup set exists; check temporary space; download the backup set; check the backup set download; compress and encrypt the backup set; transfer the backup to tape; clean up the temporary space. When the transfer module is completed or the task reports an error, update the database information for later reference; deploy the transfer data analysis module, obtain the backup status and transfer status of the current target database by regularly scanning the status of the backup set records in the database, and generate reports and alarms to the operation and maintenance personnel in a timely manner to ensure the success of data transfer and performance optimization.

[0058] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0059] The embodiment of the present application also provides a data information processing device. It should be noted that the data information processing device of the embodiment of the present application can be used to execute the data information processing method provided in the embodiment of the present application. The data information processing device provided in the embodiment of the present application is introduced below.

[0060] Figure 3 Schematic diagram of a data information processing device according to an embodiment of the present application. Figure 3 As shown, the device includes: a first acquisition unit 301, a first determination unit 302, a configuration unit 303, and a backup unit 304.

[0061] Specifically, the first acquisition unit 301 is used to acquire the backup information of multiple applications in the target database by scanning the distributed file system;

[0062] The first determining unit 302 is used to determine a backup strategy for backing up backup information of multiple applications to the NBU backup system, wherein the backup strategy is a strategy determined according to the level of each application and the backup type corresponding to each application, wherein the backup type is one of the following: full, incremental;

[0063] A configuration unit 303, configured to configure multiple backup media servers according to the number of applications to be backed up in the backup information;

[0064] The backup unit 304 is used to back up the backup information of multiple applications in the target database to the NBU backup system through each backup media server according to the backup information and the backup policy.

[0065] The data information processing device provided in the embodiment of the present application scans the distributed file system and obtains the backup information of multiple applications in the target database through the first acquisition unit 301; determines the backup strategy of backing up the backup information of the multiple applications to the NBU backup system through the first determination unit 302, wherein the backup strategy is a strategy determined according to the level of each application and the backup type corresponding to each application, wherein the backup type is one of the following: full, incremental; configures multiple backup media servers according to the number of applications to be backed up in the backup information through the configuration unit 303; and backs up the backup information of multiple applications in the target database to the NBU backup system according to the backup information and the backup strategy on each backup media server through the backup unit 304. The problem that the NBU backup system in the related art is difficult to back up the target database is solved, thereby realizing the backup of the target database to the NBU backup system, thereby achieving the effect of improving the backup security and data security of the target database.

[0066] Optionally, in the data information processing device provided in the embodiment of the present application, the first acquisition unit 301 includes: a scanning subunit, used to cyclically scan the file directory under the distributed file system to obtain a backup set of the file directory under the distributed file system; an analysis subunit, used to analyze the backup set data of the file directory under the distributed file system to obtain backup information of multiple applications in the target database.

[0067] Optionally, in the data information processing device provided in the embodiment of the present application, the first determination unit 302 includes: a first determination subunit, used to determine the level of each application in the distributed file system; a second determination subunit, used to determine the backup type corresponding to each application in the distributed file system; a policy subunit, used to configure the backup policy of each application according to the level of each application and the backup type corresponding to each application, and set the policy status of the backup policy of each application, wherein the policy status is started or shut down; a third determination subunit, used to determine the backup policy to be backed up to the NBU backup system according to the backup policy of each application and the policy status of the backup policy of each application.

[0068] Optionally, in the data information processing device provided in the embodiment of the present application, the device also includes: a second determination unit, which is used to configure multiple backup media servers according to the number of applications to be backed up in the backup information, and after detecting that the backup program is started, determine the application that needs to be backed up among multiple applications of the distributed file system to obtain the target application; a third determination unit, which is used to determine the backup policy corresponding to the target application from the backup policy of the NBU backup system; a second acquisition unit, which is used to acquire the backup set corresponding to the target application from the backup information; and a first generation unit, which is used to generate a backup list based on the target application, the backup policy corresponding to the target application, and the backup set corresponding to the target application.

[0069] Optionally, in the data information processing device provided in the embodiment of the present application, the backup unit 304 includes: a task queue sub-unit, used to create a task queue on each backup media server and input the backup list into the task queue; a fourth determination sub-unit, used to obtain the backup set corresponding to the target application through the task queue, and determine the information in the distributed file system where the backup set corresponding to the target application is located; a backup sub-unit, used to back up the backup set corresponding to the target application to the NBU backup system based on the backup set corresponding to the target application and the information in the distributed file system where it is located.

[0070] Optionally, in the data information processing device provided in the embodiment of the present application, the backup subunit includes: a determination module, used to determine whether the backup set corresponding to the target application exists in the distributed file system based on the information in the distributed file system where the backup set corresponding to the target application is located; a judgment module, used to determine whether the space occupied by the backup set corresponding to the target application is smaller than the size of the temporary space in the backup media server if it exists; a comparison module, used to store the backup set corresponding to the target application in the temporary space in the backup media server if the space occupied by the backup set corresponding to the target application is smaller than the size of the temporary space in the backup media server; a backup module, used to back up the backup set corresponding to the target application in the temporary space under the backup media server to the NBU backup system.

[0071] Optionally, in the data information processing device provided in the embodiment of the present application, the backup module includes: a processing sub-module, used to compress and encrypt the backup set corresponding to the target application in the temporary space of the backup media server to obtain a processed backup set; a backup sub-module, used to back up the processed backup set to the NBU backup system according to the backup policy corresponding to the target application.

[0072] Optionally, in the data information processing device provided in the embodiment of the present application, the device also includes: a third acquisition unit, which is used to scan the NBU backup system according to a preset time period to obtain the backup status information of the target database after backing up the backup information of multiple applications in the target database to the NBU backup system according to the backup information and the backup policy through each backup media server, wherein the backup status information includes at least the backup status and backup status of the target database; a second generation unit, which is used to generate backup report information based on the backup status information of the target database in the NBU backup system.

[0073] The above-mentioned data information processing device includes a processor and a memory. The above-mentioned acquisition unit 301, determination unit 302, configuration unit 303, and backup unit 304 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0074] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set. By adjusting the kernel parameters, the problem that the NBU backup system is difficult to back up the target database is solved.

[0075] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0076] The present application also provides a computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the program has the following method steps: obtaining backup information of multiple applications in a target database by scanning a distributed file system; determining a backup strategy for backing up the backup information of multiple applications to an NBU backup system, wherein the backup strategy is a strategy determined based on the level of each application and the backup type corresponding to each application, wherein the backup type is one of the following: full, incremental; configuring multiple backup media servers based on the number of applications to be backed up in the backup information; and backing up the backup information of multiple applications in the target database to the NBU backup system through each backup media server based on the backup information and the backup strategy.

[0077] When the computer program is executed by the processor, there is also a program with the following method steps: obtaining backup information of multiple applications in the target database by scanning the distributed file system includes: cyclically scanning the file directory under the distributed file system to obtain the backup set of the file directory under the distributed file system; analyzing the backup set data of the file directory under the distributed file system to obtain the backup information of multiple applications in the target database.

[0078] When the computer program is executed by the processor, there is also a program with the following method steps: determining a backup strategy for backing up backup information of multiple applications to an NBU backup system includes: determining the level of each application in a distributed file system; determining a backup type corresponding to each application in a distributed file system; configuring a backup strategy for each application based on the level of each application and the backup type corresponding to each application, and setting a policy status of the backup strategy for each application, wherein the policy status is enabled or disabled; determining a backup strategy to be backed up to an NBU backup system based on the backup strategy of each application and the policy status of the backup strategy of each application.

[0079] When the computer program is executed by the processor, there is also a program with the following method steps: after configuring multiple backup media servers according to the number of applications to be backed up in the backup information, the method also includes: after detecting that the backup program is started, determining the application that needs to be backed up among the multiple applications of the distributed file system to obtain the target application; determining the backup policy corresponding to the target application from the backup policy of the NBU backup system; obtaining the backup set corresponding to the target application from the backup information; and generating a backup list based on the target application, the backup policy corresponding to the target application, and the backup set corresponding to the target application.

[0080] When the computer program is executed by the processor, there is also a program with the following method steps: through each backup media server, according to the backup information and the backup strategy, the backup information of multiple applications in the target database is backed up to the NBU backup system, including: creating a task queue on each backup media server, and inputting the backup list into the task queue; obtaining the backup set corresponding to the target application through the task queue, and determining the information in the distributed file system where the backup set corresponding to the target application is located; based on the backup set corresponding to the target application and the information in the distributed file system where it is located, backing up the backup set corresponding to the target application to the NBU backup system.

[0081] When the computer program is executed by the processor, there is also a program with the following method steps: based on the backup set corresponding to the target application and the information in the distributed file system where the backup set is located, backing up the backup set corresponding to the target application to the NBU backup system includes: based on the information in the distributed file system where the backup set corresponding to the target application is located, determining whether the backup set corresponding to the target application exists in the distributed file system; if so, determining whether the space occupied by the backup set corresponding to the target application is smaller than the size of the temporary space in the backup media server; if the space occupied by the backup set corresponding to the target application is smaller than the size of the temporary space in the backup media server, storing the backup set corresponding to the target application in the temporary space in the backup media server; and backing up the backup set corresponding to the target application in the temporary space on the backup media server to the NBU backup system.

[0082] When the computer program is executed by the processor, there is also a program with the following method steps: backing up the backup set corresponding to the target application in the temporary space of the backup media server to the NBU backup system includes: compressing and encrypting the backup set corresponding to the target application in the temporary space of the backup media server to obtain a processed backup set; and backing up the processed backup set to the NBU backup system according to the backup policy corresponding to the target application.

[0083] When the computer program is executed by the processor, there is also a program with the following method steps: after backing up the backup information of multiple applications in the target database to the NBU backup system through each backup media server according to the backup information and the backup strategy, the method also includes: scanning the NBU backup system to obtain the backup status information of the target database according to a preset time period, wherein the backup status information at least includes the backup state and backup status of the target database; generating backup report information based on the backup status information of the target database in the NBU backup system.

[0084] The embodiment of the present application also provides an electronic device, Figure 44 is a schematic diagram of an electronic device according to an embodiment of the present application, wherein the electronic device 40 comprises a processor and a memory; the memory stores computer-readable instructions, and the processor is used to execute the computer-readable instructions, wherein a method for processing data information is executed when the computer-readable instructions are executed. The electronic device in this article may be a server, a PC, a PAD, a mobile phone, etc.

[0085] 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 (CD-ROM, optical storage, etc.) that include computer-usable program code.

[0086] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 generate 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.

[0087] 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.

[0088] 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 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0089] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0090] The memory may include non-permanent memory 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.

[0091] 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 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.

[0092] 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.

[0093] The above are only embodiments of the present application and are 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 within the scope of the claims of the present application.

Claims

1. A method for processing data information, characterized in that: include: Obtain backup information of multiple applications in the target database by scanning the distributed file system; Determine a backup strategy for backing up the backup information of the multiple applications to the NBU backup system, wherein the backup strategy is a strategy determined according to the level of each application and the backup type corresponding to each application, wherein the backup type is one of the following: full, incremental; According to the number of applications to be backed up in the backup information, multiple backup media servers are configured; Through each backup media server, the backup information of multiple applications in the target database is backed up to the NBU backup system according to the backup information and the backup strategy.

2. The method according to claim 1, characterized in that: The backup information of multiple applications in the target database obtained by scanning the distributed file system includes: Circularly scanning the file directory under the distributed file system to obtain a backup set of the file directory under the distributed file system; The backup set data of the file directory under the distributed file system is analyzed to obtain the backup information of multiple applications in the target database.

3. The method according to claim 1, characterized in that Determining the backup strategy for backing up the backup information of the multiple applications to the NBU backup system includes: Determining the level of each application in the distributed file system; Determine a backup type corresponding to each application in the distributed file system; According to the level of each application and the backup type corresponding to each application, configure the backup strategy of each application, and set the policy state of the backup strategy of each application, wherein the policy state is enabled or disabled; The backup policy to be backed up to the NBU backup system is determined according to the backup policy of each application and the policy status of the backup policy of each application.

4. The method according to claim 1, characterized in that: After configuring multiple backup media servers according to the number of applications to be backed up in the backup information, the method further includes: After detecting that the backup program is started, determining an application that needs to be backed up among the multiple applications of the distributed file system, and obtaining a target application; Determine the backup policy corresponding to the target application from the backup policy of the NBU backup system; Obtaining a backup set corresponding to the target application from the backup information; A backup list is generated according to the target application, a backup policy corresponding to the target application, and a backup set corresponding to the target application.

5. The method according to claim 4, characterized in that Backing up the backup information of multiple applications in the target database to the NBU backup system according to the backup information and the backup policy through each backup media server includes: Creating a task queue on each backup media server, and inputting the backup list into the task queue; Acquire the backup set corresponding to the target application through the task queue, and determine the information of the backup set corresponding to the target application in the distributed file system; The backup set corresponding to the target application is backed up to the NBU backup system according to the backup set corresponding to the target application and the information in the distributed file system.

6. The method according to claim 5, characterized in that Backing up the backup set corresponding to the target application to the NBU backup system according to the backup set corresponding to the target application and the information in the distributed file system includes: Determine whether the backup set corresponding to the target application exists in the distributed file system according to the information of the backup set corresponding to the target application in the distributed file system; If so, determining whether the size of the space occupied by the backup set corresponding to the target application is smaller than the size of the temporary space in the backup medium server; If the size of the space occupied by the backup set corresponding to the target application is smaller than the size of the temporary space in the backup medium server, the backup set corresponding to the target application is stored in the temporary space in the backup medium server; The backup set corresponding to the target application in the temporary space under the backup media server is backed up to the NBU backup system.

7. The method according to claim 6, characterized in that Backing up the backup set corresponding to the target application in the temporary space under the backup media server to the NBU backup system includes: Compressing and encrypting the backup set corresponding to the target application in the temporary space of the backup medium server to obtain a processed backup set; The processed backup set is backed up to the NBU backup system according to the backup policy corresponding to the target application.

8. The method according to claim 1, characterized in that After backing up the backup information of multiple applications in the target database to the NBU backup system through each backup media server according to the backup information and the backup policy, the method further includes: Scan the NBU backup system to obtain backup status information of the target database according to a preset time period, wherein the backup status information at least includes the backup state and backup status of the target database; Generate backup report information based on the backup status information of the target database in the NBU backup system.

9. A data information processing device, characterized in that: include: A first acquisition unit, configured to acquire backup information of multiple applications in a target database by scanning a distributed file system; A first determining unit is used to determine a backup strategy for backing up the backup information of the multiple applications to the NBU backup system, wherein the backup strategy is a strategy determined according to the level of each application and the backup type corresponding to each application, wherein the backup type is one of the following: full amount, incremental; A configuration unit, configured to configure multiple backup media servers according to the number of applications to be backed up in the backup information; The backup unit is used to back up the backup information of multiple applications in the target database to the NBU backup system through each backup media server according to the backup information and the backup strategy.

10. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to execute the data information processing method according to any one of claims 1 to 8 through the computer program.

11. A computer program product, characterized in that It comprises a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for processing data information according to any one of claims 1 to 8 is implemented.