CN112181720A - Virtual data center backup method and device based on cloud management platform - Google Patents

Virtual data center backup method and device based on cloud management platform Download PDF

Info

Publication number
CN112181720A
CN112181720A CN202010956046.6A CN202010956046A CN112181720A CN 112181720 A CN112181720 A CN 112181720A CN 202010956046 A CN202010956046 A CN 202010956046A CN 112181720 A CN112181720 A CN 112181720A
Authority
CN
China
Prior art keywords
backup
configuration information
container application
data center
virtual data
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
CN202010956046.6A
Other languages
Chinese (zh)
Inventor
刘茂扬
张德波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202010956046.6A priority Critical patent/CN112181720A/en
Publication of CN112181720A publication Critical patent/CN112181720A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a virtual data center backup method based on a cloud management platform, which provides a fine-grained backup mechanism, can backup resources and storage of container application granularity in a virtual data center based on the cloud management platform, and meets the requirement of small-grained backup of a user. Moreover, the backup mechanism performs file synchronization and backup based on file paths of the container storage volume in the cloud management platform on the nodes, does not depend on the storage volume backup mechanism of a storage manufacturer, and is suitable for backup of the storage volume with small granularity. In addition, the application also provides a virtual data center backup device, equipment and a readable storage medium based on the cloud management platform, and the technical effect of the virtual data center backup device corresponds to the method.

Description

Virtual data center backup method and device based on cloud management platform
Technical Field
The present application relates to the field of computer technologies, and in particular, to a virtual data center backup method, device, and apparatus based on a cloud management platform, and a readable storage medium.
Background
Currently, in the k8s cluster, the backup mechanism is mostly a complete machine backup for a virtual machine, a physical machine, or a backup for the k8s cluster. However, in practical applications, users often have a fine-grained backup requirement, such as backing up only a part of resources and storage under a virtual data center to which the users belong.
In addition, most of the current backups of the container storage volumes depend on backup devices provided by storage server manufacturers, and different storage server manufacturers have different partial mechanisms and are all at a storage server end, so that the backups cannot be uniformly performed on a cloud management platform level.
Therefore, how to implement a fine-grained backup scheme on a cloud management platform of a k8s cluster is a problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a virtual data center backup method, device, equipment and readable storage medium based on a cloud management platform, and aims to solve the problem that fine-grained backup cannot be realized on the cloud management platform at present. The specific scheme is as follows:
in a first aspect, the present application provides a virtual data center backup method based on a cloud management platform, including:
determining a container application to be backed up in the virtual data center according to the backup request;
acquiring configuration information of the container application from a bottom layer k8s cluster, and storing the configuration information to an object storage server;
determining a storage volume corresponding to the container application according to the configuration information, and acquiring a mounting path of the storage volume; and according to the mounting path, synchronizing the storage data of the container application to the object server.
Preferably, the determining, according to the backup request, a container application to be backed up in the virtual data center includes:
according to the backup request, a target virtual data center is determined, and a container application to be backed up in the target virtual data center is determined.
Preferably, the determining, according to the backup request, a container application to be backed up in the virtual data center includes:
determining a container application to be backed up in the virtual data center according to the backup request, and determining target backup time;
correspondingly, the obtaining configuration information of the container application from the bottom k8s cluster, and storing the configuration information to an object storage server includes:
and when the target backup time is reached, acquiring the configuration information of the container application from the bottom layer k8s cluster, and storing the configuration information to an object storage server.
Preferably, the obtaining configuration information of the container application from the bottom k8s cluster, and storing the configuration information in an object storage server, includes:
acquiring configuration information of the container application from a bottom layer k8s cluster, and generating a yaml file according to the configuration information; creating a target directory at an object storage server, and storing the yaml file into the target directory, wherein the target directory comprises the following information: identification information of the virtual data center, a timestamp, an application resource type and a file name.
Preferably, the synchronizing the storage data of the container application to the object server according to the mount path includes:
and synchronizing the storage data of the container application to the object server according to the mounting path by adopting a synchronization tool rclone.
Preferably, the method further comprises the following steps:
determining a container application to be restored in the virtual data center according to the restoration request;
acquiring configuration information of the container application from an object storage server, and writing the configuration information into a bottom layer k8s cluster;
and determining a storage volume corresponding to the container application according to the configuration information, and synchronizing the storage data of the container application in the object server to a mount path of the storage volume when the storage volume is in a binding state.
Preferably, the obtaining the configuration information of the container application from the object storage server, and writing the configuration information into the bottom layer k8s cluster, includes:
acquiring configuration information of the container application from an object storage server to obtain a yaml file; convert the yaml file to a json object and write the json object to the underlying k8s cluster.
In a second aspect, the present application provides a virtual data center backup device based on a cloud management platform, including:
a request analysis module: the backup server is used for determining a container application to be backed up in the virtual data center according to the backup request;
the configuration information backup module: the system is used for acquiring the configuration information of the container application from the bottom k8s cluster and storing the configuration information to an object storage server;
the storage data backup module: the storage volume corresponding to the container application is determined according to the configuration information, and a mounting path of the storage volume is obtained; and according to the mounting path, synchronizing the storage data of the container application to the object server.
In a third aspect, the present application provides a virtual data center backup device based on a cloud management platform, including:
a memory: for storing a computer program;
a processor: the computer program is used for executing the computer program to realize the steps of the virtual data center backup method based on the cloud management platform.
In a fourth aspect, the present application provides a readable storage medium for storing a computer program, which when executed by a processor is configured to implement the steps of the virtual data center backup method based on a cloud management platform as described above.
The application provides a virtual data center backup method based on a cloud management platform, which comprises the following steps: determining a container application to be backed up in the virtual data center according to the backup request; acquiring configuration information of the container application from a bottom k8s cluster, and storing the configuration information to an object storage server; determining a storage volume corresponding to the container application according to the configuration information, and acquiring a mounting path of the storage volume; and according to the mounting path, synchronizing the storage data of the container application to the object server.
Therefore, the method provides a fine-grained backup mechanism, resources and storage of the container application granularity in the virtual data center can be backed up based on the cloud management platform, targeted backup is achieved, and the requirement of small-grained backup of a user is met. Moreover, the backup mechanism performs file synchronization and backup based on file paths of the container storage volume in the cloud management platform on the nodes, does not depend on the storage volume backup mechanism of a storage manufacturer, and is suitable for backup of the storage volume with small granularity.
In addition, the application also provides a virtual data center backup device, equipment and a readable storage medium based on the cloud management platform, and the technical effect corresponds to the method, and is not repeated here.
Drawings
For a clearer explanation of the embodiments or technical solutions of the prior art of the present application, the drawings needed for the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart illustrating an implementation of a backup process in an embodiment of a virtual data center backup method based on a cloud management platform according to the present application;
fig. 2 is a flowchart illustrating an implementation of a recovery process in an embodiment of a virtual data center backup method based on a cloud management platform according to the present application;
fig. 3 is a schematic diagram of a backup process in a second embodiment of a virtual data center backup method based on a cloud management platform according to the present application;
fig. 4 is a schematic diagram of a recovery process in a second embodiment of a virtual data center backup method based on a cloud management platform according to the present application;
fig. 5 is a functional block diagram of an embodiment of a virtual data center backup device based on a cloud management platform according to the present application.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Currently, in the k8s cluster, the backup mechanism is generally the backup for the virtual machine complete machine, the physical machine complete machine, and the whole k8s cluster. The backup granularity is large, and the fine-grained backup requirement of a user cannot be met. Moreover, the backup of the storage volume of the current container generally depends on a backup device provided by a storage server manufacturer, different storage server manufacturers have different backup mechanisms and perform backup on a storage server side, and the backup cannot be uniformly performed on a cloud management platform level.
In order to solve the problem, the application provides a virtual data center backup method, device, equipment and readable storage medium based on a cloud management platform, which can backup resources and storage of container application granularity in the virtual data center based on the cloud management platform, synchronize and backup files based on a file path of a container storage volume on a node, and do not depend on a storage volume backup mechanism of a storage manufacturer.
Referring to fig. 1, a first embodiment of a virtual data center backup method based on a cloud management platform, which is provided by the present application, is described below, and the first embodiment is implemented based on the cloud management platform, and includes the following steps:
s101, determining a container application to be backed up in a virtual data center according to a backup request;
s102, acquiring configuration information of the container application from a bottom layer k8S cluster, and storing the configuration information to an object storage server;
s103, determining a storage volume corresponding to the container application according to the configuration information, and acquiring a mounting path of the storage volume; and according to the mounting path, synchronizing the storage data of the container application to the object server.
The backup of the container application includes two backup processes: resource backup and storage backup. The resource backup mainly refers to backup of configuration information of the container application, and the storage backup mainly refers to backup of actual storage data of the container application.
When resource backup is carried out, a user can directly select a container application which needs to be backed up in a virtual data center on a cloud management platform, or can select a target virtual data center first, then further select the container application which needs to be backed up in the selected target virtual data center, and finally generate and send a corresponding backup request. Then, in this embodiment, by analyzing the backup request, the target virtual data center is determined, the container application to be backed up in the target virtual data center is determined, the configuration information of the container application is acquired in the bottom layer k8s cluster, and is read and recorded in the yaml format, and finally, the configuration information is stored in the object storage server at the back end of the cloud management platform.
The object storage server may be a Minio (object storage service published under Apache License v 2.0) object storage server. After the configuration information is obtained, the configuration information can be compressed into a compressed packet and then stored in the object storage server, so that the efficiency is improved. In addition, after successfully storing the configuration information to the object storage server, a corresponding backup record may be generated at the cloud management platform.
As a preferred embodiment, when the user issues the backup request on the cloud management platform, the user may further specify a backup time, such as immediate execution or timed execution. When the target backup time is executed, if and only if the target backup time is reached, the resource backup operation is executed, that is, the configuration information of the container application is acquired from the bottom k8s cluster and stored to the object storage server.
When performing storage backup, since the storage used in k8s is still mounted in the folder of the node corresponding to the container, for the stored backup, the cloud management platform of this embodiment finds the folder corresponding to the storage volume, and then synchronizes the corresponding volume content to the object storage server at the back end of the cloud management platform. As a specific embodiment, the storage data of the container application may be synchronized to the object server through a synchronization tool, such as rclone (an open-source synchronization tool with command lines, mainly oriented to data synchronization of cloud storage).
The backup process is described above, and in practical applications, the main purpose of the backup is to restore. The following describes a recovery process corresponding to the above backup process, and as shown in fig. 2, the recovery process mainly includes the following steps:
s201, determining a container application to be restored in the virtual data center according to the restoration request;
s202, acquiring configuration information of the container application from the object storage server, and writing the configuration information into a bottom layer k8S cluster;
s203, determining a storage volume corresponding to the container application according to the configuration information, and synchronizing the storage data of the container application in the object server to a mount path of the storage volume when the storage volume is in a binding state.
Corresponding to the backup process, the recovery process of the container application mainly includes resource recovery and storage recovery, wherein the resource recovery refers to recovery of the configuration information, and the storage recovery refers to recovery of the actual stored data.
When resource recovery is carried out, the object storage interface is called to obtain the configuration information of the container application to be recovered, the configuration information is converted into format data corresponding to the k8s interface, the interface of the k8s is called, corresponding resources are created again in the bottom layer k8s cluster, and corresponding recovery records are generated in the cloud management platform.
And after all resources are recovered, performing storage recovery. And positioning a node position and a folder path saved after the container storage volume is newly built, positioning the storage volume position through the node position and the folder path, and restoring the storage data stored on the object storage and covering the corresponding file.
In summary, the virtual data center backup method based on the cloud management platform provided by this embodiment is applied to the K8 s-based cloud management platform, and is a very necessary function for backup and recovery of resources and data in the cloud management platform, and in terms of business requirements, a customer also requires a backup function for virtual data center resources in the cloud management platform. In response to the requirement, the present embodiment implements a fine-grained backup scheme for a virtual data center and a container application in the virtual data center. The backup efficiency can be improved, and backup can be carried out in a targeted manner.
Because the embodiment is only used for fine-grained backup of the storage volume of partial resources and resources, the embodiment provides a storage volume backup mechanism realized by backup of the mount path, and the mechanism is fast, convenient and flexible, can be uniformly managed on a cloud management platform, and does not depend on a storage server manufacturer.
Through the backup scheme, a user of the cloud management platform can manually or regularly backup the container application in the virtual data center, and can quickly restore the container application corresponding to the virtual data center according to the backup file.
An embodiment of a virtual data center backup method based on a cloud management platform provided by the present application is described in detail below, and the embodiment is implemented based on the foregoing embodiment, so as to be expanded to a specific implementation in an actual application.
The second embodiment is applied to a cloud management platform, and the cloud management platform integrates Minio object storage and rclone synchronization tools during deployment.
The backup process in the second embodiment is shown in fig. 3, and mainly includes:
s301, a user selects a virtual data center to be backed up in the cloud management platform, and selects a container application to be backed up in the selected virtual data center, wherein the container application includes but is not limited to the following types: stateless load, stateful load, task, timed task, normal configuration, encrypted configuration. Then, the user can further select immediate backup or timed backup, the cloud management platform records the container application and the backup time which the user needs to backup, generates a backup task, and stores the backup task in the database.
And S302, when the backup time set by the user is reached, the cloud management platform determines the container applications to be backed up, calls a k8S interface corresponding to the bottom layer for each container application according to resource classification in the virtual data center, acquires the configuration information of the current container application, and stores the configuration information in the cloud management platform in a yaml format.
S303, the cloud management platform establishes a corresponding file directory in an object storage server at the back end of the cloud management platform for the virtual data center to be backed up, where the file template format may specifically be: virtual data center name-timestamp/resource type/corresponding resource file.
S304, the cloud management platform calls an object storage interface, and the acquired configuration information in the yaml format is stored in a file.
And S305, after the resources are completely backed up, the cloud management platform starts to perform storage backup. And traversing the storage volume information under the corresponding virtual data center, finding a mounted storage volume list, and finding the mounted node information and the mounted path of the storage volume.
And S306, after the mounting path of the storage volume is determined, the cloud management platform synchronizes the file corresponding to the mounting path to the specified directory of the object storage server at the rear end of the cloud management platform through the rclone tool. The designated directory is not necessarily the newly created file directory, as long as there is a correspondence between the two directories.
And S307, after all container applications are backed up, the cloud management platform generates a corresponding record of successful backup, and can notify according to information such as a mailbox address set in the cloud management platform by a user.
The recovery process in the second embodiment is shown in fig. 4, and mainly includes:
s401, a user selects a container application to be recovered in the cloud management platform, selects recovery time, and the cloud management platform generates a recovery task.
S402, after the recovery time specified by the user is reached, the cloud management platform determines the container application to be recovered, calls an object storage interface to inquire corresponding file information in an object storage server, and calls the interface to acquire the file information into the cloud management platform.
S403, the cloud management platform analyzes the acquired file information, sequentially reads the file information and converts the file information in the yaml format into a corresponding json object.
S404, analyzing information such as corresponding resource names, versions and naming spaces in the bottom layer k8S according to the json object obtained in the third step, firstly checking whether the data exists in the platform by the cloud management platform according to the information, and directly calling a creation interface in the cloud management platform to create if the data does not exist in the platform; and otherwise, calling an updating interface in the cloud management platform for updating.
S405, after all resources are restored, starts restoring the storage. The cloud management platform traverses the json object acquired in S403, searches for corresponding storage volume information, and starts to restore a new storage volume when it is found that the states of all backup storage volumes are already in the binding state.
S406, because all storage volumes are restored at this time, under the docker folder where the storage volume is mounted on the corresponding node, finding the corresponding folder through the node on which the storage volume is mounted and the name of the corresponding storage volume, and after finding the corresponding folder and the path, setting the synchronization target path as the path of the folder corresponding to the current node and setting the source path as the backup file on the Minio storage through an rclone command by the cloud management platform for synchronization.
And S407, after the application recovery of all the containers is successful, generating a successful recovery record, and notifying according to information such as mailbox addresses set in the cloud management platform by the user.
It can be seen that, according to the virtual data center backup method based on the cloud management platform provided by this embodiment, a backup and recovery mechanism based on the k8s resource and storage stored in the object storage is provided in the cloud management platform, and through this mechanism, a user can quickly backup and recover the resource of the container application granularity and the virtual data center granularity in the cloud management platform. In addition, the embodiment does not depend on a storage volume backup mechanism of a storage manufacturer, the backup mechanism of the storage volume in the embodiment performs file synchronization and backup based on a file path of a container storage volume in a cloud management platform on a node, a storage part is not required to be performed on a storage server, and the method is suitable for backup of the storage volume with small granularity.
In the following, a virtual data center backup device based on a cloud management platform provided in an embodiment of the present application is introduced, and a virtual data center backup device based on a cloud management platform described below and a virtual data center backup method based on a cloud management platform described above may be referred to in a corresponding manner.
As shown in fig. 5, the virtual data center backup apparatus based on the cloud management platform according to this embodiment includes:
the request parsing module 501: the backup server is used for determining a container application to be backed up in the virtual data center according to the backup request;
configuration information backup module 502: the system is used for acquiring configuration information of the container application from the bottom k8s cluster and storing the configuration information to the object storage server;
storage data backup module 503: the storage volume corresponding to the container application is determined according to the configuration information, and a mounting path of the storage volume is obtained; and according to the mounting path, synchronizing the storage data of the container application to the object server.
The virtual data center backup device based on the cloud management platform of this embodiment is used to implement the virtual data center backup method based on the cloud management platform, and therefore a specific implementation manner of the device may be found in the foregoing embodiment parts of the virtual data center backup method based on the cloud management platform, for example, the request analysis module 501, the configuration information backup module 502, and the storage data backup module 503 are respectively used to implement steps S101, S102, and S103 in the virtual data center backup method based on the cloud management platform. Therefore, specific embodiments thereof may be referred to in the description of the corresponding respective partial embodiments, and will not be described herein.
In addition, since the virtual data center backup device based on the cloud management platform of this embodiment is used to implement the virtual data center backup method based on the cloud management platform, the role of the virtual data center backup device corresponds to that of the method, and details are not repeated here.
In addition, the present application further provides a virtual data center backup device based on a cloud management platform, including:
a memory: for storing a computer program;
a processor: for executing computer programs to implement the steps of the cloud management platform-based virtual data center backup method as described above.
Finally, the present application provides a readable storage medium for storing a computer program for implementing the steps of the cloud management platform based virtual data center backup method as described above when the computer program is executed by a processor.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above detailed descriptions of the solutions provided in the present application, and the specific examples applied herein are set forth to explain the principles and implementations of the present application, and the above descriptions of the examples are only used to help understand the method and its core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A virtual data center backup method based on a cloud management platform is characterized by comprising the following steps:
determining a container application to be backed up in the virtual data center according to the backup request;
acquiring configuration information of the container application from a bottom layer k8s cluster, and storing the configuration information to an object storage server;
determining a storage volume corresponding to the container application according to the configuration information, and acquiring a mounting path of the storage volume; and according to the mounting path, synchronizing the storage data of the container application to the object server.
2. The method of claim 1, wherein determining a container application to be backed up in a virtual data center based on a backup request comprises:
according to the backup request, a target virtual data center is determined, and a container application to be backed up in the target virtual data center is determined.
3. The method of claim 1, wherein determining a container application to be backed up in a virtual data center based on a backup request comprises:
determining a container application to be backed up in the virtual data center according to the backup request, and determining target backup time;
correspondingly, the obtaining configuration information of the container application from the bottom k8s cluster, and storing the configuration information to an object storage server includes:
and when the target backup time is reached, acquiring the configuration information of the container application from the bottom layer k8s cluster, and storing the configuration information to an object storage server.
4. The method of claim 1, wherein the obtaining configuration information for the container application from the bottom-level k8s cluster, storing the configuration information to an object storage server, comprises:
acquiring configuration information of the container application from a bottom layer k8s cluster, and generating a yaml file according to the configuration information; creating a target directory at an object storage server, and storing the yaml file into the target directory, wherein the target directory comprises the following information: identification information of the virtual data center, a timestamp, an application resource type and a file name.
5. The method of claim 1, wherein the synchronizing the stored data of the container application to the object server according to the mount path comprises:
and synchronizing the storage data of the container application to the object server according to the mounting path by adopting a synchronization tool rclone.
6. The method of any one of claims 1-5, further comprising:
determining a container application to be restored in the virtual data center according to the restoration request;
acquiring configuration information of the container application from an object storage server, and writing the configuration information into a bottom layer k8s cluster;
and determining a storage volume corresponding to the container application according to the configuration information, and synchronizing the storage data of the container application in the object server to a mount path of the storage volume when the storage volume is in a binding state.
7. The method of claim 6, wherein the obtaining configuration information for the container application from an object storage server, writing the configuration information to an underlying k8s cluster, comprises:
acquiring configuration information of the container application from an object storage server to obtain a yaml file; convert the yaml file to a json object and write the json object to the underlying k8s cluster.
8. A virtual data center backup device based on a cloud management platform is characterized by comprising:
a request analysis module: the backup server is used for determining a container application to be backed up in the virtual data center according to the backup request;
the configuration information backup module: the system is used for acquiring the configuration information of the container application from the bottom k8s cluster and storing the configuration information to an object storage server;
the storage data backup module: the storage volume corresponding to the container application is determined according to the configuration information, and a mounting path of the storage volume is obtained; and according to the mounting path, synchronizing the storage data of the container application to the object server.
9. A virtual data center backup device based on a cloud management platform is characterized by comprising:
a memory: for storing a computer program;
a processor: the computer program is executed to implement the steps of the virtual data center backup method based on the cloud management platform according to any one of claims 1 to 7.
10. A readable storage medium for storing a computer program, which when executed by a processor is configured to implement the steps of the cloud management platform based virtual data center backup method according to any one of claims 1 to 7.
CN202010956046.6A 2020-09-11 2020-09-11 Virtual data center backup method and device based on cloud management platform Pending CN112181720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010956046.6A CN112181720A (en) 2020-09-11 2020-09-11 Virtual data center backup method and device based on cloud management platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010956046.6A CN112181720A (en) 2020-09-11 2020-09-11 Virtual data center backup method and device based on cloud management platform

