WO2018001054A1 - 一种云桌面数据的同步方法及装置 - Google Patents

一种云桌面数据的同步方法及装置 Download PDF

Info

Publication number
WO2018001054A1
WO2018001054A1 PCT/CN2017/087446 CN2017087446W WO2018001054A1 WO 2018001054 A1 WO2018001054 A1 WO 2018001054A1 CN 2017087446 W CN2017087446 W CN 2017087446W WO 2018001054 A1 WO2018001054 A1 WO 2018001054A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
synchronization
terminal
cloud desktop
desktop server
Prior art date
Application number
PCT/CN2017/087446
Other languages
English (en)
French (fr)
Inventor
兰青
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018001054A1 publication Critical patent/WO2018001054A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the present disclosure relates to cloud desktop application technologies, and in particular, to a method and device for synchronizing cloud desktop data.
  • cloud terminal equipment is widely used in government business.
  • the cloud desktop is deployed and runs in the equipment room. Users can connect to the cloud desktop from the terminal device of the desk, or even connect to the cloud desktop through the mobile terminal such as mobile phone or tablet.
  • the present disclosure provides a method and device for synchronizing the cloud desktop data.
  • the present disclosure provides a method for synchronizing cloud desktop data, including:
  • the first synchronization file preset in the cloud desktop server is synchronized to the terminal.
  • the method further includes: When the terminal logs in to the cloud desktop server, it is determined whether there is a second synchronization file that is modified by the first synchronization file in the terminal; if yes, the second synchronization file is synchronized to the cloud desktop server.
  • the step of determining whether the terminal that is logged in to the cloud desktop server is a preset synchronization terminal comprises: determining whether the universal unique identifier UUID of the terminal matches a UUID of the synchronization terminal preset by the cloud desktop server; If yes, it is determined that the terminal is the synchronous terminal.
  • the step of synchronizing the first synchronization file that is preset in the cloud desktop server to the terminal includes: modifying the time in the cloud desktop server during a period of connecting the terminal to the cloud desktop server The synchronization of the first synchronization file is simultaneously recorded in the cloud desktop server and the terminal.
  • the step of determining whether the second synchronization file to be modified by the first synchronization file is included in the terminal comprises: receiving a local file mapped by the terminal to the cloud desktop server, and acquiring the first file from the local file And synchronizing the file; acquiring a first file feature of the first synchronization file in the cloud desktop server and a second file feature of the first synchronization file in the local file, and according to the first file feature and the first file feature
  • the second file feature determines whether the second synchronization file exists in the terminal, wherein the file feature includes a file synchronization time, a file modification time, and a message digest algorithm fifth version MD5 value of the file.
  • the step of determining whether the second synchronization file exists in the terminal according to the first file feature and the second file feature comprises: acquiring a first file synchronization time in the first file feature a second file synchronization time in the second file feature; if the first file synchronization time and the second file synchronization time are the same, acquiring the first file modification time and the second file feature in the first file feature a second file modification time; if the first file modification time and the second file modification time are different, determining that the second synchronization file exists in the terminal; if the first file modification time Acquiring the same as the second file modification time, acquiring a first MD5 value of the file in the first file feature and a second MD5 value of the file in the second file feature; if the first MD5 value and the second value If the MD5 values are different, it is determined that the second synchronization file exists in the terminal.
  • the step of synchronizing the second synchronization file to the cloud desktop server includes: if the synchronization preference mode preset by the cloud desktop server is a storage terminal version mode, the second synchronization file is to be synchronized Synchronizing to the cloud desktop server, and saving the first required synchronization file within a preset time period.
  • the present disclosure provides a synchronization device for cloud desktop data, including:
  • the first determining module is configured to determine whether the terminal that is logged in to the cloud desktop server is a preset synchronization terminal;
  • the first synchronization module is configured to synchronize the first synchronization file preset in the cloud desktop server to the terminal when the terminal is disconnected from the cloud desktop server.
  • the synchronization device further includes: a second determining module, configured to determine, when the terminal logs in to the cloud desktop server, whether there is a second synchronization required to be modified by the first synchronization file in the terminal a second synchronization module, configured to synchronize the second synchronization file to the cloud desktop server if a second synchronization file exists in the terminal.
  • a second determining module configured to determine, when the terminal logs in to the cloud desktop server, whether there is a second synchronization required to be modified by the first synchronization file in the terminal
  • a second synchronization module configured to synchronize the second synchronization file to the cloud desktop server if a second synchronization file exists in the terminal.
  • the first determining module is configured to determine whether the universal unique identifier UUID of the terminal matches a UUID of a synchronization terminal preset by the cloud desktop server; if yes, determine that the terminal is the synchronous terminal .
  • the first synchronization module is configured to: when the terminal is connected to the cloud desktop server, synchronize the first required synchronization file that is modified in the cloud desktop server to the terminal, and in the cloud The synchronization time of the first synchronization file to be simultaneously recorded in the desktop server and the terminal.
  • the second determining module includes a receiving unit, configured to receive a local file mapped by the terminal to the cloud desktop server, and obtain the first required synchronization file from the local file; and the determining unit is configured to acquire the location Determining a first file feature of the first synchronization file in the cloud desktop server and a second file feature of the first synchronization file in the local file, and determining the location according to the first file feature and the second file feature Whether the second synchronization file exists in the terminal, wherein the file feature includes a file synchronization time, a file modification time, and a message digest algorithm fifth version MD5 value of the file.
  • the determining unit is configured to acquire a first file synchronization time in the first file feature and a second file synchronization time in the second file feature; if the first file synchronization time and the second file If the synchronization time is the same, the first file modification time in the first file feature and the second file modification time in the second file feature are acquired; if the first file modification time and the second file modification time If the first file modification time and the second file modification time are the same, the first file in the first file feature is obtained.
  • the MD5 value and the second MD5 value of the file in the second file feature if the first MD5 value and the second MD5 value are not the same, determining that the second synchronization file exists in the terminal.
  • the second synchronization module is configured to synchronize the second synchronization file to the cloud desktop server if the synchronization preference mode preset by the cloud desktop server is a storage terminal version mode, and The first required synchronization file is saved in a time period.
  • the method for synchronizing the cloud desktop data provided by the present disclosure is pre-set in the cloud desktop server when the terminal is disconnected from the cloud desktop server when determining that the terminal that is logged in to the cloud desktop server is a synchronization terminal preset by the cloud desktop server.
  • the first synchronization file needs to be synchronized to the terminal, which solves the problem that the user cannot obtain the cloud desktop data or obtain the cloud desktop data when the terminal and the cloud desktop server have poor network connection in the prior art, and makes up for the use.
  • a cloud desktop server When a cloud desktop server is working, it must be connected to the network to access data defects.
  • the terminal loses network connectivity, it also has the processing capability of cloud desktop files. It can view and edit cloud desktop files locally, which is the most convenient. The user's cloud desktop office.
  • FIG. 1 is a flow chart showing the steps of a method for synchronizing cloud desktop data in a first embodiment of the present disclosure
  • FIG. 2 is a flow chart showing the steps of a method for synchronizing cloud desktop data in a second embodiment of the present disclosure.
  • FIG. 3 is a block diagram showing the structure of a synchronization apparatus for cloud desktop data in the third embodiment of the present disclosure.
  • a flow chart of steps of a method for synchronizing cloud desktop data in a first embodiment of the present disclosure includes:
  • Step 101 Determine whether the terminal that is logged in to the cloud desktop server is a preset synchronization terminal.
  • the cloud desktop server can perform terminal terminal information, delete terminal information, and set synchronization terminal, cancel synchronization terminal, and the like for the terminal accessing the cloud desktop server.
  • the universal unique identifier UUID
  • the server can also set a synchronization terminal in advance, and can cancel the setting of the synchronization terminal.
  • the synchronous terminal refers to a terminal that can perform file synchronization operations with the cloud desktop server.
  • the cloud desktop server determines whether the terminal is a preset synchronization terminal. If the terminal is a preset synchronization terminal, the process proceeds to step 102. In addition, when determining whether the terminal is a preset synchronization terminal, it may be determined whether the UUID of the terminal matches the UUID of the synchronization terminal preset by the cloud desktop server, and if they match, the terminal may be determined to be a synchronization terminal.
  • Step 102 If yes, when the terminal disconnects from the cloud desktop server, the first synchronization file preset in the cloud desktop server is synchronized to the terminal.
  • the cloud desktop server has the ability to display files to be synchronized or to synchronize folders, add files to be synchronized or to synchronize folders, and delete files to be synchronized or to synchronize folders.
  • the cloud desktop server can list the files or folders that need to be synchronized on the cloud desktop. It can be set in the default state, and only the files on the cloud desktop need to be synchronized or the files need to be synchronized for file synchronization.
  • the cloud desktop server can also add or delete files that need to be synchronized or need to be synchronized.
  • the first synchronization file preset in the cloud desktop server is synchronized to the terminal.
  • the encryption and compression may be performed when the first synchronization file is synchronized to the terminal, so that the first synchronization file can be opened only when the terminal side inputs a password. The security of the first synchronization file on the terminal side is guaranteed.
  • the terminal that is logged in to the cloud desktop server is a synchronization terminal preset by the cloud desktop server
  • the first synchronization file that is preset in the cloud desktop server is set. Synchronizing to the terminal solves the problem that the user cannot obtain the cloud desktop data or obtain the cloud desktop data when the terminal and the cloud desktop server have poor network connection in the prior art, and makes up for the problem when using the cloud desktop server for office work.
  • the modification may be performed in the cloud desktop server during the period when the terminal is connected to the cloud desktop server. Synchronize files to the terminal as needed.
  • the cloud desktop server matches the modified file, and the synchronization time of the first synchronization file to be simultaneously recorded in the cloud desktop server and the terminal.
  • the first synchronization file in the terminal may be modified, so that the next time the terminal logs in to the cloud desktop server, the modification occurs.
  • the first synchronization file to be synchronized with the first synchronization file in the cloud desktop server may be different.
  • the modified first synchronization may be performed. Files are synced to the cloud desktop server. The specific embodiment is shown in the following examples.
  • a flow chart of steps of a method for synchronizing cloud desktop data in a second embodiment of the present disclosure includes:
  • Step 201 When the terminal logs in to the cloud desktop server, it is determined whether there is a second synchronization file obtained by modifying the first synchronization file in the terminal.
  • the first synchronization file preset in the cloud desktop server is synchronized to the terminal, and when the terminal logs in to the cloud desktop server again, it is determined whether the terminal exists in the terminal. A second synchronization file that needs to be synchronized by the file modification. If there is a second synchronization file in the terminal, the process proceeds to step 202.
  • the terminal may first receive the local file mapped by the terminal to the cloud desktop server, and then obtain the first synchronization file from the local file. And finally obtaining the first file feature of the first synchronization file in the cloud desktop server and the second file feature of the first synchronization file in the local file, and determining whether the terminal is in the terminal according to the first file feature and the second file feature There is a second file to be synchronized.
  • the file characteristics include file synchronization time, file modification time, and message digest algorithm fifth version MD5 value of the file.
  • the first file synchronization time and the second file feature in the first file feature may be acquired first. And the second file synchronization time, if the first file synchronization time and the second file synchronization time are the same, acquiring the first file modification time in the first file feature and the second file modification time in the second file feature.
  • the first synchronization file in the local file is modified, and the second synchronization file obtained by modifying the first synchronization file is determined in the terminal; If the first file modification time and the second file modification time are the same, acquiring a first MD5 value of the file in the first file feature and a second MD5 value of the file in the second file feature, if the first MD5 value and the second If the MD5 value is the same, the first synchronization file in the local file has not been modified. In this case, the first synchronization file in the local file is not synchronized to the cloud desktop server. If the first MD5 value and the second MD5 value are used. If the first synchronization file in the local file has been modified, it is determined that the second synchronization file obtained by the first synchronization file is modified in the terminal.
  • the first synchronization file may be a text content or a folder containing multiple text contents.
  • Step 202 if yes, synchronizing the second required synchronization file to the cloud desktop server.
  • the second synchronization file obtained by the first synchronization file is modified in the terminal, the second synchronization file is synchronized to the cloud desktop server.
  • the cloud desktop server may preset a synchronization preference manner, such as a storage cloud desktop version mode and a storage terminal version mode. If the synchronization preference mode preset by the cloud desktop server is the storage terminal version mode, the second synchronization file is synchronized to the cloud desktop server, and the user needs to view the first synchronization file in the cloud desktop server when necessary. When the second synchronization file is synchronized to the cloud desktop server, the first synchronization file is saved in a preset time period.
  • a synchronization preference manner such as a storage cloud desktop version mode and a storage terminal version mode.
  • the first synchronization file that is preset in the cloud desktop server is synchronized when the terminal disconnects from the cloud desktop server.
  • the second synchronization file that is modified by the first synchronization file in the terminal is synchronized to the cloud desktop server, and the backup and synchronization of the cloud desktop data and the terminal data are realized. Therefore, the seamless work is realized by using the cloud desktop and the terminal, and the terminal in the prior art is poorly connected to the cloud desktop server network. When users are unable to obtain cloud desktop data or obtain cloud desktop data, it is more difficult.
  • a synchronization device for cloud desktop data in a third embodiment of the present disclosure includes:
  • the first determining module 301 is configured to determine whether the terminal that is logged in to the cloud desktop server is a preset synchronization terminal;
  • the first synchronization module 302 is configured to synchronize the first synchronization file preset in the cloud desktop server to the terminal when the terminal is disconnected from the cloud desktop server.
  • the synchronization device further includes: a second determining module, configured to: when the terminal logs in to the cloud desktop server, determine whether there is a second synchronization file obtained by modifying the first synchronization file in the terminal; and the second synchronization module is configured If the second synchronization file needs to exist in the terminal, the second synchronization file is synchronized to the cloud desktop server.
  • a second determining module configured to: when the terminal logs in to the cloud desktop server, determine whether there is a second synchronization file obtained by modifying the first synchronization file in the terminal; and the second synchronization module is configured If the second synchronization file needs to exist in the terminal, the second synchronization file is synchronized to the cloud desktop server.
  • the first determining module 301 is configured to determine whether the universal unique identifier UUID of the terminal matches the UUID of the synchronization terminal preset by the cloud desktop server; if yes, determine that the terminal is a synchronous terminal.
  • the first synchronization module 302 is configured to synchronize the first synchronized file that is modified in the cloud desktop server to the terminal during the time period in which the terminal is connected to the cloud desktop server, and simultaneously record in the cloud desktop server and the terminal.
  • the synchronization time of the first file to be synchronized is configured to synchronize.
  • the second determining module includes a receiving unit, configured to receive the local file mapped by the terminal to the cloud desktop server, and obtain the first required synchronization file from the local file; and the determining unit is configured to obtain the first in the cloud desktop server. And synchronizing the first file feature of the file and the second file feature of the first file to be synchronized in the local file, and determining, according to the first file feature and the second file feature, whether there is a second synchronization file in the terminal, wherein the file Features include file synchronization time, file modification time, and message digest algorithm version 5 MD5 values for files.
  • the determining unit is configured to: acquire a first file synchronization time in the first file feature and a second file synchronization time in the second file feature; if the first file synchronization time and the second file synchronization time are the same, obtain a first file modification time in the first file feature and a second file modification time in the second file feature; if the first file modification time and the second file modification time are different, determining that the second synchronization file exists in the terminal; If the first file modification time and the second file modification time are the same, acquiring a first MD5 value of the file in the first file feature and a second MD5 value of the file in the second file feature; if the first MD5 value and the second If the MD5 values are different, it is determined that there is a second synchronization file in the terminal.
  • the second synchronization module is configured to: if the synchronization preference mode preset by the cloud desktop server is the storage terminal version mode, synchronize the second synchronization file to the cloud desktop server, and save the first time period One needs to synchronize files.
  • the first determining module determines whether the terminal that is logged in to the cloud desktop server is a preset synchronization terminal, and when the terminal is a synchronous terminal through the first synchronization module and the terminal is disconnected from the cloud desktop server,
  • the first synchronization file to be synchronized in the cloud desktop server is synchronized to the terminal, which solves the problem in the prior art that when the terminal and the cloud desktop server have poor network connection, the user cannot obtain cloud desktop data or obtain cloud desktop data.
  • the problem is to make up for the defect that the cloud desktop server must be connected to the network to access the data when using the cloud desktop server.
  • the terminal loses the network connection capability, it also has the processing capability of the cloud desktop file, and can view and edit the cloud desktop file locally. , to the greatest extent, the user's cloud desktop office.
  • the disclosure is applicable to the cloud desktop application field, and solves the problem that the user cannot obtain the cloud desktop data or obtain the cloud desktop data when the terminal and the cloud desktop server network are poorly connected in the prior art, so that the terminal loses the network.
  • you can also view and edit cloud desktop files locally, which greatly facilitates the user's cloud desktop office.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本公开提供了一种云桌面数据的同步方法及装置,其中,该同步方法包括:判断登陆至云桌面服务器的终端是否为预先设置的同步终端;若是,则在终端与云桌面服务器断开连接时,将云桌面服务器内预先设置的第一需同步文件同步至终端。本公开解决了现有技术中存在的当终端与云桌面服务器网络连接不佳时,用户无法获取云桌面数据或者获取云桌面数据较为困难的问题,弥补了在使用云桌面服务器进行办公时,必须连接到网络才能访问数据的缺陷,使得终端在失去网络连接能力时,同样具备云桌面文件的处理能力。

Description

一种云桌面数据的同步方法及装置 技术领域
本公开涉及云桌面应用技术,尤其是涉及一种云桌面数据的同步方法及装置。
背景技术
如今,云终端设备在政企业务中应用广泛。在云计算系统中,云桌面部署并运行在机房中,用户可以从办公桌的终端设备连接到云桌面,甚至也可以通过手机、平板等移动终端连接到云桌面进行办公。
在云桌面上办公时,用户操作时看似操作的是本地系统和文件,但实际上用户的文稿和数据都保存在远程服务器上。这样的方式不仅便利了办公系统的部署、管理和运营,也大大便利了用户的办公,即用户只要有网络连接,就可接入云桌面进行办公。但是,访问云桌面要求用户有稳定的网络连接,当用户无法获取稳定的网络连接时,就很难获取云桌面的数据,也就是说当失去网络连接时,用户将无法办公,甚至无法查看文件和图片。
由以上可以看出,现有技术中存在当网络连接不佳时,用户无法获取云桌面数据或者获取云桌面数据较为困难的问题。
发明内容
为了解决现有技术中存在的网络连接不佳时,用户无法获取云桌面数据或者获取云桌面数据较为困难的问题,本公开提供了一种云桌面数据的同步方法及装置。
为了解决上述技术问题,第一方面,本公开提供了一种云桌面数据的同步方法,包括:
判断登陆至云桌面服务器的终端是否为预先设置的同步终端;
若是,则在所述终端与所述云桌面服务器断开连接时,将所述云桌面服务器内预先设置的第一需同步文件同步至终端。
可选地,所述在所述终端与所述云桌面服务器断开连接时,将所述云桌面服务器内预先设置的第一需同步文件同步至终端之后,所述方法还包括:在所述终端登陆所述云桌面服务器时,判断所述终端内是否存在由第一需同步文件修改得到的第二需同步文件;若是,则将所述第二需同步文件同步至所述云桌面服务器。
可选地,所述判断登陆至云桌面服务器的终端是否为预先设置的同步终端的步骤包括:判断所述终端的通用唯一识别码UUID是否与云桌面服务器预先设置的同步终端的UUID相匹配;若是,则判定所述终端为所述同步终端。
可选地,将所述云桌面服务器内预先设置的第一需同步文件同步至终端的步骤包括:将所述终端与所述云桌面服务器连接的时间段内,云桌面服务器内发生修改的第一需同步文件同步至终端,并在所述云桌面服务器和所述终端内同时记录所述第一需同步文件的同步时间。
可选地,判断所述终端内是否存在由第一需同步文件修改得到的第二需同步文件的步骤包括:接收终端映射至云桌面服务器的本地文件,并从所述本地文件中获取第一需同步文件;获取所述云桌面服务器内的第一需同步文件的第一文件特征和所述本地文件中的第一需同步文件的第二文件特征,并根据所述第一文件特征和第二文件特征,判断所述终端内是否存在所述第二需同步文件,其中,文件特征包括文件同步时间、文件修改时间和文件的消息摘要算法第五版MD5值。
可选地,根据所述第一文件特征和第二文件特征,判断所述终端内是否存在所述第二需同步文件的步骤包括:获取所述第一文件特征中的第一文件同步时间和第二文件特征中的第二文件同步时间;若所述第一文件同步时间和第二文件同步时间相同,则获取所述第一文件特征中的第一文件修改时间和所述第二文件特征中的第二文件修改时间;若所述第一文件修改时间和所述第二文件修改时间不相同,则判定所述终端内存在所述第二需同步文件;若所述第一文件修改时间和所述第二文件修改时间相同,则获取所述第一文件特征中的文件的第一MD5值和第二文件特征中的文件的第二MD5值;若所述第一MD5值和第二MD5值不相同,则判定所述终端内存在所述第二需同步文件。
可选地,将所述第二需同步文件同步至所述云桌面服务器的步骤包括:若所述云桌面服务器预先设置的同步偏好方式为存储终端版本方式,则将所述第二需同步文件同步至云桌面服务器,并在一预设时间段内保存所述第一需同步文件。
第二方面,本公开提供了一种云桌面数据的同步装置,包括:
第一判断模块,设置为判断登陆至云桌面服务器的终端是否为预先设置的同步终端;
第一同步模块,设置为若终端为同步终端,则在所述终端与所述云桌面服务器断开连接时,将所述云桌面服务器内预先设置的第一需同步文件同步至终端。
可选地,所述同步装置还包括:第二判断模块,设置为在所述终端登陆所述云桌面服务器时,判断所述终端内是否存在由第一需同步文件修改得到的第二需同步文件;第二同步模块,设置为若终端内存在第二需同步文件,则将所述第二需同步文件同步至所述云桌面服务器。
可选地,所述第一判断模块设置为,判断所述终端的通用唯一识别码UUID是否与云桌面服务器预先设置的同步终端的UUID相匹配;若是,则判定所述终端为所述同步终端。
可选地,所述第一同步模块设置为,将所述终端与所述云桌面服务器连接的时间段内,云桌面服务器内发生修改的第一需同步文件同步至终端,并在所述云桌面服务器和所述终端内同时记录所述第一需同步文件的同步时间。
可选地,所述第二判断模块包括接收单元,设置为接收终端映射至云桌面服务器的本地文件,并从所述本地文件中获取所述第一需同步文件;判断单元,设置为获取所述云桌面服务器内的第一需同步文件的第一文件特征和所述本地文件中的第一需同步文件的第二文件特征,并根据所述第一文件特征和第二文件特征,判断所述终端内是否存在所述第二需同步文件,其中,文件特征包括文件同步时间、文件修改时间和文件的消息摘要算法第五版MD5值。
可选地,所述判断单元设置为,获取所述第一文件特征中的第一文件同步时间和第二文件特征中的第二文件同步时间;若所述第一文件同步时间和第二文件同步时间相同,则获取所述第一文件特征中的第一文件修改时间和所述第二文件特征中的第二文件修改时间;若所述第一文件修改时间和所述第二文件修改时间不相同,则判定所述终端内存在所述第二需同步文件;若所述第一文件修改时间和所述第二文件修改时间相同,则获取所述第一文件特征中的文件的第一MD5值和第二文件特征中的文件的第二MD5值;若所述第一MD5值和第二MD5值不相同,则判定所述终端内存在所述第二需同步文件。
可选地,所述第二同步模块设置为,若所述云桌面服务器预先设置的同步偏好方式为存储终端版本方式,则将所述第二需同步文件同步至云桌面服务器,并在一预设时间段内保存所述第一需同步文件。
本公开的有益效果是:
本公开提供的云桌面数据的同步方法,通过在判定登陆至云桌面服务器的终端为云桌面服务器预先设置的同步终端时,在终端与云桌面服务器断开连接时,将云桌面服务器内预先设置的第一需同步文件同步至终端,解决了现有技术中存在的当终端与云桌面服务器网络连接不佳时,用户无法获取云桌面数据或者获取云桌面数据较为困难的问题,弥补了在使用云桌面服务器进行办公时,必须连接到网络才能访问数据的缺陷,使得终端在失去网络连接能力时,同样具备云桌面文件的处理能力,能够在本地查看、编辑云桌面文件,最大程度的便利了用户的云桌面办公。
附图说明
图1表示本公开的第一实施例中云桌面数据的同步方法的步骤流程图;
图2表示本公开的第二实施例中云桌面数据的同步方法的步骤流程图。
图3表示本公开的第三实施例中云桌面数据的同步装置的结构框图。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
第一实施例:
如图1所示,为本公开的第一实施例中云桌面数据的同步方法的步骤流程图,包括:
步骤101,判断登陆至云桌面服务器的终端是否为预先设置的同步终端。
云桌面服务器可以对接入云桌面服务器的终端进行显示终端信息、删除终端信息以及设置同步终端、取消同步终端等管理。在显示接入云桌面服务器的终端的信息时,可以采用通用唯一识别码(UUID)按照接入云桌面服务器的时间顺序,对终端进行唯一标识;在删除终端信息时,可以从接入云桌面服务器的终端序列中,删除终端的登录信息。此外,云桌面 服务器还可以预先设置一同步终端,同时可以取消该同步终端的设置。其中,同步终端是指能够与云桌面服务器执行文件同步操作的终端。
在本步骤中,在一终端登陆云桌面服务器时,云桌面服务器判断该终端是否为预先设置的同步终端,若该终端是预先设置的同步终端,则进入步骤102。另外,在判断该终端是否为预先设置的同步终端时,可以判断终端的UUID是否与云桌面服务器预先设置的同步终端的UUID相匹配,若相匹配,则可以判定该终端为同步终端。
步骤102,若是,则在终端与云桌面服务器断开连接时,将云桌面服务器内预先设置的第一需同步文件同步至终端。
云桌面服务器具备显示需同步文件或需同步文件夹、增加需同步文件或需同步文件夹以及删除需同步文件或需同步文件夹的功能。其中,云桌面服务器可以在云桌面上列出需要同步的文件或文件夹,可以设置在默认状态下,仅云桌面上的需同步文件或需同步文件夹进行文件同步。此外,云桌面服务器还可以增加或者删除需同步文件或需同步文件夹。
在本步骤中,当登陆至云桌面服务器的终端为同步终端时,在终端与云桌面服务器断开连接时,将云桌面服务器内预先设置的第一需同步文件同步至终端。此外,可选地,为了保证第一需同步文件的安全性,可以在将第一需同步文件同步至终端时进行加密压缩,这样在终端侧只有输入密码,才能打开该第一需同步文件,保证了第一需同步文件在终端侧的安全性。
这样,本实施例通过在判定登陆至云桌面服务器的终端为云桌面服务器预先设置的同步终端时,在终端与云桌面服务器断开连接时,将云桌面服务器内预先设置的第一需同步文件同步至终端,解决了现有技术中存在的当终端与云桌面服务器网络连接不佳时,用户无法获取云桌面数据或者获取云桌面数据较为困难的问题,弥补了在使用云桌面服务器进行办公时,必须连接到网络才能访问数据的缺陷,使得终端在失去网络连接能力时,同样具备云桌面文件的处理能力,能够在本地查看、编辑云桌面文件,最大程度的便利了用户的云桌面办公。
当然,为了减少第一需同步文件的同步操作,节约终端的存储空间以及避免同步至终端的文件的重复性,可以将终端与云桌面服务器连接的时间段内,云桌面服务器内发生修改的第一需同步文件同步至终端。此外,为了方便该终端在下次登陆至云桌面服务器时,云桌面服务器对修改文件进行匹配,可以在云桌面服务器和终端内同时记录第一需同步文件的同步时间。
此外,在将云桌面服务器内预先设置的第一需同步文件同步至终端之后,终端内的第一需同步文件可能会发生修改,这样,当该终端下次登陆至云桌面服务器时,发生修改的第一需同步文件和云桌面服务器内的第一需同步文件会存在差异性,此时,为了方便用户继续对经过修改的第一需同步文件进行操作,可以将经过修改的第一需同步文件同步至云桌面服务器。具体实施例如下述实施例所示。
第二实施例:
如图2所示,为本公开的第二实施例中云桌面数据的同步方法的步骤流程图,包括:
步骤201,在终端登陆云桌面服务器时,判断终端内是否存在由第一需同步文件修改得到的第二需同步文件。
在本步骤中,在终端与云桌面服务器断开连接时,将云桌面服务器内预先设置的第一需同步文件同步至终端之后,在终端再次登陆云桌面服务器时,判断终端内是否存在由第一需同步文件修改得到的第二需同步文件。若终端内存在第二需同步文件,则进入步骤202。
可选地,在判断终端内是否存在由第一需同步文件修改得到的第二需同步文件时,可以先接收终端映射至云桌面服务器的本地文件,然后从本地文件中获取第一需同步文件,最后获取云桌面服务器内的第一需同步文件的第一文件特征和本地文件中的第一需同步文件的第二文件特征,并根据第一文件特征和第二文件特征,判断终端内是否存在第二需同步文件。其中,文件特征包括文件同步时间、文件修改时间和文件的消息摘要算法第五版MD5值。
在根据第一文件特征和第二文件特征,判断终端内是否存在第二需同步文件时,为了判断的简洁性,可以先获取第一文件特征中的第一文件同步时间和第二文件特征中的第二文件同步时间,若第一文件同步时间和第二文件同步时间相同,则获取第一文件特征中的第一文件修改时间和第二文件特征中的第二文件修改时间。若第一文件修改时间和第二文件修改时间不相同,则说明本地文件中的第一需同步文件发生过修改,则判定终端内存在由第一需同步文件修改得到的第二需同步文件;若第一文件修改时间和第二文件修改时间相同,则获取第一文件特征中的文件的第一MD5值和第二文件特征中的文件的第二MD5值,若第一MD5值和第二MD5值相同,则说明本地文件中的第一需同步文件未发生过修改,则此时不用将本地文件中的第一需同步文件同步至云桌面服务器,若第一MD5值和第二MD5值不相同,则说明本地文件中的第一需同步文件发生过修改,则判定终端内存在由第一需同步文件修改得到的第二需同步文件。
在此需要说明的是,第一需同步文件可以为一个文本内容,也可以为一个包含有多个文本内容的文件夹。
步骤202,若是,则将第二需同步文件同步至云桌面服务器。
在本步骤中,若终端内存在由第一需同步文件修改得到的第二需同步文件,则将第二需同步文件同步至云桌面服务器。
此外,可选地,云桌面服务器可以预先设置同步偏好方式,例如存储云桌面版本方式以及存储终端版本方式。若云桌面服务器预先设置的同步偏好方式为存储终端版本方式,则将第二需同步文件同步至云桌面服务器,并为了方便用户在有需要时查看云桌面服务器内的第一需同步文件,可以在将第二需同步文件同步至云桌面服务器上时,在一预设时间段内保存第一需同步文件。
这样,本实施例在判定登陆至云桌面服务器的终端为云桌面服务器预先设置的同步终端时,在终端与云桌面服务器断开连接时,将云桌面服务器内预先设置的第一需同步文件同步至终端,并在该终端再次登录云桌面服务器时,将终端内由第一需同步文件修改得到的第二需同步文件同步至云桌面服务器,实现了云桌面数据和终端数据的备份和同步,从而实现了利用云桌面和终端进行无缝办公,解决了现有技术中终端在与云桌面服务器网络连接不佳 时,用户无法获取云桌面数据或者获取云桌面数据较为困难的问题。
第三实施例:
如图3所示,为本公开的第三实施例中云桌面数据的同步装置,包括:
第一判断模块301,设置为判断登陆至云桌面服务器的终端是否为预先设置的同步终端;
第一同步模块302,设置为若终端为同步终端,则在终端与云桌面服务器断开连接时,将云桌面服务器内预先设置的第一需同步文件同步至终端。
可选地,同步装置还包括:第二判断模块,设置为在终端登陆云桌面服务器时,判断终端内是否存在由第一需同步文件修改得到的第二需同步文件;第二同步模块,设置为若终端内存在第二需同步文件,则将第二需同步文件同步至云桌面服务器。
可选地,第一判断模块301设置为,判断终端的通用唯一识别码UUID是否与云桌面服务器预先设置的同步终端的UUID相匹配;若是,则判定终端为同步终端。
可选地,第一同步模块302设置为,将终端与云桌面服务器连接的时间段内,云桌面服务器内发生修改的第一需同步文件同步至终端,并在云桌面服务器和终端内同时记录第一需同步文件的同步时间。
可选地,第二判断模块包括接收单元,设置为接收终端映射至云桌面服务器的本地文件,并从本地文件中获取第一需同步文件;判断单元,设置为获取云桌面服务器内的第一需同步文件的第一文件特征和本地文件中的第一需同步文件的第二文件特征,并根据第一文件特征和第二文件特征,判断终端内是否存在第二需同步文件,其中,文件特征包括文件同步时间、文件修改时间和文件的消息摘要算法第五版MD5值。
可选地,判断单元设置为,获取第一文件特征中的第一文件同步时间和第二文件特征中的第二文件同步时间;若第一文件同步时间和第二文件同步时间相同,则获取第一文件特征中的第一文件修改时间和第二文件特征中的第二文件修改时间;若第一文件修改时间和第二文件修改时间不相同,则判定终端内存在第二需同步文件;若第一文件修改时间和第二文件修改时间相同,则获取第一文件特征中的文件的第一MD5值和第二文件特征中的文件的第二MD5值;若第一MD5值和第二MD5值不相同,则判定终端内存在第二需同步文件。
可选地,第二同步模块设置为,若云桌面服务器预先设置的同步偏好方式为存储终端版本方式,则将第二需同步文件同步至云桌面服务器,并在一预设时间段内保存第一需同步文件。
这样,本实施例通过第一判断模块判断登陆至云桌面服务器的终端是否为预先设置的同步终端,并通过第一同步模块在终端为同步终端且在终端与云桌面服务器断开连接时,将云桌面服务器内预先设置的第一需同步文件同步至终端,解决了现有技术中存在的当终端与云桌面服务器网络连接不佳时,用户无法获取云桌面数据或者获取云桌面数据较为困难的问题,弥补了在使用云桌面服务器进行办公时,必须连接到网络才能访问数据的缺陷,使得终端在失去网络连接能力时,同样具备云桌面文件的处理能力,能够在本地查看、编辑云桌面文件,最大程度的便利了用户的云桌面办公。
以上所述的是本公开的优选实施方式,应当指出对于本技术领域的普通人员来说,在不 脱离本公开所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本公开的保护范围内。
工业实用性
本公开适用于云桌面应用领域,解决了现有技术中存在的当终端与云桌面服务器网络连接不佳时,用户无法获取云桌面数据或者获取云桌面数据较为困难的问题,使得终端在失去网络连接能力时,同样能够在本地查看、编辑云桌面文件,最大程度的便利了用户的云桌面办公。

Claims (15)

  1. 一种云桌面数据的同步方法,包括:
    判断登陆至云桌面服务器的终端是否为预先设置的同步终端;
    若是,则在所述终端与所述云桌面服务器断开连接时,将所述云桌面服务器内预先设置的第一需同步文件同步至终端。
  2. 根据权利要求1所述的同步方法,其中,所述在所述终端与所述云桌面服务器断开连接时,将所述云桌面服务器内预先设置的第一需同步文件同步至终端之后,所述方法还包括:
    在所述终端登陆所述云桌面服务器时,判断所述终端内是否存在由第一需同步文件修改得到的第二需同步文件;
    若是,则将所述第二需同步文件同步至所述云桌面服务器。
  3. 根据权利要求1所述的同步方法,其中,所述判断登陆至云桌面服务器的终端是否为预先设置的同步终端的步骤包括:
    判断所述终端的通用唯一识别码UUID是否与云桌面服务器预先设置的同步终端的UUID相匹配;
    若是,则判定所述终端为所述同步终端。
  4. 根据权利要求1所述的同步方法,其中,将所述云桌面服务器内预先设置的第一需同步文件同步至终端的步骤包括:
    将所述终端与所述云桌面服务器连接的时间段内,云桌面服务器内发生修改的第一需同步文件同步至终端,并在所述云桌面服务器和所述终端内同时记录所述第一需同步文件的同步时间。
  5. 根据权利要求2所述的同步方法,其中,判断所述终端内是否存在由第一需同步文件修改得到的第二需同步文件的步骤包括:
    接收终端映射至云桌面服务器的本地文件,并从所述本地文件中获取第一需同步文件;
    获取所述云桌面服务器内的第一需同步文件的第一文件特征和所述本地文件中的第一需同步文件的第二文件特征,并根据所述第一文件特征和第二文件特征,判断所述终端内是否存在所述第二需同步文件,其中,文件特征包括文件同步时间、文件修改时间和文件的消息摘要算法第五版MD5值。
  6. 根据权利要求5所述的同步方法,其中,根据所述第一文件特征和第二文件特征,判断所述终端内是否存在所述第二需同步文件的步骤包括:
    获取所述第一文件特征中的第一文件同步时间和第二文件特征中的第二文件同步时间;
    若所述第一文件同步时间和第二文件同步时间相同,则获取所述第一文件特征中的第一文件修改时间和所述第二文件特征中的第二文件修改时间;
    若所述第一文件修改时间和所述第二文件修改时间不相同,则判定所述终端内存在所述第二需同步文件;
    若所述第一文件修改时间和所述第二文件修改时间相同,则获取所述第一文件特征中的文件的第一MD5值和第二文件特征中的文件的第二MD5值;
    若所述第一MD5值和第二MD5值不相同,则判定所述终端内存在所述第二需同步文件。
  7. 根据权利要求2所述的同步方法,其中,将所述第二需同步文件同步至所述云桌面服务器的步骤包括:
    若所述云桌面服务器预先设置的同步偏好方式为存储终端版本方式,则将所述第二需同步文件同步至云桌面服务器,并在一预设时间段内保存所述第一需同步文件。
  8. 一种云桌面数据的同步装置,包括:
    第一判断模块,设置为判断登陆至云桌面服务器的终端是否为预先设置的同步终端;
    第一同步模块,设置为若终端为同步终端,则在所述终端与所述云桌面服务器断开连接时,将所述云桌面服务器内预先设置的第一需同步文件同步至终端。
  9. 根据权利要求8所述的同步装置,其中,所述同步装置还包括:
    第二判断模块,设置为在所述终端登陆所述云桌面服务器时,判断所述终端内是否存在由第一需同步文件修改得到的第二需同步文件;
    第二同步模块,设置为若终端内存在第二需同步文件,则将所述第二需同步文件同步至所述云桌面服务器。
  10. 根据权利要求8所述的同步装置,其中,所述第一判断模块设置为,判断所述终端的通用唯一识别码UUID是否与云桌面服务器预先设置的同步终端的UUID相匹配;若是,则判定所述终端为所述同步终端。
  11. 根据权利要求8所述的同步装置,其中,所述第一同步模块设置为,将所述终端与所述云桌面服务器连接的时间段内,云桌面服务器内发生修改的第一需同步文件同步至终端,并在所述云桌面服务器和所述终端内同时记录所述第一需同步文件的同步时间。
  12. 根据权利要求9所述的同步装置,其中,所述第二判断模块包括接收单元,设置为接收终端映射至云桌面服务器的本地文件,并从所述本地文件中获取所述第一需同步文件;判断单元,设置为获取所述云桌面服务器内的第一需同步文件的第一文件特征和所述本地文件中的第一需同步文件的第二文件特征,并根据所述第一文件特征和第二文件特征,判断所述终端内是否存在所述第二需同步文件,其中,文件特征包括文件同步时间、文件修改时间和文件的消息摘要算法第五版MD5值。
  13. 根据权利要求12所述的同步装置,其中,所述判断单元设置为,获取所述第一文件特征中的第一文件同步时间和第二文件特征中的第二文件同步时间;若所述第一文件同步时间和第二文件同步时间相同,则获取所述第一文件特征中的第一文件修改时间和所述第二文件特征中的第二文件修改时间;若所述第一文件修改时间和所述第二文件修改时 间不相同,则判定所述终端内存在所述第二需同步文件;若所述第一文件修改时间和所述第二文件修改时间相同,则获取所述第一文件特征中的文件的第一MD5值和第二文件特征中的文件的第二MD5值;若所述第一MD5值和第二MD5值不相同,则判定所述终端内存在所述第二需同步文件。
  14. 根据权利要求9所述的同步装置,其中,所述第二同步模块设置为,若所述云桌面服务器预先设置的同步偏好方式为存储终端版本方式,则将所述第二需同步文件同步至云桌面服务器,并在一预设时间段内保存所述第一需同步文件。
  15. 一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行权利要求1至7中任一项所述的方法。
PCT/CN2017/087446 2016-06-27 2017-06-07 一种云桌面数据的同步方法及装置 WO2018001054A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610481861.5 2016-06-27
CN201610481861.5A CN107547592A (zh) 2016-06-27 2016-06-27 一种云桌面数据的同步方法及装置

Publications (1)

Publication Number Publication Date
WO2018001054A1 true WO2018001054A1 (zh) 2018-01-04

Family

ID=60786266

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087446 WO2018001054A1 (zh) 2016-06-27 2017-06-07 一种云桌面数据的同步方法及装置

Country Status (2)

Country Link
CN (1) CN107547592A (zh)
WO (1) WO2018001054A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116132441A (zh) * 2022-12-30 2023-05-16 中国人寿保险股份有限公司上海数据中心 一种云桌面数据互通方法和系统

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225415B (zh) * 2018-03-01 2022-06-21 中兴通讯股份有限公司 一种媒体文件的播放方法
CN110913017B (zh) * 2019-12-19 2023-01-17 深圳市原创科技有限公司 一种基于云桌面的文件压缩传输方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8213620B1 (en) * 2008-11-17 2012-07-03 Netapp, Inc. Method for managing cryptographic information
CN103312744A (zh) * 2012-03-12 2013-09-18 中国移动通信集团黑龙江有限公司 一种基于云桌面的业务办理方法、平台及系统
CN103605798A (zh) * 2013-12-05 2014-02-26 上海够快网络科技有限公司 一种直接操作云端存储文件的方法
CN105516368A (zh) * 2016-02-03 2016-04-20 浪潮软件股份有限公司 一种云桌面客户端、服务器、实现云桌面的方法和系统
CN105635075A (zh) * 2014-11-06 2016-06-01 中兴通讯股份有限公司 登录云终端的方法、云终端、云服务器及云系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8213620B1 (en) * 2008-11-17 2012-07-03 Netapp, Inc. Method for managing cryptographic information
CN103312744A (zh) * 2012-03-12 2013-09-18 中国移动通信集团黑龙江有限公司 一种基于云桌面的业务办理方法、平台及系统
CN103605798A (zh) * 2013-12-05 2014-02-26 上海够快网络科技有限公司 一种直接操作云端存储文件的方法
CN105635075A (zh) * 2014-11-06 2016-06-01 中兴通讯股份有限公司 登录云终端的方法、云终端、云服务器及云系统
CN105516368A (zh) * 2016-02-03 2016-04-20 浪潮软件股份有限公司 一种云桌面客户端、服务器、实现云桌面的方法和系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116132441A (zh) * 2022-12-30 2023-05-16 中国人寿保险股份有限公司上海数据中心 一种云桌面数据互通方法和系统

Also Published As

Publication number Publication date
CN107547592A (zh) 2018-01-05

Similar Documents

Publication Publication Date Title
US11233851B2 (en) System, method, and computer program for enabling a user to access and edit via a virtual drive objects synchronized to a plurality of synchronization clients
EP2706719B1 (en) File synchronization method and device
US9807135B1 (en) Methods and computing systems for sharing cloud files using a social network
US9069469B2 (en) Sharing and synchronizing data across users of cloud computing systems
US9282169B1 (en) Real-time user interaction-based alterations to the scope of data synchronization between client and remote devices
JP6298197B2 (ja) 対応するプライマリ・アプリケーションデータから導出される識別子に基づく補足データへのアクセス
WO2013177925A1 (zh) 数据同步方法、系统及设备
JP5870468B2 (ja) モバイル端末の画像を管理するための方法及び装置
US20150227605A1 (en) Information processing terminal, synchronization control method, and computer-readable recording medium
WO2010065256A2 (en) Supporting media content revert functionality across multiple devices
WO2018001054A1 (zh) 一种云桌面数据的同步方法及装置
US20140136496A1 (en) System, method and non-transitory computer readable storage medium for supporting network file accessing and versioning with multiple protocols in a cloud storage server
TW201419006A (zh) 通知並提供快速開啟同步資料的方法、系統以及儲存有此方法之電腦可讀取記錄媒體
KR20130011130A (ko) 메모 데이터의 동기화를 위한 메모 동기화 시스템, 모바일 시스템 및 메모 동기화 방법
US10664494B2 (en) Method and system for synchronously storing multi-modal information of portable endoscope
CN105718496A (zh) 跨平台的文件属性同步的方法及计算机可读取的存储媒体
JP2016100015A (ja) 協働文書のオンライン文書管理システムとの同期
CN111125038B (zh) 一种基于云存储的智能数据同步方法及其系统
EP2687999A1 (en) Method and terminal for automatic data replication
US11442892B2 (en) File and data migration to storage system
JP6231952B2 (ja) データ管理装置及びデータ管理方法
CN116684282B (zh) 新增云端服务器初始化方法、装置和计算机设备
JP4858879B2 (ja) ファイル処理装置ファイル処理方法、及びファイル処理プログラム
JP2009238141A (ja) ファイル制御システム、情報処理装置、ホスト装置、及び、プログラム
WO2023041047A1 (zh) 一种基于云技术的文件服务提供方法及相关设备

Legal Events

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

Ref document number: 17819051

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17819051

Country of ref document: EP

Kind code of ref document: A1