WO2023109245A1 - Data backup method, apparatus and system and non-volatile readable storage medium - Google Patents

Data backup method, apparatus and system and non-volatile readable storage medium Download PDF

Info

Publication number
WO2023109245A1
WO2023109245A1 PCT/CN2022/121460 CN2022121460W WO2023109245A1 WO 2023109245 A1 WO2023109245 A1 WO 2023109245A1 CN 2022121460 W CN2022121460 W CN 2022121460W WO 2023109245 A1 WO2023109245 A1 WO 2023109245A1
Authority
WO
WIPO (PCT)
Prior art keywords
backup
snapshot
backed
data
virtual machine
Prior art date
Application number
PCT/CN2022/121460
Other languages
French (fr)
Chinese (zh)
Inventor
刘海伟
刘为峰
冯振
Original Assignee
广东浪潮智慧计算技术有限公司
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 广东浪潮智慧计算技术有限公司 filed Critical 广东浪潮智慧计算技术有限公司
Publication of WO2023109245A1 publication Critical patent/WO2023109245A1/en

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

Definitions

  • the present application relates to the field of cloud platform technology, and more specifically, to a data backup method, device, system and non-volatile readable storage medium.
  • the cloud platform manages a third-party backup appliance
  • it is usually the third party that initiates the backup process
  • the data flows from the production storage pool through the cloud platform management network to the third-party backup appliance.
  • the backup data is usually relatively large.
  • This backup method has a great impact on the cloud platform management network.
  • the backup time is relatively long and the backup efficiency is relatively low.
  • the current third party usually backs up the virtual disks of the cloud platform in full, the number of backups is relatively large and the backup efficiency is relatively low.
  • the purpose of the present application is to provide a data backup method, device, system and non-volatile readable storage medium, which are used to improve the third party's backup efficiency of data in the cloud platform.
  • a data backup method applied to a cloud platform comprising:
  • a first snapshot is created for the virtual machine to be backed up, and the data change information of the virtual machine to be backed up from the last backup to the current backup is obtained according to the first snapshot;
  • the data change information and the information of the first snapshot are sent to a third party, and the third party backs up the data corresponding to the data change information in the first snapshot in a LAN-free manner according to the information of the first snapshot.
  • the first backup of the virtual machine to be backed up it also includes:
  • the second snapshot for the virtual machine to be backed up it also includes:
  • the message includes the bitmap corresponding to each virtual disk, and the bitmap information contained in the bitmap is all valid, so that the third party can compare the information in the second snapshot according to the valid bitmap information contained in the bitmap corresponding to each virtual disk. Data is backed up.
  • each virtual disk in the virtual machine to be backed up it also includes:
  • bitmap information at the corresponding position in the bitmap corresponding to the virtual disk is marked as valid
  • the third party After the third party completes the backup of the data corresponding to the data change information in the first snapshot, it also includes:
  • the third party finishes backing up the data corresponding to the data change information in the first snapshot, it further includes:
  • the first snapshot and the information of the first snapshot are deleted.
  • the data change information and the information of the first snapshot are sent to a third party, including:
  • the virtual disk is a virtual disk in QCOW2 format or RAW format.
  • the backup request it is judged according to the backup request whether it is the first backup of the virtual machine to be backed up, including:
  • Whether it is the first backup of the virtual machine to be backed up is determined according to the number of times the UUID of the virtual machine to be backed up included in the backup request is received.
  • sending a message that the snapshot is successfully created to the third party also includes:
  • the message includes a bitmap corresponding to each virtual disk included in the virtual machine to be backed up.
  • the first backup of the virtual machine to be backed up it also includes:
  • bitmap information contained in each created bitmap is invalid by default
  • the bitmap information contained in the bitmap sent to the third party is all set to valid.
  • sending a message that the snapshot is successfully created to the third party also includes:
  • the message includes information about the bitmap corresponding to each virtual disk and information about the virtual disk to be backed up.
  • acquiring the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot further includes:
  • the data change information includes bitmap information included in the bitmap corresponding to each virtual disk.
  • the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot and the bitmap corresponding to each virtual disk it also includes:
  • the bitmap information included in the bitmap corresponding to each virtual disk is sent to a third party.
  • the third party finishes backing up the data corresponding to the data change information in the first snapshot, it further includes:
  • the third party finishes backing up the data in the second snapshot, it also includes:
  • the second snapshot and the information of the second snapshot are deleted.
  • the data change information and the information of the first snapshot are sent to a third party through the API, which also includes:
  • bitmap information included in the bitmap corresponding to the virtual disk is sent to a third party through the API.
  • a data backup method, applied to a third party including:
  • the cloud platform determines that it is not the first backup of the virtual machine to be backed up, and creates a first snapshot for the virtual machine to be backed up, and obtains the virtual machine to be backed up according to the first snapshot.
  • the data change information and the information of the first snapshot sent by the cloud platform are received, and the data corresponding to the data change information in the first snapshot is backed up in a LAN-free manner according to the information of the first snapshot.
  • a data backup device applied to a cloud platform comprising:
  • the receiving module is configured to receive a backup request sent by a third party for backing up the virtual machine to be backed up, and judge whether it is the first backup of the virtual machine to be backed up according to the backup request;
  • the obtaining module is used to create a first snapshot for the virtual machine to be backed up if it is not the first backup of the virtual machine to be backed up in the backup request, and obtain data between the last backup and the current backup of the virtual machine to be backed up according to the first snapshot change information;
  • the first sending module is used to send the data change information and the information of the first snapshot to a third party, and the third party uses the LAN-free method to perform data corresponding to the data change information in the first snapshot according to the information of the first snapshot. backup.
  • a data backup device applied to a third party comprising:
  • the second sending module is used to send a backup request to the cloud platform for backing up the virtual machine to be backed up, and the cloud platform determines that it is not the first backup of the virtual machine to be backed up, and creates a first snapshot for the virtual machine to be backed up, and according to The first snapshot obtains the data change information of the virtual machine to be backed up from the last backup to the current backup;
  • the first backup module is used to receive the data change information and the information of the first snapshot sent by the cloud platform, and use the LAN-free method to back up the data corresponding to the data change information in the first snapshot according to the information of the first snapshot.
  • a data backup system including a cloud platform and a third party, wherein:
  • the third party is used to send a backup request to the cloud platform for backing up the virtual machine to be backed up; receive the data change information and the information of the first snapshot sent by the cloud platform, and use the LAN-free method to make the first snapshot according to the information of the first snapshot Back up the data corresponding to the data change information in the database;
  • the cloud platform is used to judge whether it is the first backup of the virtual machine to be backed up according to the backup request; if it is determined that it is not the first backup of the virtual machine to be backed up, create a first snapshot for the virtual machine to be backed up, and obtain the backup to be backed up according to the first snapshot
  • the data change information of the virtual machine from the last backup to the current backup; the data change information and the first snapshot information are sent to a third party.
  • a non-volatile readable storage medium A computer program is stored in the non-volatile readable storage medium. When the computer program is executed by a processor, the steps of any one of the above data backup methods are implemented.
  • the present application provides a data backup method, device, system, and non-volatile readable storage medium, wherein the method applied to the cloud platform includes: receiving a backup request sent by a third party for backing up a virtual machine to be backed up, and according to the backup Request to determine whether it is the first backup of the virtual machine to be backed up; if it is determined that it is not the first backup of the virtual machine to be backed up, create the first snapshot for the virtual machine to be backed up, and obtain the virtual machine to be backed up from the last backup to Data change information between current backups; send the data change information and the information of the first snapshot to a third party, and the third party uses the LAN-free method to process the data corresponding to the data change information in the first snapshot based on the information of the first snapshot Make a backup.
  • the cloud platform when it determines according to the received backup request that it is not the first backup of the virtual machine to be backed up, it creates a first snapshot for the virtual machine to be backed up, and obtains the virtual machine to be backed up according to the first snapshot Data change information from the last backup to the current backup, and send the data change information and the information of the first snapshot created to the third party, so that the third party can use the LAN-free method to make the first snapshot according to the information of the first snapshot The data corresponding to the data change information is backed up.
  • the application not only realizes the incremental backup of the virtual machine based on the data change information by obtaining the data change information, so as to reduce the amount of backup data, thereby improving the backup efficiency.
  • the link of the backup traffic is changed by performing backup in the LAN-free mode, shortening the backup time and improving the backup efficiency.
  • Fig. 1 is a flow chart of a third party backing up a virtual machine in a cloud platform in the prior art
  • FIG. 2 is a flow chart of a data backup method applied to a cloud platform provided by an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a data backup system provided by an embodiment of the present application.
  • Fig. 4 is the relationship diagram among virtual disk, bitmap, and backup disk provided by the embodiment of the present application.
  • FIG. 5 is a flow chart of a data backup method applied to a third party provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a data backup device applied to a cloud platform provided by an embodiment of the present application
  • FIG. 7 is a schematic structural diagram of a data backup device applied to a third party provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a non-volatile readable storage medium provided by an embodiment of the present application.
  • FIG. 1 it shows a flow chart of a third party backing up a virtual machine in a cloud platform in the prior art, wherein the third party initiates the backup process, and the data flow flows from the production storage pool to the third party through the cloud platform management network Backup all-in-one machine, however, because the cloud platform contains many virtual machines, the amount of data that the third party needs to back up is relatively large, so the existing backup method will have a great impact on the cloud platform management network, and When the third party backs up the virtual machines on the cloud platform, it always backs up all the virtual machines in the production storage pool on the cloud platform every time. Therefore, the number of backups is large, the backup time is relatively long, and the backup efficiency is relatively high. Low.
  • the present application provides a data backup method, device, device and non-volatile readable storage medium, which are used to improve the backup efficiency of data in the cloud platform by a third party.
  • FIG. 2 shows a flow chart of a data backup method applied to a cloud platform provided by an embodiment of the present application
  • FIG. 3 shows a data backup system provided by an embodiment of the present application Schematic diagram of the structure.
  • a data backup method provided in an embodiment of the present application, applied to a cloud platform may include:
  • step S11 Receive a backup request for backing up the virtual machine to be backed up sent by a third party, and judge whether it is the first backup of the virtual machine to be backed up according to the backup request; if it is determined that it is not the first backup of the virtual machine to be backed up, execute step S12.
  • the cloud platform refers to the cloud computing platform provider, which contains a production storage pool, which is a storage pool managed by the cloud platform and used to deploy virtual machines and virtual disks of the cloud platform in the customer's production environment , wherein, the virtual machine mentioned in this application can specifically refer to a virtual machine under the KVM (Kernel-based Virtual Machine, an open source system virtualization module) virtualization architecture.
  • KVM Kernel-based Virtual Machine, an open source system virtualization module
  • the third party specifically refers to a third-party storage and backup manufacturer, which is usually deployed in the customer environment in the form of a backup all-in-one machine, and the third-party backup all-in-one machine is the hardware device of the third-party storage and backup vendor, used for the customer's virtual disk data Backup, which carries the virtual machine backed up from the production storage pool and the virtual disk in the virtual machine.
  • the third party includes a third-party backup/recovery management module, which is a third-party software
  • the management module provides data backup and recovery functions. In this application, it can communicate with the cloud platform externally, query the data changes of a certain virtual disk between two adjacent backups, etc., and internally communicate with the backup all-in-one device. Communication, issue data backup/restore instructions, and perform data backup.
  • the backup request can be as follows:
  • the virtual machine to be backed up mentioned here may specifically be a virtual machine to be backed up under the KVM virtualization architecture.
  • the third party After the third party generates the backup request, it can send the backup request to the cloud platform through the API of the cloud platform. After the cloud platform receives the backup request for backing up the virtual machine to be backed up sent by the third party, it can judge whether it is the first backup of the virtual machine to be backed up according to the backup request, specifically, according to the The number of times of the uuid of the virtual machine is used to determine whether it is the first backup of the virtual machine to be backed up. For example, if the backup request containing the uuid of the virtual machine to be backed up is received for the first time, it is determined to be the first backup of the virtual machine to be backed up.
  • the cloud platform can perform steps S12.
  • S12 Create a first snapshot for the virtual machine to be backed up, and acquire data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot.
  • a first snapshot named snap_id is created for the virtual machine to be backed up by uuid according to the backup request, so as to use the first snapshot to record the current state and data of the virtual machine, so that The third party can perform data backup based on the created first snapshot, that is, provide another data access channel for the third party, so as to avoid impact on the business of the virtual machine in the cloud platform.
  • the cloud platform can obtain the data change information of the virtual machine to be backed up from the last backup to the current backup (that is, the backup performed when receiving the backup request sent by the third party) according to the first snapshot , for example, according to the first snapshot created by the last backup of the virtual machine to be backed up and the first snapshot created by the current backup, the data change information of the virtual machine to be backed up from the last backup to the current backup can be obtained.
  • the first snapshot uses other methods to obtain data change information of the virtual machine to be backed up from the last backup to the current backup.
  • the data change information mentioned here may specifically be which data block or data blocks of which virtual disk or virtual disks of the virtual machine change.
  • S13 Send the data change information and the information of the first snapshot to a third party, and the third party backs up the data corresponding to the data change information in the first snapshot in a LAN-free manner according to the information of the first snapshot.
  • the cloud platform After the cloud platform acquires the data change information between the last backup and the current backup of the virtual machine to be backed up, the data change information and the information of the first snapshot created in step S12 (specifically including the name of the first snapshot) can be sent to The third party, specifically the third-party backup/restore management module that can be sent to. After receiving the above two types of information, the third party can use the LAN-free (no need to back up through the local area network) method to perform data corresponding to the data change information in the first snapshot created on the cloud platform according to the information of the first snapshot.
  • the information of the first snapshot can enable a third party to find the first snapshot corresponding to the virtual machine to be backed up in the cloud platform accordingly, and the data change information can make the third-party cloud platform only back up the virtual machine to be backed up from the last time Back up the changed data between the current backup and the third-party cloud platform, which means that the third-party cloud platform can realize incremental backup without having to perform a full backup of the virtual machine in the cloud platform every time, so as to reduce the amount of backup data and shorten the backup time.
  • the LAN-free method is to directly copy data from the production storage pool in the cloud platform to the third-party backup all-in-one machine through SAN (storage area network), that is, use SAN to copy data between the production storage pool and the third-party backup machine on the cloud platform.
  • SAN storage area network
  • a high-speed data transmission link is established between the three-party backup all-in-one machines to shorten the backup time and improve backup efficiency by changing the link of backup traffic.
  • the cloud platform when the cloud platform needs to perform backup and recovery from a third party, it can also use the LAN-free method to recover data from the third party, so as to shorten the time-consuming of data recovery and improve backup efficiency.
  • the cloud platform when it determines according to the received backup request that it is not the first backup of the virtual machine to be backed up, it creates a first snapshot for the virtual machine to be backed up, and obtains the virtual machine to be backed up according to the first snapshot Data change information from the last backup to the current backup, and send the data change information and the information of the first snapshot created to the third party, so that the third party can use the LAN-free method to make the first snapshot according to the information of the first snapshot The data corresponding to the data change information is backed up.
  • the application not only realizes the incremental backup of the virtual machine based on the data change information by obtaining the data change information, so as to reduce the amount of backup data, thereby improving the backup efficiency.
  • the link of the backup traffic is changed by performing backup in the LAN-free mode, shortening the backup time and improving the backup efficiency.
  • step S11 if it is determined that this is the first backup of the virtual machine to be backed up, step S14 is executed:
  • S14 Create a second snapshot for the virtual machine to be backed up, and send a message that the snapshot is successfully created to a third party, and the third party uses LAN-free method to save all data in the second snapshot according to the information of the second snapshot contained in the message Make a backup.
  • the cloud platform executes step S11, if it is determined according to the backup request that it is the first backup of the virtual machine to be backed up, at this time, the cloud platform creates a second snapshot for the virtual machine to be backed up, specifically, according to the backup Request to create a second snapshot named snap_id for the virtual machine with uuid to be backed up.
  • the cloud platform may send a message that the snapshot is successfully created to the third party, wherein the message may include information about the second snapshot (specifically including the name of the created second snapshot).
  • the third party After the third party receives the message that the snapshot is successfully created sent by the cloud platform, it can use the LAN-free method to back up all the data in the second snapshot according to the information of the second snapshot contained in the message, so that when the first backup At this time, the virtual machine to be backed up can be fully backed up, and based on this, it can be used as a basis for subsequent non-initial backups, so that the data in the backup all-in-one machine can be consistent with the data in the production storage pool on the cloud platform.
  • the information of the second snapshot can enable the third party to find the second snapshot corresponding to the virtual machine to be backed up in the cloud platform.
  • this application adopts the LAN-free method to change the link of the backup traffic, shorten the backup time, and improve the backup efficiency.
  • a data backup method provided in an embodiment of the present application may further include: when creating a second snapshot for the virtual machine to be backed up:
  • the message includes the bitmap corresponding to each virtual disk, and the bitmap information contained in the bitmap is all valid, so that the third party can compare the information in the second snapshot according to the valid bitmap information contained in the bitmap corresponding to each virtual disk. All data is backed up.
  • the cloud platform may create a bitmap (bitmap) for each virtual disk in the virtual machine to be backed up while creating the second snapshot of the virtual machine to be backed up.
  • bitmap bitmap
  • the bitmap information contained in each created bitmap is invalid by default (invalid means that the data block corresponding to the bitmap information has not changed, correspondingly, valid means represents that the data block corresponding to the bitmap information has changed) and the created bitmap can be stored in memory, wherein each bitmap contains multiple bitmap information, and each bitmap information is related to the data in the corresponding virtual disk corresponding to the block.
  • 1 can be set as valid
  • 0 can be set as invalid (of course, the numbers corresponding to valid and invalid can also be changed according to actual needs.
  • 1 is valid and 0 is invalid as an example for illustration. ).
  • the message that the cloud platform sends the third party a successful snapshot creation may also include a bitmap corresponding to each virtual disk contained in the virtual machine to be backed up, wherein, when sending the bitmap to the third party, in order to make the Based on this, the third party can back up all the data in the second snapshot, that is, all the data in the virtual disks contained in the virtual machine to be backed up can be backed up, and the bitmap information contained in the bitmap sent to the third party is all set to It is valid.
  • bitmap information contained in the bitmap stored in the memory is still all invalid by default, so as to record data changes based on the bitmap, but the bitmap sent to a third party All the bitmap information contained in is set to valid, so that a third party can perform a full backup accordingly.
  • the information about the bitmap and the information about the virtual disk to be backed up may also be included in the successful snapshot creation message sent to the third party, as follows:
  • disk_uuid string, //virtual disk uuid
  • block_len integer, //bitmap represents the block length, such as 2M a block
  • bit_num integer, //bitmap bit number, 1 bit represents a block, 0 represents unallocated (that is, invalid), 1 represents allocated (that is, valid)
  • bitmap string//bitmap string representation
  • bitmap information when backing up for the first time, its corresponding bitmap information is "1111 1111 1111 1111”, and the bits from left to right are valid for blocks with sequence numbers from low to high sex
  • the string representation of the above bitmap is to convert the bitmap information contained in the bitmap corresponding to the virtual disk into a string representation, one character corresponds to a bitmap information, and the string representation of the bitmap at the first backup All 1s (i.e. valid).
  • the third party After the third party receives the aforementioned information, according to the effective bitmap information contained in the bitmap corresponding to the second snapshot and each virtual disk (or according to the character string expression form of the bitmap), the third party adopts the LAN-free method for the second The data in the snapshot is backed up. Since the bitmap information contained in the bitmap corresponding to each virtual disk is valid, the third party can perform a full backup of each virtual disk corresponding to the virtual machine to be backed up based on this, that is, the first All data in the second snapshot is backed up.
  • a data backup method provided in the embodiment of the present application may further include, after creating corresponding bitmaps for each virtual disk in the virtual machine to be backed up:
  • bitmap information at the corresponding position in the bitmap corresponding to the virtual disk is marked as valid
  • Obtaining the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot may include:
  • the third party After the third party finishes backing up the data corresponding to the data change information in the first snapshot, it may also include:
  • the bitmap corresponding to the virtual disk can be used to record the data changes of the virtual disk. Specifically, when the data of the virtual disk When a change occurs, the bitmap information of the corresponding position in the bitmap corresponding to the virtual disk (the bitmap mentioned here is specifically the bitmap stored in the memory) is changed from the default invalid to valid, so as to use the bitmap information to record Data changes on virtual disks.
  • the cloud platform when the cloud platform obtains the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot, it can obtain the virtual machine to be backed up from the first snapshot and the bitmap corresponding to each virtual disk.
  • the data change information between the first backup and the current backup Specifically, when using the bitmap corresponding to the virtual disk to record the data change of the virtual disk, the cloud platform can record up to the first snapshot created, and then the cloud platform can use this.
  • the bitmap corresponding to each virtual disk at the time obtains the data change information of the virtual machine to be backed up from the last time to the current backup.
  • the cloud platform can use the bitmap information included in the bitmap corresponding to each virtual disk as the data change information.
  • the cloud platform when the cloud platform sends the data change information to the third party, it can specifically send the bitmap information contained in the bitmap corresponding to each virtual disk to the third party. Of course, it can also send other information to the third party at the same time. As follows:
  • disk_uuid string, //virtual disk uuid
  • block_len integer, //bitmap represents the block length, such as 2M a block
  • bit_num integer, //bitmap bit number, 1 bit represents a block, 0 represents unallocated, 1 represents allocated
  • bitmap string//The string representation of bitmap, for example: the bitmap information contained in a bitmap corresponding to a virtual disk is "1001 0001 1000 0000", and the bits from left to right correspond to the sequence numbers from low to low to high block effectiveness
  • the third party can back up the data corresponding to the valid bitmap information in the first snapshot according to the bitmap information contained in the bitmap corresponding to the virtual disk, so as to realize only changes between two adjacent backups backup data to reduce the amount of data backup.
  • 4 for details which shows the relationship diagram between the virtual disk, bitmap, and backup disk provided by the embodiment of the present application, assuming that the bitmap information contained in the bitmap corresponding to a certain virtual disk is 0111 0010 0000, Then, when the third party performs backup, it only backs up the data at the corresponding position in the virtual disk where the bitmap information is 1.
  • the third party After the third party completes the backup of the data corresponding to the data change information in the first snapshot, it can send a notification of the completion of the backup to the cloud platform, and the cloud platform learns that the third party has completed the backup of the data corresponding to the data change information in the first snapshot.
  • the bitmap information contained in the bitmap corresponding to each virtual disk can be cleared (that is, all are set to default invalid), so that the created bitmap can be reused to record the data changes of the corresponding virtual disk, and at the same time avoid subsequent Affects the backup of the virtual machine to be backed up.
  • a data backup method provided by an embodiment of the present application may further include, after the third party completes the backup of the data corresponding to the data change information in the first snapshot:
  • the first snapshot and the information of the first snapshot are deleted.
  • the cloud platform learns that the third party has completed the backup of the data corresponding to the data change information in the first snapshot, it can delete the created first snapshot and the information of the first snapshot to avoid giving subsequent Back up backups of virtual machines with impact while avoiding resource hogs.
  • the second snapshot and the information of the second snapshot can be deleted, so as not to affect the subsequent backup of the virtual machine to be backed up, and avoid resource occupation .
  • a data backup method provided in an embodiment of the present application, sending data change information and first snapshot information to a third party may include:
  • API Application Program Interface, Application Program Interface
  • the cloud platform can provide external services in the form of Restful API, that is, it can provide APIs to third parties, so that the cloud platform and third parties can back up information through APIs (specifically, the data changes mentioned later information, snapshot information), so that a third party can perform data backup on the virtual machines in the production storage pool of the cloud platform.
  • the third-party backup/restore management module in the third party communicates with the cloud platform externally, it may specifically communicate through the API of the cloud platform.
  • the cloud platform can send the data change information and the information of the first snapshot to a third party through the API, wherein, when recording the data change information with a bitmap, the cloud platform can also directly send the information corresponding to the virtual disk
  • the bitmap information contained in the bitmap is sent to a third party through the API, so that the third party can back up the virtual disk in the cloud platform.
  • the cloud platform when the cloud platform sends a message that the snapshot is successfully created to the third party, it can also send a message that the snapshot is successfully created to the third party through the API.
  • the virtual disk may be a virtual disk in QCOW2 format or RAW format.
  • the virtual disk in the cloud platform can specifically be a virtual disk based on the general QCOW2 format or RAW (unprocessed) format, that is, a third party can back up the virtual disks in these formats in the cloud platform to improve Efficiency of backups of virtual disks in these formats.
  • the embodiment of the present application also provides another data backup method, which is applied to a third party.
  • FIG. 5 shows a flow chart of a data backup method applied to a third party provided by the embodiment of the present application, which may include :
  • S21 Send a backup request to the cloud platform for backing up the virtual machine to be backed up.
  • the cloud platform determines that it is not the first backup of the virtual machine to be backed up, and creates a first snapshot for the virtual machine to be backed up, and obtains the virtual machine to be backed up according to the first snapshot.
  • S22 Receive the data change information and the information of the first snapshot sent by the cloud platform, and use the LAN-free method to back up the data corresponding to the data change information in the first snapshot according to the information of the first snapshot.
  • all data in the second snapshot is backed up in a LAN-free manner.
  • the received message includes that the bitmap information corresponding to each virtual disk is a valid bitmap
  • all data in the second snapshot is backed up in a LAN-free manner, including:
  • the data in the second snapshot is backed up in a LAN-free manner.
  • the received data change information sent by the cloud platform includes the bitmap corresponding to each virtual disk in the virtual machine to be backed up, wherein the valid bitmap information contained in the bitmap indicates that the virtual The corresponding data in the disk has changed from the last backup to the current backup.
  • the embodiment of the present application also provides a data backup device, which is applied to the cloud platform.
  • a data backup device which is applied to the cloud platform.
  • FIG. 6 it shows a schematic structural diagram of a data backup device applied to the cloud platform provided by the embodiment of the present application, which may include:
  • the receiving module 61 is configured to receive a backup request sent by a third party for backing up the virtual machine to be backed up, and judge whether it is the first backup of the virtual machine to be backed up according to the backup request;
  • the acquisition module 62 is configured to create a first snapshot for the virtual machine to be backed up if it is not the first backup of the virtual machine to be backed up in the backup request, and obtain the time between the last backup and the current backup of the virtual machine to be backed up according to the first snapshot. data change information;
  • the first sending module 63 is used to send the data change information and the information of the first snapshot to a third party, and the data corresponding to the data change information in the first snapshot is processed by the third party in a LAN-free manner according to the information of the first snapshot Make a backup.
  • the first creation module is used to create a second snapshot for the virtual machine to be backed up if it is determined that it is the first backup of the virtual machine to be backed up, and send a message that the snapshot is successfully created to a third party, and the third party uses the first snapshot included in the message For the information of the second snapshot, all data in the second snapshot is backed up in a LAN-free manner.
  • the second creation module is used to create a corresponding bitmap for each virtual disk in the virtual machine to be backed up when creating a second snapshot for the virtual machine to be backed up;
  • the message includes the bitmap corresponding to each virtual disk, and the bitmap information contained in the bitmap is all valid, so that the third party can compare the information in the second snapshot according to the valid bitmap information contained in the bitmap corresponding to each virtual disk. All data is backed up.
  • the marking module is used to mark the bitmap information at the corresponding position in the bitmap corresponding to the virtual disk as valid after the corresponding bitmap is created for each virtual disk in the virtual machine to be backed up, when the data of the virtual disk changes;
  • Acquisition module 62 may include:
  • An acquisition unit configured to acquire the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot and the bitmap corresponding to each virtual disk;
  • the clearing module is configured to clear the bitmap information included in the bitmap corresponding to each virtual disk after the third party completes the backup of the data corresponding to the data change information in the first snapshot.
  • the deletion module is used to delete the first snapshot and the information of the first snapshot after the third party completes the backup of the data corresponding to the data change information in the first snapshot.
  • the first sending module 63 may include:
  • the sending unit is configured to send the data change information and the information of the first snapshot to a third party through the API.
  • the virtual disk may be a virtual disk in QCOW2 format or RAW format.
  • QCOW2 format or RAW format.
  • the embodiment of the present application also provides another data backup device, which is applied to a third party.
  • FIG. 7 shows a schematic structural diagram of a data backup device applied to a third party provided in the embodiment of the present application, which may include:
  • the second sending module 71 is configured to send to the cloud platform a backup request for backing up the virtual machine to be backed up, and the cloud platform determines that it is not the first backup of the virtual machine to be backed up, and creates a first snapshot for the virtual machine to be backed up, and Acquiring the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot;
  • the first backup module 72 is configured to receive the data change information and the information of the first snapshot sent by the cloud platform, and use the LAN-free method to back up the data corresponding to the data change information in the first snapshot according to the information of the first snapshot.
  • the receiving module is configured to receive a message that the snapshot is successfully created sent by the cloud platform; wherein, the message is determined by the cloud platform to be the first backup of the virtual machine to be backed up, and is sent after creating a second snapshot for the virtual machine to be backed up;
  • the second backup module is configured to back up all data in the second snapshot in a LAN-free manner according to the information of the second snapshot included in the message.
  • the received message includes that the bitmap information corresponding to each virtual disk is a valid bitmap
  • the second backup module may include:
  • the backup unit is configured to back up the data in the second snapshot in a LAN-free manner according to the second snapshot and valid bitmap information included in the bitmap corresponding to each virtual disk.
  • the received data change information sent by the cloud platform includes the bitmap corresponding to each virtual disk in the virtual machine to be backed up, wherein the valid bitmap information contained in the bitmap indicates that the virtual The corresponding data in the disk has changed from the last backup to the current backup.
  • the embodiment of the present application also provides a data backup system, which may include a cloud platform and a third party, wherein:
  • the third party is used to send a backup request to the cloud platform for backing up the virtual machine to be backed up; receive the data change information and the information of the first snapshot sent by the cloud platform, and use the LAN-free method to make the first snapshot according to the information of the first snapshot Back up the data corresponding to the data change information in the database;
  • the cloud platform is used to judge whether it is the first backup of the virtual machine to be backed up according to the backup request; if it is determined that it is not the first backup of the virtual machine to be backed up, create a first snapshot for the virtual machine to be backed up, and obtain the backup to be backed up according to the first snapshot
  • the data change information of the virtual machine from the last backup to the current backup; the data change information and the first snapshot information are sent to a third party.
  • the embodiment of the present application also provides an electronic device, see FIG. 8, which shows a schematic structural diagram of an electronic device provided in the embodiment of the present application, which includes a processor 810 and a memory 820, and the memory 820 includes a non-volatile A non-volatile readable storage medium 830, and a computer program 832 stored on the non-volatile readable storage medium 830 and operable on the processor.
  • the computer program 832 is executed by the processor, any of the above-mentioned The steps of the data backup method applied to the cloud platform and/or the steps of the above-mentioned data backup method applied to a third party.
  • the embodiment of the present application also provides a non-volatile readable storage medium, see FIG. 9, which shows a schematic structural diagram of a non-volatile readable storage medium provided in the embodiment of the present application.
  • a computer program 932 is stored in the readable storage medium 930, and when the computer program 932 is executed by the processor, it implements the steps of any of the above-mentioned data backup methods applied to the cloud platform and/or the above-mentioned data backup method applied to a third party. step.
  • the non-volatile readable storage medium may include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • a medium that stores program code may include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

Landscapes

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

Abstract

A data backup method, apparatus and system, and a non-volatile readable storage medium, the method applied to a cloud platform comprising: receiving a backup request sent by a third party for backing up a virtual machine to be backed up, and according to the backup request, determining whether the virtual machine to be backed up is being backed up for the first time; if it is determined that the virtual machine to be backed up is not being backed up for the first time, creating a first snapshot for the virtual machine to be backed up, and according to the first snapshot, obtaining data change information of the virtual machine to be backed up from the last backup to the current backup; and sending the data change information and information of the first snapshot to the third party so that the third party backs up in a LAN-free mode the data corresponding to the data change information in the first snapshot. The technical solution realizes an incremental backup of the virtual machine on the basis of the data change information to reduce the backup data volume, thereby improving backup efficiency. Backing up in a LAN-free mode also changes the link of backup traffic, thus shortening the backup duration and enhancing backup efficiency.

Description

一种数据备份方法、装置、系统及非易失性可读存储介质A data backup method, device, system and non-volatile readable storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年12月17日提交中国专利局,申请号为202111555055.5,申请名称为“一种数据备份方法、装置、系统及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on December 17, 2021 with the application number 202111555055.5, and the application name is "A data backup method, device, system, and readable storage medium", the entire content of which Incorporated in this application by reference.
技术领域technical field
本申请涉及云平台技术领域,更具体地说,涉及一种数据备份方法、装置、系统及非易失性可读存储介质。The present application relates to the field of cloud platform technology, and more specifically, to a data backup method, device, system and non-volatile readable storage medium.
背景技术Background technique
随着云计算的发展,越来越多的应用系统迁移到云上。企业上云之后,用户的数据备份也与传统的保护备份有所不同。With the development of cloud computing, more and more application systems are migrated to the cloud. After the enterprise goes to the cloud, the user's data backup is also different from the traditional protection backup.
目前,当云平台纳管第三方备份一体机时,通常是第三方发起备份流程,数据流从生产存储池流经云平台管理网到第三方备份一体机。在实际应用中,备份的数据通常比较大,这种备份方式对云平台管理网带来很大的冲击,同时备份耗时比较长,备份效率比较低。另外,由于目前第三方对云平台的虚拟磁盘进行备份时往往都是全量备份,因此,备份数量大比较大,备份效率比较低。Currently, when the cloud platform manages a third-party backup appliance, it is usually the third party that initiates the backup process, and the data flows from the production storage pool through the cloud platform management network to the third-party backup appliance. In practical applications, the backup data is usually relatively large. This backup method has a great impact on the cloud platform management network. At the same time, the backup time is relatively long and the backup efficiency is relatively low. In addition, since the current third party usually backs up the virtual disks of the cloud platform in full, the number of backups is relatively large and the backup efficiency is relatively low.
综上,如何提高第三方对云平台中的数据的备份效率,是目前本领域技术人员亟待解决的技术问题。To sum up, how to improve the third party's backup efficiency of data in the cloud platform is a technical problem to be solved urgently by those skilled in the art.
发明内容Contents of the invention
有鉴于此,本申请的目的是提供一种数据备份方法、装置、系统及非易失性可读存储介质,用于提高第三方对云平台中的数据的备份效率。In view of this, the purpose of the present application is to provide a data backup method, device, system and non-volatile readable storage medium, which are used to improve the third party's backup efficiency of data in the cloud platform.
为了实现上述目的,本申请提供如下技术方案:In order to achieve the above object, the application provides the following technical solutions:
一种数据备份方法,应用于云平台,包括:A data backup method applied to a cloud platform, comprising:
接收第三方发送的对待备份虚拟机进行备份的备份请求,根据备份请求判断是否是对待备份虚拟机进行的首次备份;Receive a backup request for backing up the virtual machine to be backed up sent by a third party, and judge whether it is the first backup of the virtual machine to be backed up according to the backup request;
若确定不是对待备份虚拟机进行的首次备份,则为待备份虚拟机创建第一快照,根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息;If it is determined that it is not the first backup of the virtual machine to be backed up, a first snapshot is created for the virtual machine to be backed up, and the data change information of the virtual machine to be backed up from the last backup to the current backup is obtained according to the first snapshot;
将数据变化信息及第一快照的信息发送至第三方,由第三方根据第一快照的信息,采用LAN-free方式对第一快照中与数据变化信息对应的数据进行备份。The data change information and the information of the first snapshot are sent to a third party, and the third party backs up the data corresponding to the data change information in the first snapshot in a LAN-free manner according to the information of the first snapshot.
优选的,若确定是对待备份虚拟机进行的首次备份,则还包括:Preferably, if it is determined to be the first backup of the virtual machine to be backed up, it also includes:
为待备份虚拟机创建第二快照,并向第三方发送快照创建成功的消息,由第三方根据消息中包含的第二快照的信息,采用LAN-free方式对第二快照中的所有数据进行备份。Create a second snapshot for the virtual machine to be backed up, and send a message that the snapshot is successfully created to a third party, and the third party will back up all the data in the second snapshot in a LAN-free manner based on the information of the second snapshot contained in the message .
优选的,在为待备份虚拟机创建第二快照时,还包括:Preferably, when creating the second snapshot for the virtual machine to be backed up, it also includes:
为待备份虚拟机中的各虚拟磁盘创建对应的位图;Create a corresponding bitmap for each virtual disk in the virtual machine to be backed up;
相应地,消息中包括各虚拟磁盘对应的位图,位图包含的位图信息均为有效,以使第三方根据各虚拟磁盘对应的位图包含的有效的位图信息对第二快照中的数据进行备份。Correspondingly, the message includes the bitmap corresponding to each virtual disk, and the bitmap information contained in the bitmap is all valid, so that the third party can compare the information in the second snapshot according to the valid bitmap information contained in the bitmap corresponding to each virtual disk. Data is backed up.
优选的,在为待备份虚拟机中的各虚拟磁盘创建对应的位图之后,还包括:Preferably, after creating corresponding bitmaps for each virtual disk in the virtual machine to be backed up, it also includes:
当虚拟磁盘的数据变化时,则将虚拟磁盘对应的位图中相应位置的位图信息标记为有效;When the data of the virtual disk changes, the bitmap information at the corresponding position in the bitmap corresponding to the virtual disk is marked as valid;
根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息,包括:Obtain the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot, including:
根据第一快照及各虚拟磁盘对应的位图获取待备份虚拟机从上次备份到当前备份间的数据变化信息;Obtain the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot and the bitmap corresponding to each virtual disk;
在第三方完成对第一快照中与数据变化信息对应的数据的备份后,还包括:After the third party completes the backup of the data corresponding to the data change information in the first snapshot, it also includes:
将各虚拟磁盘对应的位图包含的位图信息进行清除。Clear the bitmap information included in the bitmap corresponding to each virtual disk.
优选的,在第三方完成对第一快照中与数据变化信息对应的数据的备份后,还包括:Preferably, after the third party finishes backing up the data corresponding to the data change information in the first snapshot, it further includes:
删除第一快照及第一快照的信息。The first snapshot and the information of the first snapshot are deleted.
优选的,将数据变化信息及第一快照的信息发送至第三方,包括:Preferably, the data change information and the information of the first snapshot are sent to a third party, including:
将数据变化信息及第一快照的信息通过应用程序接口API发送至第三方。Send the data change information and the information of the first snapshot to the third party through the API.
优选的,虚拟磁盘为QCOW2格式或RAW格式的虚拟磁盘。Preferably, the virtual disk is a virtual disk in QCOW2 format or RAW format.
优选的,根据备份请求判断是否是对待备份虚拟机进行的首次备份,包括:Preferably, it is judged according to the backup request whether it is the first backup of the virtual machine to be backed up, including:
根据接收备份请求中所包含的待备份虚拟机的通用唯一识别码uuid的次数,来判断是否是对待备份虚拟机进行的首次备份。Whether it is the first backup of the virtual machine to be backed up is determined according to the number of times the UUID of the virtual machine to be backed up included in the backup request is received.
优选的,向所述第三方发送快照创建成功的消息,还包括:Preferably, sending a message that the snapshot is successfully created to the third party also includes:
消息中包括待备份虚拟机包含的各虚拟磁盘对应的位图。The message includes a bitmap corresponding to each virtual disk included in the virtual machine to be backed up.
优选的,若确定是对待备份虚拟机进行的首次备份,则还包括:Preferably, if it is determined to be the first backup of the virtual machine to be backed up, it also includes:
在确定是对待备份虚拟机的首次备份时,则所创建的各个位图包含的位图信息均默认为无效;When it is determined that it is the first backup of the virtual machine to be backed up, the bitmap information contained in each created bitmap is invalid by default;
发送给第三方的位图中包含的位图信息全部设置为有效。The bitmap information contained in the bitmap sent to the third party is all set to valid.
优选的,向所述第三方发送快照创建成功的消息,还包括:Preferably, sending a message that the snapshot is successfully created to the third party also includes:
消息中包括各虚拟磁盘对应的位图的相关信息及待备份虚拟磁盘的信息。The message includes information about the bitmap corresponding to each virtual disk and information about the virtual disk to be backed up.
优选的,根据所述第一快照获取所述待备份虚拟机从上次备份到当前备份间的数据变化信息,还包括:Preferably, acquiring the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot further includes:
在确定是对待备份虚拟机的首次备份时,数据变化信息包括各虚拟磁盘对应的位图包含的位图信息。When it is determined that it is the first backup of the virtual machine to be backed up, the data change information includes bitmap information included in the bitmap corresponding to each virtual disk.
优选的,在根据第一快照及各虚拟磁盘对应的位图获取待备份虚拟机从上次备份到当前备份间的数据变化信息之后,还包括:Preferably, after obtaining the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot and the bitmap corresponding to each virtual disk, it also includes:
将各虚拟磁盘对应的位图包含的位图信息发送给第三方。The bitmap information included in the bitmap corresponding to each virtual disk is sent to a third party.
优选的,在第三方完成对第一快照中与数据变化信息对应的数据的备份后,还包括:Preferably, after the third party finishes backing up the data corresponding to the data change information in the first snapshot, it further includes:
将各虚拟磁盘对应的位图包含的位图信息进行清除。Clear the bitmap information included in the bitmap corresponding to each virtual disk.
优选的,在第三方完成对第二快照中的数据的备份后,还包括:Preferably, after the third party finishes backing up the data in the second snapshot, it also includes:
删除第二快照及第二快照的信息。The second snapshot and the information of the second snapshot are deleted.
优选的,将数据变化信息及第一快照的信息通过API发送至第三方,还包括:Preferably, the data change information and the information of the first snapshot are sent to a third party through the API, which also includes:
若以位图记录数据变化信息,将虚拟磁盘对应的位图包含的位图信息通过API发送至第三方。If the data change information is recorded in a bitmap, the bitmap information included in the bitmap corresponding to the virtual disk is sent to a third party through the API.
一种数据备份方法,应用于第三方,包括:A data backup method, applied to a third party, including:
向云平台发送对待备份虚拟机进行备份的备份请求,由云平台在确定并非是对待备份虚拟机进行的首次备份,并为待备份虚拟机创建第一快照,且根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息;Send a backup request to the cloud platform for backing up the virtual machine to be backed up. The cloud platform determines that it is not the first backup of the virtual machine to be backed up, and creates a first snapshot for the virtual machine to be backed up, and obtains the virtual machine to be backed up according to the first snapshot. The data change information between the last backup and the current backup of the machine;
接收云平台发送的数据变化信息及第一快照的信息,根据第一快照的信息,采用LAN-free方式对第一快照中与数据变化信息对应的数据进行备份。The data change information and the information of the first snapshot sent by the cloud platform are received, and the data corresponding to the data change information in the first snapshot is backed up in a LAN-free manner according to the information of the first snapshot.
一种数据备份装置,应用于云平台,包括:A data backup device applied to a cloud platform, comprising:
接收模块,用于接收第三方发送的对待备份虚拟机进行备份的备份请求,根据备份请求判断是否是对待备份虚拟机进行的首次备份;The receiving module is configured to receive a backup request sent by a third party for backing up the virtual machine to be backed up, and judge whether it is the first backup of the virtual machine to be backed up according to the backup request;
获取模块,用于若不是对备份请求中的待备份虚拟机进行首次备份,则为待备份虚拟机创建第一快照,根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息;The obtaining module is used to create a first snapshot for the virtual machine to be backed up if it is not the first backup of the virtual machine to be backed up in the backup request, and obtain data between the last backup and the current backup of the virtual machine to be backed up according to the first snapshot change information;
第一发送模块,用于将数据变化信息及第一快照的信息发送至第三方,由第三方根据第一快照的信息,采用LAN-free方式对第一快照中与数据变化信息对应的数据进行备份。The first sending module is used to send the data change information and the information of the first snapshot to a third party, and the third party uses the LAN-free method to perform data corresponding to the data change information in the first snapshot according to the information of the first snapshot. backup.
一种数据备份装置,应用于第三方,包括:A data backup device applied to a third party, comprising:
第二发送模块,用于向云平台发送对待备份虚拟机进行备份的备份请求,由云平台在确定并非是对待备份虚拟机进行的首次备份,并为待备份虚拟机创建第一快照,且根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息;The second sending module is used to send a backup request to the cloud platform for backing up the virtual machine to be backed up, and the cloud platform determines that it is not the first backup of the virtual machine to be backed up, and creates a first snapshot for the virtual machine to be backed up, and according to The first snapshot obtains the data change information of the virtual machine to be backed up from the last backup to the current backup;
第一备份模块,用于接收云平台发送的数据变化信息及第一快照的信息,根据第一快照的信息,采用LAN-free方式对第一快照中与数据变化信息对应的数据进行备份。The first backup module is used to receive the data change information and the information of the first snapshot sent by the cloud platform, and use the LAN-free method to back up the data corresponding to the data change information in the first snapshot according to the information of the first snapshot.
一种数据备份系统,包括云平台和第三方,其中:A data backup system, including a cloud platform and a third party, wherein:
第三方,用于向云平台发送对待备份虚拟机进行备份的备份请求;接收云平台发送的数据变化信息及第一快照的信息,根据第一快照的信息,采用LAN-free方式对第一快照中与数据变化信息对应的数据进行备份;The third party is used to send a backup request to the cloud platform for backing up the virtual machine to be backed up; receive the data change information and the information of the first snapshot sent by the cloud platform, and use the LAN-free method to make the first snapshot according to the information of the first snapshot Back up the data corresponding to the data change information in the database;
云平台,用于根据备份请求判断是否是对待备份虚拟机进行的首次备份;若确定不是对待备份虚拟机进行的首次备份,则为待备份虚拟机创建第一快照,根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息;将数据变化信息及第一快照的信息发送至第三方。The cloud platform is used to judge whether it is the first backup of the virtual machine to be backed up according to the backup request; if it is determined that it is not the first backup of the virtual machine to be backed up, create a first snapshot for the virtual machine to be backed up, and obtain the backup to be backed up according to the first snapshot The data change information of the virtual machine from the last backup to the current backup; the data change information and the first snapshot information are sent to a third party.
一种非易失性可读存储介质,非易失性可读存储介质中存储有计算机程序,计算机程序在被处理器执行时实现如上述任一项的数据备份方法的步骤骤。A non-volatile readable storage medium. A computer program is stored in the non-volatile readable storage medium. When the computer program is executed by a processor, the steps of any one of the above data backup methods are implemented.
本申请提供了一种数据备份方法、装置、系统及非易失性可读存储介质,其中,应用于云平台的方法包括:接收第三方发送的对待备份虚拟机进行备份的备份请求,根据备份请求判断是否是对待备份虚拟机进行的首次备份;若确定不是对待备份虚拟机进行的首次备份,则为待备份虚拟机创建第一快照,根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息;将数据变化信息及第一快照的信息发送至第三方,由第三方根据第一快照的信息,采用LAN-free方式对第一快照中与数据变化信息对应的数据进行备份。The present application provides a data backup method, device, system, and non-volatile readable storage medium, wherein the method applied to the cloud platform includes: receiving a backup request sent by a third party for backing up a virtual machine to be backed up, and according to the backup Request to determine whether it is the first backup of the virtual machine to be backed up; if it is determined that it is not the first backup of the virtual machine to be backed up, create the first snapshot for the virtual machine to be backed up, and obtain the virtual machine to be backed up from the last backup to Data change information between current backups; send the data change information and the information of the first snapshot to a third party, and the third party uses the LAN-free method to process the data corresponding to the data change information in the first snapshot based on the information of the first snapshot Make a backup.
本申请公开的上述技术方案,云平台在根据接收到的备份请求确定并非是对待备份虚拟机进行的首次备份时,为待备份虚拟机创建第一快照,并根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息,且将数据变化信息及所创建的第一快照的信息发送至第三方,使得第三方根据第一快照的信息采用LAN-free方式对第一快照中与数据变化信息对应的数据进行备份,通过上述过程可知,本申请不仅通过获取数据变化信息基于该数据变化信息实现对虚拟机的增量备份,以降低备份的数据量,从而提高备份效率,而且通过 LAN-free方式进行备份而改变备份流量的链路,缩短备份时长,提高备份效率。In the above technical solution disclosed in this application, when the cloud platform determines according to the received backup request that it is not the first backup of the virtual machine to be backed up, it creates a first snapshot for the virtual machine to be backed up, and obtains the virtual machine to be backed up according to the first snapshot Data change information from the last backup to the current backup, and send the data change information and the information of the first snapshot created to the third party, so that the third party can use the LAN-free method to make the first snapshot according to the information of the first snapshot The data corresponding to the data change information is backed up. Through the above process, it can be seen that the application not only realizes the incremental backup of the virtual machine based on the data change information by obtaining the data change information, so as to reduce the amount of backup data, thereby improving the backup efficiency. Moreover, the link of the backup traffic is changed by performing backup in the LAN-free mode, shortening the backup time and improving the backup efficiency.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为现有技术中第三方对云平台中的虚拟机进行备份的流程图;Fig. 1 is a flow chart of a third party backing up a virtual machine in a cloud platform in the prior art;
图2为本申请实施例提供的一种应用于云平台的数据备份方法的流程图;FIG. 2 is a flow chart of a data backup method applied to a cloud platform provided by an embodiment of the present application;
图3为本申请实施例提供的一种数据备份系统的结构示意图;FIG. 3 is a schematic structural diagram of a data backup system provided by an embodiment of the present application;
图4为本申请实施例提供的虚拟磁盘、位图、备份磁盘间的关系图;Fig. 4 is the relationship diagram among virtual disk, bitmap, and backup disk provided by the embodiment of the present application;
图5为本申请实施例提供的一种数应用于第三方的数据备份方法的流程图;FIG. 5 is a flow chart of a data backup method applied to a third party provided by an embodiment of the present application;
图6为本申请实施例提供的一种应用于云平台的数据备份装置的结构示意图;FIG. 6 is a schematic structural diagram of a data backup device applied to a cloud platform provided by an embodiment of the present application;
图7为本申请实施例提供的一种应用于第三方的数据备份装置的结构示意图;FIG. 7 is a schematic structural diagram of a data backup device applied to a third party provided by an embodiment of the present application;
图8为本申请实施例提供的一种电子设备的结构示意图;FIG. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
图9为本申请实施例提供的一种非易失性可读存储介质的结构示意图。FIG. 9 is a schematic structural diagram of a non-volatile readable storage medium provided by an embodiment of the present application.
具体实施方式Detailed ways
参见图1,其示出了现有技术中第三方对云平台中的虚拟机进行备份的流程图,其中,第三方发起备份流程,数据流从生产存储池流经云平台管理网到达第三方备份一体机,但是,由于云平台所包含的虚拟机比较多,第三方需要备份的数据量比较大,因此,现有的这种备份方式会对云平台管理网带来很大的冲击,且由于第三方在对云平台中的虚拟机进行备份时,每次均是对云平台中生产存储池中的各虚拟机进行全量备份,因此,备份数量大,备份耗时比较长,备份效率比较低。Referring to FIG. 1 , it shows a flow chart of a third party backing up a virtual machine in a cloud platform in the prior art, wherein the third party initiates the backup process, and the data flow flows from the production storage pool to the third party through the cloud platform management network Backup all-in-one machine, however, because the cloud platform contains many virtual machines, the amount of data that the third party needs to back up is relatively large, so the existing backup method will have a great impact on the cloud platform management network, and When the third party backs up the virtual machines on the cloud platform, it always backs up all the virtual machines in the production storage pool on the cloud platform every time. Therefore, the number of backups is large, the backup time is relatively long, and the backup efficiency is relatively high. Low.
为此,本申请提供一种数据备份方法、装置、设备及非易失性可读存储介质,用于提高第三方对云平台中的数据的备份效率。To this end, the present application provides a data backup method, device, device and non-volatile readable storage medium, which are used to improve the backup efficiency of data in the cloud platform by a third party.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
参见图2和图3,其中,图2示出了本申请实施例提供的一种应用于云平台的数据备份方法的流程图,图3示出了本申请实施例提供的一种数据备份系统的结构示意图。本申请实施例提供的一种数据备份方法,应用于云平台,可以包括:Referring to FIG. 2 and FIG. 3 , where FIG. 2 shows a flow chart of a data backup method applied to a cloud platform provided by an embodiment of the present application, and FIG. 3 shows a data backup system provided by an embodiment of the present application Schematic diagram of the structure. A data backup method provided in an embodiment of the present application, applied to a cloud platform, may include:
S11:接收第三方发送的对待备份虚拟机进行备份的备份请求,根据备份请求判断是否是对待备份虚拟机进行的首次备份;若确定不是对待备份虚拟机进行的首次备份,则执行步骤S12。S11: Receive a backup request for backing up the virtual machine to be backed up sent by a third party, and judge whether it is the first backup of the virtual machine to be backed up according to the backup request; if it is determined that it is not the first backup of the virtual machine to be backed up, execute step S12.
在本申请中,云平台指的是云计算平台提供者,其内部包含生产存储池,该生产存储池是云平台管理的存储池,用于部署客户生产环境下云平台的虚拟机和虚拟磁盘,其中,本申请所提及的虚拟机具体可以指的是KVM(Kernel-based Virtual Machine,一个开源的系统虚拟化模块)虚化架构下的虚拟机。第三方具体指的是第三方存储备份厂商,通常是以备份一体机的产品形态部署到客户环境中,且第三方备份一体机是第三方存储备份厂商的硬件设备,用于客户的虚拟磁盘数据备份,其上承载了从生产存储池中备份出来的虚拟机及虚拟机中的虚拟磁盘,第三方中包括有第三方备份/恢复管理模块,该第三方备份/恢复管理模块是第三方的软件管理模块,提供数据的备份及恢复功能,在本申请中,对外可以与云平台进行通讯,查询某个虚拟磁盘在相邻两次备份间的数据变化等,对内可以与备份一体机设备进行通讯,下发数据备份/恢复指令,进行数据的备份。In this application, the cloud platform refers to the cloud computing platform provider, which contains a production storage pool, which is a storage pool managed by the cloud platform and used to deploy virtual machines and virtual disks of the cloud platform in the customer's production environment , wherein, the virtual machine mentioned in this application can specifically refer to a virtual machine under the KVM (Kernel-based Virtual Machine, an open source system virtualization module) virtualization architecture. The third party specifically refers to a third-party storage and backup manufacturer, which is usually deployed in the customer environment in the form of a backup all-in-one machine, and the third-party backup all-in-one machine is the hardware device of the third-party storage and backup vendor, used for the customer's virtual disk data Backup, which carries the virtual machine backed up from the production storage pool and the virtual disk in the virtual machine. The third party includes a third-party backup/recovery management module, which is a third-party software The management module provides data backup and recovery functions. In this application, it can communicate with the cloud platform externally, query the data changes of a certain virtual disk between two adjacent backups, etc., and internally communicate with the backup all-in-one device. Communication, issue data backup/restore instructions, and perform data backup.
具体地,在第三方要对待备份虚拟机进行备份时,则可以生成对待备份虚拟机进行备份的备份请求,其中,该备份请求中包括有待备份虚拟机的uuid(Universally Unique Identifier,通用唯一识别码)及其他相关信息(例如云平台要创建的第一快照的id等),具体地,备份请求可以如下所示:Specifically, when a third party wants to back up the virtual machine to be backed up, it can generate a backup request for backing up the virtual machine to be backed up, wherein the backup request includes the uuid (Universally Unique Identifier, Universally Unique Identifier) of the virtual machine to be backed up ) and other relevant information (such as the id of the first snapshot to be created by the cloud platform, etc.), specifically, the backup request can be as follows:
{{
"uuid":string,//待备份虚拟机uuid"uuid": string, // uuid of virtual machine to be backed up
"snap_id":string//第一快照的id"snap_id":string//id of the first snapshot
}}
其中,这里提及的待备份虚拟机具体可以为KVM虚化架构下的待备份虚拟机。Wherein, the virtual machine to be backed up mentioned here may specifically be a virtual machine to be backed up under the KVM virtualization architecture.
第三方在生成备份请求之后,可以将备份请求通过云平台的API发送至云平台。云平台在接收到第三方发送的对待备份虚拟机进行备份的备份请求之后,可以根据备份请求判断是否是对待备份虚拟机进行的首次备份,具体地,可以根据接收备份请求中所包含的待备份虚拟机的uuid的次数来判断是否是对待备份虚拟机进行的首次备份,例如:若是第一次接收到包含有待备份虚拟机的uuid的备份请求,则确定是对待备份虚拟机进行的首次备份,若并非 是第一次接收到包含有待备份虚拟机的uuid的备份请求,则确定并非是对待备份虚拟机进行的首次备份,此时,为了降低第三方的数据备份量,则云平台可以执行步骤S12。After the third party generates the backup request, it can send the backup request to the cloud platform through the API of the cloud platform. After the cloud platform receives the backup request for backing up the virtual machine to be backed up sent by the third party, it can judge whether it is the first backup of the virtual machine to be backed up according to the backup request, specifically, according to the The number of times of the uuid of the virtual machine is used to determine whether it is the first backup of the virtual machine to be backed up. For example, if the backup request containing the uuid of the virtual machine to be backed up is received for the first time, it is determined to be the first backup of the virtual machine to be backed up. If it is not the first time that the backup request containing the uuid of the virtual machine to be backed up is received, it is determined that it is not the first backup of the virtual machine to be backed up. At this time, in order to reduce the amount of data backup by the third party, the cloud platform can perform steps S12.
S12:为待备份虚拟机创建第一快照,根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息。S12: Create a first snapshot for the virtual machine to be backed up, and acquire data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot.
在确定并非是对待备份虚拟机进行的首次备份时,则根据备份请求为uuid的待备份虚拟机创建名称为snap_id的第一快照,以利用第一快照记录虚拟机当前的状态和数据,从而使得第三方可以基于所创建的第一快照进行数据备份,即为第三方提供另外一个数据访问通道,以避免给云平台中的虚拟机的业务造成影响。云平台在创建完第一快照之后,可以根据第一快照获取待备份虚拟机从上次备份到当前备份(即此次接收到第三方发送的备份请求时所进行的备份)间的数据变化信息,例如可以根据待备份虚拟机上次备份所创建的第一快照、当前备份所创建的第一快照,获取待备份虚拟机从上次备份到当前备份间的数据变化信息,当然,也可以根据第一快照利用其他方式获取待备份虚拟机从上次备份到当前备份间的数据变化信息。其中,这里提及的数据变化信息具体可以为虚拟机的哪个或哪些虚拟磁盘的哪个或哪些数据块发生变化等。When it is determined that it is not the first backup of the virtual machine to be backed up, a first snapshot named snap_id is created for the virtual machine to be backed up by uuid according to the backup request, so as to use the first snapshot to record the current state and data of the virtual machine, so that The third party can perform data backup based on the created first snapshot, that is, provide another data access channel for the third party, so as to avoid impact on the business of the virtual machine in the cloud platform. After creating the first snapshot, the cloud platform can obtain the data change information of the virtual machine to be backed up from the last backup to the current backup (that is, the backup performed when receiving the backup request sent by the third party) according to the first snapshot , for example, according to the first snapshot created by the last backup of the virtual machine to be backed up and the first snapshot created by the current backup, the data change information of the virtual machine to be backed up from the last backup to the current backup can be obtained. Of course, it can also be based on The first snapshot uses other methods to obtain data change information of the virtual machine to be backed up from the last backup to the current backup. Wherein, the data change information mentioned here may specifically be which data block or data blocks of which virtual disk or virtual disks of the virtual machine change.
S13:将数据变化信息及第一快照的信息发送至第三方,由第三方根据第一快照的信息,采用LAN-free方式对第一快照中与数据变化信息对应的数据进行备份。S13: Send the data change information and the information of the first snapshot to a third party, and the third party backs up the data corresponding to the data change information in the first snapshot in a LAN-free manner according to the information of the first snapshot.
云平台在获取待备份虚拟机从上次备份到当前备份间的数据变化信息之后,可以将数据变化信息及步骤S12中所创建的第一快照的信息(具体包括第一快照的名称)发送至第三方,具体可以发送至的第三方备份/恢复管理模块。第三方在接收到前述两类信息之后,可以根据第一快照的信息,采用LAN-free(无需通过局域网进行备份)方式对云平台中所创建的第一快照中与数据变化信息对应的数据进行备份,其中,第一快照的信息可以使得第三方据此而在云平台中找到与待备份虚拟机对应的第一快照,数据变化信息可以使得第三方云平台仅对待备份虚拟机从上次备份到当前备份间的发生变化的数据进行备份,也即使得第三方云平台可以实现增量备份,而无需每次均对云平台中的虚拟机进行全量备份,以降低备份的数据量,缩短备份耗时,提高备份效率,LAN-free方式是通过SAN(存储区域网络)直接从云平台中的生产存储池拷贝数据到第三方的备份一体机,即利用SAN在云平台的生产存储池和第三方的备份一体机之间建立了高速的数据传输链路,以通过改变备份流量的链路,缩短备份时长,提高备份效率。After the cloud platform acquires the data change information between the last backup and the current backup of the virtual machine to be backed up, the data change information and the information of the first snapshot created in step S12 (specifically including the name of the first snapshot) can be sent to The third party, specifically the third-party backup/restore management module that can be sent to. After receiving the above two types of information, the third party can use the LAN-free (no need to back up through the local area network) method to perform data corresponding to the data change information in the first snapshot created on the cloud platform according to the information of the first snapshot. Backup, wherein, the information of the first snapshot can enable a third party to find the first snapshot corresponding to the virtual machine to be backed up in the cloud platform accordingly, and the data change information can make the third-party cloud platform only back up the virtual machine to be backed up from the last time Back up the changed data between the current backup and the third-party cloud platform, which means that the third-party cloud platform can realize incremental backup without having to perform a full backup of the virtual machine in the cloud platform every time, so as to reduce the amount of backup data and shorten the backup time. Time-consuming and improve backup efficiency, the LAN-free method is to directly copy data from the production storage pool in the cloud platform to the third-party backup all-in-one machine through SAN (storage area network), that is, use SAN to copy data between the production storage pool and the third-party backup machine on the cloud platform. A high-speed data transmission link is established between the three-party backup all-in-one machines to shorten the backup time and improve backup efficiency by changing the link of backup traffic.
需要说明的是,在云平台需要从第三方进行备份恢复时,同样可以采用LAN-free方式从第三方中恢复数据,以便于缩短数据恢复耗时,提高备份效率。It should be noted that when the cloud platform needs to perform backup and recovery from a third party, it can also use the LAN-free method to recover data from the third party, so as to shorten the time-consuming of data recovery and improve backup efficiency.
本申请公开的上述技术方案,云平台在根据接收到的备份请求确定并非是对待备份虚拟机进行的首次备份时,为待备份虚拟机创建第一快照,并根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息,且将数据变化信息及所创建的第一快照的信息发送至第三方,使得第三方根据第一快照的信息采用LAN-free方式对第一快照中与数据变化信息对应的数据进行备份,通过上述过程可知,本申请不仅通过获取数据变化信息基于该数据变化信息实现对虚拟机的增量备份,以降低备份的数据量,从而提高备份效率,而且通过LAN-free方式进行备份而改变备份流量的链路,缩短备份时长,提高备份效率。In the above technical solution disclosed in this application, when the cloud platform determines according to the received backup request that it is not the first backup of the virtual machine to be backed up, it creates a first snapshot for the virtual machine to be backed up, and obtains the virtual machine to be backed up according to the first snapshot Data change information from the last backup to the current backup, and send the data change information and the information of the first snapshot created to the third party, so that the third party can use the LAN-free method to make the first snapshot according to the information of the first snapshot The data corresponding to the data change information is backed up. Through the above process, it can be seen that the application not only realizes the incremental backup of the virtual machine based on the data change information by obtaining the data change information, so as to reduce the amount of backup data, thereby improving the backup efficiency. Moreover, the link of the backup traffic is changed by performing backup in the LAN-free mode, shortening the backup time and improving the backup efficiency.
本申请实施例提供的一种数据备份方法,在步骤S11时,若确定是对待备份虚拟机进行的首次备份,则执行步骤S14:In a data backup method provided by the embodiment of the present application, in step S11, if it is determined that this is the first backup of the virtual machine to be backed up, step S14 is executed:
S14:为待备份虚拟机创建第二快照,并向第三方发送快照创建成功的消息,由第三方根据消息中包含的第二快照的信息,采用LAN-free方式对第二快照中的所有数据进行备份。S14: Create a second snapshot for the virtual machine to be backed up, and send a message that the snapshot is successfully created to a third party, and the third party uses LAN-free method to save all data in the second snapshot according to the information of the second snapshot contained in the message Make a backup.
在本申请中,在云平台在执行步骤S11时,若根据备份请求确定是对待备份虚拟机进行的首次备份,此时,云平台则为待备份虚拟机创建第二快照,具体地,根据备份请求为uuid的待备份虚拟机创建名称为snap_id的第二快照。云平台在成功创建第二快照之后,可以向第三方发送快照创建成功的消息,其中,该消息中可以包含有第二快照的信息(具体包括所创建的第二快照的名称)。第三方在接收到云平台发送的快照创建成功的消息后,可以根据消息中所包含的第二快照的信息,采用LAN-free方式对第二快照中的所有数据进行备份,以使得在首次备份时可以对该待备份虚拟机进行全量备份,并据此为后续的非首次备份做基础,以使得备份一体机中的数据能够和云平台中生产存储池中的数据保持一致。其中,第二快照的信息可以使得第三方据此而在云平台中找到与待备份虚拟机对应的第二快照。相比与现有采用云平台管理网进行数据备份,本申请采用LAN-free方式可以改变备份流量的链路,缩短备份时长,提高备份效率。In this application, when the cloud platform executes step S11, if it is determined according to the backup request that it is the first backup of the virtual machine to be backed up, at this time, the cloud platform creates a second snapshot for the virtual machine to be backed up, specifically, according to the backup Request to create a second snapshot named snap_id for the virtual machine with uuid to be backed up. After the second snapshot is successfully created, the cloud platform may send a message that the snapshot is successfully created to the third party, wherein the message may include information about the second snapshot (specifically including the name of the created second snapshot). After the third party receives the message that the snapshot is successfully created sent by the cloud platform, it can use the LAN-free method to back up all the data in the second snapshot according to the information of the second snapshot contained in the message, so that when the first backup At this time, the virtual machine to be backed up can be fully backed up, and based on this, it can be used as a basis for subsequent non-initial backups, so that the data in the backup all-in-one machine can be consistent with the data in the production storage pool on the cloud platform. Wherein, the information of the second snapshot can enable the third party to find the second snapshot corresponding to the virtual machine to be backed up in the cloud platform. Compared with the existing cloud platform management network for data backup, this application adopts the LAN-free method to change the link of the backup traffic, shorten the backup time, and improve the backup efficiency.
本申请实施例提供的一种数据备份方法,在为待备份虚拟机创建第二快照时,还可以包括:A data backup method provided in an embodiment of the present application may further include: when creating a second snapshot for the virtual machine to be backed up:
为待备份虚拟机中的各虚拟磁盘创建对应的位图;Create a corresponding bitmap for each virtual disk in the virtual machine to be backed up;
相应地,消息中包括各虚拟磁盘对应的位图,位图包含的位图信息均为有效,以使第三方根据各虚拟磁盘对应的位图包含的有效的位图信息对第二快照中的所有数据进行备份。Correspondingly, the message includes the bitmap corresponding to each virtual disk, and the bitmap information contained in the bitmap is all valid, so that the third party can compare the information in the second snapshot according to the valid bitmap information contained in the bitmap corresponding to each virtual disk. All data is backed up.
在本申请中,云平台在对待备份虚拟机创建第二快照的同时,可以为待备份虚拟机中的每个虚拟磁盘创建位图(bitmap)。另外,在确定是对待备份虚拟机的首次备份时,则所创 建的各个位图包含的位图信息均默认为无效(无效即代表位图信息对应的数据块未发生变化,相应地,有效即代表位图信息对应的数据块发生了变化)且所创建的位图可以保存在内存中,其中,每个位图中包含有多个位图信息,各位图信息与对应的虚拟磁盘中的数据块相对应。在位图信息中,可以将1设置为有效,将0设置为无效(当然,也可以实际需要而对有效和无效对应的数字进行更改,本申请以1为有效,0为无效为例进行说明)。In this application, the cloud platform may create a bitmap (bitmap) for each virtual disk in the virtual machine to be backed up while creating the second snapshot of the virtual machine to be backed up. In addition, when it is determined that it is the first backup of the virtual machine to be backed up, the bitmap information contained in each created bitmap is invalid by default (invalid means that the data block corresponding to the bitmap information has not changed, correspondingly, valid means represents that the data block corresponding to the bitmap information has changed) and the created bitmap can be stored in memory, wherein each bitmap contains multiple bitmap information, and each bitmap information is related to the data in the corresponding virtual disk corresponding to the block. In the bitmap information, 1 can be set as valid, and 0 can be set as invalid (of course, the numbers corresponding to valid and invalid can also be changed according to actual needs. In this application, 1 is valid and 0 is invalid as an example for illustration. ).
在上述基础上,云平台向第三方所发送的快照创建成功的消息中还可以包含有待备份虚拟机包含的各虚拟磁盘对应的位图,其中,在向第三方发送位图时,为了使得第三方可以据此对第二快照中的所有数据进行备份,也即可以对待备份虚拟机包含的各虚拟磁盘中的所有数据进行备份,则向第三方发送的位图包含的位图信息全部设置为有效,需要说明的是,在创建位图之后,保存在内存中的位图包含的位图信息依旧全部默认为无效,以便于基于位图进行数据变化的记录,但发送给第三方的位图中包含的位图信息全部设置为有效,以便于第三方可以据此进行全量备份。另外,向第三方所发送的快照创建成功的消息中还可以包含有位图的相关信息及待备份虚拟磁盘的信息,具体如下:On the basis of the above, the message that the cloud platform sends the third party a successful snapshot creation may also include a bitmap corresponding to each virtual disk contained in the virtual machine to be backed up, wherein, when sending the bitmap to the third party, in order to make the Based on this, the third party can back up all the data in the second snapshot, that is, all the data in the virtual disks contained in the virtual machine to be backed up can be backed up, and the bitmap information contained in the bitmap sent to the third party is all set to It is valid. It should be noted that after the bitmap is created, the bitmap information contained in the bitmap stored in the memory is still all invalid by default, so as to record data changes based on the bitmap, but the bitmap sent to a third party All the bitmap information contained in is set to valid, so that a third party can perform a full backup accordingly. In addition, the information about the bitmap and the information about the virtual disk to be backed up may also be included in the successful snapshot creation message sent to the third party, as follows:
{{
"disk_uuid":string,//虚拟磁盘uuid"disk_uuid": string, //virtual disk uuid
"block_len":integer,//bitmap代表的块长度,比如2M一个block"block_len": integer, //bitmap represents the block length, such as 2M a block
"bit_num":integer,//bitmap bit数量,1个bit代表一个block,0代表未分配(也即代表无效),1代表已分配(也即代表有效)"bit_num": integer, //bitmap bit number, 1 bit represents a block, 0 represents unallocated (that is, invalid), 1 represents allocated (that is, valid)
"bitmap":string//bitmap的字符串表现形式,首次备份时,其对应的位图信息为“1111 1111 1111 1111”,其从左至右的bit位分别对序号从低到高block的有效性"bitmap":string//bitmap string representation, when backing up for the first time, its corresponding bitmap information is "1111 1111 1111 1111", and the bits from left to right are valid for blocks with sequence numbers from low to high sex
}}
其中,上述bitmap的字符串表现形式即为将虚拟磁盘对应的位图包含的位图信息转换成字符串的形式进行表示,一个字符对应一个位图信息,在首次备份时bitmap的字符串表现形式全为1(即有效)。Among them, the string representation of the above bitmap is to convert the bitmap information contained in the bitmap corresponding to the virtual disk into a string representation, one character corresponds to a bitmap information, and the string representation of the bitmap at the first backup All 1s (i.e. valid).
第三方在接收到前述信息后,则根据第二快照及各虚拟磁盘对应的位图中包含的有效的位图信息(也可以根据bitmap的字符串表现形式),采用LAN-free方式对第二快照中的数据进行备份,由于各虚拟磁盘对应的位图包含的位图信息均为有效,因此,第三方则可以据此对待备份虚拟机对应的各虚拟磁盘均进行全量备份,也即对第二快照中的所有数据进行备份。After the third party receives the aforementioned information, according to the effective bitmap information contained in the bitmap corresponding to the second snapshot and each virtual disk (or according to the character string expression form of the bitmap), the third party adopts the LAN-free method for the second The data in the snapshot is backed up. Since the bitmap information contained in the bitmap corresponding to each virtual disk is valid, the third party can perform a full backup of each virtual disk corresponding to the virtual machine to be backed up based on this, that is, the first All data in the second snapshot is backed up.
本申请实施例提供的一种数据备份方法,在为待备份虚拟机中的各虚拟磁盘创建对应的 位图之后,还可以包括:A data backup method provided in the embodiment of the present application may further include, after creating corresponding bitmaps for each virtual disk in the virtual machine to be backed up:
当虚拟磁盘的数据变化时,则将虚拟磁盘对应的位图中相应位置的位图信息标记为有效;When the data of the virtual disk changes, the bitmap information at the corresponding position in the bitmap corresponding to the virtual disk is marked as valid;
根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息,可以包括:Obtaining the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot may include:
根据第一快照及各虚拟磁盘对应的位图获取待备份虚拟机从上次备份到当前备份间的数据变化信息;Obtain the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot and the bitmap corresponding to each virtual disk;
在第三方完成对第一快照中与数据变化信息对应的数据的备份后,还可以包括:After the third party finishes backing up the data corresponding to the data change information in the first snapshot, it may also include:
将各虚拟磁盘对应的位图包含的位图信息进行清除。Clear the bitmap information included in the bitmap corresponding to each virtual disk.
在本申请中,当云平台为待备份虚拟机中的各虚拟磁盘创建完对应的位图之后,则可以利用虚拟磁盘对应的位图记录虚拟磁盘的数据变化,具体地,当虚拟磁盘的数据发生变化时,则将虚拟磁盘对应的位图(这里提及的位图具体是保存在内存中的位图)中相应位置的位图信息从默认的无效更改为有效,以利用位图信息记录虚拟磁盘的数据变化。In this application, after the cloud platform creates corresponding bitmaps for each virtual disk in the virtual machine to be backed up, the bitmap corresponding to the virtual disk can be used to record the data changes of the virtual disk. Specifically, when the data of the virtual disk When a change occurs, the bitmap information of the corresponding position in the bitmap corresponding to the virtual disk (the bitmap mentioned here is specifically the bitmap stored in the memory) is changed from the default invalid to valid, so as to use the bitmap information to record Data changes on virtual disks.
相应地,云平台在根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息时,则可以根据第一快照及各虚拟磁盘对应的位图获取待备份虚拟机从上次备份到当前备份间的数据变化信息,具体地,在利用虚拟磁盘对应的位图记录虚拟磁盘的数据变化时,云平台可以记录到所创建的第一快照为止,然后,云平台可以根据此时的各虚拟磁盘对应的位图获取待备份虚拟机从上次到当前备份间的数据变化信息,具体地,云平台可以将各虚拟磁盘对应的位图包含的位图信息作为数据变化信息。Correspondingly, when the cloud platform obtains the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot, it can obtain the virtual machine to be backed up from the first snapshot and the bitmap corresponding to each virtual disk. The data change information between the first backup and the current backup. Specifically, when using the bitmap corresponding to the virtual disk to record the data change of the virtual disk, the cloud platform can record up to the first snapshot created, and then the cloud platform can use this. The bitmap corresponding to each virtual disk at the time obtains the data change information of the virtual machine to be backed up from the last time to the current backup. Specifically, the cloud platform can use the bitmap information included in the bitmap corresponding to each virtual disk as the data change information.
相应地,云平台在将数据变化信息发送至第三方时,具体可以将各虚拟磁盘对应的位图包含的位图信息发送给第三方,当然,也可以同时将其他信息发送至第三方,具体如下所示:Correspondingly, when the cloud platform sends the data change information to the third party, it can specifically send the bitmap information contained in the bitmap corresponding to each virtual disk to the third party. Of course, it can also send other information to the third party at the same time. As follows:
{{
"disk_uuid":string,//虚拟磁盘uuid"disk_uuid": string, //virtual disk uuid
"block_len":integer,//bitmap代表的块长度,比如2M一个block"block_len": integer, //bitmap represents the block length, such as 2M a block
"bit_num":integer,//bitmap bit数量,1个bit代表一个block,0代表未分配,1代表已分配"bit_num": integer, //bitmap bit number, 1 bit represents a block, 0 represents unallocated, 1 represents allocated
"bitmap":string//bitmap的字符串表现形式,例如:某个虚拟磁盘对应的位图包含的位图信息为“1001 0001 1000 0000”,其从左至右的bit位分别对序号从低到高block的有效性"bitmap":string//The string representation of bitmap, for example: the bitmap information contained in a bitmap corresponding to a virtual disk is "1001 0001 1000 0000", and the bits from left to right correspond to the sequence numbers from low to low to high block effectiveness
}}
在上述基础上,第三方则可以根据虚拟磁盘对应的位图包含的位图信息对第一快照中与有效的位图信息对应的数据进行备份,以实现仅对相邻两次备份间发生变化的数据进行备份,以降低数据备份量。具体可以参见图4,其示出了本申请实施例提供的虚拟磁盘、位图、备份磁盘间的关系图,假设此时某一虚拟磁盘对应的位图包含的位图信息为0111 0010 0000,则第三方在进行备份时,仅对位图信息为1在虚拟磁盘中对应的位置处的数据进行备份。On the basis of the above, the third party can back up the data corresponding to the valid bitmap information in the first snapshot according to the bitmap information contained in the bitmap corresponding to the virtual disk, so as to realize only changes between two adjacent backups backup data to reduce the amount of data backup. 4 for details, which shows the relationship diagram between the virtual disk, bitmap, and backup disk provided by the embodiment of the present application, assuming that the bitmap information contained in the bitmap corresponding to a certain virtual disk is 0111 0010 0000, Then, when the third party performs backup, it only backs up the data at the corresponding position in the virtual disk where the bitmap information is 1.
第三方在完成对第一快照中与数据变化信息对应的数据的备份后,可以向云平台发送备份完成的通知,云平台在获知第三方完成对第一快照中与数据变化信息对应的数据的备份后,可以将各虚拟磁盘对应的位图包含的位图信息进行清除(即全部设置为默认的无效),以便于重新利用所创建的位图记录对应的虚拟磁盘的数据变化,同时避免后续对该待备份虚拟机的备份产生影响。After the third party completes the backup of the data corresponding to the data change information in the first snapshot, it can send a notification of the completion of the backup to the cloud platform, and the cloud platform learns that the third party has completed the backup of the data corresponding to the data change information in the first snapshot. After backup, the bitmap information contained in the bitmap corresponding to each virtual disk can be cleared (that is, all are set to default invalid), so that the created bitmap can be reused to record the data changes of the corresponding virtual disk, and at the same time avoid subsequent Affects the backup of the virtual machine to be backed up.
本申请实施例提供的一种数据备份方法,在第三方完成对第一快照中与数据变化信息对应的数据的备份后,还可以包括:A data backup method provided by an embodiment of the present application may further include, after the third party completes the backup of the data corresponding to the data change information in the first snapshot:
删除第一快照及第一快照的信息。The first snapshot and the information of the first snapshot are deleted.
在本申请中,云平台在获知第三方完成对第一快照中与数据变化信息对应的数据的备份后,可以删除所创建的第一快照及第一快照的信息,以避免给后续对该待备份虚拟机的备份产生影响,同时避免对资源的占用。In this application, after the cloud platform learns that the third party has completed the backup of the data corresponding to the data change information in the first snapshot, it can delete the created first snapshot and the information of the first snapshot to avoid giving subsequent Back up backups of virtual machines with impact while avoiding resource hogs.
另外,在第三方完成对第二快照中的所有数据的备份后,可以删除第二快照及第二快照的信息,以免给后续对该待备份虚拟机的备份产生影响,同时避免对资源的占用。In addition, after the third party completes the backup of all the data in the second snapshot, the second snapshot and the information of the second snapshot can be deleted, so as not to affect the subsequent backup of the virtual machine to be backed up, and avoid resource occupation .
本申请实施例提供的一种数据备份方法,将数据变化信息及第一快照的信息发送至第三方,可以包括:A data backup method provided in an embodiment of the present application, sending data change information and first snapshot information to a third party may include:
将数据变化信息及第一快照的信息通过API(应用程序接口,Application Program Interface)发送至第三方。Send the data change information and the information of the first snapshot to a third party through API (Application Program Interface, Application Program Interface).
在本申请中,云平台可以以Restful API的形式对外提供服务,也即可以对第三方提供API,以使得云平台与第三方之间可以通过API进行备份信息(具体为后续提及的数据变化信息、快照的信息)的交互,以便于第三方可以对云平台生产存储池中的虚拟机进行数据备份。相应地,第三方中的第三方备份/恢复管理模块在对外与云平台进行通讯时,则具体可以通过云平台的API进行通讯。也即在本申请中,云平台可以将数据变化信息及第一快照的信息通过API发送至第三方,其中,在以位图记录数据变化信息时,则云平台也可以直接将虚拟磁盘对应的位图包含的位图信息通过API发送至第三方,以便于第三方对云平台中的虚 拟磁盘进行备份。In this application, the cloud platform can provide external services in the form of Restful API, that is, it can provide APIs to third parties, so that the cloud platform and third parties can back up information through APIs (specifically, the data changes mentioned later information, snapshot information), so that a third party can perform data backup on the virtual machines in the production storage pool of the cloud platform. Correspondingly, when the third-party backup/restore management module in the third party communicates with the cloud platform externally, it may specifically communicate through the API of the cloud platform. That is to say, in this application, the cloud platform can send the data change information and the information of the first snapshot to a third party through the API, wherein, when recording the data change information with a bitmap, the cloud platform can also directly send the information corresponding to the virtual disk The bitmap information contained in the bitmap is sent to a third party through the API, so that the third party can back up the virtual disk in the cloud platform.
另外,云平台在向第三方发送快照创建成功的消息时,也同样可以通过API向第三方发送快照创建成功的消息。In addition, when the cloud platform sends a message that the snapshot is successfully created to the third party, it can also send a message that the snapshot is successfully created to the third party through the API.
本申请实施例提供的一种数据备份方法,虚拟磁盘可以为QCOW2格式或RAW格式的虚拟磁盘。In the data backup method provided in the embodiment of the present application, the virtual disk may be a virtual disk in QCOW2 format or RAW format.
在本申请中,云平台中的虚拟磁盘具体可以为基于通用的QCOW2格式或RAW(未经处理的)格式的虚拟磁盘,即第三方可以对云平台中这些格式的虚拟磁盘实现备份,以提高对这些格式的虚拟磁盘进行备份的效率。In this application, the virtual disk in the cloud platform can specifically be a virtual disk based on the general QCOW2 format or RAW (unprocessed) format, that is, a third party can back up the virtual disks in these formats in the cloud platform to improve Efficiency of backups of virtual disks in these formats.
本申请实施例还提供了另一种数据备份方法,应用于第三方,参见图5,其示出了本申请实施例提供的一种数应用于第三方的数据备份方法的流程图,可以包括:The embodiment of the present application also provides another data backup method, which is applied to a third party. Referring to FIG. 5 , it shows a flow chart of a data backup method applied to a third party provided by the embodiment of the present application, which may include :
S21:向云平台发送对待备份虚拟机进行备份的备份请求,由云平台在确定并非是对待备份虚拟机进行的首次备份,并为待备份虚拟机创建第一快照,且根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息;S21: Send a backup request to the cloud platform for backing up the virtual machine to be backed up. The cloud platform determines that it is not the first backup of the virtual machine to be backed up, and creates a first snapshot for the virtual machine to be backed up, and obtains the virtual machine to be backed up according to the first snapshot. Back up the data change information of the virtual machine from the last backup to the current backup;
S22:接收云平台发送的数据变化信息及第一快照的信息,根据第一快照的信息,采用LAN-free方式对第一快照中与数据变化信息对应的数据进行备份。S22: Receive the data change information and the information of the first snapshot sent by the cloud platform, and use the LAN-free method to back up the data corresponding to the data change information in the first snapshot according to the information of the first snapshot.
本申请实施例提供的一种数据备份方法,还可以包括:A data backup method provided in an embodiment of the present application may further include:
接收云平台发送的快照创建成功的消息;其中,消息是由云平台确定是对待备份虚拟机的首次备份,并为待备份虚拟机创建第二快照后发送的;Receiving a message that the snapshot is successfully created sent by the cloud platform; wherein, the message is sent by the cloud platform after determining that it is the first backup of the virtual machine to be backed up and creating a second snapshot for the virtual machine to be backed up;
根据消息中包含的第二快照的信息,采用LAN-free方式对第二快照中的所有数据进行备份。According to the information of the second snapshot included in the message, all data in the second snapshot is backed up in a LAN-free manner.
本申请实施例提供的一种数据备份方法,接收的消息中包括各虚拟磁盘对应的包含的位图信息均为有效的位图;In the data backup method provided by the embodiment of the present application, the received message includes that the bitmap information corresponding to each virtual disk is a valid bitmap;
相应地,根据消息中包含的第二快照的信息,采用LAN-free方式对第二快照中的所有数据进行备份,包括:Correspondingly, according to the information of the second snapshot contained in the message, all data in the second snapshot is backed up in a LAN-free manner, including:
根据第二快照及各虚拟磁盘对应的位图包含的有效的位图信息,采用LAN-free方式对第二快照中的数据进行备份。According to the effective bitmap information included in the second snapshot and the bitmap corresponding to each virtual disk, the data in the second snapshot is backed up in a LAN-free manner.
本申请实施例提供的一种数据备份方法,接收的云平台发送的数据变化信息中包含有待备份虚拟机中各虚拟磁盘对应的位图,其中,位图中包含的有效的位图信息表示虚拟磁盘中相应的数据从上次备份到当前备份间发生变化。In the data backup method provided by the embodiment of the present application, the received data change information sent by the cloud platform includes the bitmap corresponding to each virtual disk in the virtual machine to be backed up, wherein the valid bitmap information contained in the bitmap indicates that the virtual The corresponding data in the disk has changed from the last backup to the current backup.
本申请实施例提供的一种应用于第三方的数据备份方法中相关部分的说明可以参见本申请实施例提供的一种应用于云平台的数据备份方法中对应部分的详细说明,在此不再赘述。For the description of the relevant parts of a data backup method applied to a third party provided in the embodiment of the present application, please refer to the detailed description of the corresponding part in the data backup method applied to the cloud platform provided in the embodiment of the present application, and will not be repeated here repeat.
本申请实施例还提供了一种数据备份装置,应用于云平台,参见图6,其示出了本申请实施例提供的一种应用于云平台的数据备份装置的结构示意图,可以包括:The embodiment of the present application also provides a data backup device, which is applied to the cloud platform. Referring to FIG. 6, it shows a schematic structural diagram of a data backup device applied to the cloud platform provided by the embodiment of the present application, which may include:
接收模块61,用于接收第三方发送的对待备份虚拟机进行备份的备份请求,根据备份请求判断是否是对待备份虚拟机进行的首次备份;The receiving module 61 is configured to receive a backup request sent by a third party for backing up the virtual machine to be backed up, and judge whether it is the first backup of the virtual machine to be backed up according to the backup request;
获取模块62,用于若不是对备份请求中的待备份虚拟机进行首次备份,则为待备份虚拟机创建第一快照,根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息;The acquisition module 62 is configured to create a first snapshot for the virtual machine to be backed up if it is not the first backup of the virtual machine to be backed up in the backup request, and obtain the time between the last backup and the current backup of the virtual machine to be backed up according to the first snapshot. data change information;
第一发送模块63,用于将数据变化信息及第一快照的信息发送至第三方,由第三方根据第一快照的信息,采用LAN-free方式对第一快照中与数据变化信息对应的数据进行备份。The first sending module 63 is used to send the data change information and the information of the first snapshot to a third party, and the data corresponding to the data change information in the first snapshot is processed by the third party in a LAN-free manner according to the information of the first snapshot Make a backup.
本申请实施例提供的一种数据备份装置,还可以包括:A data backup device provided in an embodiment of the present application may further include:
第一创建模块,用于若确定是对待备份虚拟机进行的首次备份,则为待备份虚拟机创建第二快照,并向第三方发送快照创建成功的消息,由第三方根据消息中包含的第二快照的信息,采用LAN-free方式对第二快照中的所有数据进行备份。The first creation module is used to create a second snapshot for the virtual machine to be backed up if it is determined that it is the first backup of the virtual machine to be backed up, and send a message that the snapshot is successfully created to a third party, and the third party uses the first snapshot included in the message For the information of the second snapshot, all data in the second snapshot is backed up in a LAN-free manner.
本申请实施例提供的一种数据备份装置,还可以包括:A data backup device provided in an embodiment of the present application may further include:
第二创建模块,用于在为待备份虚拟机创建第二快照时,为待备份虚拟机中的各虚拟磁盘创建对应的位图;The second creation module is used to create a corresponding bitmap for each virtual disk in the virtual machine to be backed up when creating a second snapshot for the virtual machine to be backed up;
相应地,消息中包括各虚拟磁盘对应的位图,位图包含的位图信息均为有效,以使第三方根据各虚拟磁盘对应的位图包含的有效的位图信息对第二快照中的所有数据进行备份。Correspondingly, the message includes the bitmap corresponding to each virtual disk, and the bitmap information contained in the bitmap is all valid, so that the third party can compare the information in the second snapshot according to the valid bitmap information contained in the bitmap corresponding to each virtual disk. All data is backed up.
本申请实施例提供的一种数据备份装置,还可以包括:A data backup device provided in an embodiment of the present application may further include:
标记模块,用于在为待备份虚拟机中的各虚拟磁盘创建对应的位图之后,当虚拟磁盘的数据变化时,则将虚拟磁盘对应的位图中相应位置的位图信息标记为有效;The marking module is used to mark the bitmap information at the corresponding position in the bitmap corresponding to the virtual disk as valid after the corresponding bitmap is created for each virtual disk in the virtual machine to be backed up, when the data of the virtual disk changes;
获取模块62可以包括: Acquisition module 62 may include:
获取单元,用于根据第一快照及各虚拟磁盘对应的位图获取待备份虚拟机从上次备份到当前备份间的数据变化信息;An acquisition unit, configured to acquire the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot and the bitmap corresponding to each virtual disk;
还可以包括:Can also include:
清除模块,用于在第三方完成对第一快照中与数据变化信息对应的数据的备份后,将各虚拟磁盘对应的位图包含的位图信息进行清除。The clearing module is configured to clear the bitmap information included in the bitmap corresponding to each virtual disk after the third party completes the backup of the data corresponding to the data change information in the first snapshot.
本申请实施例提供的一种数据备份装置,还可以包括:A data backup device provided in an embodiment of the present application may further include:
删除模块,用于在第三方完成对第一快照中与数据变化信息对应的数据的备份后,删除第一快照及第一快照的信息。The deletion module is used to delete the first snapshot and the information of the first snapshot after the third party completes the backup of the data corresponding to the data change information in the first snapshot.
本申请实施例提供的一种数据备份装置,第一发送模块63可以包括:In a data backup device provided in an embodiment of the present application, the first sending module 63 may include:
发送单元,用于将数据变化信息及第一快照的信息通过API发送至第三方。The sending unit is configured to send the data change information and the information of the first snapshot to a third party through the API.
本申请实施例提供的一种数据备份装置,虚拟磁盘可以为QCOW2格式或RAW格式的虚拟磁盘。本申请实施例提供的一种应用于云平台的数据备份装置中相关部分的说明可以参见本申请实施例提供的一种应用于云平台的数据备份方法中对应部分的详细说明,在此不再赘述。In the data backup device provided in the embodiment of the present application, the virtual disk may be a virtual disk in QCOW2 format or RAW format. For the description of the relevant parts of a data backup device applied to the cloud platform provided by the embodiment of the present application, please refer to the detailed description of the corresponding part of the data backup method applied to the cloud platform provided by the embodiment of the present application, which will not be repeated here repeat.
本申请实施例还提供了另一种数据备份装置,应用于第三方,参见图7,其示出了本申请实施例提供的一种应用于第三方的数据备份装置的结构示意图,可以包括:The embodiment of the present application also provides another data backup device, which is applied to a third party. Refer to FIG. 7, which shows a schematic structural diagram of a data backup device applied to a third party provided in the embodiment of the present application, which may include:
第二发送模块71,用于向云平台发送对待备份虚拟机进行备份的备份请求,由云平台在确定并非是对待备份虚拟机进行的首次备份,并为待备份虚拟机创建第一快照,且根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息;The second sending module 71 is configured to send to the cloud platform a backup request for backing up the virtual machine to be backed up, and the cloud platform determines that it is not the first backup of the virtual machine to be backed up, and creates a first snapshot for the virtual machine to be backed up, and Acquiring the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot;
第一备份模块72,用于接收云平台发送的数据变化信息及第一快照的信息,根据第一快照的信息,采用LAN-free方式对第一快照中与数据变化信息对应的数据进行备份。The first backup module 72 is configured to receive the data change information and the information of the first snapshot sent by the cloud platform, and use the LAN-free method to back up the data corresponding to the data change information in the first snapshot according to the information of the first snapshot.
本申请实施例提供的一种数据备份装置,还可以包括:A data backup device provided in an embodiment of the present application may further include:
接收模块,用于接收云平台发送的快照创建成功的消息;其中,消息是由云平台确定是对待备份虚拟机的首次备份,并为待备份虚拟机创建第二快照后发送的;The receiving module is configured to receive a message that the snapshot is successfully created sent by the cloud platform; wherein, the message is determined by the cloud platform to be the first backup of the virtual machine to be backed up, and is sent after creating a second snapshot for the virtual machine to be backed up;
第二备份模块,用于根据消息中包含的第二快照的信息,采用LAN-free方式对第二快照中的所有数据进行备份。The second backup module is configured to back up all data in the second snapshot in a LAN-free manner according to the information of the second snapshot included in the message.
本申请实施例提供的一种数据备份装置,接收的消息中包括各虚拟磁盘对应的包含的位图信息均为有效的位图;In the data backup device provided by the embodiment of the present application, the received message includes that the bitmap information corresponding to each virtual disk is a valid bitmap;
相应地,第二备份模块可以包括:Correspondingly, the second backup module may include:
备份单元,用于根据第二快照及各虚拟磁盘对应的位图包含的有效的位图信息,采用LAN-free方式对第二快照中的数据进行备份。The backup unit is configured to back up the data in the second snapshot in a LAN-free manner according to the second snapshot and valid bitmap information included in the bitmap corresponding to each virtual disk.
本申请实施例提供的一种数据备份装置,接收的云平台发送的数据变化信息中包含有待备份虚拟机中各虚拟磁盘对应的位图,其中,位图中包含的有效的位图信息表示虚拟磁盘中相应的数据从上次备份到当前备份间发生变化。In the data backup device provided by the embodiment of the present application, the received data change information sent by the cloud platform includes the bitmap corresponding to each virtual disk in the virtual machine to be backed up, wherein the valid bitmap information contained in the bitmap indicates that the virtual The corresponding data in the disk has changed from the last backup to the current backup.
本申请实施例提供的一种应用于第三方的数据备份装置中相关部分的说明可以参见本申 请实施例提供的一种应用于云平台的数据备份方法中对应部分的详细说明,在此不再赘述。For the description of the relevant parts of a data backup device applied to a third party provided in the embodiment of the present application, please refer to the detailed description of the corresponding part in the data backup method applied to the cloud platform provided in the embodiment of the present application, and will not be repeated here repeat.
本申请实施例还提供了一种数据备份系统,可以包括云平台和第三方,其中:The embodiment of the present application also provides a data backup system, which may include a cloud platform and a third party, wherein:
第三方,用于向云平台发送对待备份虚拟机进行备份的备份请求;接收云平台发送的数据变化信息及第一快照的信息,根据第一快照的信息,采用LAN-free方式对第一快照中与数据变化信息对应的数据进行备份;The third party is used to send a backup request to the cloud platform for backing up the virtual machine to be backed up; receive the data change information and the information of the first snapshot sent by the cloud platform, and use the LAN-free method to make the first snapshot according to the information of the first snapshot Back up the data corresponding to the data change information in the database;
云平台,用于根据备份请求判断是否是对待备份虚拟机进行的首次备份;若确定不是对待备份虚拟机进行的首次备份,则为待备份虚拟机创建第一快照,根据第一快照获取待备份虚拟机从上次备份到当前备份间的数据变化信息;将数据变化信息及第一快照的信息发送至第三方。The cloud platform is used to judge whether it is the first backup of the virtual machine to be backed up according to the backup request; if it is determined that it is not the first backup of the virtual machine to be backed up, create a first snapshot for the virtual machine to be backed up, and obtain the backup to be backed up according to the first snapshot The data change information of the virtual machine from the last backup to the current backup; the data change information and the first snapshot information are sent to a third party.
本申请实施例提供的一种数据备份系统中相关部分的说明可以参见本申请实施例提供的一种应用于云平台的数据备份方法中相关部分的具体说明,在此不再赘述。For the description of the relevant parts of a data backup system provided in the embodiment of the present application, refer to the specific description of the relevant parts of the data backup method applied to the cloud platform provided in the embodiment of the present application, and details are not repeated here.
本申请实施例还提供了一种电子设备,参见图8,其示出了本申请实施例提供的一种电子设备的结构示意图,其中,包括处理器810以及存储器820,存储器820包括非易失性可读存储介质830,及存储在非易失性可读存储介质830上并可在所述处理器上运行的计算机程序832,计算机程序832被所述处理器执行时实现如上述任一种应用于云平台的数据备份方法的步骤和/或上述应用于第三方的数据备份方法的步骤。The embodiment of the present application also provides an electronic device, see FIG. 8, which shows a schematic structural diagram of an electronic device provided in the embodiment of the present application, which includes a processor 810 and a memory 820, and the memory 820 includes a non-volatile A non-volatile readable storage medium 830, and a computer program 832 stored on the non-volatile readable storage medium 830 and operable on the processor. When the computer program 832 is executed by the processor, any of the above-mentioned The steps of the data backup method applied to the cloud platform and/or the steps of the above-mentioned data backup method applied to a third party.
本申请实施例还提供了一种非易失性可读存储介质,参见图9,其示出了本申请实施例提供的一种非易失性可读存储介质的结构示意图,非易失性可读存储介质930中存储有计算机程序932,计算机程序932在被处理器执行时实现如上述任一种应用于云平台的数据备份方法的步骤和/或上述应用于第三方的数据备份方法的步骤。The embodiment of the present application also provides a non-volatile readable storage medium, see FIG. 9, which shows a schematic structural diagram of a non-volatile readable storage medium provided in the embodiment of the present application. A computer program 932 is stored in the readable storage medium 930, and when the computer program 932 is executed by the processor, it implements the steps of any of the above-mentioned data backup methods applied to the cloud platform and/or the above-mentioned data backup method applied to a third party. step.
该非易失性可读存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The non-volatile readable storage medium may include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc. A medium that stores program code.
本申请实施例提供的一种非易失性可读存储介质中相关部分的说明可以参见本申请实施例提供的一种应用于云平台的数据备份方法中相关部分的具体说明,在此不再赘述。For the description of the relevant parts of a non-volatile readable storage medium provided in the embodiment of the present application, please refer to the specific description of the relevant parts in the data backup method applied to the cloud platform provided in the embodiment of the present application, which will not be repeated here. repeat.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排 他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。另外,本申请实施例提供的上述技术方案中与现有技术中对应技术方案实现原理一致的部分并未详细说明,以免过多赘述。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the terms "comprising", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion such that elements inherent in a process, method, article, or apparatus including a series of elements are included. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element. In addition, the parts of the technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail, so as not to repeat them too much.
对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (21)

  1. 一种数据备份方法,其特征在于,应用于云平台,包括:A data backup method, characterized in that it is applied to a cloud platform, comprising:
    接收第三方发送的对待备份虚拟机进行备份的备份请求,根据所述备份请求判断是否是对所述待备份虚拟机进行的首次备份;receiving a backup request for backing up the virtual machine to be backed up sent by a third party, and judging whether it is the first backup of the virtual machine to be backed up according to the backup request;
    若确定不是对所述待备份虚拟机进行的首次备份,则为所述待备份虚拟机创建第一快照,根据所述第一快照获取所述待备份虚拟机从上次备份到当前备份间的数据变化信息;If it is determined that it is not the first backup of the virtual machine to be backed up, create a first snapshot for the virtual machine to be backed up, and obtain the time between the last backup and the current backup of the virtual machine to be backed up according to the first snapshot data change information;
    将所述数据变化信息及所述第一快照的信息发送至所述第三方,由所述第三方根据所述第一快照的信息,采用LAN-free方式对所述第一快照中与所述数据变化信息对应的数据进行备份。Send the data change information and the information of the first snapshot to the third party, and the third party uses the LAN-free method to compare the information in the first snapshot with the information of the first snapshot according to the information of the first snapshot. The data corresponding to the data change information is backed up.
  2. 根据权利要求1所述的数据备份方法,其特征在于,若确定是对所述待备份虚拟机进行的首次备份,则还包括:The data backup method according to claim 1, wherein if it is determined that it is the first backup of the virtual machine to be backed up, further comprising:
    为所述待备份虚拟机创建第二快照,并向所述第三方发送快照创建成功的消息,由所述第三方根据所述消息中包含的第二快照的信息,采用所述LAN-free方式对所述第二快照中的所有数据进行备份。Create a second snapshot for the virtual machine to be backed up, and send a message that the snapshot is successfully created to the third party, and the third party uses the LAN-free method according to the information of the second snapshot contained in the message All data in the second snapshot is backed up.
  3. 根据权利要求2所述的数据备份方法,其特征在于,在为所述待备份虚拟机创建第二快照时,还包括:The data backup method according to claim 2, wherein when creating a second snapshot for the virtual machine to be backed up, further comprising:
    为所述待备份虚拟机中的各虚拟磁盘创建对应的位图;Create a corresponding bitmap for each virtual disk in the virtual machine to be backed up;
    相应地,所述消息中包括各所述虚拟磁盘对应的位图,所述位图包含的位图信息均为有效,以使所述第三方根据各所述虚拟磁盘对应的位图包含的有效的位图信息对所述第二快照中的数据进行备份。Correspondingly, the message includes a bitmap corresponding to each of the virtual disks, and the bitmap information included in the bitmap is all valid, so that the third party can The bitmap information in the second snapshot is backed up.
  4. 根据权利要求3所述的数据备份方法,其特征在于,在为所述待备份虚拟机中的各虚拟磁盘创建对应的位图之后,还包括:The data backup method according to claim 3, further comprising: after creating corresponding bitmaps for each virtual disk in the virtual machine to be backed up:
    当所述虚拟磁盘的数据变化时,则将所述虚拟磁盘对应的位图中相应位置的位图信息标记为有效;When the data of the virtual disk changes, mark the bitmap information at the corresponding position in the bitmap corresponding to the virtual disk as valid;
    根据所述第一快照获取所述待备份虚拟机从上次备份到当前备份间的数据变化信息,包括:Obtaining the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot, including:
    根据所述第一快照及各所述虚拟磁盘对应的位图获取所述待备份虚拟机从上次备份到当前备份间的数据变化信息;Acquire data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot and the bitmap corresponding to each of the virtual disks;
    在所述第三方完成对所述第一快照中与所述数据变化信息对应的数据的备份后,还包括:After the third party finishes backing up the data corresponding to the data change information in the first snapshot, the method further includes:
    将各所述虚拟磁盘对应的位图包含的位图信息进行清除。The bitmap information included in the bitmap corresponding to each virtual disk is cleared.
  5. 根据权利要求4所述的数据备份方法,其特征在于,在所述第三方完成对所述第一快照中与所述数据变化信息对应的数据的备份后,还包括:The data backup method according to claim 4, wherein after the third party completes the backup of the data corresponding to the data change information in the first snapshot, further comprising:
    删除所述第一快照及所述第一快照的信息。Delete the first snapshot and the information of the first snapshot.
  6. 根据权利要求1至5任一项所述的数据备份方法,其特征在于,将所述数据变化信息及所述第一快照的信息发送至所述第三方,包括:The data backup method according to any one of claims 1 to 5, wherein sending the data change information and the information of the first snapshot to the third party includes:
    将所述数据变化信息及所述第一快照的信息通过API发送至所述第三方。sending the data change information and the information of the first snapshot to the third party through an API.
  7. 根据权利要求6所述的数据备份方法,其特征在于,虚拟磁盘为QCOW2格式或RAW格式的虚拟磁盘。The data backup method according to claim 6, wherein the virtual disk is a virtual disk in QCOW2 format or RAW format.
  8. 根据权利要求1所述的数据备份方法,其中,根据所述备份请求判断是否是对所述待备份虚拟机进行的首次备份,包括:The data backup method according to claim 1, wherein judging whether it is the first backup of the virtual machine to be backed up according to the backup request comprises:
    根据所述接收备份请求中所包含的所述待备份虚拟机的通用唯一识别码uuid的次数,来判断是否是对所述待备份虚拟机进行的首次备份。Whether it is the first backup of the virtual machine to be backed up is determined according to the number of times of the uuid of the virtual machine to be backed up included in the received backup request.
  9. 根据权利要求3所述的数据备份方法,其中,向所述第三方发送快照创建成功的消息,还包括:The data backup method according to claim 3, wherein, sending the message that the snapshot is successfully created to the third party further includes:
    所述消息中包括所述待备份虚拟机包含的各虚拟磁盘对应的位图。The message includes a bitmap corresponding to each virtual disk included in the virtual machine to be backed up.
  10. 根据权利要求3所述的数据备份方法,其中,若确定是对所述待备份虚拟机进行的首次备份,则还包括:The data backup method according to claim 3, wherein, if it is determined that it is the first backup of the virtual machine to be backed up, further comprising:
    在确定是对所述待备份虚拟机的首次备份时,则所创建的各个位图包含的位图信息均默认为无效;When it is determined that it is the first backup of the virtual machine to be backed up, the bitmap information contained in each created bitmap is invalid by default;
    发送给所述第三方的位图中包含的位图信息全部设置为有效。All bitmap information included in the bitmap sent to the third party is set to be valid.
  11. 根据权利要求3所述的数据备份方法,其中,向所述第三方发送快照创建成功的消息,还包括:The data backup method according to claim 3, wherein, sending the message that the snapshot is successfully created to the third party further includes:
    所述消息中包括所述各虚拟磁盘对应的位图的相关信息及所述待备份虚拟磁盘的信息。The message includes information about the bitmap corresponding to each virtual disk and information about the virtual disk to be backed up.
  12. 根据权利要求3所述的数据备份方法,其中,根据所述第一快照获取所述待备份虚拟机从上次备份到当前备份间的数据变化信息,还包括:The data backup method according to claim 3, wherein acquiring the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot further includes:
    在确定是对所述待备份虚拟机的首次备份时,所述数据变化信息包括所述各虚拟磁盘对应的位图包含的位图信息。When it is determined that it is the first backup of the virtual machine to be backed up, the data change information includes bitmap information included in the bitmap corresponding to each virtual disk.
  13. 根据权利要求4所述的数据备份方法,其中,在根据所述第一快照及各所述虚拟磁盘对应的位图获取所述待备份虚拟机从上次备份到当前备份间的数据变化信息之后, 还包括:The data backup method according to claim 4, wherein, after obtaining the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot and the bitmap corresponding to each of the virtual disks , Also includes:
    将所述各虚拟磁盘对应的位图包含的位图信息发送给所述第三方。sending the bitmap information included in the bitmap corresponding to each virtual disk to the third party.
  14. 根据权利要求5所述的数据备份方法,其中,在所述第三方完成对所述第一快照中与所述数据变化信息对应的数据的备份后,还包括:The data backup method according to claim 5, wherein, after the third party finishes backing up the data corresponding to the data change information in the first snapshot, further comprising:
    将所述各虚拟磁盘对应的位图包含的位图信息进行清除。The bitmap information included in the bitmap corresponding to each virtual disk is cleared.
  15. 根据权利要求3所述的数据备份方法,其中,在所述第三方完成对所述第二快照中的数据的备份后,还包括:The data backup method according to claim 3, wherein, after the third party finishes backing up the data in the second snapshot, further comprising:
    删除所述第二快照及所述第二快照的信息。Delete the second snapshot and the information of the second snapshot.
  16. 根据权利要求6所述的数据备份方法,其中,将所述数据变化信息及所述第一快照的信息通过API发送至所述第三方,还包括:The data backup method according to claim 6, wherein, sending the data change information and the information of the first snapshot to the third party through an API further includes:
    若以位图记录数据变化信息,将所述虚拟磁盘对应的位图包含的位图信息通过API发送至所述第三方。If the data change information is recorded in a bitmap, the bitmap information included in the bitmap corresponding to the virtual disk is sent to the third party through the API.
  17. 一种数据备份方法,其特征在于,应用于第三方,包括:A data backup method, characterized in that it is applied to a third party, comprising:
    向云平台发送对待备份虚拟机进行备份的备份请求,由所述云平台在确定并非是对所述待备份虚拟机进行的首次备份,并为所述待备份虚拟机创建第一快照,且根据所述第一快照获取所述待备份虚拟机从上次备份到当前备份间的数据变化信息;Sending a backup request for backing up the virtual machine to be backed up to the cloud platform, the cloud platform determines that it is not the first backup of the virtual machine to be backed up, and creates a first snapshot for the virtual machine to be backed up, and according to The first snapshot acquires data change information of the virtual machine to be backed up from the last backup to the current backup;
    接收所述云平台发送的所述数据变化信息及所述第一快照的信息,根据所述第一快照的信息,采用LAN-free方式对所述第一快照中与所述数据变化信息对应的数据进行备份。receiving the data change information and the information of the first snapshot sent by the cloud platform, and according to the information of the first snapshot, use the LAN-free method to record the information corresponding to the data change information in the first snapshot Data is backed up.
  18. 一种数据备份装置,其特征在于,应用于云平台,包括:A data backup device, characterized in that it is applied to a cloud platform, comprising:
    接收模块,用于接收第三方发送的对待备份虚拟机进行备份的备份请求,根据所述备份请求判断是否是对所述待备份虚拟机进行的首次备份;The receiving module is configured to receive a backup request sent by a third party for backing up the virtual machine to be backed up, and judge whether it is the first backup of the virtual machine to be backed up according to the backup request;
    获取模块,用于若不是对所述备份请求中的待备份虚拟机进行首次备份,则为所述待备份虚拟机创建第一快照,根据所述第一快照获取所述待备份虚拟机从上次备份到当前备份间的数据变化信息;An acquisition module, configured to create a first snapshot for the virtual machine to be backed up if it is not the first backup of the virtual machine to be backed up in the backup request, and obtain the virtual machine to be backed up from above according to the first snapshot Data change information between the first backup and the current backup;
    第一发送模块,用于将所述数据变化信息及所述第一快照的信息发送至所述第三方,由所述第三方根据所述第一快照的信息,采用LAN-free方式对所述第一快照中与所述数据变化信息对应的数据进行备份。The first sending module is configured to send the data change information and the information of the first snapshot to the third party, and the third party uses the LAN-free method to send the information to the third party according to the information of the first snapshot. The data corresponding to the data change information in the first snapshot is backed up.
  19. 一种数据备份装置,其特征在于,应用于第三方,包括:A data backup device, characterized in that it is applied to a third party, including:
    第二发送模块,用于向云平台发送对待备份虚拟机进行备份的备份请求,由所述云平台在确定并非是对所述待备份虚拟机进行的首次备份,并为所述待备份虚拟机创建第 一快照,且根据所述第一快照获取所述待备份虚拟机从上次备份到当前备份间的数据变化信息;The second sending module is configured to send a backup request for backing up the virtual machine to be backed up to the cloud platform, and the cloud platform determines that it is not the first backup of the virtual machine to be backed up, and sends a backup request for the virtual machine to be backed up Create a first snapshot, and obtain the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot;
    第一备份模块,用于接收所述云平台发送的所述数据变化信息及所述第一快照的信息,根据所述第一快照的信息,采用LAN-free方式对所述第一快照中与所述数据变化信息对应的数据进行备份。The first backup module is configured to receive the data change information and the information of the first snapshot sent by the cloud platform, and according to the information of the first snapshot, use the LAN-free method to compare the data in the first snapshot with the information of the first snapshot. The data corresponding to the data change information is backed up.
  20. 一种数据备份系统,其特征在于,包括云平台和第三方,其中:A data backup system, characterized in that it includes a cloud platform and a third party, wherein:
    所述第三方,用于向云平台发送对待备份虚拟机进行备份的备份请求;接收所述云平台发送的所述数据变化信息及所述第一快照的信息,根据所述第一快照的信息,采用LAN-free方式对所述第一快照中与所述数据变化信息对应的数据进行备份;The third party is configured to send a backup request to the cloud platform for backing up the virtual machine to be backed up; receive the data change information and the information of the first snapshot sent by the cloud platform, and according to the information of the first snapshot , using a LAN-free method to back up the data corresponding to the data change information in the first snapshot;
    所述云平台,用于根据所述备份请求判断是否是对所述待备份虚拟机进行的首次备份;若确定不是对所述待备份虚拟机进行的首次备份,则为所述待备份虚拟机创建第一快照,根据所述第一快照获取所述待备份虚拟机从上次备份到当前备份间的数据变化信息;将所述数据变化信息及所述第一快照的信息发送至所述第三方。The cloud platform is configured to judge whether it is the first backup of the virtual machine to be backed up according to the backup request; if it is determined that it is not the first backup of the virtual machine to be backed up, then the virtual machine to be backed up Create a first snapshot, obtain the data change information of the virtual machine to be backed up from the last backup to the current backup according to the first snapshot; send the data change information and the information of the first snapshot to the second Three parties.
  21. 一种非易失性可读存储介质,其特征在于,所述非易失性可读存储介质中存储有计算机程序,所述计算机程序在被处理器执行时实现如权利要求1至16任一项所述的数据备份方法的步骤和/或如权利要求17所述的数据备份方法的步骤。A non-volatile readable storage medium, characterized in that a computer program is stored in the non-volatile readable storage medium, and when the computer program is executed by a processor, any one of claims 1 to 16 can be implemented. The steps of the data backup method described in claim 1 and/or the steps of the data backup method described in claim 17.
PCT/CN2022/121460 2021-12-17 2022-09-26 Data backup method, apparatus and system and non-volatile readable storage medium WO2023109245A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111555055.5 2021-12-17
CN202111555055.5A CN114328014A (en) 2021-12-17 2021-12-17 Data backup method, device and system and readable storage medium

Publications (1)

Publication Number Publication Date
WO2023109245A1 true WO2023109245A1 (en) 2023-06-22

Family

ID=81053329

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/121460 WO2023109245A1 (en) 2021-12-17 2022-09-26 Data backup method, apparatus and system and non-volatile readable storage medium

Country Status (2)

Country Link
CN (1) CN114328014A (en)
WO (1) WO2023109245A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033084A (en) * 2023-10-09 2023-11-10 武汉吧哒科技股份有限公司 Virtual machine backup method and device, electronic equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114328014A (en) * 2021-12-17 2022-04-12 广东浪潮智慧计算技术有限公司 Data backup method, device and system and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150106334A1 (en) * 2013-10-15 2015-04-16 PHD Virtual Technologies Systems and methods for backing up a live virtual machine
CN107092538A (en) * 2017-03-14 2017-08-25 平安科技(深圳)有限公司 Virtual-machine data backup method and system
CN113626261A (en) * 2021-10-13 2021-11-09 苏州浪潮智能科技有限公司 Data backup method, device and equipment and computer readable storage medium
CN113672340A (en) * 2021-07-30 2021-11-19 济南浪潮数据技术有限公司 Incremental backup method, system and device of virtual machine and readable storage medium
CN114328014A (en) * 2021-12-17 2022-04-12 广东浪潮智慧计算技术有限公司 Data backup method, device and system and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150106334A1 (en) * 2013-10-15 2015-04-16 PHD Virtual Technologies Systems and methods for backing up a live virtual machine
CN107092538A (en) * 2017-03-14 2017-08-25 平安科技(深圳)有限公司 Virtual-machine data backup method and system
CN113672340A (en) * 2021-07-30 2021-11-19 济南浪潮数据技术有限公司 Incremental backup method, system and device of virtual machine and readable storage medium
CN113626261A (en) * 2021-10-13 2021-11-09 苏州浪潮智能科技有限公司 Data backup method, device and equipment and computer readable storage medium
CN114328014A (en) * 2021-12-17 2022-04-12 广东浪潮智慧计算技术有限公司 Data backup method, device and system and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033084A (en) * 2023-10-09 2023-11-10 武汉吧哒科技股份有限公司 Virtual machine backup method and device, electronic equipment and storage medium
CN117033084B (en) * 2023-10-09 2024-01-19 武汉吧哒科技股份有限公司 Virtual machine backup method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114328014A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
WO2023109245A1 (en) Data backup method, apparatus and system and non-volatile readable storage medium
AU2012347883B2 (en) System and method for restoring application data
US8281093B1 (en) Systems and methods for creating consolidated backups of snapshot hierarchies
US9250824B2 (en) Backing up method, device, and system for virtual machine
US8352785B1 (en) Methods for generating a unified virtual snapshot and systems thereof
US9600376B1 (en) Backup and replication configuration using replication topology
US20090228530A1 (en) Separating file data streams to enhance progressive incremental processing
US10997247B1 (en) Snapshot tracking using a graph database
US8433864B1 (en) Method and apparatus for providing point-in-time backup images
US9785641B2 (en) Reducing a backup time of a backup of data files
US10795579B2 (en) Methods, apparatuses, system and computer program products for reclaiming storage units
JP4917102B2 (en) Methods, programs, and systems for counting data set versions in a mixed local and remote storage environment
US8549582B1 (en) Methods for handling a multi-protocol content name and systems thereof
WO2014000249A1 (en) Snapshot data processing method and system, storage system and snapshot agency
WO2014101186A1 (en) Data erasure method, device and system
US9037821B1 (en) Systems and methods for replicating snapshots across backup domains
WO2005109252A1 (en) System and method for facilitating a consistent point-in-time copy
US11829630B2 (en) Synthetically providing multiple types of granular delete operations for a cloud-based object storage
CN112035062A (en) Migration method of local storage of cloud computing, computer equipment and storage medium
US9171024B1 (en) Method and apparatus for facilitating application recovery using configuration information
WO2017016139A1 (en) System recovery method and apparatus
US10976952B2 (en) System and method for orchestrated application protection
US10146467B1 (en) Method and system for archival load balancing
JP4877249B2 (en) Information processing system
CN110955489B (en) Method and system for reliably recovering virtual machine

Legal Events

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

Ref document number: 22905997

Country of ref document: EP

Kind code of ref document: A1