A method and device for data backup and recovery of a cloud desktop

By creating snapshot points in the cloud desktop and distributing the storage of backup data, the problem of insufficient storage space of the cloud desktop server is solved, and efficient data backup and recovery is achieved, saving storage space and simplifying the process.

CN114443366BActive Publication Date: 2025-06-27CHINA TELECOM CLOUD TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111643560.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2025-06-27
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

In the prior art, the limited storage space of the cloud desktop server cannot meet the backup function or recovery function of the cloud desktop.

Method used

By creating snapshots of the hard disk data of the cloud desktop, a snapshot point is obtained, and the backup data is distributed in the snapshot point. Each backup corresponds to a snapshot point, and the hard disk operation information is modified to avoid snapshot chain forking.

Benefits of technology

It realizes cloud desktop data backup and recovery without occupying additional storage space, saves local storage space on the server, avoids snapshot chain forking, and simplifies the backup and recovery process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114443366B_ABST
    Figure CN114443366B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a method and device for data backup and recovery of a cloud desktop. The method includes: creating at least one snapshot of the hard disk data of a first cloud desktop to obtain at least one snapshot point. The hard disk data of the first cloud desktop includes a base image and at least one copy of backup data, and any two copies of the backup data are different. The at least one copy of backup data is distributed and stored in at least one snapshot point. It can be seen that in the present invention, the hard disk data of the first cloud desktop is dispersed on multiple snapshot points, and each backup corresponds to one snapshot point. Each copy of backup data is a part of the actual data of the cloud hard disk, and the backup does not require additional storage space, so that the local storage space of the server can be saved. Then, modify the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs on the last created snapshot point among the at least one snapshot point, which can avoid the occurrence of snapshot chain forking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of virtualization technology, and in particular, to a method and device for data backup and recovery of a cloud desktop. Background Art

[0002] In the Intelligent Desktop Virtualization (IDV) cloud desktop scenario, IDV servers often exist independently without any external storage. One IDV server can run multiple cloud desktops. Cloud desktops generally use the Windows operating system, and each cloud desktop requires at least dozens or even hundreds of gigabytes of storage space. However, multiple cloud desktops running on one IDV server can only use the local storage of the IDV server, and the storage space is limited, generally between several hundred gigabytes and 2 terabytes.

[0003] Currently, in traditional cloud desktop backup technologies, as Figure 1 shown, performing three backups on a cloud hard disk with 10G of actual data will generate 30G of backup data. In the cloud desktop scenario, the limited storage space of the server cannot meet the backup function or recovery function of the cloud desktop.

[0004] Therefore, there is an urgent need for a data backup method for cloud desktops to solve the problem that the limited storage space of the server in the prior art cannot meet the backup function or recovery function of the cloud desktop. Summary of the Invention

[0005] The embodiments of the present invention provide a method and device for data backup and recovery of a cloud desktop to solve the problem that the limited storage space of the server in the prior art cannot meet the backup function or recovery function of the cloud desktop.

[0006] In a first aspect, the embodiments of the present invention provide a data backup method for a cloud desktop. In this method, first, at least one snapshot is created for the hard disk data of the first cloud desktop to obtain at least one snapshot point; the hard disk data of the first cloud desktop includes a base image and at least one copy of backup data, and any two copies of backup data in the at least one copy of backup data are different; the at least one copy of backup data is distributed and stored in at least one snapshot point; the running information of the hard disk of the first cloud desktop is modified so that the hard disk of the first cloud desktop runs at the last created snapshot point among the at least one snapshot point.

[0007] In the above solution, at least one snapshot is created for the hard disk data of the first cloud desktop to obtain at least one snapshot point. The hard disk data of the first cloud desktop includes a base image and at least one copy of backup data. Any two copies of the at least one copy of backup data are different. The at least one copy of backup data is distributed and stored in the at least one snapshot point. That is to say, the hard disk data of the first cloud desktop is scattered on multiple snapshot points, and each backup corresponds to one snapshot point. Each copy of the at least one copy of backup data is a part of the actual data of the cloud hard disk. The backup does not require additional storage space, so that the local storage space of the server can be saved, and the problem that the limited storage space of the server in the prior art cannot meet the backup function of the cloud desktop can be avoided. Moreover, during the backup process, the running information of the hard disk of the first cloud desktop is modified so that the hard disk of the first cloud desktop runs on the last created snapshot point among the at least one snapshot point, which can avoid the occurrence of snapshot chain forking.

[0008] Optionally, the at least one snapshot point includes a first snapshot point and a second snapshot point; the method further includes: when it is necessary to delete the first snapshot point, copying the backup data on the first snapshot point to the second snapshot point, and the second snapshot point is the next snapshot point of the first snapshot point; deleting the first snapshot point.

[0009] Optionally, the hard disk of the first cloud desktop shares the base image with the hard disks of at least one second cloud desktop.

[0010] Optionally, after deleting the first snapshot point, it further includes: for the second snapshot point and each snapshot point after the second snapshot point, updating the identifier of the snapshot point to the identifier of the previous snapshot point; modifying the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs on the last snapshot point after the identifier is updated.

[0011] Optionally, the hard disk of the first cloud desktop shares the base image with the hard disks of at least one second cloud desktop.

[0012] In a second aspect, an embodiment of the present invention further provides a method for backing up and restoring data of a cloud desktop. The hard disk of the first cloud desktop currently runs on a fourth snapshot point; the hard disk data of the first cloud desktop includes a base image and at least one copy of backup data. The at least one copy of backup data is distributed and stored on at least one snapshot point, and one copy of backup data corresponds to one snapshot point. The fourth snapshot point is any snapshot point after the third snapshot point; when it is necessary to restore the backup to the third snapshot point, deleting the fourth snapshot point and all snapshot points after the fourth snapshot point; creating a snapshot for the backup data corresponding to the third snapshot point to obtain a fifth snapshot point; modifying the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs on the fifth snapshot point.

[0013] In the above solution, the hard disk data of the first cloud desktop is scattered at multiple snapshot points, and each backup corresponds to one snapshot point. Each piece of backup data in at least one piece of backup data is a part of the actual data of the cloud hard disk. The backup data does not need to occupy additional storage space. When it is necessary to restore to the third snapshot point, deleting all snapshot points after the third snapshot point can be achieved, and no additional storage space is required during the backup restoration process. At the same time, during the backup restoration process, the situation of snapshot chain forking is avoided, making the restoration method simpler to implement and occupying less storage, thereby avoiding the problem that the limited storage space of the server in the existing technology cannot meet the restoration function of the cloud desktop.

[0014] In a third aspect, an embodiment of the present invention further provides a data backup device for a cloud desktop, including:

[0015] A creation unit, configured to create at least one snapshot for the hard disk data of the first cloud desktop to obtain at least one snapshot point; the hard disk data of the first cloud desktop includes a base image and at least one piece of backup data, and any two pieces of backup data in the at least one piece of backup data are different;

[0016] A storage unit, configured to distributively store the at least one piece of backup data in the at least one snapshot point;

[0017] A modification unit, configured to modify the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs on the last created snapshot point among the at least one snapshot point.

[0018] Optionally, the at least one snapshot point includes a first snapshot point and a second snapshot point; the device further includes:

[0019] A copy unit, configured to copy the backup data on the first snapshot point to the second snapshot point when it is necessary to delete the first snapshot point, and the second snapshot point is the next snapshot point of the first snapshot point;

[0020] A deletion unit, configured to delete the first snapshot point.

[0021] Optionally, the modification unit is further configured to: for the second snapshot point and each snapshot point after the second snapshot point, update the identifier of the snapshot point to the identifier of the previous snapshot point; modify the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs on the last snapshot point after the identifier is updated.

[0022] Optionally, the hard disk of the first cloud desktop shares the base image with the hard disks of at least one second cloud desktop.

[0023] In a fourth aspect, an embodiment of the present invention further provides a data backup and restoration device for a cloud desktop, including:

[0024] An operating unit, for the hard disk of the first cloud desktop to currently run on the fourth snapshot point, where the fourth snapshot point is any snapshot point after the third snapshot point, and the hard disk data of the first cloud desktop includes a base image and at least one backup data, and the at least one backup data is distributed and stored on at least one snapshot point;

[0025] A deletion unit, further configured to: when it is necessary to restore to the third snapshot point, delete the fourth snapshot point and all snapshot points after the fourth snapshot point;

[0026] A creation unit, further configured to: create a snapshot of the backup data corresponding to the third snapshot point to obtain a fifth snapshot point;

[0027] A modification unit, further configured to: modify the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs on the fifth snapshot point.

[0028] In a fifth aspect, an embodiment of the present invention provides a computing device, including:

[0029] A memory, configured to store program instructions;

[0030] A processor, configured to call the program instructions stored in the memory and execute the first aspect and any optional method in the first aspect, or execute the method in the second aspect according to the obtained program.

[0031] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute the first aspect and any optional method in the first aspect, or execute the method in the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for description in the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0033] Figure 1 It is a schematic diagram of data backup of a cloud desktop in the prior art;

[0034] Figure 2 It is a schematic diagram of a system architecture provided by an embodiment of the present invention;

[0035] Figure 3 It is a schematic flowchart of a data backup method for a cloud desktop provided by an embodiment of the present invention;

[0036] Figure 4 Schematic diagram of hard disk storage of the cloud desktop provided by the embodiment of the present invention;

[0037] Figure 5 Schematic diagram of the process of creating a backup provided by the embodiment of the present invention;

[0038] Figure 6 Schematic diagram of the process of deleting a certain backup provided by the embodiment of the present invention;

[0039] Figure 7 Schematic diagram of the backup restoration process provided by the embodiment of the present invention;

[0040] Figure 8 Schematic diagram of the structure of a data backup device for a cloud desktop provided by the embodiment of the present invention;

[0041] Figure 9 Schematic diagram of the structure of a data backup and recovery device for a cloud desktop provided by the embodiment of the present invention;

[0042] Figure 10 Schematic diagram of the structure of an electronic device provided by the embodiment of the present invention. Detailed implementation manners

[0043] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0044] Figure 2 A system architecture provided by the embodiment of the present invention. As Figure 2 shown, the system architecture may include a cloud desktop 201, a cloud desktop client 202, and an IDV server 203.

[0045] The cloud desktop 201 can be regarded as a virtual host corresponding to the cloud desktop client 202.

[0046] The cloud desktop client 202 can be installed on the electronic device used by the user. The electronic device can be a computer, or a personal computer (PC), or a mobile phone, etc. The operating system of the mobile phone can be an Android system or an IOS system, etc. The user can connect to the corresponding cloud desktop 201 through the cloud desktop client 202.

[0047] The IDV server 203 can virtualize one or more virtual hosts, that is, virtualize one or more cloud desktops. The IDV server 203 often exists independently without any external storage. One IDV server 203 can run multiple cloud desktops. These cloud desktops generally use the Windows operating system. Each cloud desktop requires at least dozens or even hundreds of gigabytes of storage space. However, the multiple cloud desktops running on one IDV server can only use the local storage of the IDV server, and the storage space is limited, generally between several hundred gigabytes and 2 terabytes.

[0048] It should be noted that the Figure 2 structure shown above is only an example, and the embodiments of the present invention do not limit this.

