[go: up one dir, main page]

WO2025098218A1 - Data object backup method and apparatus, device, and medium - Google Patents

Data object backup method and apparatus, device, and medium Download PDF

Info

Publication number
WO2025098218A1
WO2025098218A1 PCT/CN2024/128542 CN2024128542W WO2025098218A1 WO 2025098218 A1 WO2025098218 A1 WO 2025098218A1 CN 2024128542 W CN2024128542 W CN 2024128542W WO 2025098218 A1 WO2025098218 A1 WO 2025098218A1
Authority
WO
WIPO (PCT)
Prior art keywords
data object
list
matching rule
backup
set matching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/128542
Other languages
French (fr)
Chinese (zh)
Inventor
钱红江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aishu Technology Corp
Original Assignee
Aishu Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aishu Technology Corp filed Critical Aishu Technology Corp
Publication of WO2025098218A1 publication Critical patent/WO2025098218A1/en
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches

Definitions

  • the present application relates to the technical field of data disaster recovery, for example, to a data object backup method, device, equipment and medium.
  • Backup is an essential means to deal with information technology (IT) risks and is inextricably linked to data.
  • the categories and levels of data objects change dynamically (such as the popularity of data, the importance of data, etc.), and different categories of data objects often require different recovery point objectives (RPO), that is, different backup plans.
  • RPO recovery point objectives
  • data objects and backup plans are often strongly bound, and backup plans cannot dynamically adapt to changes in data object categories, which brings management burdens to backup operation and maintenance personnel.
  • the present application provides a data object backup method, apparatus, equipment and medium, which can dynamically match the data backup plan to perform backup according to the changes of the data object, so as to better manage the backup and help operation and maintenance personnel improve the efficiency of disaster recovery management.
  • a data object backup method comprising:
  • the target data object list is backed up according to the backup plan to obtain a backup result of the target data list.
  • determining a corresponding target data object list from the data object resource information based on the set matching rule list includes:
  • the target data object is placed into an empty data object list to obtain a target data object list.
  • determining a corresponding target data object from the data object list based on the set matching rule list includes:
  • the traversed data object In response to the traversed data object meeting at least one set matching rule, the traversed data object is determined as a target data object.
  • determining the traversed data object as a target data object includes:
  • the data object is determined as a target data object of the set matching rule with the highest priority among the at least two set matching rules.
  • determining a corresponding target data object from the data object list based on the set matching rule list includes:
  • the corresponding target data object is determined from the data object list based on the sorted set matching rule list.
  • the corresponding data object list is determined based on the sorted set matching rule list.
  • the target data objects include:
  • the set matching rule is formed by combining matching conditions of at least two classification dimensions through set logic; the set logic includes: at least one of: AND logic, NOT logic, and OR logic; the classification dimensions are the same dimension or different dimensions.
  • An acquisition module configured to acquire data object resource information and set a matching rule list; wherein the data object resource information includes classification dimensions, categories and data object lists of data objects;
  • a backup plan determination module configured to determine a corresponding backup plan according to the set matching rule list
  • the target data object backup module is configured to back up the target data object list according to the backup plan to obtain a backup result of the target data object list.
  • an electronic device comprising:
  • a computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data object backup method described in any embodiment of the present application when executed.
  • FIG1 is a flow chart of a data object backup method provided according to Embodiment 1 of the present application.
  • FIG2 is a flow chart of a data object backup method provided according to Embodiment 2 of the present application.
  • FIG. 3 is a schematic diagram of the structure of a data object backup device provided according to Embodiment 3 of the present application.
  • FIG4 is a schematic diagram of the structure of an electronic device provided according to a fourth embodiment of the present application.
  • FIG1 is a flow chart of a data object backup method provided according to Embodiment 1 of the present application. This embodiment is applicable to the case of backing up various data objects.
  • the method can be executed by a data object backup device.
  • the data object backup device can be implemented in the form of hardware and/or software.
  • the data object backup device can be configured in an electronic device with data processing capabilities. As shown in FIG1 , the method includes:
  • the backup system can be executed by the backup system, and can form resource information after hierarchical and classified management of various data objects within the information technology (IT) system. It can be called by the backup system through an open application programming interface (API), so that the backup plan can be configured based on the data category. When the data object to be backed up belongs to the specified category, the backup plan will trigger the backup of this data object.
  • API application programming interface
  • the data object may be any data object in an IT system.
  • the objects may be virtual machines or database instances.
  • the set matching rule list may be a pre-set matching rule list.
  • the set matching rule list in this embodiment may include a set number of matching rules. The set number may be set according to actual needs. Exemplarily, the set matching rule list in this embodiment may include ten matching rules.
  • the data object resource information includes the classification dimension, category and data object list of the data object.
  • the classification dimension can be understood as the dimension for classifying and setting the data object.
  • the data objects can be divided into different categories according to different classification dimensions.
  • the classification dimension may include dimensions such as data popularity, data importance, data volume, data creation time and data owner.
  • the category can be the category obtained by dividing the data object according to the classification dimension.
  • obtaining the data object resource information can be understood as the operation of synchronizing the data object resource information. In this embodiment, when backing up the data object, the latest data object resource information is synchronized.
  • the resource information Since the data objects in the resource information may change at any time, the data objects may be added or removed, and the categories of the data objects in different dimensions may also change at any time. Therefore, before the backup plan is triggered, the resource information will be synchronized first to obtain the latest data object resource information, so as to ensure the accuracy of the backup object.
  • the data object when the classification dimension is set to data heat, can be divided into three categories: hot, warm and cold according to the data heat dimension.
  • the category to which the data object belongs under the data heat dimension can be determined according to the access frequency of a data object within a set time period. When the frequency of accessing a certain data object exceeds the set range, the category to which the certain data object belongs is hot.
  • the importance of data can be divided into categories such as core, important, general and secondary.
  • the classification dimension in this embodiment can be set according to actual needs.
  • the data object in this embodiment can belong to multiple categories under different dimensions. Exemplarily, a data object is classified as "hot” under the dimension of "data heat” and as "core” under the dimension of "importance".
  • the data object list can be understood as all data objects included in the system.
  • resource information such as classification dimensions, categories and data object lists of data objects in the system and a pre-set matching rule list can be obtained.
  • one or more categories of a set classification dimension in the data object resource information, or multiple categories of multiple set classification dimensions can be added, which can be configured according to actual needs.
  • the setting matching rule can be formed by combining the matching conditions of at least two classification dimensions through setting logic; the setting logic includes: at least one of: AND logic, NOT logic, and OR logic; the classification dimensions are the same dimension or different dimensions.
  • the matching condition can be understood as a category condition determined from at least two classification dimensions.
  • the matching condition can be the "core" category in the "importance” classification dimension.
  • the matching rules can be pre-set based on the backup device so that the data object can configure the corresponding backup plan based on the matching rules.
  • the set matching rules in this embodiment can be used to match and filter out all data objects that meet specific rules.
  • multiple categories under the same classification dimension can be added to one matching rule, and the categories can be in an "or” relationship.
  • the importance of a data object is "core” or "important”.
  • multiple categories under different classification dimensions can be added to one matching rule, and the categories can be specified as "and” or "or” relationships.
  • the importance of a data object is a category of "core” or the heat of the data is a category of "hot”; the importance of a data object is a category of "core” and the heat of the data is a category of "hot”.
  • each matching rule in the matching rule list can be flexibly configured according to actual business needs, so as to facilitate the backup of data objects.
  • S120 Determine a corresponding target data object list from the data object resource information based on the set matching rule list.
  • the target data object list may include multiple target data objects.
  • the target data object list in this embodiment may correspond to the set matching rule list.
  • matching can be performed from data object resource information according to each matching rule in the set matching rule list, and the data object that meets the matching rule is used as the target data object corresponding to the matching rule, thereby determining the target data object corresponding to each matching rule to obtain a target data object list.
  • the backup plan can be pre-configured according to each matching rule in the set matching rule list.
  • the backup plan can back up the data object.
  • the backup plan can include the backup time and the backup type.
  • the backup type can include incremental backup and full backup.
  • the backup plan can be a full backup at 20:00 every day, and an incremental backup every 4 hours.
  • Each matching rule in this embodiment can correspond to a backup plan.
  • Each matching rule in this embodiment is pre-configured with a corresponding backup plan, and the corresponding backup plan can be determined according to each matching rule in the set matching rule list.
  • S140 Back up the target data object list according to the backup plan to obtain a backup result of the target data list.
  • the backup plan matching rules in this embodiment correspond to the binding.
  • the data object resource information can be automatically synchronized and the data objects can be screened and matched. After all the target data objects under the corresponding matching rules are obtained, the backup operation is performed.
  • a backup plan corresponding to each matching rule can be determined according to the set matching rule list, and each target data in the target data list can be backed up according to the determined backup plan, so that the backup result corresponding to each target data in the target data list can be obtained.
  • the embodiment of the present application obtains data object resource information and sets a matching rule list; wherein, The object resource information includes the classification dimension, category and data object list of the data object; the corresponding target data object list is determined from the data object resource information based on the set matching rule list; the corresponding backup plan is determined according to the set matching rule list; the target data object list is backed up according to the backup plan to obtain the backup result of the target data list.
  • the embodiment of the present application can dynamically match the data backup plan to perform backup according to the change of the data object, so as to better perform backup management and help operation and maintenance personnel improve the efficiency of disaster recovery management.
  • FIG2 is a flow chart of a data object backup method provided according to the second embodiment of the present application. This embodiment is modified based on the above embodiment. Specifically, based on the set matching rule list, a corresponding target data object list is determined from the data object resource information, including: creating an empty data object list; based on the set matching rule list, a corresponding target data object is determined from the data object list; and the target data object is placed in the empty data object list to obtain the target data object list. As shown in FIG2, the method includes:
  • the data object resource information includes the classification dimensions, categories and data object lists of the data objects.
  • S220 Create an empty data object list.
  • the empty data object list can be understood as a blank data object list.
  • an empty data object list can be created to store target data objects corresponding to each matching rule in the set matching rule list.
  • S230 Determine a corresponding target data object from the data object list based on the set matching rule list.
  • the target data object may be a data object that meets each matching condition in the matching rule.
  • each data object can be traversed from the data object list to determine the target data object corresponding to each setting matching rule.
  • determining a corresponding target data object from a data object list based on a set matching rule list includes: traversing the data objects in the data list; comparing the traversed data object with a plurality of set matching rules in the set matching rule list; and determining the traversed data object as a target data object in response to the traversed data object satisfying at least one set matching rule.
  • all data objects in the data list obtained from the data object resource information can be traversed, and the traversed data objects can be compared with each set matching rule in the set matching rule list.
  • the traversed data object can be determined as the target data object corresponding to the set matching rule.
  • all data objects can be traversed, so that the corresponding matching rules can be determined according to the changes in data categories.
  • the corresponding matching rules can be determined according to the changed data object, thereby facilitating the execution of the corresponding backup plan.
  • At least two setting matching rules can be understood as two or more setting matching rules.
  • all data objects in the system are traversed, and the data object may simultaneously satisfy multiple setting matching rules in the setting matching rule list.
  • the priority can be pre-set for the setting matching rule.
  • the priority of the set matching rules can be set.
  • the target data object When a data object satisfies multiple set matching rules at the same time, the target data object will be determined according to the priority.
  • the data object When the data object satisfies the matching rule with a high priority, it will no longer match the matching rule with a low priority, thereby avoiding the situation where the data object corresponds to multiple set matching rules.
  • determining the corresponding target data object from the data object list based on the set matching rule list includes: sorting the set matching rules in the set matching rule list in descending order of priority; and selecting the corresponding target data object from the data object list based on the sorted set matching rule list. Determine the corresponding target data object.
  • the setting matching rules in the setting matching rule list can be sorted in descending order of priority, and then the data object list is traversed according to each setting matching rule in the sorted setting matching rule list to determine the corresponding target data objects.
  • the setting matching rules are read sequentially from the sorted setting matching rule list, and the setting matching rules can be read one by one from the setting matching rule list in descending order of priority.
  • the traversed data object is compared with the read setting matching rule, which can be understood as a process of comparing the traversed data object with the matching condition in the setting matching rule to determine whether it meets the matching condition.
  • the data objects in the data list can be traversed; the setting matching rules can be read from the sorted setting matching rule list in sequence, and the traversed data objects can be compared with the read setting matching rules.
  • the data object can be determined as the target data object of the read setting matching rules, and the reading of the setting matching rules can be stopped, and the next data object can be traversed continuously, and the setting matching rules can be read continuously for the next data object and compared.
  • the data object not meeting the set matching rule read continue to read the next set matching rule, and return to continue to perform the operation of comparing the traversed data object with the read set matching rule until the data object traversal is completed.
  • data objects and matching rules can be traversed separately to determine the target data objects corresponding to each set matching rule, so as to respond to changes in data objects to match the set matching rules, thereby performing corresponding backups, while saving the daily adjustment work of the backup plan and simplifying operation and maintenance.
  • S240 Put the target data object into an empty data object list to obtain a target data object list.
  • the target data object list may include multiple target data objects. Each target data object in the target data object list may correspond to each matching rule in the set matching rule list. In this embodiment, the target objects that meet each set matching rule may be put into the empty data object list to obtain the target data object list.
  • S250 Determine a corresponding backup plan according to the set matching rule list.
  • S260 Back up the target data object list according to the backup plan to obtain a backup result of the target data list.
  • the corresponding matching rules can be matched according to the categories in the classification dimension of the data object, so that the corresponding backup plan can be configured for the setting matching rules, so that the backup plan can be automatically adjusted, meeting the demand for dynamically adjusting the RPO of the data object according to the classification results.
  • data object resource information is obtained and a matching rule list is set; wherein the data object resource information includes the classification dimension, category and data object list of the data object; an empty data object list is created; the corresponding target data object is determined from the data object list based on the set matching rule list; the target data object is placed in the empty data object list to obtain the target data object list; the corresponding backup plan is determined according to the set matching rule list; the target data object list is backed up according to the backup plan to obtain the backup result of the target data list.
  • the embodiment of the present application can dynamically match the data backup plan to perform backup according to the change of the data object, so as to better perform backup management and help operation and maintenance personnel improve the efficiency of disaster recovery management.
  • FIG3 is a schematic diagram of the structure of a data object backup device provided according to Embodiment 3 of the present application.
  • the device comprises:
  • the acquisition module 310 is configured to acquire data object resource information and set a matching rule list.
  • the data object resource information includes the classification dimensions, categories and data object lists of the data objects.
  • the target data object determination module 320 is configured to determine a corresponding target data object list from the data object resource information based on a set matching rule list.
  • a backup plan determination module 330 configured to determine a corresponding backup plan according to a set matching rule list
  • the target data object backup module 340 is configured to back up the target data object list according to the backup plan to obtain a backup result of the target data object list.
  • the target data object determination module 320 includes:
  • Empty list creation unit set to create an empty data object list
  • a target data object determination unit configured to determine a corresponding target data object from a data object list based on a set matching rule list
  • the data object list obtaining unit is configured to put the target data object into an empty data object list to obtain a target data object list.
  • the target data object determination unit includes:
  • a data object traversal subunit is configured to traverse the data objects in the data list
  • a comparison subunit configured to compare the traversed data object with a plurality of set matching rules in a set matching rule list
  • the first target object determination subunit is configured to determine the traversed data object as a target data object in response to the traversed data object meeting at least one set matching rule.
  • the first target object determination subunit is configured to determine the traversed data object as the target data object in the following manner: in response to the traversed data object satisfying at least two set matching rules, determining the data object as the target data object of the set matching rule with the highest priority among the at least two set matching rules.
  • the target data object determination unit includes:
  • a sorting subunit is configured to sort the set matching rules in the set matching rule list in descending order of priority
  • the second target object determination subunit is configured to determine the corresponding target data object from the data object list based on the sorted setting matching rule list in the following manner: traversing the data objects in the data list; reading the setting matching rules from the sorted setting matching rule list in sequence, and comparing the traversed data objects with the read setting matching rules; in response to the data object satisfying the read setting matching rules, determining the data object as the target data object of the read setting matching rules, stopping reading the setting matching rules, and continuing to traverse the next data object; in response to the data object not satisfying the read setting matching rules, continuing to read the next setting matching rule, and returning to perform the operation of comparing the traversed data object with the read setting matching rules until the data object traversal is completed.
  • the setting matching rule is formed by combining the matching conditions of at least two classification dimensions through setting logic;
  • the setting logic includes: at least one of: AND logic, NOT logic, and OR logic;
  • the classification dimensions are the same dimension or different dimensions.
  • a data object backup device provided in an embodiment of the present application can execute a data object backup method provided in any embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method.
  • a computing system may include a client and a server.
  • the client and the server are generally remote from each other and usually interact through a communication network.
  • the client and server relationship is generated by computer programs running on the respective computers and having a client-server relationship with each other.
  • the server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.
  • VPN virtual private servers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A data object backup method and apparatus, a device, and a medium. The method comprises: acquiring data object resource information and a set matching rule list, wherein the data object resource information comprises the classification dimensions and categories of data objects, as well as a data object list; on the basis of the set matching rule list, determining a corresponding target data object list from the data object resource information; on the basis of the set matching rule list, determining a corresponding backup plan; and on the basis of the backup plan, backing the target data object list up to obtain a backup result of the target data object list. The present solution can dynamically match data backup plans for backup on the basis of changes in data objects, achieving better backup management.

Description

数据对象备份方法、装置、设备及介质Data object backup method, device, equipment and medium

本申请要求在2023年11月08日提交中国专利局、申请号为202311484914.5的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on November 8, 2023, with application number 202311484914.5, the entire contents of which are incorporated by reference into this application.

技术领域Technical Field

本申请涉及数据灾备技术领域,例如涉及一种数据对象备份方法、装置、设备及介质。The present application relates to the technical field of data disaster recovery, for example, to a data object backup method, device, equipment and medium.

背景技术Background Art

近年来,随着数字化转型的不断推进,数据成为组织内部越来越重要的资产。为了更好的管理和使用数据,越来越多的行业提出数据的分级分类需求和规范。值得注意的是,数据对象往往需要进行周期性盘点,以确定数据的最新分类。In recent years, with the continuous advancement of digital transformation, data has become an increasingly important asset within organizations. In order to better manage and use data, more and more industries have proposed data classification requirements and specifications. It is worth noting that data objects often need to be periodically counted to determine the latest classification of data.

备份作为应对信息技术(Information Technology,IT)风险的必要手段,与数据有着不可分割的联系。数据对象的类别、等级会动态变化(如数据的热度、数据的重要程度等等),不同类别的数据对象往往需要不同的恢复点目标(Recovery Point Objective,RPO),即不同的备份计划。传统的备份系统下,数据对象与备份计划往往强绑定,备份计划无法动态适应数据对象类别的变化,这就给备份运维人员带来了管理上的负担。Backup is an essential means to deal with information technology (IT) risks and is inextricably linked to data. The categories and levels of data objects change dynamically (such as the popularity of data, the importance of data, etc.), and different categories of data objects often require different recovery point objectives (RPO), that is, different backup plans. In traditional backup systems, data objects and backup plans are often strongly bound, and backup plans cannot dynamically adapt to changes in data object categories, which brings management burdens to backup operation and maintenance personnel.

发明内容Summary of the invention

本申请提供了一种数据对象备份方法、装置、设备及介质,可以根据数据对象的变化,动态匹配数据备份计划执行备份,以此更好的进行备份管理,帮助运维人员提升灾备管理效率。The present application provides a data object backup method, apparatus, equipment and medium, which can dynamically match the data backup plan to perform backup according to the changes of the data object, so as to better manage the backup and help operation and maintenance personnel improve the efficiency of disaster recovery management.

根据本申请的一方面,提供了一种数据对象备份方法,包括:According to one aspect of the present application, a data object backup method is provided, comprising:

获取数据对象资源信息和设定匹配规则列表;其中,所述数据对象资源信息包括数据对象的分类维度、类别以及数据对象清单;Obtaining data object resource information and setting a matching rule list; wherein the data object resource information includes classification dimensions, categories, and data object lists of data objects;

基于所述设定匹配规则列表从所述数据对象资源信息中确定对应的目标数据对象列表; Determining a corresponding target data object list from the data object resource information based on the set matching rule list;

根据所述设定匹配规则列表确定对应的备份计划;Determine a corresponding backup plan according to the set matching rule list;

根据所述备份计划对所述目标数据对象列表进行备份,以获得所述目标数据列表的备份结果。The target data object list is backed up according to the backup plan to obtain a backup result of the target data list.

可选的,所述基于所述设定匹配规则列表从所述数据对象资源信息中确定对应的目标数据对象列表,包括:Optionally, determining a corresponding target data object list from the data object resource information based on the set matching rule list includes:

创建空数据对象列表;Create a list of empty data objects;

基于所述设定匹配规则列表从所述数据对象清单中确定对应的目标数据对象;Determining a corresponding target data object from the data object list based on the set matching rule list;

将所述目标数据对象放入空数据对象列表中,以得到目标数据对象列表。The target data object is placed into an empty data object list to obtain a target data object list.

可选的,基于所述设定匹配规则列表从所述数据对象清单中确定对应的目标数据对象,包括:Optionally, determining a corresponding target data object from the data object list based on the set matching rule list includes:

遍历所述数据清单中数据对象;Traversing the data objects in the data list;

将遍历到的数据对象与所述设定匹配规则列表中的多个设定匹配规则进行比对;Comparing the traversed data object with a plurality of set matching rules in the set matching rule list;

响应于遍历到的所述数据对象符合至少一条设定匹配规则,将遍历到的所述数据对象确定为目标数据对象。In response to the traversed data object meeting at least one set matching rule, the traversed data object is determined as a target data object.

可选的,将遍历到的所述数据对象确定为目标数据对象,包括:Optionally, determining the traversed data object as a target data object includes:

响应于遍历的所述数据对象符合至少两条设定匹配规则,将所述数据对象确定为所述至少两条设定匹配规则中优先级最高的设定匹配规则的目标数据对象。In response to the traversed data object meeting at least two set matching rules, the data object is determined as a target data object of the set matching rule with the highest priority among the at least two set matching rules.

可选的,基于所述设定匹配规则列表从所述数据对象清单中确定对应的目标数据对象,包括:Optionally, determining a corresponding target data object from the data object list based on the set matching rule list includes:

对所述设定匹配规则列表中的设定匹配规则按照优先级由高到低的顺序进行排序;Sorting the set matching rules in the set matching rule list in order of priority from high to low;

基于排序后的设定匹配规则列表从所述数据对象清单中确定对应的目标数据对象。The corresponding target data object is determined from the data object list based on the sorted set matching rule list.

可选的,基于排序后的设定匹配规则列表从所述数据对象清单中确定对应 的目标数据对象,包括:Optionally, the corresponding data object list is determined based on the sorted set matching rule list. The target data objects include:

遍历所述数据清单中数据对象;Traversing the data objects in the data list;

从排序后的所述设定匹配规则列表中依次读取设定匹配规则,将遍历到的所述数据对象与读取到的设定匹配规则进行比对;Reading the setting matching rules from the sorted setting matching rule list in sequence, and comparing the traversed data object with the read setting matching rules;

响应于所述数据对象符合读取到的所述设定匹配规则,将所述数据对象确定为读取到的设定匹配规则的目标数据对象,并停止读取所述设定匹配规则,继续遍历下一个数据对象;In response to the data object meeting the set matching rule that has been read, determining the data object as a target data object of the set matching rule that has been read, stopping reading the set matching rule, and continuing to traverse the next data object;

响应于所述数据对象不符合读取到的所述设定匹配规则,继续读取下一个设定匹配规则,并返回执行将遍历到的所述数据对象与读取到的设定匹配规则进行比对的操作,直到所述数据对象遍历完成。In response to the data object not meeting the set matching rule that has been read, continue to read the next set matching rule, and return to perform the operation of comparing the traversed data object with the read set matching rule until the traversal of the data object is completed.

可选的,所述设定匹配规则是由至少两个分类维度的匹配条件通过设定逻辑组合而成;所述设定逻辑包括:与逻辑、非逻辑、以及或逻辑中的至少一种;所述分类维度为相同维度或者不同维度。Optionally, the set matching rule is formed by combining matching conditions of at least two classification dimensions through set logic; the set logic includes: at least one of: AND logic, NOT logic, and OR logic; the classification dimensions are the same dimension or different dimensions.

根据本申请的另一方面,提供了一种数据对象备份装置,包括:According to another aspect of the present application, a data object backup device is provided, comprising:

获取模块,设置为获取数据对象资源信息和设定匹配规则列表;其中,所述数据对象资源信息包括数据对象的分类维度、类别以及数据对象清单;An acquisition module, configured to acquire data object resource information and set a matching rule list; wherein the data object resource information includes classification dimensions, categories and data object lists of data objects;

目标数据对象确定模块,设置为基于所述设定匹配规则列表从所述数据对象资源信息中确定对应的目标数据对象列表;a target data object determination module, configured to determine a corresponding target data object list from the data object resource information based on the set matching rule list;

备份计划确定模块,设置为根据所述设定匹配规则列表确定对应的备份计划;A backup plan determination module, configured to determine a corresponding backup plan according to the set matching rule list;

目标数据对象备份模块,设置为根据所述备份计划对所述目标数据对象列表进行备份,以获得所述目标数据列表的备份结果。The target data object backup module is configured to back up the target data object list according to the backup plan to obtain a backup result of the target data object list.

根据本申请的另一方面,提供了一种电子设备,所述电子设备包括:According to another aspect of the present application, an electronic device is provided, the electronic device comprising:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行本申请 任一实施例所述的数据对象备份方法。The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the present application. The data object backup method described in any embodiment.

根据本申请的另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现本申请任一实施例所述的数据对象备份方法。According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data object backup method described in any embodiment of the present application when executed.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是根据本申请实施例一提供的一种数据对象备份方法的流程图;FIG1 is a flow chart of a data object backup method provided according to Embodiment 1 of the present application;

图2是根据本申请实施例二提供的一种数据对象备份方法的流程图;FIG2 is a flow chart of a data object backup method provided according to Embodiment 2 of the present application;

图3是根据本申请实施例三提供的一种数据对象备份装置的结构示意图;3 is a schematic diagram of the structure of a data object backup device provided according to Embodiment 3 of the present application;

图4是根据本申请实施例四提供的一种电子设备的结构示意图。FIG4 is a schematic diagram of the structure of an electronic device provided according to a fourth embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”以及“目标”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", and "target" 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 sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. 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 that includes a series of steps or units may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

实施例一Embodiment 1

图1是根据本申请实施例一提供的一种数据对象备份方法的流程图,本实施例可适用于对各种数据对象进行备份的情况,该方法可以由一种数据对象备份装置来执行,该一种数据对象备份装置可以采用硬件和/或软件的形式实现,该一种数据对象备份装置可配置于具有数据处理能力的电子设备中。如图1所示,该方法包括:FIG1 is a flow chart of a data object backup method provided according to Embodiment 1 of the present application. This embodiment is applicable to the case of backing up various data objects. The method can be executed by a data object backup device. The data object backup device can be implemented in the form of hardware and/or software. The data object backup device can be configured in an electronic device with data processing capabilities. As shown in FIG1 , the method includes:

可以由备份系统执行,可以对信息技术(Information Technology,IT)系统内的各种数据对象进行分级分类管理后形成资源信息,通过开放应用程序编程接口(Application Programming Interface,API)供备份系统调用,从而可基于数据类别配置备份计划,当要备份的数据对象属于指定的类别时,则备份计划会触发此数据对象的备份。It can be executed by the backup system, and can form resource information after hierarchical and classified management of various data objects within the information technology (IT) system. It can be called by the backup system through an open application programming interface (API), so that the backup plan can be configured based on the data category. When the data object to be backed up belongs to the specified category, the backup plan will trigger the backup of this data object.

S110、获取数据对象资源信息和设定匹配规则列表。S110: Obtain data object resource information and set a matching rule list.

其中,数据对象可以是IT系统中的各种数据对象。示例性的,数据对象可 以是虚拟机或者数据库实例等对象。设定匹配规则列表可以是预先设定好的匹配规则列表。本实施例中的设定匹配规则列表中可以包括设定数量的匹配规则。设定数量可以根据实际需求进行设定。示例性的,本实施例中的设定匹配规则列表可以包括十条匹配规则。The data object may be any data object in an IT system. The objects may be virtual machines or database instances. The set matching rule list may be a pre-set matching rule list. The set matching rule list in this embodiment may include a set number of matching rules. The set number may be set according to actual needs. Exemplarily, the set matching rule list in this embodiment may include ten matching rules.

其中,数据对象资源信息包括数据对象的分类维度、类别以及数据对象清单。分类维度可以理解为对数据对象进行分类设定的维度。本实施例中可以按照不同的分类维度将数据对象进行划分不同的类别。示例性的,分类维度可以包括数据热度、数据重要程度、数据量的大小、数据创建时间以及数据所属者等维度。类别可以是数据对象按照分类维度进行划分得到的类别。本实施例中获取数据对象资源信息可以理解为同步数据对象资源信息的操作,本实施例中对数据对象进行备份时,就同步最新的数据对象资源信息。由于资源信息中的数据对象可能会随时变化,数据对象可能有新增、有移除,数据对象在不同维度下的类别也随时可能发生变化。因此,在备份计划触发前,都会先同步资源信息,以获取最新的数据对象资源信息,从而确保备份对象的准确性。Among them, the data object resource information includes the classification dimension, category and data object list of the data object. The classification dimension can be understood as the dimension for classifying and setting the data object. In this embodiment, the data objects can be divided into different categories according to different classification dimensions. Exemplarily, the classification dimension may include dimensions such as data popularity, data importance, data volume, data creation time and data owner. The category can be the category obtained by dividing the data object according to the classification dimension. In this embodiment, obtaining the data object resource information can be understood as the operation of synchronizing the data object resource information. In this embodiment, when backing up the data object, the latest data object resource information is synchronized. Since the data objects in the resource information may change at any time, the data objects may be added or removed, and the categories of the data objects in different dimensions may also change at any time. Therefore, before the backup plan is triggered, the resource information will be synchronized first to obtain the latest data object resource information, so as to ensure the accuracy of the backup object.

可选的,当设定分类维度为数据热度时,数据对象可以依据数据热度维度分为热、温以及冷三个类别。本实施例中,可以按照设定时长内对一数据对象的访问频率确定该数据对象在数据热度维度下所属的类别。当访问某个数据对象的频率超过设定范围,则该某个数据对象所属的类别就是热。数据重要程度可以分为核心、重要、一般以及次要等类别。本实施例中的分类维度可以根据实际需求进行设定。本实施例中的数据对象在不同的维度下可以属于多个类别。示例性的,一个数据对象在“数据热度”的维度下类别为“热”,在“重要程度”的维度下类别为“核心”。数据对象清单可以理解为该系统中所包括的所有数据对象。本实施例中可以获取系统中数据对象的分类维度、类别以及数据对象清单等资源信息和预先设定好的匹配规则列表。本实施例的匹配规则中可添加数据对象资源信息中的一个设定分类维度的一个或多个类别,或者多个设定分类维度的多个类别,可以根据实际需求进行配置。Optionally, when the classification dimension is set to data heat, the data object can be divided into three categories: hot, warm and cold according to the data heat dimension. In this embodiment, the category to which the data object belongs under the data heat dimension can be determined according to the access frequency of a data object within a set time period. When the frequency of accessing a certain data object exceeds the set range, the category to which the certain data object belongs is hot. The importance of data can be divided into categories such as core, important, general and secondary. The classification dimension in this embodiment can be set according to actual needs. The data object in this embodiment can belong to multiple categories under different dimensions. Exemplarily, a data object is classified as "hot" under the dimension of "data heat" and as "core" under the dimension of "importance". The data object list can be understood as all data objects included in the system. In this embodiment, resource information such as classification dimensions, categories and data object lists of data objects in the system and a pre-set matching rule list can be obtained. In the matching rules of this embodiment, one or more categories of a set classification dimension in the data object resource information, or multiple categories of multiple set classification dimensions can be added, which can be configured according to actual needs.

在本实施例中,可选的,设定匹配规则可以是由至少两个分类维度的匹配条件通过设定逻辑组合而成;设定逻辑包括:与逻辑、非逻辑、以及或逻辑中的至少一种;分类维度为相同维度或者不同维度。In this embodiment, optionally, the setting matching rule can be formed by combining the matching conditions of at least two classification dimensions through setting logic; the setting logic includes: at least one of: AND logic, NOT logic, and OR logic; the classification dimensions are the same dimension or different dimensions.

其中,匹配条件可以理解为从至少两个分类维度中确定的类别条件。示例性的,匹配条件可以为“重要程度”分类维度中的“核心”类别。本实施例中,可以基于备份装置预先设定好匹配规则,以便于数据对象基于匹配规则来配置对应的备份计划。本实施例中的设定匹配规则可以用于匹配和筛选出满足特定规则的所有数据对象。 The matching condition can be understood as a category condition determined from at least two classification dimensions. Exemplarily, the matching condition can be the "core" category in the "importance" classification dimension. In this embodiment, the matching rules can be pre-set based on the backup device so that the data object can configure the corresponding backup plan based on the matching rules. The set matching rules in this embodiment can be used to match and filter out all data objects that meet specific rules.

可选的,本实施例中相同分类维度下的多个类别可添加到一个匹配规则中,各类别之间可以属于“或”的关系。例如,数据对象的重要程度为“核心”或者“重要”。本实施例中,不同分类维度下的多个类别可添加到一个匹配规则中,各类别之间可指定“与”或者“或”的关系。示例性的,数据对象的重要程度为“核心”的类别或者数据热度为“热”的类别;数据对象的重要程度为“核心”的类别并且数据热度为“热”的类别。Optionally, in this embodiment, multiple categories under the same classification dimension can be added to one matching rule, and the categories can be in an "or" relationship. For example, the importance of a data object is "core" or "important". In this embodiment, multiple categories under different classification dimensions can be added to one matching rule, and the categories can be specified as "and" or "or" relationships. Exemplarily, the importance of a data object is a category of "core" or the heat of the data is a category of "hot"; the importance of a data object is a category of "core" and the heat of the data is a category of "hot".

本实施例中通过这样的设置,可以根据业务实际需求灵活配置设定匹配规则列表中的各个匹配规则,以便于对数据对象进行备份。In this embodiment, through such a setting, each matching rule in the matching rule list can be flexibly configured according to actual business needs, so as to facilitate the backup of data objects.

S120、基于设定匹配规则列表从数据对象资源信息中确定对应的目标数据对象列表。S120: Determine a corresponding target data object list from the data object resource information based on the set matching rule list.

其中,目标数据对象列表可以包括多条目标数据对象。本实施例中的目标数据对象列表可以和设定匹配规则列表相对应。The target data object list may include multiple target data objects. The target data object list in this embodiment may correspond to the set matching rule list.

本实施例中可以根据设定匹配规则列表中的各个匹配规则从数据对象资源信息中进行匹配,将满足匹配规则的数据对象作为该匹配规则对应的目标数据对象,从而确定出各个匹配规则对应的目标数据对象,以获得目标数据对象列表。In this embodiment, matching can be performed from data object resource information according to each matching rule in the set matching rule list, and the data object that meets the matching rule is used as the target data object corresponding to the matching rule, thereby determining the target data object corresponding to each matching rule to obtain a target data object list.

S130、根据设定匹配规则列表确定对应的备份计划。S130: Determine a corresponding backup plan according to the set matching rule list.

其中,备份计划可以是根据设定匹配规则列表中各个匹配规则预先配置好的。备份计划可以对数据对象进行备份。本实施例中备份计划可以包括备份时间以及备份类型。备份类型可以包括增量备份和完全备份。示例性的,备份计划可以是每天20:00进行完全备份,以及每隔4小时进行增量备份。本实施例中的每条匹配规则可以对应一个备份计划。本实施例中的每个匹配规则都预先配置好各自对应的备份计划,可以根据设定匹配规则列表中的各个匹配规则确定出各自对应的备份计划。Among them, the backup plan can be pre-configured according to each matching rule in the set matching rule list. The backup plan can back up the data object. In this embodiment, the backup plan can include the backup time and the backup type. The backup type can include incremental backup and full backup. Exemplarily, the backup plan can be a full backup at 20:00 every day, and an incremental backup every 4 hours. Each matching rule in this embodiment can correspond to a backup plan. Each matching rule in this embodiment is pre-configured with a corresponding backup plan, and the corresponding backup plan can be determined according to each matching rule in the set matching rule list.

S140、根据备份计划对目标数据对象列表进行备份,以获得目标数据列表的备份结果。S140: Back up the target data object list according to the backup plan to obtain a backup result of the target data list.

本实施例中的备份计划匹配规则对应绑定,当备份计划触发时,可以自动同步数据对象资源信息并进行数据对象的筛选匹配,获得对应匹配规则下的所有目标数据对象后,进行备份操作。The backup plan matching rules in this embodiment correspond to the binding. When the backup plan is triggered, the data object resource information can be automatically synchronized and the data objects can be screened and matched. After all the target data objects under the corresponding matching rules are obtained, the backup operation is performed.

本实施例中可以根据设定匹配规则列表确定出各个匹配规则对应的备份计划,根据确定出的备份计划对目标数据列表中的每条目标数据进行备份,从而可以得到目标数据列表中各条目标数据对应的备份结果。In this embodiment, a backup plan corresponding to each matching rule can be determined according to the set matching rule list, and each target data in the target data list can be backed up according to the determined backup plan, so that the backup result corresponding to each target data in the target data list can be obtained.

本申请实施例通过获取数据对象资源信息和设定匹配规则列表;其中,数 据对象资源信息包括数据对象的分类维度、类别以及数据对象清单;基于设定匹配规则列表从数据对象资源信息中确定对应的目标数据对象列表;根据设定匹配规则列表确定对应的备份计划;根据备份计划对目标数据对象列表进行备份,以获得目标数据列表的备份结果。本申请实施例可以根据数据对象的变化,动态匹配数据备份计划执行备份,以此更好的进行备份管理,帮助运维人员提升灾备管理效率。The embodiment of the present application obtains data object resource information and sets a matching rule list; wherein, The object resource information includes the classification dimension, category and data object list of the data object; the corresponding target data object list is determined from the data object resource information based on the set matching rule list; the corresponding backup plan is determined according to the set matching rule list; the target data object list is backed up according to the backup plan to obtain the backup result of the target data list. The embodiment of the present application can dynamically match the data backup plan to perform backup according to the change of the data object, so as to better perform backup management and help operation and maintenance personnel improve the efficiency of disaster recovery management.

实施例二Embodiment 2

图2是根据本申请实施例二提供的一种数据对象备份方法的流程图,本实施例以上述实施例为基础进行改动。具体为:基于设定匹配规则列表从数据对象资源信息中确定对应的目标数据对象列表,包括:创建空数据对象列表;基于设定匹配规则列表从数据对象清单中确定对应的目标数据对象;将目标数据对象放入空数据对象列表中,以得到目标数据对象列表。如图2所示,该方法包括:FIG2 is a flow chart of a data object backup method provided according to the second embodiment of the present application. This embodiment is modified based on the above embodiment. Specifically, based on the set matching rule list, a corresponding target data object list is determined from the data object resource information, including: creating an empty data object list; based on the set matching rule list, a corresponding target data object is determined from the data object list; and the target data object is placed in the empty data object list to obtain the target data object list. As shown in FIG2, the method includes:

S210、获取数据对象资源信息和设定匹配规则列表。S210: Obtain data object resource information and set a matching rule list.

其中,数据对象资源信息包括数据对象的分类维度、类别以及数据对象清单。The data object resource information includes the classification dimensions, categories and data object lists of the data objects.

S220、创建空数据对象列表。S220: Create an empty data object list.

其中,空数据对象列表可以理解为空白的数据对象列表。本实施例中可以创建空数据对象列表,用于存储设定匹配规则列表中各个匹配规则对应的目标数据对象。The empty data object list can be understood as a blank data object list. In this embodiment, an empty data object list can be created to store target data objects corresponding to each matching rule in the set matching rule list.

S230、基于设定匹配规则列表从数据对象清单中确定对应的目标数据对象。S230: Determine a corresponding target data object from the data object list based on the set matching rule list.

其中,目标数据对象可以是符合匹配规则中各个匹配条件的数据对象。The target data object may be a data object that meets each matching condition in the matching rule.

本实施例中可以基于设定匹配规则列表中的各个设定匹配规则,从数据对象清单中遍历每一个数据对象,从而确定出各个设定匹配规则对应的目标数据对象。In this embodiment, based on each setting matching rule in the setting matching rule list, each data object can be traversed from the data object list to determine the target data object corresponding to each setting matching rule.

在本实施例中,可选的,基于设定匹配规则列表从数据对象清单中确定对应的目标数据对象,包括:遍历数据清单中数据对象;将遍历到的数据对象与设定匹配规则列表中的多个设定匹配规则进行比对;响应于遍历到的数据对象符合至少一条设定匹配规则,将遍历到的数据对象确定为目标数据对象。In this embodiment, optionally, determining a corresponding target data object from a data object list based on a set matching rule list includes: traversing the data objects in the data list; comparing the traversed data object with a plurality of set matching rules in the set matching rule list; and determining the traversed data object as a target data object in response to the traversed data object satisfying at least one set matching rule.

其中,设定匹配规则列表中包括设定数量的设定匹配规则。本实施例中将 遍历到的数据对象与设定匹配规则列表中的各个设定匹配规则进行比对,具体可以是判断数据对象是否符合匹配规则中的匹配条件,也就是符合匹配规则中包含的设定分类维度中的类别。The set matching rule list includes a set number of set matching rules. The traversed data object is compared with each set matching rule in the set matching rule list, specifically, it can be determined whether the data object meets the matching condition in the matching rule, that is, meets the category in the set classification dimension contained in the matching rule.

本实施例中可以遍历从数据对象资源信息中获取到的所有数据清单中的数据对象,将遍历到的数据对象与设定匹配规则列表中的各个设定匹配规则分别进行比对,响应于遍历到的数据对象符合至少一条设定匹配规则,可以将遍历到的数据对象确定为该设定匹配规则对应的目标数据对象。In this embodiment, all data objects in the data list obtained from the data object resource information can be traversed, and the traversed data objects can be compared with each set matching rule in the set matching rule list. In response to the traversed data object satisfying at least one set matching rule, the traversed data object can be determined as the target data object corresponding to the set matching rule.

本实施例中通过这样的设置,可以对所有数据对象进行遍历,从而可以根据数据类别的变化确定对应的匹配规则,能够在数据对象类别的发生变化时,根据变化后的数据对象确定对应的匹配规则,从而便于执行对应的备份计划。Through such a setting in this embodiment, all data objects can be traversed, so that the corresponding matching rules can be determined according to the changes in data categories. When the data object category changes, the corresponding matching rules can be determined according to the changed data object, thereby facilitating the execution of the corresponding backup plan.

在本实施例中,可选的,将遍历到的数据对象确定为目标数据对象,包括:响应于遍历的数据对象符合至少两条设定匹配规则,将数据对象确定为至少两条设定匹配规则中优先级最高的设定匹配规则的目标数据对象。In this embodiment, optionally, determining the traversed data object as the target data object includes: in response to the traversed data object satisfying at least two set matching rules, determining the data object as the target data object of the set matching rule with the highest priority among the at least two set matching rules.

其中,至少两条设定匹配规则可以理解为两条以及两条以上的设定匹配规则。本实施例对系统中的所有的数据对象进行遍历,数据对象就可能会同时满足设定匹配规则列表中的多个设定匹配规则。优先级可以是对设定匹配规则进行预先设定好的。Among them, at least two setting matching rules can be understood as two or more setting matching rules. In this embodiment, all data objects in the system are traversed, and the data object may simultaneously satisfy multiple setting matching rules in the setting matching rule list. The priority can be pre-set for the setting matching rule.

本实施例中响应于遍历的数据对象符合至少两条设定匹配规则,可以将数据对象确定为至少两条设定匹配规则中优先级最高的设定匹配规则的对应的目标数据对象。In this embodiment, in response to the traversed data object meeting at least two set matching rules, the data object may be determined as a target data object corresponding to the set matching rule with the highest priority among the at least two set matching rules.

由于本实施例中所有的数据对象进行遍历,考虑到数据对象可能同时满足多个匹配规则,因此可能会出现一个数据对象关联到多个备份计划的冲突问题。因此,本实施例中可以对设定匹配规则可以设置对应的优先级,根据实际情况进行设定。当数据对象满足优先级高的匹配规则时,将确定为优先级最高的设定匹配规则的目标数据对象。对应的,该数据对象也仅会被优先级高的匹配规则所关联的备份计划触发备份操作。Since all data objects are traversed in this embodiment, considering that a data object may satisfy multiple matching rules at the same time, there may be a conflict problem that one data object is associated with multiple backup plans. Therefore, in this embodiment, the corresponding priority can be set for the matching rule, and it is set according to the actual situation. When a data object satisfies a matching rule with a high priority, it will be determined as the target data object of the matching rule with the highest priority. Correspondingly, the backup operation of this data object will only be triggered by the backup plan associated with the matching rule with a high priority.

本实施例中通过这样的设置,可以对设定匹配规则设置优先级,当数据对象同时满足多个设定匹配规则时,就会按照优先级的高低确定目标数据对象,当数据对象满足高优先级的匹配规则时,则不再匹配到低优先的匹配规则,从而避免数据对象对应多个设定匹配规则的情况。Through such a setting in this embodiment, the priority of the set matching rules can be set. When a data object satisfies multiple set matching rules at the same time, the target data object will be determined according to the priority. When the data object satisfies the matching rule with a high priority, it will no longer match the matching rule with a low priority, thereby avoiding the situation where the data object corresponds to multiple set matching rules.

在本实施例中,可选的,基于设定匹配规则列表从数据对象清单中确定对应的目标数据对象,包括:对设定匹配规则列表中的设定匹配规则按照优先级由高到低的顺序进行排序;基于排序后的设定匹配规则列表从数据对象清单中 确定对应的目标数据对象。In this embodiment, optionally, determining the corresponding target data object from the data object list based on the set matching rule list includes: sorting the set matching rules in the set matching rule list in descending order of priority; and selecting the corresponding target data object from the data object list based on the sorted set matching rule list. Determine the corresponding target data object.

本实施例还可以先对设定匹配规则按照优先级的顺序进行排序,基于排序后的设定匹配规则列表进行确定对应的目标数据对象。In this embodiment, the setting matching rules may be sorted in order of priority first, and the corresponding target data object is determined based on the sorted setting matching rule list.

可选的,本实施例中可以对设定匹配规则列表中的设定匹配规则按照优先级由高到低的顺序进行排序,然后再根据排序后的设定匹配规则列表中的各个设定匹配规则从数据对象清单中进行遍历,以确定各自对应的目标数据对象。Optionally, in this embodiment, the setting matching rules in the setting matching rule list can be sorted in descending order of priority, and then the data object list is traversed according to each setting matching rule in the sorted setting matching rule list to determine the corresponding target data objects.

在本实施例中,可选的,基于排序后的设定匹配规则列表从数据对象清单中确定对应的目标数据对象,包括:遍历数据清单中数据对象;从排序后的设定匹配规则列表中依次读取设定匹配规则,将遍历到的数据对象与读取到的设定匹配规则进行比对;响应于数据对象符合读取到的设定匹配规则,将数据对象确定为读取到的设定匹配规则的目标数据对象,并停止读取设定匹配规则,继续遍历下一个数据对象;响应于数据对象不符合读取到的设定匹配规则,继续读取下一个设定匹配规则,并返回执行将遍历到的数据对象与读取到的设定匹配规则进行比对的操作,直到数据对象遍历完成。In this embodiment, optionally, determining the corresponding target data object from the data object list based on the sorted setting matching rule list includes: traversing the data objects in the data list; reading the setting matching rules from the sorted setting matching rule list in sequence, and comparing the traversed data objects with the read setting matching rules; in response to the data object meeting the read setting matching rules, determining the data object as the target data object of the read setting matching rules, stopping reading the setting matching rules, and continuing to traverse the next data object; in response to the data object not meeting the read setting matching rules, continuing to read the next setting matching rule, and returning to perform the operation of comparing the traversed data object with the read setting matching rules until the data object traversal is completed.

其中,下一个数据对象可以理解为数据清单中当前数据对象的下一个数据对象。下一个设定匹配规则可以理解为按照优先级顺序的当前设定匹配规则的下一个设定匹配规则。The next data object may be understood as the next data object of the current data object in the data list, and the next set matching rule may be understood as the next set matching rule of the current set matching rule in the order of priority.

本实施例中从排序后的设定匹配规则列表中依次读取设定匹配规则,可以是从按照优先级由高到低的顺序的设定匹配规则列表中,一条一条读取设定匹配规则。本实施例中将遍历到的数据对象与读取到的设定匹配规则进行比对,可以理解为将遍历到的数据对象与设定匹配规则中的匹配条件进行比对,是否符合其匹配条件的过程。In this embodiment, the setting matching rules are read sequentially from the sorted setting matching rule list, and the setting matching rules can be read one by one from the setting matching rule list in descending order of priority. In this embodiment, the traversed data object is compared with the read setting matching rule, which can be understood as a process of comparing the traversed data object with the matching condition in the setting matching rule to determine whether it meets the matching condition.

本实施例中确认数据对象列表的过程中需要遍历资源信息下的所有数据对象,并根据优先级排序顺序依次比对匹配各个设定匹配规则。响应于数据对象匹配到了优先级较高的设定匹配规则,继续确认下一个数据对象。响应于数据对象匹配当前需要确认的设定匹配规则,此数据对象可确认为读取到的设定匹配规则的目标数据对象,直到所有的数据对象遍历完成,便获得了满足设定匹配规则的所有数据对象。In the process of confirming the data object list in this embodiment, it is necessary to traverse all data objects under the resource information, and compare and match each set matching rule in sequence according to the priority sorting order. In response to the data object matching the set matching rule with a higher priority, continue to confirm the next data object. In response to the data object matching the set matching rule that currently needs to be confirmed, this data object can be confirmed as the target data object of the set matching rule that has been read, until all data objects are traversed, and all data objects that meet the set matching rule are obtained.

可选的,本实施例中可以遍历数据清单中数据对象;从排序后的设定匹配规则列表中依次读取设定匹配规则,将遍历到的数据对象与读取到的设定匹配规则进行比对,响应于读取到的数据对象符合读取到的设定匹配规则,将数据对象确定为读取到的设定匹配规则的目标数据对象,并停止读取设定匹配规则,继续遍历下一个数据对象,对下一个数据对象继续读取设定匹配规则并进 行比对判断。响应于数据对象不符合读取到的设定匹配规则,继续读取下一个设定匹配规则,并返回继续执行将遍历到的数据对象与读取到的设定匹配规则进行比对的操作,直到数据对象遍历完成。Optionally, in this embodiment, the data objects in the data list can be traversed; the setting matching rules can be read from the sorted setting matching rule list in sequence, and the traversed data objects can be compared with the read setting matching rules. In response to the read data object meeting the read setting matching rules, the data object can be determined as the target data object of the read setting matching rules, and the reading of the setting matching rules can be stopped, and the next data object can be traversed continuously, and the setting matching rules can be read continuously for the next data object and compared. In response to the data object not meeting the set matching rule read, continue to read the next set matching rule, and return to continue to perform the operation of comparing the traversed data object with the read set matching rule until the data object traversal is completed.

本实施例中通过这样的设置,可以分别遍历数据对象以及设定匹配规则,确定出各个设定匹配规则对应的目标数据对象,以便于响应数据对象的变化,以匹配设定匹配规则,从而对应进行备份,同时节省备份计划的日常调整工作,简化运维。Through such a setting in the present embodiment, data objects and matching rules can be traversed separately to determine the target data objects corresponding to each set matching rule, so as to respond to changes in data objects to match the set matching rules, thereby performing corresponding backups, while saving the daily adjustment work of the backup plan and simplifying operation and maintenance.

S240、将目标数据对象放入空数据对象列表中,以得到目标数据对象列表。S240: Put the target data object into an empty data object list to obtain a target data object list.

其中,目标数据对象列表可以包括多条目标数据对象。目标数据对象列表中的各条目标数据对象可以分别对应设定匹配规则列表中的各个匹配规则。本实施例中可以将符合各个设定匹配规则的目标对象放入空数据对象列表中,以得到目标数据对象列表。The target data object list may include multiple target data objects. Each target data object in the target data object list may correspond to each matching rule in the set matching rule list. In this embodiment, the target objects that meet each set matching rule may be put into the empty data object list to obtain the target data object list.

S250、根据设定匹配规则列表确定对应的备份计划。S250: Determine a corresponding backup plan according to the set matching rule list.

示例性的,本实施例中基于设定匹配规则列表中设定匹配规则配置对应的备份计划示例如表1所示:For example, in this embodiment, an example of a backup plan corresponding to the matching rule configuration in the matching rule list is shown in Table 1:

表1
Table 1

S260、根据备份计划对目标数据对象列表进行备份,以获得目标数据列表的备份结果。S260: Back up the target data object list according to the backup plan to obtain a backup result of the target data list.

本实施例中可根据数据对象的分类维度中的类别,匹配对应的设定匹配规则,从而对设定匹配规则配置对应的备份计划,从而能够自动调整备份计划,满足了数据对象根据分类结果动态调整RPO的需求。 In this embodiment, the corresponding matching rules can be matched according to the categories in the classification dimension of the data object, so that the corresponding backup plan can be configured for the setting matching rules, so that the backup plan can be automatically adjusted, meeting the demand for dynamically adjusting the RPO of the data object according to the classification results.

本申请实施例,通过获取数据对象资源信息和设定匹配规则列表;其中,数据对象资源信息包括数据对象的分类维度、类别以及数据对象清单;创建空数据对象列表;基于设定匹配规则列表从数据对象清单中确定对应的目标数据对象;将目标数据对象放入空数据对象列表中,以得到目标数据对象列表;根据设定匹配规则列表确定对应的备份计划;根据备份计划对目标数据对象列表进行备份,以获得目标数据列表的备份结果。本申请实施例可以根据数据对象的变化,动态匹配数据备份计划执行备份,以此更好的进行备份管理,帮助运维人员提升灾备管理效率。In the embodiment of the present application, data object resource information is obtained and a matching rule list is set; wherein the data object resource information includes the classification dimension, category and data object list of the data object; an empty data object list is created; the corresponding target data object is determined from the data object list based on the set matching rule list; the target data object is placed in the empty data object list to obtain the target data object list; the corresponding backup plan is determined according to the set matching rule list; the target data object list is backed up according to the backup plan to obtain the backup result of the target data list. The embodiment of the present application can dynamically match the data backup plan to perform backup according to the change of the data object, so as to better perform backup management and help operation and maintenance personnel improve the efficiency of disaster recovery management.

实施例三Embodiment 3

图3是根据本申请实施例三提供的一种数据对象备份装置的结构示意图。FIG3 is a schematic diagram of the structure of a data object backup device provided according to Embodiment 3 of the present application.

如图3所示,该装置包括:As shown in FIG3 , the device comprises:

获取模块310,设置为获取数据对象资源信息和设定匹配规则列表。The acquisition module 310 is configured to acquire data object resource information and set a matching rule list.

其中,数据对象资源信息包括数据对象的分类维度、类别以及数据对象清单。The data object resource information includes the classification dimensions, categories and data object lists of the data objects.

目标数据对象确定模块320,设置为基于设定匹配规则列表从数据对象资源信息中确定对应的目标数据对象列表。The target data object determination module 320 is configured to determine a corresponding target data object list from the data object resource information based on a set matching rule list.

备份计划确定模块330,设置为根据设定匹配规则列表确定对应的备份计划;A backup plan determination module 330, configured to determine a corresponding backup plan according to a set matching rule list;

目标数据对象备份模块340,设置为根据备份计划对目标数据对象列表进行备份,以获得目标数据列表的备份结果。The target data object backup module 340 is configured to back up the target data object list according to the backup plan to obtain a backup result of the target data object list.

可选的,目标数据对象确定模块320,包括:Optionally, the target data object determination module 320 includes:

空列表创建单元,设置为创建空数据对象列表;Empty list creation unit, set to create an empty data object list;

目标数据对象确定单元,设置为基于设定匹配规则列表从数据对象清单中确定对应的目标数据对象;a target data object determination unit, configured to determine a corresponding target data object from a data object list based on a set matching rule list;

数据对象列表获得单元,设置为将目标数据对象放入空数据对象列表中,以得到目标数据对象列表。The data object list obtaining unit is configured to put the target data object into an empty data object list to obtain a target data object list.

可选的,目标数据对象确定单元,包括:Optionally, the target data object determination unit includes:

数据对象遍历子单元,设置为遍历数据清单中数据对象;A data object traversal subunit is configured to traverse the data objects in the data list;

比对子单元,设置为将遍历到的数据对象与设定匹配规则列表中的多个设定匹配规则进行比对; A comparison subunit, configured to compare the traversed data object with a plurality of set matching rules in a set matching rule list;

第一目标对象确定子单元,设置为响应于遍历到的数据对象符合至少一条设定匹配规则,将遍历到的数据对象确定为目标数据对象。The first target object determination subunit is configured to determine the traversed data object as a target data object in response to the traversed data object meeting at least one set matching rule.

可选的,第一目标对象确定子单元,是设置为通过如下方式将遍历到的数据对象确定为目标数据对象:响应于遍历的数据对象符合至少两条设定匹配规则,将数据对象确定为至少两条设定匹配规则中优先级最高的设定匹配规则的目标数据对象。Optionally, the first target object determination subunit is configured to determine the traversed data object as the target data object in the following manner: in response to the traversed data object satisfying at least two set matching rules, determining the data object as the target data object of the set matching rule with the highest priority among the at least two set matching rules.

可选的,目标数据对象确定单元,包括:Optionally, the target data object determination unit includes:

排序子单元,设置为对设定匹配规则列表中的设定匹配规则按照优先级由高到低的顺序进行排序;A sorting subunit is configured to sort the set matching rules in the set matching rule list in descending order of priority;

第二目标对象确定子单元,设置为基于排序后的设定匹配规则列表从数据对象清单中确定对应的目标数据对象。The second target object determination subunit is configured to determine the corresponding target data object from the data object list based on the sorted set matching rule list.

可选的,第二目标对象确定子单元,是设置为通过如下方式基于排序后的设定匹配规则列表从所述数据对象清单中确定对应的目标数据对象:遍历数据清单中数据对象;从排序后的设定匹配规则列表中依次读取设定匹配规则,将遍历到的数据对象与读取到的设定匹配规则进行比对;响应于数据对象符合读取到的设定匹配规则,将数据对象确定为读取到的设定匹配规则的目标数据对象,并停止读取设定匹配规则,继续遍历下一个数据对象;响应于数据对象不符合读取到的设定匹配规则,继续读取下一个设定匹配规则,并返回执行将遍历到的数据对象与读取到的设定匹配规则进行比对的操作,直到数据对象遍历完成。Optionally, the second target object determination subunit is configured to determine the corresponding target data object from the data object list based on the sorted setting matching rule list in the following manner: traversing the data objects in the data list; reading the setting matching rules from the sorted setting matching rule list in sequence, and comparing the traversed data objects with the read setting matching rules; in response to the data object satisfying the read setting matching rules, determining the data object as the target data object of the read setting matching rules, stopping reading the setting matching rules, and continuing to traverse the next data object; in response to the data object not satisfying the read setting matching rules, continuing to read the next setting matching rule, and returning to perform the operation of comparing the traversed data object with the read setting matching rules until the data object traversal is completed.

可选的,设定匹配规则是由至少两个分类维度的匹配条件通过设定逻辑组合而成;设定逻辑包括:与逻辑、非逻辑、以及或逻辑中的至少一种;分类维度为相同维度或者不同维度。Optionally, the setting matching rule is formed by combining the matching conditions of at least two classification dimensions through setting logic; the setting logic includes: at least one of: AND logic, NOT logic, and OR logic; the classification dimensions are the same dimension or different dimensions.

本申请实施例所提供的一种数据对象备份装置可执行本申请任意实施例所提供的一种数据对象备份方法,具备执行方法相应的功能模块和有益效果。A data object backup device provided in an embodiment of the present application can execute a data object backup method provided in any embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method.

实施例四Embodiment 4

图4是根据本申请实施例四提供的一种电子设备的结构示意图。电子设备10旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例。 FIG4 is a schematic diagram of the structure of an electronic device provided according to Embodiment 4 of the present application. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples.

如图4所示,电子设备10包括至少一个处理器11,以及与至少一个处理器11通信连接的存储器,如只读存储器(Read-Only Memory,ROM)12、随机访问存储器(Random Access Memory,RAM)13等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器11可以根据存储在只读存储器(ROM)12中的计算机程序或者从存储单元18加载到随机访问存储器(RAM)13中的计算机程序,来执行各种适当的动作和处理。在RAM 13中,还可存储电子设备10操作所需的各种程序和数据。处理器11、ROM 12以及RAM 13通过总线14彼此相连。输入/输出(Input/Output,I/O)接口15也连接至总线14。As shown in FIG. 4 , the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the ROM 12 or the computer program loaded from the storage unit 18 to the RAM 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.

电子设备10中的多个部件连接至I/O接口15,包括:输入单元16,例如键盘、鼠标等;输出单元17,例如各种类型的显示器、扬声器等;存储单元18,例如磁盘、光盘等;以及通信单元19,例如网卡、调制解调器、无线通信收发机等。通信单元19允许电子设备10通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

处理器11可以是各种具有处理和计算能力的通用和/或专用处理组件。处理器11的一些示例包括中央处理单元(Central Processing Unit,CPU)、图形处理单元(Graphics Processing Unit,GPU)、各种专用的人工智能(Artificial Intelligence,AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(Digital Signal Process,DSP)、以及任何适当的处理器、控制器、微控制器等。处理器11执行上文所描述的各个方法和处理,例如数据对象备份方法。The processor 11 may be a variety of general and/or special processing components with processing and computing capabilities. Some examples of the processor 11 include a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a data object backup method.

在一些实施例中,数据对象备份方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元18。在一些实施例中,计算机程序的部分或者全部可以经由ROM 12和/或通信单元19而被载入和/或安装到电子设备10上。当计算机程序加载到RAM 13并由处理器11执行时,可以执行上文描述的数据对象备份方法的一个或多个步骤。可选地,在其他实施例中,处理器11可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行数据对象备份方法。In some embodiments, the data object backup method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed on electronic device 10 via ROM 12 and/or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the data object backup method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the data object backup method in any other appropriate manner (e.g., by means of firmware).

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(Field Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准产品(Application Specific Standard Parts,ASSP)、芯片上系统的系统(System on Chips,SOC)、复杂可编程逻辑设备(Complex Programmable Logic Device,CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施 方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard parts (ASSPs), system on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various implementations may be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard parts (ASSPs), system on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. The method may include: being implemented in one or more computer programs, which may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor, which may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

用于实施本申请的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor, the functions/operations specified in the flow charts and/or block diagrams are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

在本申请的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。可选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质可以包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or apparatus. A computer readable storage medium may include an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,阴极射线管(CRT)或者液晶显示器(Liquid Crystal Display,LCD)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a cathode ray tube (CRT) or a liquid crystal display (LCD) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部 件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(Local Area Network,LAN)、广域网(Wide Area Network,WAN)、区块链网络和互联网。The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN), blockchain network, and the Internet.

计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与虚拟专用服务器(Virtual Private Server,VPS)服务中,存在的管理难度大,业务扩展性弱的缺陷。A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请的技术方案所期望的结果即可。 It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved.

Claims (10)

一种数据对象备份方法,包括:A data object backup method, comprising: 获取数据对象资源信息和设定匹配规则列表;其中,所述数据对象资源信息包括数据对象的分类维度、类别以及数据对象清单;Obtaining data object resource information and setting a matching rule list; wherein the data object resource information includes classification dimensions, categories, and data object lists of data objects; 基于所述设定匹配规则列表从所述数据对象资源信息中确定对应的目标数据对象列表;Determining a corresponding target data object list from the data object resource information based on the set matching rule list; 根据所述设定匹配规则列表确定对应的备份计划;Determine a corresponding backup plan according to the set matching rule list; 根据所述备份计划对所述目标数据对象列表进行备份,以获得所述目标数据列表的备份结果。The target data object list is backed up according to the backup plan to obtain a backup result of the target data list. 根据权利要求1所述的方法,其中,所述基于所述设定匹配规则列表从所述数据对象资源信息中确定对应的目标数据对象列表,包括:The method according to claim 1, wherein the determining a corresponding target data object list from the data object resource information based on the set matching rule list comprises: 创建空数据对象列表;Create a list of empty data objects; 基于所述设定匹配规则列表从所述数据对象清单中确定对应的目标数据对象;Determining a corresponding target data object from the data object list based on the set matching rule list; 将所述目标数据对象放入空数据对象列表中,以得到目标数据对象列表。The target data object is put into an empty data object list to obtain a target data object list. 根据权利要求2所述的方法,其中,基于所述设定匹配规则列表从所述数据对象清单中确定对应的目标数据对象,包括:The method according to claim 2, wherein determining the corresponding target data object from the data object list based on the set matching rule list comprises: 遍历所述数据清单中数据对象;Traversing the data objects in the data list; 将遍历到的数据对象与所述设定匹配规则列表中的多个设定匹配规则进行比对;Comparing the traversed data object with a plurality of set matching rules in the set matching rule list; 响应于遍历到的所述数据对象符合至少一条设定匹配规则,将遍历到的所述数据对象确定为目标数据对象。In response to the traversed data object meeting at least one set matching rule, the traversed data object is determined as a target data object. 根据权利要求3所述的方法,其中,将遍历到的所述数据对象确定为目标数据对象,包括:The method according to claim 3, wherein determining the traversed data object as the target data object comprises: 响应于遍历的所述数据对象符合至少两条设定匹配规则,将所述数据对象确定为所述至少两条设定匹配规则中优先级最高的设定匹配规则的目标数据对象。In response to the traversed data object meeting at least two set matching rules, the data object is determined as a target data object of the set matching rule with the highest priority among the at least two set matching rules. 根据权利要求2所述的方法,其中,基于所述设定匹配规则列表从所述数据对象清单中确定对应的目标数据对象,包括:The method according to claim 2, wherein determining the corresponding target data object from the data object list based on the set matching rule list comprises: 对所述设定匹配规则列表中的设定匹配规则按照优先级由高到低的顺序进行排序; Sorting the set matching rules in the set matching rule list in order of priority from high to low; 基于排序后的设定匹配规则列表从所述数据对象清单中确定对应的目标数据对象。The corresponding target data object is determined from the data object list based on the sorted set matching rule list. 根据权利要求5所述的方法,其中,基于排序后的设定匹配规则列表从所述数据对象清单中确定对应的目标数据对象,包括:The method according to claim 5, wherein determining the corresponding target data object from the data object list based on the sorted set matching rule list comprises: 遍历所述数据清单中数据对象;Traversing the data objects in the data list; 从排序后的所述设定匹配规则列表中依次读取设定匹配规则,将遍历到的所述数据对象与读取到的设定匹配规则进行比对;Reading the setting matching rules from the sorted setting matching rule list in sequence, and comparing the traversed data object with the read setting matching rules; 响应于所述数据对象符合读取到的所述设定匹配规则,将所述数据对象确定为读取到的设定匹配规则的目标数据对象,并停止读取所述设定匹配规则,继续遍历下一个数据对象;In response to the data object meeting the set matching rule that has been read, determining the data object as a target data object of the set matching rule that has been read, stopping reading the set matching rule, and continuing to traverse the next data object; 响应于所述数据对象不符合读取到的所述设定匹配规则,继续读取下一个设定匹配规则,并返回执行将遍历到的所述数据对象与读取到的设定匹配规则进行比对的操作,直到所述数据对象遍历完成。In response to the data object not meeting the set matching rule that has been read, continue to read the next set matching rule, and return to perform the operation of comparing the traversed data object with the read set matching rule until the traversal of the data object is completed. 根据权利要求1所述的方法,其中,所述设定匹配规则是由至少两个分类维度的匹配条件通过设定逻辑组合而成;所述设定逻辑包括:与逻辑、非逻辑、以及或逻辑中的至少一种;所述分类维度为相同维度或者不同维度。According to the method according to claim 1, the set matching rules are formed by combining the matching conditions of at least two classification dimensions through set logic; the set logic includes: at least one of: AND logic, NOT logic, and OR logic; the classification dimensions are the same dimension or different dimensions. 一种数据对象备份装置,包括:A data object backup device, comprising: 获取模块,设置为获取数据对象资源信息和设定匹配规则列表;其中,所述数据对象资源信息包括数据对象的分类维度、类别以及数据对象清单;An acquisition module, configured to acquire data object resource information and set a matching rule list; wherein the data object resource information includes classification dimensions, categories and data object lists of data objects; 目标数据对象确定模块,设置为基于所述设定匹配规则列表从所述数据对象资源信息中确定对应的目标数据对象列表;a target data object determination module, configured to determine a corresponding target data object list from the data object resource information based on the set matching rule list; 备份计划确定模块,设置为根据所述设定匹配规则列表确定对应的备份计划;A backup plan determination module, configured to determine a corresponding backup plan according to the set matching rule list; 目标数据对象备份模块,设置为根据所述备份计划对所述目标数据对象列表进行备份,以获得所述目标数据列表的备份结果。The target data object backup module is configured to back up the target data object list according to the backup plan to obtain a backup result of the target data object list. 一种电子设备,所述电子设备包括:An electronic device, comprising: 至少一个处理器;以及at least one processor; and 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-7中任一项所述的数据对象备份方法。 The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data object backup method according to any one of claims 1 to 7. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现权利要求1-7中任一项所述的数据对象备份方法。 A computer-readable storage medium stores computer instructions, wherein the computer instructions are used to enable a processor to implement the data object backup method according to any one of claims 1 to 7 when executed.
PCT/CN2024/128542 2023-11-08 2024-10-30 Data object backup method and apparatus, device, and medium Pending WO2025098218A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202311484914.5 2023-11-08
CN202311484914.5A CN117271223A (en) 2023-11-08 2023-11-08 Data object backup method, device, equipment and medium

Publications (1)

Publication Number Publication Date
WO2025098218A1 true WO2025098218A1 (en) 2025-05-15

Family

ID=89204616

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/128542 Pending WO2025098218A1 (en) 2023-11-08 2024-10-30 Data object backup method and apparatus, device, and medium

Country Status (2)

Country Link
CN (1) CN117271223A (en)
WO (1) WO2025098218A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117271223A (en) * 2023-11-08 2023-12-22 上海爱数信息技术股份有限公司 Data object backup method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678036A (en) * 2013-11-15 2014-03-26 上海爱数软件有限公司 Backup method based on virtual machine operation information data finding
CN111443867A (en) * 2020-03-24 2020-07-24 腾讯科技(深圳)有限公司 Data storage method, device, equipment and storage medium
US20230056105A1 (en) * 2021-08-19 2023-02-23 International Business Machines Corporation Comprehensive data protection backup
CN116991629A (en) * 2023-07-27 2023-11-03 上海爱数信息技术股份有限公司 Backup method, device, equipment and medium of virtual machine
CN117271223A (en) * 2023-11-08 2023-12-22 上海爱数信息技术股份有限公司 Data object backup method, device, equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678036A (en) * 2013-11-15 2014-03-26 上海爱数软件有限公司 Backup method based on virtual machine operation information data finding
CN111443867A (en) * 2020-03-24 2020-07-24 腾讯科技(深圳)有限公司 Data storage method, device, equipment and storage medium
US20230056105A1 (en) * 2021-08-19 2023-02-23 International Business Machines Corporation Comprehensive data protection backup
CN116991629A (en) * 2023-07-27 2023-11-03 上海爱数信息技术股份有限公司 Backup method, device, equipment and medium of virtual machine
CN117271223A (en) * 2023-11-08 2023-12-22 上海爱数信息技术股份有限公司 Data object backup method, device, equipment and medium

Also Published As

Publication number Publication date
CN117271223A (en) 2023-12-22

Similar Documents

Publication Publication Date Title
WO2016004813A1 (en) Data storage method, query method and device
CN113722600A (en) Data query method, device, equipment and product applied to big data
CN112699142A (en) Cold and hot data processing method and device, electronic equipment and storage medium
WO2025098218A1 (en) Data object backup method and apparatus, device, and medium
CN114862619A (en) Basic electricity charge processing method and device, electronic equipment and medium
CN115291806B (en) A processing method, apparatus, electronic device, and storage medium
CN110502529B (en) Data processing method, device, server and storage medium
CN115905577A (en) Method and device for constructing knowledge map, method and device for searching laws and regulations
CN115601043A (en) Risk transaction processing method, device, electronic device and storage medium
CN115357641A (en) Data query method and device, electronic equipment and storage medium
CN109947797B (en) Data inspection device and method
CN118410021B (en) Data storage optimization method and device, electronic equipment and storage medium
CN118916006A (en) Custom service management method, device, equipment and storage medium
CN114461889B (en) Data searching method, device, electronic equipment and program product
CN116740732A (en) Image file processing method, device, electronic equipment and storage medium
CN113434270B (en) Data resource scheduling method, device, electronic device and storage medium
CN114780669A (en) Wind control data processing method, device and system
CN112862554B (en) A method and device for processing order data
CN115344627A (en) Data screening method and device, electronic equipment and storage medium
CN115525721A (en) Data synchronization method, device, equipment and storage medium
CN115774709A (en) Method, device, equipment and storage medium for deduplication of capital flow
Wei et al. A highly accurate data synchronization and full-text search algorithm for canal and elasticsearch
CN116842101B (en) Data synchronization methods, devices, equipment, and storage media
CN119477356B (en) Method and device for deducting resource package, electronic equipment and medium
CN114676212B (en) Map data processing method, device, electronic device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24887830

Country of ref document: EP

Kind code of ref document: A1