Publications (1)

Publication Number Publication Date
CN112181720A true CN112181720A (en) 2021-01-05

Family

ID=73920653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010956046.6A Pending CN112181720A (en) 2020-09-11 2020-09-11 Virtual data center backup method and device based on cloud management platform

Country Status (1)

Country Link
CN (1) CN112181720A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882862A (en) * 2021-02-22 2021-06-01 广州鼎甲计算机科技有限公司 Mailbox data recovery method and device, computer equipment and storage medium
CN113596104A (en) * 2021-07-05 2021-11-02 武汉理工大学 Data transmission method and device for mobile robot and cloud server
CN113656149A (en) * 2021-08-20 2021-11-16 深信服科技股份有限公司 Application processing method and device and related equipment
CN113672350A (en) * 2021-08-20 2021-11-19 深信服科技股份有限公司 Application processing method and device and related equipment
CN113835625A (en) * 2021-08-30 2021-12-24 广东浪潮智慧计算技术有限公司 Data storage method, device, equipment and storage medium based on sub-path
CN114661420A (en) * 2022-03-28 2022-06-24 江苏安超云软件有限公司 Application protection method, device and system based on Kubernetes container platform
WO2023165226A1 (en) * 2022-03-02 2023-09-07 苏州浪潮智能科技有限公司 Application resource backup method and apparatus, electronic device, and storage medium
CN113656149B (en) * 2021-08-20 2024-07-09 深信服科技股份有限公司 Application processing method and device and related equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402839A (en) * 2016-05-18 2017-11-28 深圳市深信服电子科技有限公司 A kind of method and system of Backup Data
US10013189B1 (en) * 2015-12-14 2018-07-03 EMC IP Holding Company LLC Storage volume backup management for multi-tenant environments
CN108958976A (en) * 2018-07-02 2018-12-07 山东汇贸电子口岸有限公司 A kind of PV snapshot restores distributed data base data method and system
CN110515628A (en) * 2019-08-09 2019-11-29 济南浪潮数据技术有限公司 Using dispositions method and device
CN110704099A (en) * 2019-10-10 2020-01-17 北京东软望海科技有限公司 Alliance chain construction method and device and electronic equipment
CN111212129A (en) * 2019-12-30 2020-05-29 北京浪潮数据技术有限公司 Container application high-availability method, device and equipment based on side car mode
CN111488241A (en) * 2019-01-28 2020-08-04 Emc Ip控股有限公司 Method and system for realizing agent-free backup and recovery operation on container arrangement platform
CN111625316A (en) * 2020-05-15 2020-09-04 苏州浪潮智能科技有限公司 Environment deployment method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10013189B1 (en) * 2015-12-14 2018-07-03 EMC IP Holding Company LLC Storage volume backup management for multi-tenant environments
CN107402839A (en) * 2016-05-18 2017-11-28 深圳市深信服电子科技有限公司 A kind of method and system of Backup Data
CN108958976A (en) * 2018-07-02 2018-12-07 山东汇贸电子口岸有限公司 A kind of PV snapshot restores distributed data base data method and system
CN111488241A (en) * 2019-01-28 2020-08-04 Emc Ip控股有限公司 Method and system for realizing agent-free backup and recovery operation on container arrangement platform
CN110515628A (en) * 2019-08-09 2019-11-29 济南浪潮数据技术有限公司 Using dispositions method and device
CN110704099A (en) * 2019-10-10 2020-01-17 北京东软望海科技有限公司 Alliance chain construction method and device and electronic equipment
CN111212129A (en) * 2019-12-30 2020-05-29 北京浪潮数据技术有限公司 Container application high-availability method, device and equipment based on side car mode
CN111625316A (en) * 2020-05-15 2020-09-04 苏州浪潮智能科技有限公司 Environment deployment method and device, electronic equipment and storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882862A (en) * 2021-02-22 2021-06-01 广州鼎甲计算机科技有限公司 Mailbox data recovery method and device, computer equipment and storage medium
CN113596104A (en) * 2021-07-05 2021-11-02 武汉理工大学 Data transmission method and device for mobile robot and cloud server
CN113656149A (en) * 2021-08-20 2021-11-16 深信服科技股份有限公司 Application processing method and device and related equipment
CN113672350A (en) * 2021-08-20 2021-11-19 深信服科技股份有限公司 Application processing method and device and related equipment
CN113672350B (en) * 2021-08-20 2023-12-29 深信服科技股份有限公司 Application processing method and device and related equipment
CN113656149B (en) * 2021-08-20 2024-07-09 深信服科技股份有限公司 Application processing method and device and related equipment
CN113835625A (en) * 2021-08-30 2021-12-24 广东浪潮智慧计算技术有限公司 Data storage method, device, equipment and storage medium based on sub-path
CN113835625B (en) * 2021-08-30 2024-02-09 广东浪潮智慧计算技术有限公司 Data storage method, device, equipment and storage medium based on sub-path
WO2023165226A1 (en) * 2022-03-02 2023-09-07 苏州浪潮智能科技有限公司 Application resource backup method and apparatus, electronic device, and storage medium
CN114661420A (en) * 2022-03-28 2022-06-24 江苏安超云软件有限公司 Application protection method, device and system based on Kubernetes container platform
CN114661420B (en) * 2022-03-28 2023-08-11 安超云软件有限公司 Application protection method, device and system based on Kubernetes container platform