[0049] Based on Figure 2 the system architecture shown, Figure 3 an exemplary schematic diagram of the data backup method of a cloud desktop provided by the embodiments of the present invention is shown. This method process can be executed by a data backup device of a cloud desktop. This device can be located in the Figure 2 IDV server 203 shown, or it can be the IDV server 203.

[0050] As Figure 3 shown, this method process can include:

[0051] Step 301, create at least one snapshot of the hard disk data of the first cloud desktop to obtain at least one snapshot point.

[0052] Among them, the hard disk data of the first cloud desktop includes a base image and at least one copy of backup data. Any two copies of backup data in the at least one copy of backup data are different. That is to say, there is no duplicate data in the at least one copy of backup data.

[0053] It should be noted that the space occupied by any two copies of backup data in the at least one copy of backup data can be the same or different.

[0054] Step 302, distribute and store the at least one copy of backup data in at least one snapshot point.

[0055] In step 302, the at least one copy of backup data corresponds to the at least one snapshot point one by one, and one copy of backup data is stored on each snapshot point.

[0056] In one example, taking the hard disk data of the first cloud desktop as 10G, the embodiments of the present application provide a schematic diagram of the hard disk storage of the cloud desktop, as Figure 4As shown, the hard disk of the first cloud desktop is created based on a base image. The storage space occupied by the base image is 5G. Three snapshots are created for the hard disk data of the first cloud desktop. A snapshot is created at time point 1 to obtain snapshot point 1, and snapshot point 1 corresponds to backup 1. The storage space occupied by backup 1 is 2G. A snapshot is created at time point 2 to obtain snapshot point 2, and snapshot point 2 corresponds to backup 2. The storage space occupied by backup 2 is 1G. A snapshot is created at time point 3 to obtain snapshot point 3, and snapshot point 3 corresponds to backup 3. The storage space occupied by backup 3 is 1G. The storage space occupied by the data at the current location is 1G.

[0057] As Figure 1 In the backup scheme of the prior art as shown, when backing up a cloud hard disk with 10G of actual data three times, 30G of backup data will be generated. In the embodiment of the present application, when backing up the hard disk of a 10G cloud desktop three times, the hard disk data will be scattered on multiple snapshot points. Each backup corresponds to a snapshot point, and each backup data is a part of the actual data of the cloud hard disk. The backup does not require additional storage space, greatly saving local storage space.

[0058] Step 303: Modify the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs at the last created snapshot point among at least one snapshot point.

[0059] In an example, as Figure 5 shown, the hard disk of the first cloud desktop is created based on a specific base image such as base.qcow2. Creating a snapshot once generates snap1, that is, creating a backup once. The hard disk of the first cloud desktop runs at snapshot point snap1. When creating a snapshot for snap1 once, snapshot point snap2 is generated, that is, creating a backup again, and at the same time, modifying the hard disk information to make the hard disk of the first cloud desktop run at snapshot point snap2, and so on. It can support creating multiple backups, and each time a backup is created, it does not require additional storage space.

[0060] In the embodiments of the present application, at least one snapshot is created for the hard disk data of the first cloud desktop to obtain at least one snapshot point. The hard disk data of the first cloud desktop includes a base image and at least one copy of backup data, and any two copies of the backup data are different. The at least one copy of backup data is distributed and stored in the at least one snapshot point. That is to say, the hard disk data of the first cloud desktop is dispersed on multiple snapshot points, and each backup corresponds to one snapshot point. Each copy of the backup data in the at least one copy of backup data is a part of the actual data of the cloud hard disk, and the backup does not require additional storage space, so that the local storage space of the server can be saved. Moreover, during the backup process, the running information of the hard disk of the first cloud desktop is modified so that the hard disk of the first cloud desktop runs on the last created snapshot point among the at least one snapshot point, which can avoid the occurrence of snapshot chain bifurcation.

[0061] Optionally, the hard disk of the first cloud desktop and the hard disks of at least one second cloud desktop can share the base image, so that multiple hard disks can share the same base image, which can further save storage space.

[0062] In the scenario where a certain backup needs to be deleted, it can be achieved by deleting the snapshot point corresponding to the backup. For example, the at least one snapshot point in step 301 above includes a first snapshot point and a second snapshot point. From the perspective of the creation time, the second snapshot point is the next snapshot point of the first snapshot point. Here, the deletion of the first snapshot point is taken as an example for illustration.

[0063] When the first snapshot point needs to be deleted, the backup data on the first snapshot point can be copied to the second snapshot point, and then the first snapshot point can be deleted, so that the backup data originally on the first snapshot point can be retained when the first snapshot point is deleted.

[0064] After deleting the first snapshot point, for the second snapshot point and each snapshot point after the second snapshot point, update the identifier of the snapshot point to the identifier of the previous snapshot point. Then, modify the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs on the last snapshot point after the identifier is updated.

[0065] Taking the first snapshot point as snap1 and the second snapshot point as snap2 as an example, as Figure 6 shown, the hard disk of the first cloud desktop has a copy of backup data 1 (i.e., snap1). At this time, the hard disk of the first cloud desktop is currently running on the snap2 snapshot point. At this time, to delete the backup data 1, the steps are as follows:

[0066] S1, copy the backup data corresponding to the snap1 snapshot point to the snap2 snapshot point, and delete the snap1 snapshot point.

[0067] S2. Point the snap2 snapshot point to the base image, i.e., base.qcow2.

[0068] S3. Rename the snap2 snapshot point to the snap1 snapshot point.

[0069] S4. Modify the hard disk information to point to the new snap1 snapshot point, which is the snap2 snapshot point in S1 and S2.

[0070] And so on. If there are multiple backup data, when deleting one of the backup data, it is also the same process of first copying the data corresponding to the snapshot point to be deleted to the next snapshot point, then modifying the backup snapshot chain to point to the previous snapshot point of the snapshot point to be deleted, and then renaming all the snapshot points after the snapshot point to be deleted. For example, when deleting the snap1 snapshot point, update the identifier of the snap2 snapshot point to snap1, update the identifier of the snap3 snapshot point to snap2, update the identifier of the snap4 snapshot point to snap3, and so on, until the naming update of all the snapshot points after the snapshot point to be deleted is completed. Finally, modify the current running information of the hard disk so that the hard disk of the first cloud desktop runs on the last snapshot point after the identifier update.

[0071] In the scenario where it is necessary to restore the backup to a certain backup, it can be achieved by deleting the snapshot points corresponding to all the backups after that backup. The following takes restoring the backup to the backup data corresponding to the third snapshot point as an example for illustration.

[0072] The hard disk of the first cloud desktop is currently running on the fourth snapshot point, and the fourth snapshot point is any snapshot point after the third snapshot point; when it is necessary to restore the backup to the third snapshot point, delete the fourth snapshot point and all the snapshot points after the fourth snapshot point. Then, create a snapshot of the backup data corresponding to the third snapshot point to obtain the fifth snapshot point; then, modify the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs on the fifth snapshot point.

[0073] In the embodiments of the present application, the hard disk data of the first cloud desktop is scattered on multiple snapshot points, and each backup corresponds to one snapshot point. Each piece of backup data in at least one piece of backup data is a part of the actual data of the cloud hard disk. The backup data does not need to occupy additional storage space. When it is necessary to restore to the third snapshot point, it can be achieved by deleting all the snapshot points after the third snapshot point. During the backup restoration process, it does not need to occupy additional storage space. At the same time, during the backup restoration process, the situation of snapshot chain bifurcation can be avoided, making the restoration method simpler to implement and occupying less storage, thereby avoiding the problem that the limited storage space of the server in the prior art cannot meet the restoration function of the cloud desktop.

[0074] Taking the third snapshot point as the snap2 snapshot point and the fourth snapshot point as the snap3 snapshot point as an example, that is, it is necessary to restore the backup to snap2, as Figure 7 shown, the hard disk of the first cloud desktop has 2 copies of backup data (i.e., snap1), and the hard disk of the first cloud desktop is currently running at the snap3 snapshot point. At this time, it can be restored to the first backup snap1 snapshot point or the second backup snap2 snapshot point.

[0075] The following is an explanation for restoring to snap2, and the steps are as follows:

[0076] S1, delete the snap3 snapshot point.

[0077] S2, create a snapshot from the snap2 snapshot point to obtain a new snap3 snapshot point.

[0078] S3, modify the hard disk to point to the new snap3 snapshot point.

[0079] If you want to restore to the snap1 snapshot point, the steps are as follows:

[0080] S1, delete the snap2 snapshot point and the snap3 snapshot point.

[0081] S2, create a snapshot from the snap1 snapshot point to obtain a new snap2 snapshot point.

[0082] S3, modify the hard disk to point to the new snap2 snapshot point.

[0083] And so on. If there are multiple copies of backup data and you want to restore to one of the backup data, the backups after the restored backup point will be deleted, and then a new snapshot will be created from the restored backup point, and the hard disk will be modified to point to the latest snapshot point. In this way, it can be ensured that the snapshot chain does not fork, further reducing the backup occupied space, reducing the complexity of backup recovery implementation, and improving the backup recovery efficiency and stability.

[0084] In the embodiments of the present application, the qemu snapshot technology can be used to implement the local backup and recovery functions. The cloud desktop hard disk data is scattered on the entire snapshot chain, and multiple hard disks can share the base image. At the same time, during the backup and recovery process, it is always ensured that the snapshot chain does not fork. Compared with the prior art, the embodiments of the present application can greatly save the backup occupied storage space, do not require additional backup servers or backup components, are simple to implement, have higher efficiency, are less prone to errors, occupy less space, can reduce the backup cost of cloud desktops / virtual machines and the implementation and maintenance costs of backup recovery functions, and are particularly suitable for the IDV cloud desktop scenario.

[0085] Based on the same technical concept, Figure 8Exemplarily shown is a data backup device for a cloud desktop provided by an embodiment of the present invention, and this device can execute the process of the data backup method for the cloud desktop.

[0086] As Figure 8 shown, this device includes:

[0087] A creation unit 801, configured to create at least one snapshot of the hard disk data of the first cloud desktop to obtain at least one snapshot point; the hard disk data of the first cloud desktop includes a base image and at least one copy of backup data, and any two copies of the backup data among the at least one copy of backup data are different;

[0088] A storage unit 802, configured to distributively store at least one copy of backup data in at least one snapshot point;

[0089] A modification unit 803, configured to modify the running information of the hard disk of the first cloud desktop, so that the hard disk of the first cloud desktop runs on the last created snapshot point among the at least one snapshot point.

[0090] Optionally, the at least one snapshot point includes a first snapshot point and a second snapshot point; the device further includes:

[0091] A copy unit 804, configured to, when it is necessary to delete the first snapshot point, copy the backup data on the first snapshot point to the second snapshot point, and the second snapshot point is the next snapshot point of the first snapshot point;

[0092] A deletion unit 805, configured to delete the first snapshot point.

[0093] Optionally, the modification unit 803 is further configured to: for the second snapshot point and each snapshot point after the second snapshot point, update the identifier of the snapshot point to the identifier of the previous snapshot point; modify the running information of the hard disk of the first cloud desktop, so that the hard disk of the first cloud desktop runs on the last snapshot point after the identifier is updated.

[0094] Optionally, the hard disk of the first cloud desktop shares the base image with the hard disks of at least one second cloud desktop.

[0095] Based on the same technical concept, Figure 9 Exemplarily shown is a data backup and recovery device for a cloud desktop provided by an embodiment of the present invention, and this device can execute the process of the data backup and recovery method for the cloud desktop.

[0096] As Figure 9 shown, this device includes:

[0097] The running unit 901 is used when the hard disk of the first cloud desktop is currently running at the fourth snapshot point, where the fourth snapshot point is any snapshot point after the third snapshot point. The hard disk data of the first cloud desktop includes a base image and at least one backup data, and the at least one backup data is distributed and stored at at least one snapshot point.

[0098] The deletion unit 902 is further used for: when it is necessary to restore to the third snapshot point, deleting the fourth snapshot point and all snapshot points after the fourth snapshot point.

[0099] The creation unit 903 is further used for: creating a snapshot of the backup data corresponding to the third snapshot point to obtain a fifth snapshot point.

[0100] The modification unit 904 is further used for: modifying the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs at the fifth snapshot point.

[0101] Based on the above embodiments, an embodiment of the present application further provides an electronic device, which can be a data backup device or a data backup and recovery device of a cloud desktop, such as Figure 10 As shown, the electronic device includes: a processor 1001, a communication interface 1002, a memory 1003, and a communication bus 1004. Among them, the processor 1001, the communication interface 1002, and the memory 1003 complete communication with each other through the communication bus 1004.

[0102] In one example, a computer program is stored in the memory 1003. When the program is executed by the processor 1001, the processor 1001 is caused to execute the steps performed by the data backup device or the data backup and recovery device of the cloud desktop.

[0103] The communication interface 1002 is used for communication between the above electronic device and other devices.

[0104] The memory may include a Random Access Memory (RAM), or may also include a Non-Volatile Memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor.

[0105] The above processor may be a general-purpose processor, including a central processing unit, a Network Processor (NP), etc.; it may also be a Digital Signal Processing (DSP), an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0106] Based on the same inventive concept, an embodiment of the present invention provides a computing device, including:

[0107] A memory for storing program instructions;

[0108] A processor for calling the program instructions stored in the memory and executing a data anomaly detection method according to the obtained program.

[0109] Based on the above embodiments, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions for causing a computer to execute a data anomaly detection method.

[0110] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program code.

[0111] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the present invention. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate means for realizing the functions specified in Figure 1 one or more flows and / or blocks Figure 1 one or more blocks.

[0112] These computer program instructions can also be stored in a computer-readable memory capable of guiding a computer or other programmable data processing devices to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means realizes the functions specified in Figure 1 one or more flows and / or blocks Figure 1 one or more blocks.

[0113] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are performed on the computer or other programmable apparatus to produce a computer-implemented process, and thus the instructions executed on the computer or other programmable apparatus provide steps for implementing the functions specified in one process or a plurality of processes and / or blocks Figure 1 one process or a plurality of processes and / or blocks Figure 1 or steps for implementing the functions specified in one block or a plurality of blocks.

[0114] Although the preferred embodiments of the present invention have been described, additional changes and modifications can be made by those skilled in the art once they learn the basic creative concept. Therefore, the appended claims are intended to be construed to cover the preferred embodiments as well as all changes and modifications falling within the scope of the present invention.

[0115] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of this application and their equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims

1. A data backup method for a cloud desktop, characterized in that, Including: Creating at least one snapshot of the hard disk data of the first cloud desktop in the IDV server to obtain at least one copy of backup data; the hard disk data of the first cloud desktop includes a base image and at least one copy of backup data, and any two copies of the at least one copy of backup data are different; Distributively storing the at least one copy of backup data at the at least one snapshot point; wherein, the at least one snapshot point includes a first snapshot point and a second snapshot point; when it is necessary to delete the first snapshot point, copying the backup data on the first snapshot point to the second snapshot point, and the second snapshot point is the next snapshot point of the first snapshot point; Deleting the first snapshot point and modifying the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs at the last created snapshot point among the at least one snapshot point.

2. The method according to claim 1, characterized in that, After deleting the first snapshot point, further including: For the second snapshot point and each snapshot point after the second snapshot point, updating the identifier of the snapshot point to the identifier of the previous snapshot point of the snapshot point; The modifying the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs at the last snapshot point among the at least one snapshot point includes: Modifying the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs at the last snapshot point after the identifier is updated.

3. The method according to any one of claims 1-2, characterized in that, The hard disk of the first cloud desktop shares the base image with the hard disks of at least one second cloud desktop.

4. A data backup and recovery method for a cloud desktop, characterized in that, Including: The hard disk of the first cloud desktop is currently running at the fourth snapshot point; The hard disk data of the first cloud desktop includes a base image and at least one copy of backup data, the at least one copy of backup data is distributively stored at at least one snapshot point, the fourth snapshot point is any snapshot point after the third snapshot point; the at least one copy of backup data is obtained by creating at least one snapshot of the hard disk data of the first cloud desktop in the IDV server; When it is necessary to restore the backup to the third snapshot point, deleting the fourth snapshot point and all snapshot points after the fourth snapshot point; Creating a snapshot of the backup data corresponding to the third snapshot point to obtain a fifth snapshot point; Modifying the running information of the hard disk of the first cloud desktop so that the hard disk of the first cloud desktop runs at the fifth snapshot point.

5. A data backup device for a cloud desktop, characterized in that, Including: A creating unit, configured to create at least one snapshot of the hard disk data of the first cloud desktop in the IDV server to obtain at least one snapshot point; The hard disk data of the first cloud desktop includes a base image and at least one copy of backup data, and any two copies of the at least one copy of backup data are different; A storing unit, configured to distributively store the at least one copy of backup data at the at least one snapshot point; wherein, the at least one snapshot point includes a first snapshot point and a second snapshot point; A copying unit, configured to, when it is necessary to delete the first snapshot point, copy the backup data on the first snapshot point to the second snapshot point, and the second snapshot point is the next snapshot point of the first snapshot point; A deleting unit, configured to delete the first snapshot point; A modification unit, configured to modify the running information of the hard disk of the first cloud desktop, so that the hard disk of the first cloud desktop runs on the last created snapshot point among the at least one snapshot point.

6. The device according to claim 5, characterized in that The modification unit is further configured to: For the second snapshot point and each snapshot point after the second snapshot point, update the identifier of the snapshot point to the identifier of the previous snapshot point of the snapshot point; Modify the running information of the hard disk of the first cloud desktop, so that the hard disk of the first cloud desktop runs on the last snapshot point after the identifier is updated.

7. The device according to any one of claims 5-6, characterized in that, The hard disk of the first cloud desktop shares the base image with the hard disks of at least one second cloud desktop.

8. A data backup and recovery device for a cloud desktop, characterized in that, It includes: An operation unit, configured to make the hard disk of the first cloud desktop currently run on a fourth snapshot point, where the fourth snapshot point is any snapshot point after a third snapshot point, the hard disk data of the first cloud desktop includes a base image and at least one copy of backup data, and the at least one copy of backup data is distributed and stored on at least one snapshot point; the at least one copy of backup data is obtained by creating at least one snapshot of the hard disk data of the first cloud desktop in the IDV server; The deletion unit is further configured to: when it is necessary to restore to the third snapshot point, delete the fourth snapshot point and all snapshot points after the fourth snapshot point; The creation unit is further configured to: create a snapshot of the backup data corresponding to the third snapshot point to obtain a fifth snapshot point; The modification unit is further configured to: modify the running information of the hard disk of the first cloud desktop, so that the hard disk of the first cloud desktop runs on the fifth snapshot point.

Citation Information

Patent Citations

  • Snapshoot management method and device

    CN104714755A

  • Data non-landing implementation method based on cloud desktop, equipment, and storage medium

    CN111831376A

  • Method and device for quickly recovering non-restored desktop fault under desktop virtualization architecture

    CN112631830A