CN114679442A - Cloud desktop based user data synchronization method, device, equipment and storage medium - Google Patents

Cloud desktop based user data synchronization method, device, equipment and storage medium Download PDF

Info

Publication number
CN114679442A
CN114679442A CN202210191981.7A CN202210191981A CN114679442A CN 114679442 A CN114679442 A CN 114679442A CN 202210191981 A CN202210191981 A CN 202210191981A CN 114679442 A CN114679442 A CN 114679442A
Authority
CN
China
Prior art keywords
user
storage space
cloud desktop
virtual storage
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210191981.7A
Other languages
Chinese (zh)
Inventor
王刚
刘晨龙
张献涛
任晋奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210191981.7A priority Critical patent/CN114679442A/en
Publication of CN114679442A publication Critical patent/CN114679442A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45587Isolation or security of virtual machine instances

Abstract

The application provides a user data synchronization method, a device, equipment and a storage medium based on a cloud desktop, wherein the method comprises the following steps: receiving a connection request including user information; the cloud desktop is distributed to establish connection with a user; and acquiring a virtual storage space corresponding to the user information, and mounting the virtual storage space to the cloud desktop. The virtual storage space is bound with the user, so that the user data cannot be lost, the data of different users are isolated, and the user data leakage is avoided. The virtual storage space may be a distributed file system, enabling synchronization of user data between cloud desktop instances across available zones. And storing the user data on the virtual storage space, and storing the data bound by the operating system locally. And synchronizing file metadata corresponding to the user data to the database so that the cloud client browses the file when the virtual storage space is not mounted. And synchronizing the virtual storage space with the OSS system, and opening a channel for uploading and downloading file data.

Description

Cloud desktop based user data synchronization method, device, equipment and storage medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a user data synchronization method, device, equipment and storage medium based on a cloud desktop.
Background
The cloud desktop is obtained by virtualizing components such as a processor, a memory, a hard disk and the like included in a computer host. In practical application, a plurality of cloud desktops are usually virtualized in a server to form a resource pool, and each cloud desktop is correspondingly bound with one data disk. And when the user requests to use the cloud desktop, dynamically allocating the cloud desktop to establish connection with the user, and storing the data of the user in a data disk corresponding to the allocated cloud desktop.
Because the cloud desktops are dynamically allocated, if the cloud desktop currently used by the user is different from the cloud desktop used before, the user cannot access the data disk corresponding to the cloud desktop used before, and user data is lost. If the other users are connected with the cloud desktop used by the user before, the other users can access the data disk corresponding to the cloud desktop used by the current user before, and data of the current user is leaked.
Disclosure of Invention
The application provides a user data synchronization method, device, equipment and storage medium based on a cloud desktop, which bind a virtual storage space with a user, ensure that user data cannot be lost, isolate data of different users and avoid user data leakage.
An embodiment of a first aspect of the present application provides a user data synchronization method based on a cloud desktop, including:
receiving a cloud desktop connection request of a user, wherein the cloud desktop connection request comprises user information;
allocating a cloud desktop to establish connection with the user;
and acquiring a virtual storage space corresponding to the user information, and mounting the virtual storage space to the cloud desktop.
An embodiment of a second aspect of the present application provides a cloud desktop-based user data synchronization apparatus, including:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a cloud desktop connection request of a user, and the cloud desktop connection request comprises user information;
the connection establishing module is used for allocating a cloud desktop to establish connection with the user;
and the mounting module is used for acquiring the virtual storage space corresponding to the user information and mounting the virtual storage space to the cloud desktop.
Embodiments of the third aspect of the present application provide an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the method of the first aspect.
An embodiment of a fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, the program being executable by a processor to implement the method of the first aspect.
The technical scheme provided in the embodiment of the application has at least the following technical effects or advantages:
in the embodiment of the application, the virtual storage space is bound with the user, and the same virtual storage space is used when the user is connected with different cloud desktops, so that the user data cannot be lost. And different users can only use the corresponding virtual storage spaces, so that the data of different users are completely isolated, the user data leakage is avoided, and the safety of the user data is ensured. The virtual storage space may be a distributed file system, enabling synchronization of user data between cloud desktop instances across available zones. When the file system of the cloud desktop is redirected to the virtual storage space corresponding to the user, the user data and the data bound by the operating system can be separated, the user data is stored in the virtual storage space, and the data bound by the operating system is stored locally. The file metadata corresponding to the user data stored in the virtual storage space can be synchronized into the database, so that the file metadata can be sent to the cloud client when the cloud client logs in, and the cloud client can browse the file under the condition that the virtual storage space is mounted. The embodiment also synchronizes the virtual storage space and the OSS system, opens up a channel for uploading and downloading the file data, and improves the efficiency of uploading and downloading the file data.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings.
In the drawings:
fig. 1 illustrates a flowchart of a cloud desktop-based user data synchronization method according to an embodiment of the present application;
FIG. 2 is another flowchart illustrating a cloud desktop-based user data synchronization method according to an embodiment of the present application;
FIG. 3 illustrates an application diagram for separating user data from operating system related data provided by an embodiment of the present application;
FIG. 4 is a diagram illustrating binding of a web disk with a user according to an embodiment of the present application;
FIG. 5 illustrates an interactive schematic diagram of a cloud client, a server, a cloud desktop, an OSS system, and a NAS file system provided by an embodiment of the present application;
Fig. 6 is a schematic structural diagram illustrating a cloud desktop based user data synchronization apparatus according to an embodiment of the present application;
FIG. 7 is a schematic diagram illustrating an electronic device according to an embodiment of the present application;
fig. 8 is a schematic diagram of a storage medium provided in an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which this application belongs.
The following describes a method, an apparatus, a device, and a storage medium for cloud desktop based user data synchronization according to an embodiment of the present application with reference to the accompanying drawings.
The embodiment of the application provides a cloud desktop-based user data synchronization method, the method binds a virtual storage space with a user instead of binding the virtual storage space with a cloud desktop, and the same virtual storage space is used when the user is connected with different cloud desktops, so that the user data cannot be lost. And different users can only use the corresponding virtual storage spaces, so that the data of different users are completely isolated, the user data leakage is avoided, and the safety of the user data is ensured.
Referring to fig. 1, the method specifically includes the following steps:
step 101: receiving a cloud desktop connection request of a user, wherein the cloud desktop connection request comprises user information.
The execution subject of the embodiment of the application is a server, and the server can be a cloud server. The method comprises the steps that a plurality of cloud desktops are obtained by virtualizing components such as a processor, a memory and a hard disk included in a computer host at a server side, and one or more cloud applications are configured in each cloud desktop. The user connects the cloud desktop and the cloud application through the cloud client.
When a user needs to use the cloud desktop, the user logs in the server through the cloud client, and then sends a cloud desktop connection request to the server through the cloud client, wherein the cloud desktop connection request comprises user information, the user information can comprise a user account capable of uniquely identifying the user, and the user account can be a character sequence capable of uniquely identifying the user. And the server receives the cloud desktop connection request sent by the cloud client corresponding to the user.
Step 102: and the cloud desktop is distributed to establish connection with the user.
Multiple cloud desktops can be included in a server and managed through a hypervisor desktop group. When the server receives a cloud desktop connection request sent by a cloud client of a user, a cloud desktop is selected from a plurality of cloud desktops through a desktop group, and communication connection between the selected cloud desktop and the cloud client of the user is established.
Step 103: and acquiring a virtual storage space corresponding to the user information, and mounting the virtual storage space to the cloud desktop.
In the embodiment of the application, the virtual storage space corresponds to the user, and if the user uses the cloud desktop before, the virtual storage space is already allocated to the user before, and the virtual storage space allocated to the user before can be continuously used currently. If the user uses the cloud desktop for the first time, a virtual storage space is not allocated to the user before, and a virtual storage space needs to be allocated to the user first currently.
Specifically, whether a virtual storage space corresponding to the user exists at present is determined according to the user information included in the cloud desktop connection request. And if the virtual storage space corresponding to the user exists, mounting the virtual storage space to the cloud desktop currently allocated to the user. If the virtual storage space corresponding to the user does not exist, the virtual storage space corresponding to the user is created first, and then the created virtual storage space is mounted to the cloud desktop distributed to the user currently.
When the virtual storage space corresponding to the user is mounted to the cloud desktop, firstly, mounting information is sent to the cloud desktop connected with the user through the desktop group, wherein the mounting information comprises a desktop identifier corresponding to the cloud desktop and storage identifier information corresponding to the virtual storage space corresponding to the user. The desktop identifier is used for uniquely identifying the cloud desktop. The storage identification information may include one or more of an identifier uniquely identifying the virtual storage space corresponding to the user, a mount point of the user data in the virtual storage space, a file directory corresponding to the user data, and the like.
After the cloud desktop receives the mounting information, the mounting information is written into a configuration file of the cloud desktop through a service program (such as a cloud assistant) in the cloud desktop. And an agent program for monitoring the configuration file in real time is arranged in the cloud desktop. When the agent program monitors that the mounting information is written in the configuration file, the agent program redirects the file system of the cloud desktop to the virtual storage space corresponding to the user according to the mounting information in the configuration file.
In order to facilitate understanding of the process of connecting the user to the cloud desktop and mounting the virtual storage space corresponding to the user, the following description is provided with reference to the accompanying drawings. As shown in fig. 2, S1: and establishing connection between the cloud client of the user and the cloud desktop. S2: and judging whether the virtual storage space corresponding to the user exists currently, if so, executing the step S4, and if not, executing the step S3. S3: and creating a virtual storage space corresponding to the user. S4: and sending mounting information to a cloud assistant in the cloud desktop, wherein the mounting information comprises desktop identification corresponding to the cloud desktop and storage identification information corresponding to the virtual storage space. S5: and writing the mounting information into a configuration file of the cloud desktop through the cloud assistant. S6: and monitoring by an agent program in the cloud desktop, writing the mount information into the configuration file, executing the mount information by the agent program, and redirecting a file system of the cloud desktop to the virtual storage space.
The communication connection between the user and the cloud desktop is established through the operation, the virtual storage space corresponding to the user is mounted to the cloud desktop, the user can use the cloud desktop, and all user data generated in the process of using the cloud desktop are stored in the virtual storage space corresponding to the user. When a user uses a plurality of cloud desktops and cloud applications, the system can automatically mount the same virtual storage space and complete redirection operation, so that the user can use the same file at the same time.
When the file system of the cloud desktop is redirected to the virtual storage space corresponding to the user, the file related to the user is redirected to the virtual storage space through the agent program of the cloud desktop. And for files related to the operating system (such as a registry), the files are redirected to the local cloud desktop through an agent program of the cloud desktop. As shown in FIG. 3, a user connects to a cloud desktop or a cloud application instance, and if a file path needing to be accessed is D: \ research material, the file path is redirected to a virtual storage space corresponding to the user. If the file path needing to be accessed is the file path corresponding to the user data under the C disk, such as C: \ Desktop, C: \ Pictures and the like, redirecting to the virtual storage space 1 according to the file path. And if the file path needing to be accessed is C: \ Users \ local _ user name, redirecting to a local disk corresponding to the cloud desktop according to the file path.
The virtual storage space corresponding to the user only stores the user data related to the user, and therefore when the user is connected with different cloud desktops or cloud applications, the user data in the virtual storage space can be used by the different cloud desktops or cloud applications connected with the user. Files related to the operating system of the cloud desktop are stored in the local cloud desktop, so that the cloud desktop can be used by different users.
In some embodiments, the virtual storage space may comprise a network disk. If the user uses the cloud desktop before, the network disk is allocated to the user before, and the user information corresponding to the user is stored in the network disk corresponding to the user. And all the network disks corresponding to the users who use the cloud desktop form a network disk resource pool, and the server load manages the network disk resource pool. The method comprises the steps that after a server receives a cloud desktop connection request of a user and distributes a cloud desktop to be connected with the user, the server judges whether a network disk storing user information corresponding to the user exists in a current network disk resource pool or not, and if yes, the network disk is directly mounted on the cloud desktop connected with the user. If not, a network disk is created first, user information corresponding to the user is stored in the network disk, and the network disk is mounted to a cloud desktop connected with the user.
When the network disk is mounted to the cloud desktop corresponding to the user, mounting information is sent to a service program in the cloud desktop through a desktop group, the mounting information comprises a desktop identifier of the cloud desktop and a network disk identifier corresponding to the network disk, and the network disk identifier is used for uniquely identifying the network disk. And the service program of the cloud desktop writes the mounting information into a configuration file of the cloud desktop. And when monitoring that the configuration file changes, the agent program of the cloud desktop executes the written mount information and redirects the file system of the cloud desktop to the network disk.
The web disk is bound with the user in the above manner, as shown in fig. 4. Therefore, even if the user is connected with different cloud desktops, the same network disk is used, and the user data are not lost. And the network disk corresponding to the user can only be used by the user, and other users cannot use the network disk, so that the user data leakage is avoided, and the safety of the user data is ensured.
In other embodiments, the virtual storage space may further include a distributed file system, which may include a NAS file system. If the user uses the cloud desktop before, a corresponding file directory is allocated to the user in the distributed file system before, and the file directory comprises user information corresponding to the user. The server receives a cloud desktop connection request of a user, distributes a cloud desktop to be connected with the user, and then judges whether a file directory containing the user information exists in a current distributed file system or not. If so, mounting the file directory to a cloud desktop connected with the user. If not, firstly creating a file directory corresponding to the user in the distributed file system, and then mounting the created file directory to a cloud desktop connected with the user.
When the file directory is mounted to the cloud desktop corresponding to the user, mounting information is sent to a service program in the cloud desktop through a desktop group, wherein the mounting information comprises a desktop identifier of the cloud desktop, a mounting point of the file directory in a distributed file system and the file directory. And the service program of the cloud desktop writes the mounting information into a configuration file of the cloud desktop. And when monitoring that the configuration file changes, the agent program of the cloud desktop executes the written mounting information and redirects the file system of the cloud desktop to the file directory corresponding to the user in the distributed file system.
By the method, the corresponding file directory is distributed to the user in the distributed file system, even if the user is connected with different cloud desktops, the storage space corresponding to the file directory in the distributed system can be used, and the user data can not be lost. And the user can only access the file directory corresponding to the user, and cannot access the file directories of other users, so that the user data leakage is avoided, and the safety of the user data is ensured.
On the other hand, the user data is stored through the distributed file system, and synchronization of the user data among cloud desktops crossing the available area can also be achieved. The server may correspond to at least one working area, one working area may have a plurality of desktop groups, and the desktop groups belonging to the same working area share one distributed file system. The multiple desktop groups may be in the same or different available areas. The available area (AZ for short) refers to a physical area where power and a network are independent from each other in the same region. When the server creates the first desktop group in the current working area, the distributed file system of the working area is created, and other desktop groups of the subsequent working area can use the distributed file system. The data self-adaption automatic mounting of the user among different cloud desktop instances is effectively achieved, and the user can directly access own data when connecting the cloud desktop instances in different available areas.
In the embodiment of the application, after the virtual storage space such as the network disk or the distributed file system is mounted to the cloud desktop connected to the user in the above manner, the file metadata in the virtual storage space is synchronized to the database, where the file metadata includes a file directory corresponding to the user data stored in the virtual storage space, and the file directory may include a file name, a file size corresponding to the file name, a hierarchical relationship between files, and the like. The database may be set in the current server, or may be a database server independent from the current server.
When the server determines that the cloud client corresponding to the user logs in, file metadata corresponding to the user is obtained from the database, and the obtained file metadata is sent to the cloud client corresponding to the user. And the cloud client receives the file metadata sent by the server and displays the corresponding file directory according to the file metadata. Therefore, the user can see the file directory, when the user needs to check a specific file data in the file directory, the user can click the corresponding file name in the file directory, and the cloud client can send a check request corresponding to the file name to the server. And the server acquires the target file data corresponding to the viewing request from the virtual storage space corresponding to the user, returns the target file data to the cloud client of the user, and receives and displays the target file data.
The file data stored in the virtual storage space is separated from the file metadata, and the file metadata is stored in the database, so that the cloud client can browse the file under the condition that the virtual storage space cannot be mounted. The user can check the user data of the user as long as the user logs in the cloud client, the file directory of the user can be displayed by the cloud client before the user is connected with the cloud desktop or the cloud application, and therefore the efficiency and convenience of the user in checking the user data of the user are improved.
In other embodiments of the present application, data synchronization is also achieved through a virtual Storage space and an OSS (Object Storage Service) system, and channels for uploading and downloading file data are opened. As shown in fig. 5, the server implements data synchronization between the OSS system and the virtual storage space through the cloud resource management module, where the virtual storage space in fig. 5 is illustrated by taking an NAS file system as an example.
Specifically, after the virtual storage space corresponding to the user is mounted to the cloud desktop connected to the user, each file data stored in the virtual storage space is synchronized to the OSS system, and a download link corresponding to each file data is generated respectively. And sending the download link corresponding to each file data to the cloud client corresponding to the user. And the cloud client receives and displays the download link corresponding to each file data.
When a user needs to download certain file data, the user clicks a download link corresponding to the file data. The cloud client sends a downloading request corresponding to the downloading link to the server, and the downloading request may include a file name corresponding to file data to be downloaded. And the server acquires the target file data corresponding to the downloading request from the OSS system and sends the target file data to the cloud client of the user.
When a user needs to upload certain file data, the file data is sent to a server through a cloud client. The server receives the file data uploaded by the user, or stores the file data into the OSS system first, and then synchronizes the file data in the OSS system into the virtual storage space corresponding to the user. The user can then see the uploaded file data in the cloud desktop and the cloud application.
The file data uploaded and downloaded by the user firstly flows into the OSS system, and the file between the virtual storage space and the OSS system is synchronized in real time, so that the user can see the same file data when using a cloud client, a cloud desktop or cloud application.
In the embodiment of the application, the virtual storage space is bound with the user, and the same virtual storage space is used when the user is connected with different cloud desktops, so that the user data cannot be lost. And different users can only use the corresponding virtual storage spaces, so that the data of different users are completely isolated, the leakage of user data is avoided, and the safety of the user data is ensured. The virtual storage space may be a distributed file system, enabling synchronization of user data between cloud desktop instances across available zones. When the file system of the cloud desktop is redirected to the virtual storage space corresponding to the user, the user data and the data bound by the operating system can be separated, the user data is stored in the virtual storage space, and the data bound by the operating system is stored locally. The file metadata corresponding to the user data stored in the virtual storage space can be synchronized into the database, so that the file metadata can be sent to the cloud client when the cloud client logs in, and the cloud client can browse the file under the condition that the virtual storage space is mounted. The embodiment also synchronizes the virtual storage space and the OSS system, opens up a channel for uploading and downloading the file data, and improves the efficiency of uploading and downloading the file data.
The embodiment of the application further provides a cloud desktop-based user data synchronization device, and the device is used for executing the cloud desktop-based user data synchronization method provided by any one of the embodiments. As shown in fig. 6, the apparatus includes:
a receiving module 201, configured to receive a cloud desktop connection request of a user, where the cloud desktop connection request includes user information;
a connection establishing module 202, configured to allocate a cloud desktop to establish a connection with a user;
the mounting module 203 is configured to obtain a virtual storage space corresponding to the user information, and mount the virtual storage space to the cloud desktop.
The mounting module 203 is configured to determine whether a virtual storage space corresponding to the user exists currently according to the user information; if the virtual storage space exists, mounting the virtual storage space to a cloud desktop; and if the virtual storage space does not exist, creating a virtual storage space corresponding to the user, and mounting the created virtual storage space to the cloud desktop.
The mounting module 203 is configured to send mounting information to the cloud desktop, where the mounting information includes a desktop identifier corresponding to the cloud desktop and storage identifier information corresponding to the virtual storage space; the mounting information is written into a configuration file of the cloud desktop through a service program of the cloud desktop; and redirecting the file system of the cloud desktop to the virtual storage space through the agent program of the cloud desktop according to the mounting information in the configuration file.
The mount module 203 is configured to redirect files related to the user to the virtual storage space through an agent of the cloud desktop, and redirect files related to the operating system to the local of the cloud desktop.
The virtual storage space comprises a network disk; the mounting module 203 is configured to determine whether a network disk corresponding to the user exists in the current network disk resource pool according to the user information; if the network disk corresponding to the user exists, the network disk corresponding to the user is mounted to the cloud desktop; and if the network disk corresponding to the user does not exist, establishing the network disk corresponding to the user, and mounting the established network disk to the cloud desktop.
The virtual storage space comprises a distributed file system; the mounting module 203 is configured to determine whether a file directory corresponding to the user exists in the distributed file system according to the user information; if the file directory corresponding to the user exists, mounting the file directory to a cloud desktop; and if the file directory corresponding to the user does not exist, creating the file directory corresponding to the user in the distributed file system, and mounting the created file directory to the cloud desktop.
The device also includes: the file metadata synchronization module is used for synchronizing the file metadata in the virtual storage space to the database; determining the login of a cloud client corresponding to a user, acquiring file metadata from a database, and sending the acquired file metadata to the cloud client.
The device also includes: the file uploading module is used for receiving file data uploaded by a user; storing the file data to an object storage OSS system; and synchronizing file data in the OSS system to the virtual storage space.
The device also comprises a file downloading module used for synchronizing each file data stored in the virtual storage space to the OSS system; respectively generating a download link corresponding to each file data; and sending the download link corresponding to each file data to the cloud client corresponding to the user.
The file downloading module is also used for receiving a downloading request triggered by the downloading link; acquiring target file data corresponding to the downloading request from an OSS system; and sending the acquired target file data to the cloud client.
The cloud desktop based user data synchronization device provided by the above embodiment of the application and the cloud desktop based user data synchronization method provided by the embodiment of the application have the same inventive concept and have the same beneficial effects as methods adopted, operated or realized by application programs stored by the device.
The embodiment of the application also provides electronic equipment for executing the cloud desktop-based user data synchronization method. Please refer to fig. 7, which illustrates a schematic diagram of an electronic device according to some embodiments of the present application. As shown in fig. 7, the electronic apparatus 4 includes: a processor 400, a memory 401, a bus 402 and a communication interface 403, wherein the processor 400, the communication interface 403 and the memory 401 are connected through the bus 402; the memory 401 stores a computer program that can be executed on the processor 400, and when the processor 400 executes the computer program, the cloud desktop-based user data synchronization method provided in any of the foregoing embodiments of the present application is executed.
The Memory 401 may include a Random Access Memory (RAM) and a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the apparatus and at least one other network element is implemented through at least one communication interface 403 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used.
Bus 402 can be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 401 is configured to store a program, and the processor 400 executes the program after receiving an execution instruction, and the cloud desktop based user data synchronization method disclosed in any embodiment of the present application may be applied to the processor 400, or implemented by the processor 400.
Processor 400 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 400. The Processor 400 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 401, and the processor 400 reads the information in the memory 401 and completes the steps of the method in combination with the hardware.
The electronic equipment provided by the embodiment of the application and the cloud desktop-based user data synchronization method provided by the embodiment of the application have the same inventive concept and have the same beneficial effects as the method adopted, operated or realized by the electronic equipment.
Referring to fig. 8, the computer-readable storage medium is an optical disc 30, and a computer program (i.e., a program product) is stored on the optical disc 30, and when the computer program is executed by a processor, the computer program may perform the cloud desktop based user data synchronization method provided in any of the foregoing embodiments.
It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory, or other optical and magnetic storage media, which are not described in detail herein.
The computer-readable storage medium provided by the above embodiment of the present application and the cloud desktop based user data synchronization method provided by the embodiment of the present application are based on the same inventive concept, and have the same beneficial effects as methods adopted, run, or implemented by application programs stored in the computer-readable storage medium.
It should be noted that:
in the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the application and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted to reflect the following schematic: this application is intended to cover such departures from the present disclosure as come within known or customary practice in the art to which this invention pertains. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. A user data synchronization method based on a cloud desktop is characterized by comprising the following steps:
receiving a cloud desktop connection request of a user, wherein the cloud desktop connection request comprises user information;
allocating a cloud desktop to establish connection with the user;
and acquiring a virtual storage space corresponding to the user information, and mounting the virtual storage space to the cloud desktop.
2. The method according to claim 1, wherein the obtaining of the virtual storage space corresponding to the user information and the mounting of the virtual storage space to the cloud desktop include:
determining whether a virtual storage space corresponding to the user exists at present according to the user information;
if the virtual storage space exists, mounting the virtual storage space to the cloud desktop;
if the virtual storage space does not exist, the virtual storage space corresponding to the user is created, and the created virtual storage space is mounted to the cloud desktop.
3. The method of claim 1 or 2, wherein the mounting the virtual storage space to the cloud desktop comprises:
sending mounting information to the cloud desktop, wherein the mounting information comprises a desktop identifier corresponding to the cloud desktop and storage identifier information corresponding to the virtual storage space;
writing the mounting information into a configuration file of the cloud desktop through a service program of the cloud desktop;
and redirecting the file system of the cloud desktop to the virtual storage space through the agent program of the cloud desktop according to the mounting information in the configuration file.
4. The method of claim 3, wherein the redirecting the file system of the cloud desktop to the virtual storage space by the agent of the cloud desktop comprises:
and redirecting files related to a user to the virtual storage space through the agent program of the cloud desktop, and redirecting files related to an operating system to the local of the cloud desktop.
5. The method of claim 1 or 2, wherein the virtual storage space comprises a network disk; the obtaining of the virtual storage space corresponding to the user information and the mounting of the virtual storage space to the cloud desktop include:
determining whether a network disk corresponding to the user exists in a current network disk resource pool or not according to the user information;
if the network disk corresponding to the user exists, mounting the network disk corresponding to the user to the cloud desktop;
and if the network disk corresponding to the user does not exist, establishing the network disk corresponding to the user, and mounting the established network disk to the cloud desktop.
6. The method of claim 1 or 2, wherein the virtual storage space comprises a distributed file system; the obtaining of the virtual storage space corresponding to the user information and the mounting of the virtual storage space to the cloud desktop include:
Determining whether a file directory corresponding to the user exists in the distributed file system or not according to the user information;
if the file directory corresponding to the user exists, mounting the file directory to the cloud desktop;
and if the file directory corresponding to the user does not exist, creating the file directory corresponding to the user in the distributed file system, and mounting the created file directory to the cloud desktop.
7. The method according to claim 1 or 2, characterized in that the method further comprises:
synchronizing file metadata in the virtual storage space to a database;
and determining the login of a cloud client corresponding to the user, acquiring the file metadata from the database, and sending the acquired file metadata to the cloud client.
8. The method according to claim 1 or 2, wherein after the mounting the virtual storage space to the cloud desktop, further comprising:
receiving file data uploaded by the user;
storing the file data to an object storage OSS system;
synchronizing the file data in the OSS system to the virtual storage space.
9. The method according to claim 1 or 2, wherein after the mounting the virtual storage space to the cloud desktop, further comprising:
synchronizing each file data stored in the virtual storage space into an OSS system;
respectively generating a download link corresponding to each file data;
and sending the download link corresponding to each file data to the cloud client corresponding to the user.
10. The method according to claim 9, wherein after the sending the download link corresponding to each file data to the cloud client corresponding to the user, further comprising:
receiving a downloading request triggered by the downloading link;
acquiring target file data corresponding to the downloading request from the OSS system;
and sending the acquired target file data to the cloud client.
11. An apparatus for synchronizing user data based on a cloud desktop, the apparatus comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a cloud desktop connection request of a user, and the cloud desktop connection request comprises user information;
the connection establishing module is used for allocating a cloud desktop to establish connection with the user;
and the mounting module is used for acquiring the virtual storage space corresponding to the user information and mounting the virtual storage space to the cloud desktop.
12. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the method of any of claims 1-10.
13. A computer-readable storage medium, on which a computer program is stored, characterized in that the program is executed by a processor to implement the method of any of claims 1-10.
CN202210191981.7A 2022-02-28 2022-02-28 Cloud desktop based user data synchronization method, device, equipment and storage medium Pending CN114679442A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210191981.7A CN114679442A (en) 2022-02-28 2022-02-28 Cloud desktop based user data synchronization method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210191981.7A CN114679442A (en) 2022-02-28 2022-02-28 Cloud desktop based user data synchronization method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114679442A true CN114679442A (en) 2022-06-28

Family

ID=82072771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210191981.7A Pending CN114679442A (en) 2022-02-28 2022-02-28 Cloud desktop based user data synchronization method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114679442A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116132441A (en) * 2022-12-30 2023-05-16 中国人寿保险股份有限公司上海数据中心 Cloud desktop data intercommunication method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2685697A1 (en) * 2012-07-13 2014-01-15 CloudFounders NV A method to obtain a virtual desktop stored in a cloud storage system, a corresponding cloud broker and cloud desktop agent
US20160139835A1 (en) * 2014-11-14 2016-05-19 International Business Machines Corporation Elastic File System Management in Storage Cloud Environments
CN106020795A (en) * 2016-05-09 2016-10-12 汉柏科技有限公司 Realization method and device of VDI desktop personal data disk
CN109947507A (en) * 2019-01-24 2019-06-28 江苏中云科技有限公司 A kind of cloud desktop system of more service convergences
CN110347337A (en) * 2019-06-13 2019-10-18 北京和信创天科技股份有限公司 Data disk technology that is a kind of while supporting 3V desktop virtualization framework
CN111031098A (en) * 2019-11-20 2020-04-17 西安雷风电子科技有限公司 VDI cloud desktop emergency maintenance system and method
WO2020103904A1 (en) * 2018-11-23 2020-05-28 中兴通讯股份有限公司 Cloud desktop upgrade method, device, cloud server, and storage medium
CN112235371A (en) * 2020-09-30 2021-01-15 北京联众国际通信有限公司 System and method for mounting network disk on cloud desktop based on distributed storage
CN113126912A (en) * 2021-03-15 2021-07-16 新华三大数据技术有限公司 Personal disk mounting method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2685697A1 (en) * 2012-07-13 2014-01-15 CloudFounders NV A method to obtain a virtual desktop stored in a cloud storage system, a corresponding cloud broker and cloud desktop agent
US20160139835A1 (en) * 2014-11-14 2016-05-19 International Business Machines Corporation Elastic File System Management in Storage Cloud Environments
CN106020795A (en) * 2016-05-09 2016-10-12 汉柏科技有限公司 Realization method and device of VDI desktop personal data disk
WO2020103904A1 (en) * 2018-11-23 2020-05-28 中兴通讯股份有限公司 Cloud desktop upgrade method, device, cloud server, and storage medium
CN109947507A (en) * 2019-01-24 2019-06-28 江苏中云科技有限公司 A kind of cloud desktop system of more service convergences
CN110347337A (en) * 2019-06-13 2019-10-18 北京和信创天科技股份有限公司 Data disk technology that is a kind of while supporting 3V desktop virtualization framework
CN111031098A (en) * 2019-11-20 2020-04-17 西安雷风电子科技有限公司 VDI cloud desktop emergency maintenance system and method
CN112235371A (en) * 2020-09-30 2021-01-15 北京联众国际通信有限公司 System and method for mounting network disk on cloud desktop based on distributed storage
CN113126912A (en) * 2021-03-15 2021-07-16 新华三大数据技术有限公司 Personal disk mounting method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116132441A (en) * 2022-12-30 2023-05-16 中国人寿保险股份有限公司上海数据中心 Cloud desktop data intercommunication method and system

Similar Documents

Publication Publication Date Title
US10341251B2 (en) Method and system for securely transmitting volumes into cloud
US9286087B2 (en) Storage optimization selection within a virtualization environment
AU2014311782B2 (en) Scalable distributed storage architecture
US11030025B2 (en) Managing inter-process communications in a containerized application environment
US9244969B1 (en) Virtual disk recovery
US9497257B1 (en) File level referrals
US9886398B2 (en) Implicit sharing in storage management
JP6188713B2 (en) Autonomous network streaming
US20140244989A1 (en) Peer-to-peer network booting
CN108427677B (en) Object access method and device and electronic equipment
US20170371749A1 (en) Backup image restore
CN110928557B (en) Method, device and system for realizing migration of operating system
US9021478B1 (en) Provisioning virtual machines from template by splitting and building index for locating content portions via content-centric network
US10747458B2 (en) Methods and systems for improving efficiency in cloud-as-backup tier
US20200412788A1 (en) Asynchronous workflow and task api for cloud based processing
US9740717B2 (en) Method of operation for a hierarchical file block variant tracker apparatus
CN104601666A (en) Log service method and cloud platform
CN114679442A (en) Cloud desktop based user data synchronization method, device, equipment and storage medium
US9239860B1 (en) Augmenting virtual directories
CN113127258A (en) Data backup method, device, equipment and medium
CN115774742A (en) Data storage newly-increased method, device, equipment, medium and product of private cloud
US9256648B2 (en) Data handling in a cloud computing environment
US10740288B2 (en) Accessing objects in an erasure code supported object storage environment
US20180246861A1 (en) Dynamic cognitive optimization of web applications
US11550608B2 (en) Guest-to-host virtual networking

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40074561

Country of ref document: HK