Similar Documents

Publication Publication Date Title
CN112181720A (en) Virtual data center backup method and device based on cloud management platform
CN106557384B (en) Data processing method, device and system based on Linux
JP2021509989A (en) Resource reservation method, resource reservation device, resource reservation device, and resource reservation system
WO2020248507A1 (en) Container cloud-based system resource monitoring method and related device
CN107656695B (en) Data storage and deletion method and device and distributed storage system
CN109831540B (en) Distributed storage method and device, electronic equipment and storage medium
CN111221678B (en) Hbase data backup/recovery system, method and device and electronic equipment
EP3474143B1 (en) Method and apparatus for incremental recovery of data
CN106452836B (en) main node setting method and device
CN111399764B (en) Data storage method, data reading device, data storage equipment and data storage medium
CN108628765B (en) Method and device for realizing Cache in open-source distributed storage software Ceph
CN110941393A (en) Logical volume management-based LV supply method, device, equipment and medium
CN114466027A (en) Cloud native database service providing method, system, equipment and medium
CN111400105A (en) Database backup method and device
CN111597078A (en) Timed backup method and system for copying ceph block storage data to object storage
CN111158957B (en) Virtual machine file recovery method, system, device and storage medium
CN113467993A (en) Method, system, equipment and storage medium for restoring cloud platform resources
CN111611160B (en) Software testing method, device, equipment and storage medium
CN111190878B (en) Method, device, equipment and storage medium for sharing access NAS snapshot
CN112181049B (en) Cluster time synchronization method, device, system, equipment and readable storage medium
CN107623705B (en) Storage mode upgrading method, device and system based on video cloud storage system
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN113190177A (en) Data storage method, terminal equipment, server and system
CN112579359A (en) Business system reconstruction method, device, equipment and storage medium
WO2017054643A1 (en) Data recovery method and file server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination