[go: up one dir, main page]

CN103414762A - Cloud backup method and cloud backup device - Google Patents

Cloud backup method and cloud backup device Download PDF

Info

Publication number
CN103414762A
CN103414762A CN2013103116166A CN201310311616A CN103414762A CN 103414762 A CN103414762 A CN 103414762A CN 2013103116166 A CN2013103116166 A CN 2013103116166A CN 201310311616 A CN201310311616 A CN 201310311616A CN 103414762 A CN103414762 A CN 103414762A
Authority
CN
China
Prior art keywords
backup
user
processing
task
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013103116166A
Other languages
Chinese (zh)
Other versions
CN103414762B (en
Inventor
马元英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201310311616.6A priority Critical patent/CN103414762B/en
Publication of CN103414762A publication Critical patent/CN103414762A/en
Application granted granted Critical
Publication of CN103414762B publication Critical patent/CN103414762B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明提供一种云备份方法和装置,所述方法包括:接收一用户发送的至少两条备份操作指令;生成与所述用户对应的备份任务队列,所述备份任务队列中包含与各备份操作指令分别对应的备份任务;确定与所述用户对应的存储空间,以任务调用的方式,分别调用各备份任务,完成对所述存储空间的备份操作。该方案中,针对一用户的多条操作指令,首先生成与该用户对应的备份任务队列,进而将与各操作指令分别对应的备份任务送入该队列中,相当于对各备份任务打包集中处理,使得云备份装置仅需要访问一次数据库以确定与该用户对应的存储空间,进而调用各备份任务完成对该存储空间的备份操作,从而大大降低了数据库的访问负载,提高了备份操作的处理效率。

Figure 201310311616

The present invention provides a cloud backup method and device. The method includes: receiving at least two backup operation instructions sent by a user; generating a backup task queue corresponding to the user, and the backup task queue includes information related to each backup operation Instructing corresponding backup tasks; determining the storage space corresponding to the user, calling each backup task in a task calling manner, and completing the backup operation on the storage space. In this solution, for multiple operation instructions of a user, first generate a backup task queue corresponding to the user, and then send the backup tasks corresponding to each operation instruction into the queue, which is equivalent to packaging and processing each backup task , so that the cloud backup device only needs to access the database once to determine the storage space corresponding to the user, and then call each backup task to complete the backup operation of the storage space, thereby greatly reducing the database access load and improving the processing efficiency of the backup operation .

Figure 201310311616

Description

云备份方法和装置Cloud backup method and device

技术领域technical field

本发明涉及一种数据备份技术,尤其是涉及一种云备份方法和装置。The invention relates to a data backup technology, in particular to a cloud backup method and device.

背景技术Background technique

随着云服务技术的不断发展,用户为了降低终端设备的存储压力以及数据维护、管理的成本,往往将一些重要的数据信息在云端服务器进行备份存储。With the continuous development of cloud service technology, in order to reduce the storage pressure of terminal equipment and the cost of data maintenance and management, users often backup and store some important data information on cloud servers.

在实际应用中,一个用户在进行数据备份时往往会进行多种不同操作,如上传、下载、删除等。但目前,云端服务器对于一用户的备份操作,一般采用的是非结构化的分别处理方式来完成该用户数据在云端的备份,即云端服务器在先后接收到某用户的上传和删除操作指令后,需要分别两次访问服务器中的数据库来分别确定与该用户对应的存储空间,分别完成相应的上传和删除操作。In practical applications, a user often performs various operations when performing data backup, such as uploading, downloading, and deleting. But at present, the cloud server generally adopts an unstructured separate processing method for the backup operation of a user to complete the backup of the user data in the cloud, that is, after the cloud server receives the upload and delete operation instructions of a user successively, it needs to The database in the server is accessed twice to respectively determine the storage space corresponding to the user, and complete the corresponding upload and delete operations respectively.

这种由云端服务器分别处理同一用户的不同备份操作的方法,在大量用户发起大量备份操作的情况下,需要频繁地访问数据库,使得数据库访问负载过高,备份操作处理效率过低。This method of separately processing different backup operations of the same user by the cloud server requires frequent access to the database when a large number of users initiate a large number of backup operations, making the database access load too high and the backup operation processing efficiency too low.

发明内容Contents of the invention

针对现有技术中存在的问题,本发明提供一种云备份方法和装置,用以克服现有技术中用户数据库访问负载过高、备份操作处理效率过低的缺陷。Aiming at the problems existing in the prior art, the present invention provides a cloud backup method and device to overcome the defects of high user database access load and low backup operation processing efficiency in the prior art.

本发明提供了一种云备份方法,包括:The invention provides a cloud backup method, comprising:

接收一用户发送的至少两条备份操作指令;receiving at least two backup operation instructions sent by a user;

生成与所述用户对应的备份任务队列,所述备份任务队列中包含与各备份操作指令分别对应的备份任务;generating a backup task queue corresponding to the user, the backup task queue including backup tasks corresponding to each backup operation instruction;

确定与所述用户对应的存储空间,以任务调用的方式,分别调用各备份任务,完成对所述存储空间的备份操作。The storage space corresponding to the user is determined, and each backup task is respectively invoked in a task calling manner to complete the backup operation on the storage space.

本发明提供了一种云备份装置,包括:The invention provides a cloud backup device, comprising:

接收模块,用于接收一用户发送的至少两条备份操作指令;A receiving module, configured to receive at least two backup operation instructions sent by a user;

生成模块,用于生成与所述用户对应的备份任务队列,所述备份任务队列中包含与各备份操作指令分别对应的备份任务;A generating module, configured to generate a backup task queue corresponding to the user, where the backup task queue includes backup tasks corresponding to each backup operation instruction;

处理模块,用于确定与所述用户对应的存储空间,以任务调用的方式,分别调用各备份任务,完成对所述存储空间的备份操作。The processing module is configured to determine the storage space corresponding to the user, and call each backup task in a task calling manner to complete the backup operation on the storage space.

本发明提供的云备份方法和装置,针对一用户的多条操作指令,首先生成与该用户对应的备份任务队列,进而将与各操作指令分别对应的备份任务送入该队列中,相当于对各备份任务打包集中处理,使得云备份装置仅需要访问一次数据库以确定与该用户对应的存储空间,进而调用各备份任务完成对该存储空间的备份操作,从而大大降低了数据库的访问负载,提高了备份操作的处理效率。The cloud backup method and device provided by the present invention first generates a backup task queue corresponding to the user for multiple operation instructions of a user, and then sends the backup tasks corresponding to each operation instruction into the queue, which is equivalent to Each backup task is packaged and processed centrally, so that the cloud backup device only needs to visit the database once to determine the storage space corresponding to the user, and then call each backup task to complete the backup operation of the storage space, thereby greatly reducing the database access load and improving improve the processing efficiency of backup operations.

附图说明Description of drawings

图1为本发明云备份方法实施例一的流程图;Fig. 1 is the flow chart of embodiment one of cloud backup method of the present invention;

图2为本发明云备份方法实施例二的流程图;Fig. 2 is the flowchart of the second embodiment of the cloud backup method of the present invention;

图3为处理结点二叉树结构示意图;Fig. 3 is a schematic diagram of processing node binary tree structure;

图4为本发明云备份装置实施例一的示意图;4 is a schematic diagram of Embodiment 1 of the cloud backup device of the present invention;

图5为本发明云备份装置实施例二的示意图。FIG. 5 is a schematic diagram of Embodiment 2 of the cloud backup device of the present invention.

具体实施方式Detailed ways

图1为本发明云备份方法实施例一的流程图,如图1所示,本实施例提供的云备份方法的目的在于克服现有技术中云备份平台在接收到用户的备份请求后,需要针对每一备份请求均访问一次数据库所导致的数据库访问负载过高、备份处理效率过低的问题。为解决该技术问题,本实施例采用了将一用户的多条备份指令视为一个整体的集中处理的方案,以降低数据库的访问负载,提高备份处理效率。本实施例提供的云备份方法可以由一备份装置来执行,该备份装置可以设置在云备份管理平台中,也可以独立设置。Fig. 1 is a flow chart of the first embodiment of the cloud backup method of the present invention. As shown in Fig. 1, the purpose of the cloud backup method provided in this embodiment is to overcome the need For the problems of high database access load and low backup processing efficiency caused by accessing the database once for each backup request. In order to solve this technical problem, this embodiment adopts a centralized processing solution that considers multiple backup commands of a user as a whole, so as to reduce the access load of the database and improve the efficiency of backup processing. The cloud backup method provided in this embodiment can be executed by a backup device, and the backup device can be set in the cloud backup management platform, or can be set independently.

本实施例提供的云备份方法具体包括:The cloud backup method provided in this embodiment specifically includes:

步骤101、接收一用户发送的至少两条备份操作指令;Step 101, receiving at least two backup operation instructions sent by a user;

实际应用中,当用户需要将自身终端设备中的数据在云端进行备份时,会向云端的备份装置发送备份操作指令,以触发备份装置进行用户数据的备份操作处理过程。一般地,某一用户往往会进行多种备份操作,比如,上传一文件、下载一视频文件、删除某联系人等。In practical applications, when a user needs to back up the data in his own terminal equipment on the cloud, he will send a backup operation instruction to the backup device in the cloud, so as to trigger the backup device to perform the backup operation process of the user data. Generally, a certain user often performs multiple backup operations, such as uploading a file, downloading a video file, deleting a certain contact, and so on.

本实施例中,用户发送的多条备份操作指令中,先后的两条备份操作指令可能间隔很长时间,这种情况下,如果将该两条备份操作指令集中处理,往往会大大降低备份操作处理的实时性,造成很大的延时。因此,优选地,本实施例中的所述至少两条备份操作指令可以是在一预设时间内收到的,比如在第一条备份操作指令收到时计时的一预设时间内收到的备份操作指令。In this embodiment, among the multiple backup operation instructions sent by the user, there may be a long time interval between two successive backup operation instructions. In this case, if the two backup operation instructions are processed together, the backup operation will often be greatly reduced The real-time nature of processing causes a large delay. Therefore, preferably, the at least two backup operation instructions in this embodiment may be received within a preset time, for example, within a preset time when the first backup operation instruction is received backup operation instructions.

本实施例中的备份操作指令中包括用户标识信息以及操作信息等,该操作信息包含操作类型信息,如上传、下载等,操作对象信息,如文件夹A、通讯录等。The backup operation instruction in this embodiment includes user identification information and operation information, and the operation information includes operation type information, such as upload, download, etc., and operation object information, such as folder A, address book, etc.

步骤102、生成与所述用户对应的备份任务队列,所述备份任务队列中包含与各备份操作指令分别对应的备份任务;Step 102, generating a backup task queue corresponding to the user, the backup task queue including backup tasks corresponding to each backup operation instruction;

在云备份装置接收到一用户发送的多条备份操作指令后,根据备份操作指令中所包含的用户标识信息,生成与该用户对应的备份任务队列,并将分别与各备份操作指令对应的各备份任务送入该任务队列中。也就是说,本实施例中的该备份任务队列由于是与该用户相对应的,相当于把该用户的多条备份操作指令视为一个整体。After the cloud backup device receives a plurality of backup operation instructions sent by a user, it generates a backup task queue corresponding to the user according to the user identification information contained in the backup operation instructions, and assigns each backup task queue corresponding to each backup operation instruction. Backup tasks are sent to this task queue. That is to say, since the backup task queue in this embodiment corresponds to the user, it is equivalent to treating the multiple backup operation instructions of the user as a whole.

本实施例中的所述与各备份操作指令分别对应的备份任务,是从各备份操作指令中获取必要的操作信息来描述需要进行怎样的备份操作,以使云备份装置能够根据该描述信息完成相应的备份操作。The backup task corresponding to each backup operation instruction in this embodiment is to obtain necessary operation information from each backup operation instruction to describe what kind of backup operation needs to be performed, so that the cloud backup device can complete the task according to the description information. corresponding backup operations.

步骤103、确定与所述用户对应的存储空间,以任务调用的方式,分别调用各备份任务,完成对所述存储空间的备份操作。Step 103: Determine the storage space corresponding to the user, call each backup task in a task calling manner, and complete the backup operation on the storage space.

实际应用中,云备份管理平台会为每一个授权用户分配一个存储空间,用于存储该用户的备份数据。本实施例中,云备份装置在生成与该用户对应的备份任务队列之后,根据用户标识信息可以确定与该用户对应的存储空间,进而以任务调用的方式,分别调用各备份任务,完成对所述存储空间的备份操作。In practical applications, the cloud backup management platform will allocate a storage space for each authorized user to store the user's backup data. In this embodiment, after the cloud backup device generates the backup task queue corresponding to the user, it can determine the storage space corresponding to the user according to the user identification information, and then call each backup task in a task calling manner to complete the backup tasks for all backup operation of the storage space described above.

本实施例提供的云备份方法,针对一用户的多条操作指令,首先生成与该用户对应的备份任务队列,进而将与各操作指令分别对应的备份任务送入该队列中,相当于将各备份任务视为一个整体,进行集中处理,使得云备份装置仅需要访问一次数据库以确定与该用户对应的存储空间,进而调用各备份任务完成对该存储空间的备份操作,从而大大降低了数据库的访问负载,提高了备份操作的处理效率。The cloud backup method provided in this embodiment first generates a backup task queue corresponding to the user for multiple operation instructions of a user, and then sends the backup tasks corresponding to each operation instruction into the queue, which is equivalent to sending each The backup tasks are treated as a whole and processed in a centralized manner, so that the cloud backup device only needs to access the database once to determine the storage space corresponding to the user, and then call each backup task to complete the backup operation of the storage space, thus greatly reducing the database overhead. access load, improving the processing efficiency of backup operations.

图2为本发明云备份方法实施例二的流程图,如图2所示,该方法包括:Fig. 2 is the flow chart of embodiment two of cloud backup method of the present invention, as shown in Fig. 2, this method comprises:

步骤201、接收一用户发送的至少两条备份操作指令;Step 201, receiving at least two backup operation instructions sent by a user;

该步骤与如图1所示实施例中的步骤101相同,不再赘述。This step is the same as step 101 in the embodiment shown in FIG. 1 , and will not be repeated here.

步骤202、根据结点二叉树索引表,确定与所述各备份操作指令分别对应的处理结点,并按照所述处理结点中所描述的处理模型,从所述备份操作指令中获取相应的操作信息,其中,所述结点二叉树为以至少一种处理结点作为结点的二叉树;Step 202: According to the node binary tree index table, determine the processing nodes corresponding to the respective backup operation instructions, and obtain corresponding operations from the backup operation instructions according to the processing model described in the processing nodes information, wherein the node binary tree is a binary tree with at least one processing node as a node;

现有应用中,一般采用由云备份平台中的某一处理装置对用户发送的备份操作指令进行解析,获知用户的操作信息,完成相应的备份操作处理。在这种方案中,由该处理装置集中完成对用户发送的带有不同操作信息的备份操作进行统一处理,往往效率不高。In existing applications, a certain processing device in the cloud backup platform is generally used to analyze the backup operation instruction sent by the user, obtain the user's operation information, and complete the corresponding backup operation processing. In this solution, the processing device centrally completes the unified processing of the backup operations sent by the user with different operation information, which is often inefficient.

本实施例中,为了进一步提高备份操作的处理效率,引入了处理结点的概念。所谓处理结点,即是针对用户的每一种可能的操作类型,如上传、下载、删除等,分别设置一与之对应的处理结点,用于完成该操作类型的备份操作处理过程。也就是说,本实施例中,采用与各种操作类型分别对应的处理结点来完成对用户多种备份操作的分布式处理,从而提高备份操作的处理效率。根据实际应用情况,本实施例中的处理结点包括以下结点中的至少一种结点:上传、非加密上传、加密上传、下载、非加密下载、加密下载、非加密删除、加密删除。In this embodiment, in order to further improve the processing efficiency of backup operations, the concept of processing nodes is introduced. The so-called processing node refers to setting a corresponding processing node for each possible operation type of the user, such as upload, download, delete, etc., to complete the backup operation processing process of the operation type. That is to say, in this embodiment, processing nodes corresponding to various types of operations are used to complete distributed processing of various backup operations of users, thereby improving the processing efficiency of backup operations. According to the actual application, the processing nodes in this embodiment include at least one of the following nodes: upload, unencrypted upload, encrypted upload, download, unencrypted download, encrypted download, unencrypted delete, and encrypted delete.

具体来说,云备份管理平台预先将各处理结点进行组织管理,比如,以数据表的形式进行管理,优选地,云备份管理平台将各处理组织成如图3所示的二叉树结构,并生成二叉树索引表。该二叉树索引表中记录有每个处理结点的标识信息、存储地址信息等,其中,该处理结点的标识信息与用户发送的备份操作指令中包括的操作信息中用于指示用户的备份操作动作类型的信息的表述方式一致。Specifically, the cloud backup management platform organizes and manages each processing node in advance, for example, manages in the form of a data table. Preferably, the cloud backup management platform organizes each processing into a binary tree structure as shown in FIG. 3 , and Generate a binary tree index table. The binary tree index table records the identification information and storage address information of each processing node, wherein the identification information of the processing node and the operation information included in the backup operation instruction sent by the user are used to indicate the backup operation of the user The information of the action type is expressed in the same way.

本实施例中,每个处理结点中都包含有其为完成相应的备份操作而构建的处理模型,比如,为了完成用户的加密上传的备份操作,与该加密上传操作相对应的处理结点中包含有相应的处理模型,该处理模型中例如规定了从何处获取加密密钥,对要上传的文件进行怎样的格式转换、压缩、编码等处理,以及需要获取的诸如用户标识、操作对象文件名称等操作信息。In this embodiment, each processing node includes a processing model constructed to complete the corresponding backup operation, for example, in order to complete the user's encrypted upload backup operation, the processing node corresponding to the encrypted upload operation contains the corresponding processing model, the processing model specifies, for example, where to obtain the encryption key, how to process the format conversion, compression, encoding, etc. Operational information such as the file name.

具体地,当云备份装置每接收到用户发送的一条备份操作指令后,便会根据结点二叉树索引表,确定与各备份操作指令分别对应的处理结点,并按照所述处理结点中所描述的处理模型,从各备份操作指令中获取相应的操作信息。Specifically, when the cloud backup device receives a backup operation instruction sent by the user, it will determine the processing nodes corresponding to each backup operation instruction according to the node binary tree index table, and follow the instructions in the processing node. The described processing model obtains corresponding operation information from each backup operation instruction.

另外,本实施例中的处理结点,可以采用模型-视图-控制器的MVC(Model-View-Controller,以下简称MVC)方式实现。In addition, the processing nodes in this embodiment may be implemented in a model-view-controller MVC (Model-View-Controller, hereinafter referred to as MVC) manner.

在MVC中,控制器用于接收用户的输入,并调用模型和视图来完成用户的需求;模型用于进行业务逻辑判断和数据库存取;视图用户将处理结果返回给用户。具体到本实施例中,各处理结点既可以分别以MVC方式实现,也可以所用处理结点共享一个控制器和视图。以所有处理结点共享一个控制器和视图为例,云备份装置在接收到用户发送的各备份操作指令后,根据二叉树索引表找到与该各备份操作指令分别对应的处理结点,进而在备份任务队列中根据备份任务分别调用各处理结点完成对用户存储空间的备份操作,将最终的操作结果以视图方式返回给用户。In MVC, the controller is used to receive user input, and call the model and view to complete the user's needs; the model is used for business logic judgment and database access; the view user returns the processing result to the user. Specifically in this embodiment, each processing node may be implemented in an MVC manner, or all processing nodes may share a controller and a view. Taking all processing nodes sharing one controller and view as an example, after receiving the backup operation instructions sent by the user, the cloud backup device finds the processing nodes corresponding to the backup operation instructions according to the binary tree index table, and then performs According to the backup task, the task queue calls each processing node to complete the backup operation of the user's storage space, and returns the final operation result to the user in the form of a view.

步骤203、根据所述各备份操作指令,以遍历规则遍历所述结点二叉树,并生成与遍历确定的各处理结点分别对应的各备份任务;Step 203: Traverse the binary tree of nodes according to the backup operation instructions according to the traversal rules, and generate backup tasks respectively corresponding to the processing nodes determined by the traversal;

本实施例中,当云备份装置按照各处理结点中所描述的处理模型,从与之对应的备份操作指令中获取相应的操作信息之后,根据各备份操作指令遍历结点二叉树,以获得与各备份操作指令分别对应的包含有操作信息的处理结点,进而生成与遍历确定的各处理结点分别对应的各备份任务,该备份任务中描述了采用何种处理结点来完成相应备份操作的信息以及必要的操作信息,如采用上传处理结点上传文件夹名为A的文件到用户张某的数据库中。In this embodiment, after the cloud backup device obtains the corresponding operation information from the corresponding backup operation instructions according to the processing model described in each processing node, it traverses the node binary tree according to each backup operation instruction to obtain the Each backup operation command corresponds to a processing node containing operation information, and then generates each backup task corresponding to each processing node determined by traversal. The backup task describes which processing node is used to complete the corresponding backup operation information and necessary operation information, such as using the upload processing node to upload a file named folder A to the database of user Zhang.

具体地,云备份装置可以从各备份指令中获得相应的操作类型信息,以该操作类型信息遍历结点二叉树,由于二叉树中每个处理结点都具有相应的操作类型标识信息,从而可以遍历确定与各备份操作指令分别对应的各处理结点,其中,遍历规则包括:前序遍历、后序遍历、中序遍历。Specifically, the cloud backup device can obtain the corresponding operation type information from each backup instruction, and use the operation type information to traverse the binary tree of nodes. Since each processing node in the binary tree has corresponding operation type identification information, it can be traversed to determine Each processing node corresponding to each backup operation instruction, wherein the traversal rules include: pre-order traversal, post-order traversal, and in-order traversal.

步骤204、生成与所述用户对应的备份任务队列,将所述各备份任务送入所述备份任务队列中;Step 204, generating a backup task queue corresponding to the user, and sending each backup task into the backup task queue;

云备份装置在遍历确定了与各备份操作指令分别对应的处理结点之后,生成与各处理结点分别对应的备份任务,并将该各备份任务送入与所述用户对应的备份任务队列中。After traversing and determining the processing nodes corresponding to each backup operation instruction, the cloud backup device generates backup tasks corresponding to each processing node, and sends each backup task to the backup task queue corresponding to the user .

步骤205、确定与所述用户对应的存储空间,以任务调用的方式,分别调用各备份任务,完成对所述存储空间的备份操作。Step 205: Determine the storage space corresponding to the user, and call each backup task in a task calling manner to complete the backup operation on the storage space.

云备份装置首先根据各备份操作指令中携带的用户标识确定与该用户对应的存储空间,进而以任务调用的方式,分别调用各备份任务,完成对所述存储空间的备份操作。The cloud backup device first determines the storage space corresponding to the user according to the user identification carried in each backup operation command, and then invokes each backup task in a task calling manner to complete the backup operation of the storage space.

具体地,所述以任务调用的方式,分别调用各备份任务,完成对所述存储空间的备份操作,包括:Specifically, invoking each backup task in a task calling manner to complete the backup operation on the storage space includes:

依次顺序调用各备份任务,完成对所述存储空间的备份操作;Invoking each backup task in sequence to complete the backup operation on the storage space;

或者,or,

确定可并行处理的备份任务的数量;Determine the number of backup tasks that can be processed in parallel;

对确定的数量的备份任务进行调度,完成对所述存储空间的备份操作。A certain number of backup tasks are scheduled to complete the backup operation on the storage space.

具体来说,云备份装置既可以按照上述遍历规则中所采用的遍历顺序,以先进先出的顺序依次按照备份任务,调用相应的处理结点完成对该用户存储空间的备份操作,也可以并行处理各备份任务。比如,按照各备份任务的读/写操作特点将各备份任务进行分类,对读类的各备份任务可以进行并行统一处理,从而大大提高备份操作的处理效率。Specifically, the cloud backup device can call the corresponding processing node to complete the backup operation of the user's storage space according to the traversal sequence adopted in the above traversal rules, in order of first-in-first-out order, or parallel Handle individual backup tasks. For example, each backup task is classified according to the read/write operation characteristics of each backup task, and each backup task of the read type can be processed in parallel and uniformly, thereby greatly improving the processing efficiency of the backup operation.

本实施例提供的云备份方法,采用与一用户发送的多条备份操作指令分别对应的各处理结点来分布式地完成相应的备份操作,有利于提供备份操作处理的效率;生成的与该用户相对应的备份任务队列中包含有与各处理结点相对应的备份任务,将各备份任务形成一个整体,减小了用户数据库的访问负载;采用二叉树结构对处理结点进行组织,相对于传统查数据表的方式,提高了确定处理结点的效率;对各备份任务进行并行调用,进一步提高了备份操作的处理效率。The cloud backup method provided in this embodiment uses processing nodes corresponding to multiple backup operation instructions sent by a user to complete the corresponding backup operations in a distributed manner, which is beneficial to improve the efficiency of backup operation processing; The backup task queue corresponding to the user contains backup tasks corresponding to each processing node, which forms each backup task as a whole and reduces the access load of the user database; the processing nodes are organized using a binary tree structure, which is relatively The traditional way of looking up the data table improves the efficiency of determining the processing node; calling each backup task in parallel further improves the processing efficiency of the backup operation.

图4为本发明云备份装置实施例一的示意图,如图4所示,该装置包括:Fig. 4 is a schematic diagram of Embodiment 1 of the cloud backup device of the present invention. As shown in Fig. 4, the device includes:

接收模块11,用于接收一用户发送的至少两条备份操作指令;A receiving module 11, configured to receive at least two backup operation instructions sent by a user;

生成模块12,用于生成与所述用户对应的备份任务队列,所述备份任务队列中包含与各备份操作指令分别对应的备份任务;A generating module 12, configured to generate a backup task queue corresponding to the user, wherein the backup task queue includes backup tasks corresponding to each backup operation instruction;

处理模块13,用于确定与所述用户对应的存储空间,以任务调用的方式,分别调用各备份任务,完成对所述存储空间的备份操作。The processing module 13 is configured to determine the storage space corresponding to the user, call each backup task in a task calling manner, and complete the backup operation on the storage space.

本实施例的装置可以用于执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to execute the technical solution of the method embodiment shown in FIG. 1 , and its implementation principle and technical effect are similar, and details are not repeated here.

图5为本发明云备份装置实施例二的示意图,如图5所示,本实施例在图4所示实施例的基础上,所述装置还包括:Fig. 5 is a schematic diagram of the second embodiment of the cloud backup device of the present invention. As shown in Fig. 5, this embodiment is based on the embodiment shown in Fig. 4, and the device further includes:

确定模块21,用于在生成与所述用户对应的备份任务队列前,根据结点二叉树索引表,确定与所述各备份操作指令分别对应的处理结点,并按照所述处理结点中所描述的处理模型,从所述备份操作指令中获取相应的操作信息,其中,所述结点二叉树为以至少一种处理结点作为结点的二叉树;The determination module 21 is used to determine the processing nodes corresponding to the backup operation instructions respectively according to the node binary tree index table before generating the backup task queue corresponding to the user, and according to the processing nodes specified in the processing nodes The described processing model obtains corresponding operation information from the backup operation instruction, wherein the node binary tree is a binary tree with at least one processing node as a node;

其中,所述处理结点包括以下结点中的至少一种结点:上传、非加密上传、加密上传、下载、非加密下载、加密下载、非加密删除、加密删除;Wherein, the processing node includes at least one of the following nodes: upload, non-encrypted upload, encrypted upload, download, non-encrypted download, encrypted download, non-encrypted delete, encrypted delete;

所述处理结点以模型-视图-控制器的MVC方式实现;The processing node is implemented in the MVC mode of model-view-controller;

所述生成模块12,包括:The generating module 12 includes:

遍历单元121,用于根据所述各备份操作指令,以遍历规则遍历所述结点二叉树,并生成与遍历确定的各处理结点分别对应的各备份任务;The traversal unit 121 is configured to traverse the node binary tree according to the backup operation instructions according to the traversal rules, and generate backup tasks respectively corresponding to the processing nodes determined by the traversal;

所述遍历规则,包括:前序遍历、后序遍历、中序遍历;The traversal rules include: pre-order traversal, post-order traversal, and in-order traversal;

生成单元122,用于生成与所述用户对应的备份任务队列,将所述各备份任务送入所述备份任务队列中。The generating unit 122 is configured to generate a backup task queue corresponding to the user, and send each backup task into the backup task queue.

进一步地,所述处理模块13,具体用于:Further, the processing module 13 is specifically used for:

依次顺序调用各备份任务,完成对所述存储空间的备份操作;Invoking each backup task in sequence to complete the backup operation on the storage space;

或者,or,

确定可并行处理的备份任务的数量;Determine the number of backup tasks that can be processed in parallel;

对确定的数量的备份任务进行调度,完成对所述存储空间的备份操作。A certain number of backup tasks are scheduled to complete the backup operation on the storage space.

本实施例的装置可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 2 , and its implementation principle and technical effect are similar, and details are not repeated here.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (9)

1.一种云备份方法,其特征在于,包括:1. A cloud backup method, characterized in that, comprising: 接收一用户发送的至少两条备份操作指令;receiving at least two backup operation instructions sent by a user; 生成与所述用户对应的备份任务队列,所述备份任务队列中包含与各备份操作指令分别对应的备份任务;generating a backup task queue corresponding to the user, the backup task queue including backup tasks corresponding to each backup operation instruction; 确定与所述用户对应的存储空间,以任务调用的方式,分别调用各备份任务,完成对所述存储空间的备份操作。The storage space corresponding to the user is determined, and each backup task is respectively invoked in a task calling manner to complete the backup operation on the storage space. 2.根据权利要求1所述的方法,其特征在于,所述生成与所述用户对应的备份任务队列,所述备份任务队列中包含与各备份操作指令分别对应的备份任务之前,还包括:2. The method according to claim 1, wherein the generating a backup task queue corresponding to the user, before the backup task queue includes backup tasks respectively corresponding to each backup operation instruction, further includes: 根据结点二叉树索引表,确定与所述各备份操作指令分别对应的处理结点,并按照所述处理结点中所描述的处理模型,从所述备份操作指令中获取相应的操作信息,其中,所述结点二叉树为以至少一种处理结点作为结点的二叉树;According to the node binary tree index table, determine the processing nodes corresponding to the respective backup operation instructions, and obtain corresponding operation information from the backup operation instructions according to the processing model described in the processing nodes, wherein , the node binary tree is a binary tree with at least one processing node as a node; 所述生成与所述用户对应的备份任务队列,所述备份任务队列中包含与各备份操作指令分别对应的备份任务,包括:The generating a backup task queue corresponding to the user, the backup task queue includes backup tasks corresponding to each backup operation instruction, including: 根据所述各备份操作指令,以遍历规则遍历所述结点二叉树,并生成与遍历确定的各处理结点分别对应的各备份任务;Traverse the node binary tree according to the backup operation instructions according to the traversal rules, and generate backup tasks respectively corresponding to the processing nodes determined by the traversal; 生成与所述用户对应的备份任务队列,将所述各备份任务送入所述备份任务队列中。A backup task queue corresponding to the user is generated, and each backup task is sent into the backup task queue. 3.根据权利要求2所述的方法,其特征在于,所述处理结点包括以下结点中的至少一种结点:3. The method according to claim 2, wherein the processing node comprises at least one node in the following nodes: 上传、非加密上传、加密上传、下载、非加密下载、加密下载、非加密删除、加密删除。Upload, Unencrypted Upload, Encrypted Upload, Download, Unencrypted Download, Encrypted Download, Unencrypted Delete, Encrypted Delete. 4.根据权利要求2或3所述的方法,其特征在于,所述处理结点以模型-视图-控制器的MVC方式实现。4. The method according to claim 2 or 3, characterized in that, the processing node is implemented in a model-view-controller MVC manner. 5.根据权利要求2或3所述的方法,其特征在于,所述遍历规则,包括:5. The method according to claim 2 or 3, wherein the traversal rules include: 前序遍历、后序遍历、中序遍历。Preorder traversal, postorder traversal, inorder traversal. 6.根据权利要求1~3中任一项所述的方法,其特征在于,所述以任务调用的方式,分别调用各备份任务,完成对所述存储空间的备份操作,包括:6. The method according to any one of claims 1 to 3, characterized in that, calling each backup task in a task calling manner to complete the backup operation of the storage space includes: 依次顺序调用各备份任务,完成对所述存储空间的备份操作;Invoking each backup task in sequence to complete the backup operation on the storage space; 或者,or, 确定可并行处理的备份任务的数量;Determine the number of backup tasks that can be processed in parallel; 对确定的数量的备份任务进行调度,完成对所述存储空间的备份操作。A certain number of backup tasks are scheduled to complete the backup operation on the storage space. 7.一种云备份装置,其特征在于,包括:7. A cloud backup device, characterized in that, comprising: 接收模块,用于接收一用户发送的至少两条备份操作指令;A receiving module, configured to receive at least two backup operation instructions sent by a user; 生成模块,用于生成与所述用户对应的备份任务队列,所述备份任务队列中包含与各备份操作指令分别对应的备份任务;A generating module, configured to generate a backup task queue corresponding to the user, where the backup task queue includes backup tasks corresponding to each backup operation instruction; 处理模块,用于确定与所述用户对应的存储空间,以任务调用的方式,分别调用各备份任务,完成对所述存储空间的备份操作。The processing module is configured to determine the storage space corresponding to the user, and call each backup task in a task calling manner to complete the backup operation on the storage space. 8.根据权利要求7所述的装置,其特征在于,还包括:8. The device according to claim 7, further comprising: 确定模块,用于在生成与所述用户对应的备份任务队列前,根据结点二叉树索引表,确定与所述各备份操作指令分别对应的处理结点,并按照所述处理结点中所描述的处理模型,从所述备份操作指令中获取相应的操作信息,其中,所述结点二叉树为以至少一种处理结点作为结点的二叉树;The determination module is used to determine the processing nodes corresponding to the backup operation instructions respectively according to the node binary tree index table before generating the backup task queue corresponding to the user, and perform the processing according to the description in the processing node A processing model for obtaining corresponding operation information from the backup operation instruction, wherein the node binary tree is a binary tree with at least one processing node as a node; 其中,所述处理结点包括以下结点中的至少一种结点:上传、非加密上传、加密上传、下载、非加密下载、加密下载、非加密删除、加密删除;Wherein, the processing node includes at least one of the following nodes: upload, non-encrypted upload, encrypted upload, download, non-encrypted download, encrypted download, non-encrypted delete, encrypted delete; 所述处理结点以模型-视图-控制器的MVC方式实现;The processing node is implemented in the MVC mode of model-view-controller; 所述生成模块,包括:The generating module includes: 遍历单元,用于根据所述各备份操作指令,以遍历规则遍历所述结点二叉树,并生成与遍历确定的各处理结点分别对应的各备份任务;The traversal unit is configured to traverse the node binary tree according to the backup operation instructions according to the traversal rules, and generate backup tasks corresponding to the processing nodes determined by the traversal; 所述遍历规则,包括:前序遍历、后序遍历、中序遍历;The traversal rules include: pre-order traversal, post-order traversal, and in-order traversal; 生成单元,用于生成与所述用户对应的备份任务队列,将所述各备份任务送入所述备份任务队列中。The generating unit is configured to generate a backup task queue corresponding to the user, and send each of the backup tasks into the backup task queue. 9.根据权利要求7或8所述的装置,其特征在于,所述处理模块,具体用于:9. The device according to claim 7 or 8, wherein the processing module is specifically used for: 依次顺序调用各备份任务,完成对所述存储空间的备份操作;Invoking each backup task in sequence to complete the backup operation on the storage space; 或者,or, 确定可并行处理的备份任务的数量;Determine the number of backup tasks that can be processed in parallel; 对确定的数量的备份任务进行调度,完成对所述存储空间的备份操作。A certain number of backup tasks are scheduled to complete the backup operation on the storage space.
CN201310311616.6A 2013-07-23 2013-07-23 cloud backup method and device Active CN103414762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310311616.6A CN103414762B (en) 2013-07-23 2013-07-23 cloud backup method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310311616.6A CN103414762B (en) 2013-07-23 2013-07-23 cloud backup method and device

Publications (2)

Publication Number Publication Date
CN103414762A true CN103414762A (en) 2013-11-27
CN103414762B CN103414762B (en) 2016-05-25

Family

ID=49607748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310311616.6A Active CN103414762B (en) 2013-07-23 2013-07-23 cloud backup method and device

Country Status (1)

Country Link
CN (1) CN103414762B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747339A (en) * 2013-12-23 2014-04-23 乐视致新电子科技(天津)有限公司 Method and apparatus for resolving no response condition of on-line video by using android device
CN105045675A (en) * 2015-06-12 2015-11-11 广东小天才科技有限公司 Method and device for realizing data backup in application
CN105404474A (en) * 2015-12-07 2016-03-16 上海爱数信息技术股份有限公司 Data migration method of heterogeneous distributed memory system
CN106921959A (en) * 2017-04-26 2017-07-04 努比亚技术有限公司 The brush machine method of mobile terminal, device and brush machine equipment
CN108287747A (en) * 2017-01-09 2018-07-17 中国移动通信集团贵州有限公司 Method and apparatus for virtual machine backup
CN111176899A (en) * 2019-12-29 2020-05-19 浪潮(北京)电子信息产业有限公司 Cloud backup method, device and equipment
CN112099958A (en) * 2020-11-17 2020-12-18 深圳壹账通智能科技有限公司 Distributed multi-task management method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1869939A (en) * 2005-05-27 2006-11-29 华为技术有限公司 Method for access data base by multi-line program applied program
JP2009252189A (en) * 2008-04-10 2009-10-29 Canon Software Inc Work flow server, work flow system, method and program for accessing external data in work flow system, and recording medium recording the program
CN101894163A (en) * 2010-07-23 2010-11-24 中兴通讯股份有限公司 A database operation scheduling method and device for a performance data acquisition system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1869939A (en) * 2005-05-27 2006-11-29 华为技术有限公司 Method for access data base by multi-line program applied program
JP2009252189A (en) * 2008-04-10 2009-10-29 Canon Software Inc Work flow server, work flow system, method and program for accessing external data in work flow system, and recording medium recording the program
CN101894163A (en) * 2010-07-23 2010-11-24 中兴通讯股份有限公司 A database operation scheduling method and device for a performance data acquisition system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747339A (en) * 2013-12-23 2014-04-23 乐视致新电子科技(天津)有限公司 Method and apparatus for resolving no response condition of on-line video by using android device
CN105045675A (en) * 2015-06-12 2015-11-11 广东小天才科技有限公司 Method and device for realizing data backup in application
CN105404474A (en) * 2015-12-07 2016-03-16 上海爱数信息技术股份有限公司 Data migration method of heterogeneous distributed memory system
CN108287747A (en) * 2017-01-09 2018-07-17 中国移动通信集团贵州有限公司 Method and apparatus for virtual machine backup
CN106921959A (en) * 2017-04-26 2017-07-04 努比亚技术有限公司 The brush machine method of mobile terminal, device and brush machine equipment
CN106921959B (en) * 2017-04-26 2020-12-29 努比亚技术有限公司 Mobile terminal flashing method and device and flashing equipment
CN111176899A (en) * 2019-12-29 2020-05-19 浪潮(北京)电子信息产业有限公司 Cloud backup method, device and equipment
CN112099958A (en) * 2020-11-17 2020-12-18 深圳壹账通智能科技有限公司 Distributed multi-task management method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN103414762B (en) 2016-05-25

Similar Documents

Publication Publication Date Title
KR102444106B1 (en) Calling external functions from the data warehouse
CN103414762B (en) cloud backup method and device
US20230306020A1 (en) System and method for analysis of graph databases using intelligent reasoning systems
US8769269B2 (en) Cloud data management
CN110703980B (en) A file transmission method and device
US8694685B2 (en) Migrating virtual machines with adaptive compression
CN103020255B (en) Classification storage means and device
CN109726004B (en) Data processing method and device
CN102713854A (en) Method and apparatus for saving and restoring container state
CN107391770B (en) Method, device and equipment for processing data and storage medium
CN103617211A (en) HBase loaded data importing method
CN104603762A (en) Supporting coordinated access to file system's shared storage using automatic alignment of parallel file access protocol and metadata management
US9916319B2 (en) Effective method to compress tabular data export files for data movement
CN112650710B (en) Sending method and device for data migration, storage medium, and electronic device
US10257283B2 (en) System, method and computer program product for network function modification
CN104836792A (en) Enterprise management data processing system
CN104461929B (en) Distributed data cache method based on blocker
CN115176452A (en) Method and system for data management in a communication network
CN114731342B (en) Managed data export from edge devices to remote networks
WO2018188607A1 (en) Stream processing method and device
US10423785B2 (en) Data scanning within distributed computing components
US20140164434A1 (en) Streaming data pattern recognition and processing
CN107463450A (en) The data processing method and device of container
CN103312823B (en) A kind of cloud computing system
CN111209263A (en) Data storage method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant