Cloud desktop data backup and restoration method, cloud server and storage medium

By obtaining, packaging, backing up and restoring user data in the cloud desktop data backup and restore method, the data loss caused by users failing to backup data in time before the cloud desktop expires, and the data is securely backed up and reliable restore is achieved.

CN120216258APending Publication Date: 2025-06-27XIAN WANXIANG ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510212727.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-25
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

Before the leased cloud desktop expires, users fail to back up data in time, resulting in the system directly deleting the cloud desktop, which can easily lead to the loss of user data and cause irreparable losses to users.

Method used

Provides a cloud desktop data backup and restore method, which can obtain the target file and target application file of the target user, perform packaging processing, and add user identification information to the target server to store and backup data. When the user logs in again, the system will prompt whether to restore the backup data, and migrate the backup data to the cloud desktop after the user confirms.

Benefits of technology

It avoids irreparable losses caused to users due to loss of user data, and ensures the security and recoverability of user data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120216258A_ABST
    Figure CN120216258A_ABST
Patent Text Reader

Abstract

The invention provides a cloud desktop data backup and restoration method, a cloud server and a storage medium. The method comprises the steps of obtaining a target file and a target application program file of a target user; storing the target file and the target application program file in a target backup folder, and packaging the target backup folder; user identification information is added to the packaged target backup folder, and the target backup file added with the user identification information is stored in a target server; when determining that the target user logs in the target cloud desktop again according to the user identification information, sending prompt information about whether to restore the backup data to the target cloud desktop; and when it is determined that the target user restores the backup data, migrating a target backup folder stored in the target server to the target cloud desktop. According to the cloud desktop data backup and restoration method provided by the invention, the problem that irreparable loss is caused to the user due to user data loss can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of data processing, and in particular, to a method for backing up and restoring cloud desktop data, a cloud server, and a storage medium. Background Art

[0002] For leased cloud desktops, if users do not back up data in time before expiration, the system often directly deletes the cloud desktop after expiration, which easily leads to the loss of user data and causes irreparable losses to users. Summary of the Invention

[0003] The purpose of the present disclosure is to overcome the deficiencies of the prior art and provide a method for backing up and restoring cloud desktop data, a cloud server, and a storage medium. The method for backing up and restoring cloud desktop data can avoid the problem of irreparable losses caused to users due to the loss of user data.

[0004] According to the first aspect of the embodiments of the present disclosure, a method for backing up and restoring cloud desktop data is provided, which is applied to a server. The method includes:

[0005] Obtain the target files and target application program files of the target user; wherein, the target application program files carry configuration files, application programs, user data, environment variables, and registry information of the application program;

[0006] Store both the target files and target application program files in a target backup folder, and perform a packaging process on the target backup folder;

[0007] Add user identification information to the packaged target backup folder, and store the target backup file with the added user identification information in a target server;

[0008] When it is determined according to the user identification information that the target user logs in to the target cloud desktop again, send a prompt message asking whether to restore the backup data to the target cloud desktop;

[0009] When it is determined that the target user restores the backup data, migrate the target backup folder stored in the target server to the target cloud desktop.

[0010] In one embodiment, the method further includes:

[0011] Unzip the target backup folder to restore the configuration files, application programs, and user data of the target application program files to the local, and add the environment variables and registry information of the corresponding application program to the system.

[0012] In one embodiment, a backup button is provided on the window of the target cloud desktop. After the user clicks the backup button, a backup window pops up. On the backup window, there are file type checkboxes, application checkboxes, and the backup data save time.

[0013] In one embodiment, obtaining the target file of the target user includes:

[0014] Obtaining a first mouse and keyboard event in which the target user operates the file type checkbox; wherein, the first mouse and keyboard event carries file information selected by the target user;

[0015] Determining the file selected by the target user according to the file information selected by the target user;

[0016] Searching in all disks according to the file selected by the target user to obtain the target file of the target user.

[0017] In one embodiment, obtaining the target application file of the target user includes:

[0018] Obtaining a second mouse and keyboard event in which the target user operates the application checkbox; wherein, the second mouse and keyboard event carries application information selected by the target user;

[0019] Obtaining the target application file of the target user according to the application information selected by the target user.

[0020] In one embodiment, obtaining the target file of the target user includes:

[0021] Determining the common file formats of common files; wherein, the common files include at least one of documents, videos, audios, and pictures;

[0022] Searching in all disks on the cloud desktop according to the common file formats of the common files, and taking all the searched files as the target files of the target user.

[0023] In one embodiment, obtaining the target application file of the target user includes:

[0024] Determining all the applications on the cloud desktop;

[0025] Obtaining the configuration files, application data, user data, environment variables, and registry information corresponding to all the applications;

[0026] Packaging the configuration files, application data, user data, environment variables, and registry information corresponding to all the applications as a whole as the target application file of the target user.

[0027] In one embodiment, the method includes:

[0028] When it is determined that the target user does not restore the backup data, delete the target backup folder stored in the target server.

[0029] According to a second aspect of the embodiments of the present disclosure, there is provided a server, which includes an acquisition module, a packaging module, an addition module, a sending module, and a migration module; wherein,

[0030] The acquisition module is configured to acquire a target file and a target application program file of a target user; wherein, the target application program file carries a configuration file of the application program, the application program, user data, environment variables, and registry information;

[0031] The packaging module is configured to store both the target file and the target application program file in a target backup folder, and perform a packaging process on the target backup folder;

[0032] The addition module is configured to add user identification information to the target backup folder after the packaging process, and store the target backup file with the added user identification information in the target server;

[0033] The sending module is configured to send a prompt message for whether to restore the backup data to the target cloud desktop when it is determined according to the user identification information that the target user logs in to the target cloud desktop again;

[0034] The migration module is configured to migrate the target backup folder stored in the target server to the target cloud desktop when it is determined that the target user restores the backup data.

[0035] In one embodiment, the server further includes an extraction module; wherein,

[0036] The extraction module is configured to extract the target backup folder to restore the configuration file, the application program, and the user data of the target application program file to the local, and add environment variables and registry information of the corresponding application program to the system.

[0037] In one embodiment, a backup button is provided on the window of the target cloud desktop. After the user clicks the backup button, a backup window pops up, and a file type checkbox, an application program checkbox, and a backup data saving time are provided on the backup window.

[0038] According to a third aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method as described in any one of the above are implemented. In the method for backing up and restoring cloud desktop data, cloud server, and storage medium provided by the embodiments of the present disclosure, the problem that irreparable losses are caused to users due to the loss of user data can be avoided.

[0039] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.

[0041] Figure 1 It is a flowchart of a method for backing up and restoring cloud desktop data provided by an embodiment of the present disclosure.

[0042] Figure 2 It is a flowchart of a method for backing up and restoring cloud desktop data provided by an embodiment of the present disclosure.

[0043] Figure 3 It is an architecture diagram of a server provided by an embodiment of the present disclosure.

[0044] Figure 4 It is an architecture diagram of a server provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0045] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0046] In the method for backing up and restoring cloud desktop data provided by the present disclosure, first search all disks according to the common formats of common files, then pack the searched files, and also pack the configuration files, applications, user data, environment variables, and registry information of the applications as a whole. Then store the packed files and applications in a backup folder. Finally, pack the backup folder in a specific format, bind the backup file with the username (account number or mobile phone number) as the id, encrypt and save it in the storage server, and at the same time perform a deep deletion on the cloud desktop to free up disk space on the server.

[0047] When the user logs in to the cloud desktop again, the backup data in the server is migrated to the cloud desktop and then decompressed into the backup folder. The configuration files, applications, and user data of the applications are restored to the local, and the environment variables and registry information of the corresponding applications are added to the system.

[0048] Figure 1 It is a flowchart of a method for backing up and restoring cloud desktop data provided by an embodiment of the present disclosure. As Figure 1 shown, the method includes the following steps:

[0049] Step 101: Obtain the target files and target application files of the target user; wherein, the target application files carry the configuration files, applications, user data, environment variables, and registry information of the applications;

[0050] Two backup methods are provided in the present disclosure, one is manual backup by the user and the other is automatic backup by the system.

[0051] The process of manual backup by the user will be described in detail below.

[0052] In one embodiment, a backup button is set on the window of the target cloud desktop. After the user clicks the backup button, a backup window pops up. The backup window is provided with a file type checkbox, an application checkbox, and the backup data saving time. This implementation method is for manual backup by the user.

[0053] Specifically, a backup button is set in the cloud desktop window. After the user clicks the backup button, a backup window pops up. Multiple options are set in the backup policy for the user to select, such as: documents, videos, audios, pictures, and application data, etc., and the backup data saving time is set. The manual backup time can be set longer. After the cloud desktop expires, the system automatically backs up the data according to the policy set by the user.

[0054] The file selection method in the backup window displays the file classification and common file formats of documents, videos, audios, and pictures in the form of a checkbox list. The user selects the files to be backed up according to their own needs. If the file suffix to be backed up does not exist in the list, the user can add the file suffix by themselves below the list according to their own needs. The application selection method displays all the applications in the system in the form of a checkbox list. The user selects the applications to be backed up according to their own needs.

[0055] In one embodiment, as Figure 2 shown, the obtaining of the target files of the target user includes:

[0056] Step 201: Obtain the first keyboard and mouse event of the target user operating the file type checkbox; wherein, the first keyboard and mouse event carries the file information selected by the target user;

[0057] In this step, the file information selected by the target user can be obtained by acquiring the first keyboard and mouse event of the file type checkbox in the target user operation backup window.

[0058] Step 202: Determine the file selected by the target user according to the file information selected by the target user;

[0059] In this step, the file selected by the target user can be determined according to the file information selected by the target user.

[0060] Step 203: Search all disks according to the file selected by the target user to obtain the target file of the target user.

[0061] In this step, after obtaining the file selected by the target user, a search can be performed on all disks to obtain the target file of the target user.

[0062] In this embodiment, file backup is to search all disks according to the files selected by the user, and after the search is completed, all the searched files are stored in the backup folder.

[0063] In one embodiment, the obtaining of the target application file of the target user includes:

[0064] Obtain the second keyboard and mouse event of the target user operating the application checkbox; wherein, the second keyboard and mouse event carries the application information selected by the target user;

[0065] Obtain the target application file of the target user according to the application information selected by the target user.

[0066] In this embodiment, application backup is to package the configuration file, application, user data, environment variables and registry information of the application as a whole according to the application selected by the user, and also store it in the backup folder.

[0067] The process of automatic system backup will be described in detail below.

[0068] In one embodiment, the obtaining of the target file of the target user includes:

[0069] Determine the common file formats of common files; wherein, the common files include at least one of documents, videos, audios and pictures;

[0070] Search all disks on the cloud desktop according to the common file formats of the common files, and use all the searched files as the target files of the target user.

[0071] In this embodiment, file backup searches all disks according to common file formats of documents, videos, audios, and pictures. After the search ends, all the files found are stored in the backup folder.

[0072] In one embodiment, the obtaining of the target application file of the target user includes:

[0073] Determine all the applications on the cloud desktop;

[0074] Obtain the configuration files, application data, user data, environment variables, and registry information corresponding to all the applications;

[0075] Pack the configuration files, application data, user data, environment variables, and registry information corresponding to all the applications as a whole to be the target application file of the target user.

[0076] In this embodiment, application backup is to pack the configuration files, applications, user data, environment variables, and registry information of all applications as a whole and store them in the backup folder.

[0077] Step 102: Store both the target file and the target application file in the target backup folder, and perform a packaging process on the target backup folder;

[0078] Step 103: Add user identification information to the target backup folder after the packaging process, and store the target backup file after adding the user identification information in the target server; wherein, the user identification information is generated according to information such as account information, mobile phone number, and user name.

[0079] In this step, it is necessary to add user identification information to the target backup folder after the packaging process, and store the target backup file after adding the user identification information in the target server. This user identification information can be the user name (account or mobile phone number) as the id to be bound to the backup folder and encrypted and saved in the storage server. At the same time, perform a deep deletion on the cloud desktop to free up the server disk space.

[0080] Step 104: When it is determined according to the user identification information that the target user logs in to the target cloud desktop again, send a prompt message asking whether to restore the backup data to the target cloud desktop;

[0081] In this step, within the saving time, when the system detects that the user name (account or mobile phone number) logs in to the cloud desktop again, send a prompt message asking whether to restore the backup data to the target cloud desktop to prompt the user whether to restore the backup data.

[0082] Step 105: When it is determined that the target user restores the backup data, migrate the target backup folder stored in the target server to the target cloud desktop.

[0083] In this step, if the user selects "yes", it is determined that the target user needs to restore the backup data. Then the server will migrate the stored backup data to the cloud desktop and decompress it into the backup folder. The configuration files of the application programs, the application programs, and the user data are restored to the local, and the environment variables and registry information of the corresponding application programs are added to the system.

[0084] In the cloud desktop data backup and restoration method, cloud server, and storage medium provided by the embodiments of the present disclosure, the problem that irreparable losses are caused to users due to the loss of user data can be avoided.

[0085] In one embodiment, the method includes:

[0086] When it is determined that the target user does not restore the backup data, delete the target backup folder stored in the target server.

[0087] In this embodiment, if the user selects "no", it is determined that the target user does not need to restore the backup data, and the backup data stored in the server is deleted.

[0088] It can be understood that after the expiration of the storage time, the system automatically deletes the backup data in the storage server.

[0089] It should be noted that in the cloud desktop data backup and restoration method provided by the present disclosure, when the cloud desktop is used for the first time, the user will be prompted to manually back up before the expiration of the user's cloud desktop. If the user does not manually back up before the expiration of the cloud desktop, the system will automatically back up for the user according to the default policy after the expiration of the cloud desktop.

[0090] Optionally, the method further includes:

[0091] Decompress the target backup folder to restore the configuration files, application programs, and user data of the target application files to the local, and add the environment variables and registry information of the corresponding application programs to the system.

[0092] In this embodiment, when the user logs in again, the backup data in the server is migrated to the cloud desktop and decompressed into the backup folder. The configuration files of the application programs, the application programs, and the user data are restored to the local, and the environment variables and registry information of the corresponding application programs are added to the system.

[0093] Figure 3 It is an architecture diagram of a server provided by the embodiments of the present disclosure. As Figure 3As shown in the figure, the server includes: an acquisition module 301, a packaging module 302, an addition module 303, a sending module 304, and a migration module 305. Among them, the acquisition module 301 is used to acquire the target file and the target application file of the target user. Among them, the target application file carries the configuration file of the application, the application, user data, environment variables, and registry information. The packaging module 302 is used to store both the target file and the target application file in the target backup folder, and perform a packaging process on the target backup folder. The addition module 303 is used to add user identification information to the packaged target backup folder, and store the target backup file after adding the user identification information in the target server. The sending module 304 is used to send a prompt message for restoring backup data to the target cloud desktop when it is determined that the target user logs in to the target cloud desktop again according to the user identification information. The migration module 305 is used to migrate the target backup folder stored in the target server to the target cloud desktop when it is determined that the target user restores the backup data.

[0094] Figure 4 This is an architecture diagram of a server provided by an embodiment of the present disclosure. As Figure 4 shown in the figure, the server includes: an acquisition module 401, a packaging module 402, an addition module 403, a sending module 404, a migration module 405, and an extraction module 406. Among them, the extraction module 406 is used to extract the target backup folder to restore the configuration file, application, and user data of the target application file to the local, and add the environment variables and registry information of the corresponding application to the system.

[0095] In one embodiment, a backup button is set on the window of the target cloud desktop. After the user clicks the backup button, a backup window pops up. The backup window is provided with a file type checkbox, an application checkbox, and a backup data saving time.

[0096] The present disclosure also provides an electronic device, which includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements the cloud desktop data backup and restoration method as described above. The electronic device includes: a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements any step in the cloud desktop data backup and restoration method as described above.

[0097] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it can implement any step in the cloud desktop data backup and restoration method as described above.

[0098] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the disclosure herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common general knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0099] It should be understood that the present disclosure is not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A cloud desktop data backup and restoration method, characterized in that: Applied to a server, the method comprises: Obtaining a target file and a target application file of a target user; wherein the target application file carries an application configuration file, an application, user data, environment variables, and registry information; The target file and the target application file are stored in a target backup folder, and the target backup folder is packaged; Adding user identification information to the target backup folder after packaging, and storing the target backup file after adding the user identification information in the target server; When it is determined according to the user identification information that the target user logs in to the target cloud desktop again, a prompt message of whether to restore the backup data is sent to the target cloud desktop; When it is determined that the target user restores the backup data, the target backup folder stored in the target server is migrated to the target cloud desktop.

2. The cloud desktop data backup and restoration method according to claim 1, characterized in that: The method further comprises: Decompress the target backup folder to restore the configuration files, application programs and user data of the target application program files to the local computer, and add the environment variables and registry information of the corresponding application program to the system.

3. The cloud desktop data backup and restoration method according to claim 1 or claim 2, characterized in that: A backup button is provided on the window of the target cloud desktop. When the user clicks the backup button, a backup window pops up. The backup window is provided with a file type check box, an application check box and a backup data saving time.

4. The cloud desktop data backup and restoration method according to claim 3, characterized in that: The target file of the target user is obtained by: Acquire a first keyboard and mouse event of a target user operating the file type check box; wherein the first keyboard and mouse event carries the file information selected by the target user; Determining the file selected by the target user according to the file information selected by the target user; The target file of the target user is obtained by searching in all disks according to the file selected by the target user.

5. The cloud desktop data backup and restoration method according to claim 3, characterized in that: The step of obtaining the target application file of the target user includes: Acquire a second keyboard and mouse event of the target user operating the application check box; wherein the second keyboard and mouse event carries the application information selected by the target user; The target application file of the target user is obtained according to the application information selected by the target user.

6. The method according to claim 1 or claim 2, characterized in that: The target file of the target user is obtained by: Determine a common file format of commonly used files; wherein the commonly used files include at least one of documents, videos, audios, and pictures; All disks on the cloud desktop are searched according to the common file formats of the commonly used files, and all the searched files are used as the target files of the target user.

7. The method according to claim 1 or claim 2, characterized in that: The step of obtaining the target application file of the target user includes: Determine all applications on the cloud desktop; Obtain configuration files, application data, user data, environment variables and registry information corresponding to all the applications; The configuration files, application data, user data, environment variables and registry information corresponding to all the applications are packaged as a whole as the target application file of the target user.

8. The method according to claim 1 or claim 2, characterized in that: The method comprises: When it is determined that the target user does not restore the backup data, the target backup folder stored in the target server is deleted.

9. A server, characterized in that: The server includes: an acquisition module, a packaging module, an addition module, a sending module and a migration module; wherein, The acquisition module is used to acquire the target file and target application file of the target user; wherein the target application file carries the configuration file of the application, the application, user data, environment variables and registry information; The packaging module is used to store the target file and the target application file in a target backup folder, and to package the target backup folder; The adding module is used to add user identification information to the target backup folder after packaging, and store the target backup file after adding the user identification information in the target server; The sending module is used to send a prompt message of whether to restore the backup data to the target cloud desktop when the target user logs in to the target cloud desktop again according to the user identification information; The migration module is used to migrate the target backup folder stored in the target server to the target cloud desktop when it is determined that the target user restores the backup data.

10. The server according to claim 9, characterized in that The server also includes a decompression module; wherein, The decompression module is used to decompress the target backup folder to restore the configuration files, application programs and user data of the target application program files to the local computer, and add the environment variables and registry information of the corresponding application program to the system.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.