CN103929450B - Method of data synchronization and data synchronization unit - Google Patents

Method of data synchronization and data synchronization unit Download PDF

Info

Publication number
CN103929450B
CN103929450B CN201310012928.7A CN201310012928A CN103929450B CN 103929450 B CN103929450 B CN 103929450B CN 201310012928 A CN201310012928 A CN 201310012928A CN 103929450 B CN103929450 B CN 103929450B
Authority
CN
China
Prior art keywords
data
server
cloud server
terminal device
sync
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.)
Active
Application number
CN201310012928.7A
Other languages
Chinese (zh)
Other versions
CN103929450A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310012928.7A priority Critical patent/CN103929450B/en
Publication of CN103929450A publication Critical patent/CN103929450A/en
Application granted granted Critical
Publication of CN103929450B publication Critical patent/CN103929450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

There is provided a kind of for terminal device and the method for data synchronization and data synchronization unit of sync server.Method of data synchronization for sync server includes:The TCP/IP length between the sync server and at least one cloud server is kept to connect;Connected using the TCP/IP length, keep the data syn-chronization between the sync server and at least one described cloud server;Synchronization request is received from terminal device;Data syn-chronization is carried out between the terminal device and the sync server.Method of data synchronization for terminal device includes:Data synchronization request is sent to sync server by the first file system interface for being disposed on the terminal device, the data synchronization request is used to indicate the progress terminal device and the data syn-chronization of sync server, and the connection of TCP/IP length is kept between the sync server and at least one cloud server;Data syn-chronization is carried out between the terminal device and the sync server by first file system interface.

Description

Method of data synchronization and data synchronization unit
Technical field
The present invention relates to the data syn-chronization between terminal device and cloud server, and relate more specifically to one kind and be used for The method of data synchronization and data synchronization unit of terminal device and a kind of method of data synchronization and number for sync server According to sychronisation.
Background technology
Although terminal device performance has been substantially improved, but it is still limited by terminal device that limited storage is empty in itself Between and computing capability, it is impossible to by all data and calculate all be deployed in terminal.Increasing terminal device performance By the wireless interconnected module of itself(Such as 2G/3G, WiFi)Interacted with cloud server, so as to realize memory space and The extension of computing resource, and this is also regarded as terminal device and expands performance, reduces the effective way of system power dissipation.
On the other hand, the battery of terminal device is to influence the key factor of Consumer's Experience using duration, is limited by current end End equipment end and the method for synchronization of cloud server, i.e.,:At present by way of safeguarding the connection of TCP/IP length in terminal, To carry out the data syn-chronization between terminal and cloud server, this will bring many meaningless energy expenses, serious drop The battery of low terminal device uses duration.
Accordingly, it would be desirable to a kind of method and apparatus that data syn-chronization is carried out between terminal and cloud server, its Normally only safeguard that TCP/IP length is connected at sync server end, only just start eventually when terminal device needs to carry out data syn-chronization Data syn-chronization between end equipment end and sync server end.
The content of the invention
The present invention is proposed in view of above mentioned problem.Filled the invention provides a kind of method of data synchronization and data syn-chronization Put, it safeguards that the TCP/IP length between at least one cloud server is connected by sync server, to keep the synchronization Data syn-chronization between server and at least one described cloud server, only when terminal device needs to carry out data syn-chronization, The data syn-chronization just set up between terminal device and sync server.Thus, without utilizing user on the terminal device In the case that account number signs in at least one described cloud server, the end is set up by using unified application programming interfaces Data syn-chronization between end equipment and the sync server, the sync server is signed in described using user account number At least one cloud server simultaneously safeguards that the TCP/IP length between at least one cloud server is connected.
According to an aspect of the present invention there is provided a kind of method of data synchronization, applied in sync server, methods described bag Include:The TCP/IP length between the sync server and at least one cloud server is kept to connect;Utilize the TCP/IP length Connection, keeps the data syn-chronization between the sync server and at least one described cloud server;Received from terminal device Synchronization request;Data syn-chronization is carried out between the terminal device and the sync server, the terminal device and institute is realized State the data syn-chronization between at least one cloud server.
Preferably, it is described to include from terminal device reception synchronization request in the method for data synchronization:By described The first file system interface disposed in sync server receives the synchronization request, the synchronization request from the terminal device Indicate the data synchronization request at least one cloud server;And the synchronization request is parsed, in the synchronization Identified in server recently from the synchronous data of at least one described cloud server.
Preferably, it is described to enter between the terminal device and the sync server in the method for data synchronization Row data synchronously include:By first file system interface by the data syn-chronization of the terminal device to the synchronous service Recently from the synchronous data of at least one described cloud server in device;Or by first file system interface from described Terminal device receives at least one of data that upload at least one described cloud server.
Preferably, it is described to keep the sync server and at least one cloud service in the method for data synchronization TCP/IP length connection between device includes:In the sync server, at least one described cloud is signed in using user account number Server is held, wherein, each cloud server has corresponding user account number;For each cloud server, based on corresponding User account number, the TCP/IP length connection set up between the cloud server and the sync server.
According to a further aspect of the invention there is provided a kind of method of data synchronization, applied to terminal device, methods described bag Include:Data synchronization request, institute are sent to sync server by the first file system interface for being disposed on the terminal device State data synchronization request be used for indicate carry out the terminal device and the data syn-chronization of sync server, wherein, it is described synchronous to take It is engaged in keeping TCP/IP length to connect between device and at least one cloud server;By first file system interface at the end Data syn-chronization is carried out between end equipment and the sync server.
Preferably, it is described to be set by first file system interface in the terminal in the method for data synchronization Carrying out data syn-chronization between standby and described sync server includes:The terminal device by first file system interface from The sync server is received recently from the synchronous data of at least one described cloud server;Or the terminal device passes through First file system interface is sent to the sync server will upload at least one described cloud server extremely At least part of data.
According to another aspect of the invention there is provided a kind of data synchronization unit, applied in sync server, described device Including:TCP/IP connection members, for keeping the TCP/IP length between the sync server and at least one cloud server Connection;First data synchronizer unit, for keeping the sync server and described at least one using TCP/IP length connection Data syn-chronization between individual cloud server;Receiving part is asked, for receiving synchronization request from terminal device;Second data are same Part is walked, for carrying out data syn-chronization between the terminal device and the sync server.
Preferably, in the data synchronization unit, the synchronization request is indicated at least one described cloud server Data synchronization request, the request receiving part supports the first file system interface, parses the synchronization request, and identify most The nearly data synchronous from least one described cloud server.
Preferably, in the data synchronization unit, second data synchronizer unit supports first file system Interface, and by the data syn-chronization of the terminal device into the sync server recently from least one described cloud server Synchronous data;Or from least a portion at least one cloud server described in terminal device reception will be uploaded to Data.
Preferably, in the data synchronization unit, the TCP/IP connection members are signed in described using user account number At least one cloud server, wherein, each cloud server has corresponding user account number;For each cloud server, The TCP/IP length connection that the TCP/IP connection members are set up between the cloud server based on corresponding user account number.
Preferably, the data synchronization unit also includes:Wireless communication unit, for according to wireless communication protocol with it is described Terminal device sets up wireless connection.
According to a further aspect of the present invention there is provided a kind of data synchronization unit, applied to terminal device, described device bag Include:Synchronization request sends part, supports the first file system interface, and by first file system interface to sync server Data synchronization request is sent, the data synchronization request is used to indicate to carry out the terminal device and the data of sync server are same Step, wherein, the connection of TCP/IP length is kept between the sync server and at least one cloud server;Data synchronizer unit, First file system interface is supported, and by first file system interface in the terminal device and the synchronous service Data syn-chronization is carried out between device.
Preferably, the data synchronization unit also includes:Wireless communication unit, for according to wireless communication protocol with it is described Sync server sets up wireless connection.
Method of data synchronization and data synchronization unit according to embodiments of the present invention, it is by sync server maintenance and extremely TCP/IP length connection between a few cloud server, to keep the sync server and at least one described cloud service Data syn-chronization between device, only when terminal device needs to carry out data syn-chronization, just set up terminal device and sync server it Between data syn-chronization.
Brief description of the drawings
By the way that with reference to accompanying drawing, embodiments of the present invention is described in detail, above and other objects of the present invention, feature, Advantage will become apparent, wherein:
Fig. 1 is to show schematic diagram of the terminal device directly with cloud server progress data syn-chronization in existing communication mode;
Fig. 2 is to show according to embodiments of the present invention to carry out showing for data syn-chronization by sync server and cloud server It is intended to;
Fig. 3 is the schematic flow for showing the method for data synchronization for sync server according to embodiments of the present invention Figure;
Fig. 4 is the schematic diagram for showing the data distribution according to embodiments of the present invention performed in sync server;
Fig. 5 is the indicative flowchart for showing the method for data synchronization for terminal device according to embodiments of the present invention;
Fig. 6 is the schematic block diagram for showing the data synchronization unit for sync server according to embodiments of the present invention; And
Fig. 7 is the schematic block diagram for showing the data synchronization unit for terminal device according to embodiments of the present invention.
Embodiment
As shown in figure 1, in existing communication mode, terminal device often receives multiple cloud storage service providers simultaneously The service provided, terminal device need to keep the TCP/IP length between at least one cloud server to connect, to carry out terminal Data syn-chronization between equipment and at least one cloud server, the battery for reducing terminal device is used duration by this.
In view of above mentioned problem, present inventors have proposed a kind of new synchronization scenario, terminal device and it is described at least Sync server is arranged between one cloud server, by the data between terminal device and at least one described cloud server Synchronously it is divided into two stages:Data syn-chronization and sync server and at least one between terminal device and sync server Data syn-chronization between individual cloud server.The sync server keeps the TCP/IP length between at least one cloud server Connection, to carry out data syn-chronization with least one described cloud server in real time.The terminal device is only when needing synchronous The sync server is just connected to synchronize between the terminal device and the sync server.
As shown in Fig. 2 new synchronization scenario proposed by the present invention is shown, in sync server and at least one high in the clouds The connection of TCP/IP length is kept between server, TCP/ is no longer kept between terminal device and at least one described cloud server IP length is connected, and the terminal device is only just connected to the sync server when needing synchronous.
Next, will be same according to the method for data synchronization and data of illustrated embodiments of the invention to describe with reference to Fig. 3-Fig. 7 Walk device.
Fig. 3 is the schematic stream for showing the method for data synchronization 300 for sync server according to embodiments of the present invention Cheng Tu.
As shown in figure 3, the method for data synchronization 300 for sync server according to embodiments of the present invention is in step S301 Start.
In step S310, sync server keeps the TCP/IP length between at least one cloud server to connect.
In step S320, connected using the TCP/IP length, keep the sync server and at least one described high in the clouds Data syn-chronization between server.
In step S330, sync server receives synchronization request from terminal device.
It can be realized as an example, the sync server receives synchronization request from terminal device by following:Pass through The first file system interface disposed in the sync server receives the synchronization request from the terminal device, described same Step request indicates the data synchronization request at least one cloud server;And the synchronization request is parsed, in institute State and identified in sync server recently from the synchronous data of at least one described cloud server.
In step S340, data syn-chronization is carried out between terminal device and sync server, realize the terminal device with Data syn-chronization between at least one described cloud server.
Finally, the method for data synchronization 300 for sync server according to embodiments of the present invention terminates in step S399.
Data syn-chronization can be generally divided into downloading data synchronization and upload data syn-chronization.According to embodiments of the present invention is used for The method of data synchronization 300 of sync server, both can be used for downloading data synchronization, can be used for uploading data syn-chronization.
And upload data syn-chronization synchronous for downloading data is introduced respectively below.
In the case of downloading data synchronization, after step S310-S330 is performed as described above, specifically exist In step S340, the sync server can determine to need to the synchronous data of the terminal device, and then pass through institute State the first file system interface by the data syn-chronization of the terminal device into the sync server recently from described at least one The synchronous data of individual cloud server.
Preferably, the data can be file, and the file can be various forms.
As the first example, the sync server can preserve the terminal device last time from the synchronous service Device is synchronous(Download)The All Files data of file(Hereinafter referred to as the first file data), and in the sync server and institute State after at least one cloud server synchronization, can be preserved in the sync server at least one described cloud server The All Files data associated with the user of the terminal device of storage(Hereinafter referred to as the second file data).
In the sync server after the terminal device receives synchronization request, the sync server will be described First file data is compared with second file data, in first file data and second file data not Meanwhile, second file data can be sent to the terminal device, or the synchronous service by the sync server Device can calculate the differential data of second file data and first file data, and by second file data with The differential data of first file data is sent to the terminal device, so as to realize that the downloading data of the terminal device is same Step.
Alternatively, can to preserve terminal device last time same from the sync server for the sync server Step(Download)The All Files data of file(Hereinafter referred to as the first file data)Cryptographic Hash.In the sync server from institute State after terminal device receives synchronization request, the sync server is by the cryptographic Hash of first file data and described the The cryptographic Hash of two file datas is compared, in the cryptographic Hash and the Hash of second file data of first file data When being worth different, second file data can be sent to the terminal device, or the synchronization by the sync server Server can calculate the differential data of second file data and first file data, and by second number of files The terminal device is sent to according to the differential data with first file data, so as to realize the download number of the terminal device According to synchronization.
As the second example, the sync server can preserve the terminal device last time from the synchronous service Device is synchronous(Download)The All Files data of file(Hereinafter referred to as the first file data)Cryptographic Hash, and in the synchronous clothes After business device is synchronous with least one described cloud server, at least one described high in the clouds can be preserved in the sync server The All Files data associated with the user of the terminal device stored in server(Hereinafter referred to as the second file data) Cryptographic Hash, without directly preserving second file data.
In the sync server after the terminal device receives synchronization request, the sync server will be described The cryptographic Hash of first file data and the cryptographic Hash of second file data are compared, in the Kazakhstan of first file data When uncommon value is different from the cryptographic Hash of second file data, the sync server can be from least one described cloud service Corresponding cloud server in device downloads second file data, and the second file data downloaded then is sent into institute again State terminal device.
Alternatively, in the sync server after the terminal device receives synchronization request, the synchronous clothes The cryptographic Hash of first file data can be sent to the corresponding high in the clouds clothes at least one described cloud server by business device Business device, the differential data of second file data and first file data is calculated by the correspondence cloud server, and The sync server only receives second file data and first file data from the correspondence cloud server Differential data, then the differential data can be sent to the terminal device by the sync server, so as to realize described The downloading data of terminal device is synchronous.
Although described above is the sync server can preserve file in the terminal device cryptographic Hash or The terminal device can be preserved synchronous from the sync server(Download)The historical data of file, but the invention is not restricted to This, the sync server can know the current file data in the terminal device in a suitable manner.In other words, it is described Sync server is known that the version of the file in the terminal device, size etc..
In the case where uploading data syn-chronization, after step S310-S330 is performed as described above, specifically exist In step S340, the sync server can determine to need to the synchronous data of at least one described cloud server, and Then at least one described cloud server will be uploaded to by being received by first file system interface from the terminal device In at least a portion cloud server data.
Preferably, the data can be file, and the file can be various forms.
As an example, including the All Files data that the premises equipment requests are uploaded in the synchronization request(Under Face is referred to as the 3rd file data), the sync server can preserve the 3rd file data, and in the synchronous service At least one high in the clouds clothes can be preserved after device is synchronous with least one described cloud server, in the sync server The All Files data associated with the user of the terminal device stored in business device(Hereinafter referred to as the 4th file data).
Then, the 3rd file data and the 4th file data are compared by the sync server, in institute State the 3rd file data it is different from the 4th file data when, the sync server can send out the 3rd file data Give the corresponding cloud server at least one described cloud server, or the sync server can calculate described the The differential data of three file datas and the 4th file data, and by the 3rd file data and the 4th file data Differential data be sent to the corresponding cloud server, so as to realize the upload data syn-chronization of the terminal device.
Alternatively, the All Files data that the premises equipment requests are uploaded are included in the synchronization request(Under Face is referred to as the 3rd file data)Cryptographic Hash, the sync server can preserve the cryptographic Hash of the 3rd file data, and And after the sync server is synchronous with least one described cloud server, institute can be preserved in the sync server State the All Files data associated with the user of the terminal device stored at least one cloud server(Hereinafter referred to as 4th file data)Cryptographic Hash.The sync server is by the cryptographic Hash of the 3rd file data and the 4th file The cryptographic Hash of data is compared, different from the cryptographic Hash of the 4th file data in the cryptographic Hash of the 3rd file data When, the sync server can receive the 3rd file data from the terminal device, and by the 3rd file data The corresponding cloud server uploaded at least one described cloud server, or can based on the 3rd data file, The cryptographic Hash of 3rd data file, the cryptographic Hash of the 4th data file come calculate the 3rd data file with it is described The differential data of 4th data file, and the differential data uploaded to corresponding at least one described cloud server Cloud server.
Alternatively, the cryptographic Hash and the 4th number of files of the 3rd file data are determined in the sync server According to cryptographic Hash it is different when, the cryptographic Hash of the 4th file data is sent to the terminal document by the sync server, Then the terminal installation can be based on the 3rd data file, the cryptographic Hash of the 3rd data file, the 4th number The differential data of the 3rd data file and the 4th data file is calculated according to the cryptographic Hash of file and by the difference Divided data is sent to the sync server, and then the differential data is uploaded at least one cloud by the sync server again Hold the corresponding cloud server in server.
Preferably, first file system interface is the interface for supporting http protocol.
As described above, in the case where a user has used at least one cloud server simultaneously, the synchronous service Device needs to keep the TCP/IP length between at least one described cloud server to connect.Each cloud server has its each Exclusive login authentication mechanism, therefore, the user account number that the user needs to use each cloud server exclusive signs in phase The cloud server answered.The corresponding user account number of each cloud server can be set to identical name on account by user, Certainly generally can be different names on account.
In the sync server only for a user(It can have multiple terminal devices, for example, at least one Smart mobile phone, at least one personal digital assistant PDA, at least one tablet personal computer etc.)In the case of, the sync server Need to sign in corresponding cloud server using the relative users account number of each cloud server, and based on relative users account number The TCP/IP length between corresponding cloud server is maintained to connect.
The sync server can be wirelessly connected to by belonging to the multiple terminal devices of the user, and pass through institute State sync server and complete data syn-chronization, data syn-chronization is carried out without signing in each cloud server successively again.Thus, The single application programming interfaces that need to only unify in terminal, pass through the single application programming interfaces and the sync server Between complete data syn-chronization, and the terminal can pass through the single application programming interfaces and specify specific file and phase The corresponding relation of cloud server is answered, such as specific file is to be uploaded to arrive for which cloud server.In the sync server The otherness matching of middle carry out high in the clouds, according to the synchronization request received from terminal device, data are uploaded to corresponding cloud server Or from corresponding cloud server downloading data.As shown in figure 4, showing the cloud server of three examples:Cloud1、 Cloud2 and Cloud3.
As shown in fig. 6, showing showing for the data synchronization unit 600 for sync server according to embodiments of the present invention Meaning property block diagram.
Data synchronization unit 600 for sync server according to embodiments of the present invention includes TCP/IP connection members 610th, the first data synchronizer unit 620, the request data synchronizer unit 640 of receiving part 630 and second.
The TCP/IP connection members 610 keep the TCP/ between the sync server and at least one cloud server IP length is connected.
First data synchronizer unit 620 using TCP/IP length connection keep the sync server with it is described extremely Data syn-chronization between a few cloud server.
The request receiving part 630 receives synchronization request from terminal device;The synchronization request indicate to it is described at least The data synchronization request of one cloud server;The request receiving part supports the first file system interface, parses described same Step request, and identify recently from the synchronous data of at least one described cloud server.
It is same that second data synchronizer unit 640 carries out data between the terminal device and the sync server Step;Second data synchronizer unit 640 supports first file system interface.
As it was previously stated, in the case of downloading data synchronization, second data synchronizer unit 640 can determine to need to The synchronous data of the terminal device, and it is then by first file system interface that the data of the terminal device are same Walk in the sync server recently from the synchronous data of at least one described cloud server.
Preferably, the data can be file, and the file can be various forms.
In the case of the first example as described above, second data synchronizer unit 640 can preserve the terminal First file data of equipment, and after the sync server is synchronous with least one described cloud server, Second file data of at least one cloud server can be preserved in first data synchronizer unit 620.
In the request receiving part 630 after the terminal device receives synchronization request, second data are same First file data is compared by step part 640 with second file data, in first file data and institute When stating the second file data difference, second file data can be sent to the terminal device, or second number It can calculate the differential data of second file data and first file data according to synchronization section 640, and by the difference Divided data is sent to the terminal device.
Alternatively, second data synchronizer unit 640 can preserve the cryptographic Hash of first file data.Institute Request receiving part 630 is stated after the terminal device receives synchronization request, second data synchronizer unit 640 is by institute The cryptographic Hash and the cryptographic Hash of second file data for stating the first file data are compared, in first file data When cryptographic Hash is different from the cryptographic Hash of second file data, second file data can be sent to the terminal and set It is standby, or second data synchronizer unit 640 can calculate the difference of second file data and first file data Divided data, and the differential data is sent to the terminal device.
In the case of the second example as described above, second data synchronizer unit 640 can preserve described first The cryptographic Hash of file data, and after the sync server is synchronous with least one described cloud server, described The cryptographic Hash of second file data can be preserved in one data synchronizer unit 620, without directly preserving second text Number of packages evidence.
In the request receiving part 630 after the terminal device receives synchronization request, second data are same The cryptographic Hash of first file data and the cryptographic Hash of second file data are compared by step part 640, described When the cryptographic Hash of first file data is different from the cryptographic Hash of second file data, first data synchronizer unit 620 Second file data can be downloaded from the corresponding cloud server at least one described cloud server, then described the The second file data downloaded is sent to the terminal device by two data synchronizer units 640.
Alternatively, in the request receiving part 630 after the terminal device receives synchronization request, described the The cryptographic Hash of first file data can be sent at least one described cloud server by one data synchronizer unit 620 Corresponding cloud server, second file data and first file data are calculated by the correspondence cloud server Differential data, and first data synchronizer unit 620 only receives the differential data from the correspondence cloud server, then The differential data can be sent to the terminal device by second data synchronizer unit 640.
As described above, in the case where uploading data syn-chronization, second data synchronizer unit 640 can determine to need to The synchronous data of at least one described cloud server, and then set by first file system interface from the terminal The standby data for receiving at least a portion cloud server that upload at least one described cloud server.
Preferably, the data can be file, and the file can be various forms.
As an example, including the All Files data that the premises equipment requests are uploaded in the synchronization request(Under Face is referred to as the 3rd file data), the sync server can preserve the 3rd file data, and in the synchronous service At least one high in the clouds clothes can be preserved after device is synchronous with least one described cloud server, in the sync server The All Files data associated with the user of the terminal device stored in business device(Hereinafter referred to as the 4th file data).
Then, first data synchronizer unit 620 carries out the 3rd file data and the 4th file data Compare, when the 3rd file data is different from the 4th file data, the sync server can be by the described 3rd File data is sent to the corresponding cloud server at least one described cloud server, or the first data syn-chronization portion Part 620 can calculate the differential data of the 3rd file data and the 4th file data, and by the 3rd number of files The corresponding cloud server is sent to according to the differential data to the 4th file data.
As another example, the cryptographic Hash of the 3rd file data, described second are included in the synchronization request Data synchronizer unit 640 can preserve the cryptographic Hash of the 3rd file data, and the sync server with it is described extremely After a few cloud server synchronization, first data synchronizer unit 620 can preserve the Kazakhstan of the 4th file data Uncommon value.First data synchronizer unit 620 is by the Kazakhstan of the cryptographic Hash of the 3rd file data and the 4th file data Uncommon value is compared, described when the cryptographic Hash of the 3rd file data is different from the cryptographic Hash of the 4th file data Second data synchronizer unit 640 can receive the 3rd file data, the first data syn-chronization portion from the terminal device The corresponding cloud server that part 620 uploads to the 3rd file data at least one described cloud server, Huo Zhesuo Stating the first data synchronizer unit 620 can be based on the 3rd data file, the cryptographic Hash of the 3rd data file, described The cryptographic Hash of four data files calculates the differential data of the 3rd data file and the 4th data file, and by institute State the corresponding cloud server that differential data is uploaded at least one described cloud server.
Alternatively, determined in first data synchronizer unit 620 cryptographic Hash of the 3rd file data with it is described When the cryptographic Hash of 4th file data is different, second data synchronizer unit 640 is by the cryptographic Hash of the 4th file data The terminal document is sent to, then the terminal installation can be based on the 3rd data file, the 3rd data file Cryptographic Hash, the cryptographic Hash of the 4th data file calculate the difference of the 3rd data file and the 4th data file Divided data and the differential data is sent to second data synchronizer unit 640, then the first data syn-chronization portion The corresponding cloud server that part 620 again uploads to the differential data at least one cloud server.
Preferably, first file system interface is the interface for supporting http protocol.
As it was previously stated, each cloud server has its each exclusive login authentication mechanism, therefore, user needs to use Each exclusive user account number of cloud server signs in corresponding cloud server.The corresponding user of each cloud server Account number can be set to identical name on account by user, certainly, generally can be different names on account.The TCP/IP connects Relay part signs in at least one described cloud server using corresponding user account number, also, based on corresponding user account number Set up and connected with the TCP/IP length between corresponding cloud server.
Preferably, the data synchronization unit 600 also include wireless communication unit 650, its according to wireless communication protocol with The terminal device sets up wireless connection.
The sync server can support a user, and the user can have multiple terminal devices, for example, at least one Portion's smart mobile phone, at least one personal digital assistant PDA, at least one tablet personal computer etc..Alternatively, the sync server Multiple users can be supported, each user can have a multiple terminal devices, for example, at least one smart mobile phone, at least one Personal digital assistant PDA, at least one tablet personal computer etc..
For each user, the synchronous service can be wirelessly connected to by belonging to the multiple terminal devices of the user Device, and data syn-chronization is completed by the sync server, carried out without signing in each cloud server successively again Data syn-chronization.Thus, terminal only need to unify single application programming interfaces, by the single application programming interfaces with Data syn-chronization is completed between the sync server, and the terminal can be referred to by the single application programming interfaces Determine the corresponding relation of specific file and corresponding cloud server, such as specific file is to be uploaded to arrive for which cloud server. High in the clouds otherness matching is carried out in the sync server, according to the synchronization request received from terminal device, to corresponding high in the clouds Server uploads data or from corresponding cloud server downloading data.
Next, reference Fig. 5 and Fig. 7 is described into the data syn-chronization side for terminal device according to embodiments of the present invention Method and data synchronization unit.
As shown in figure 5, showing the flow of the method for data synchronization 500 for terminal device according to embodiments of the present invention Figure, deploys the first file system interface on the terminal device.
First, the method for data synchronization for terminal device according to embodiments of the present invention starts in step S501.
In step S510, data synchronization request, the data are sent to sync server by the first file system interface Synchronization request is used to indicate to carry out the terminal device and the data syn-chronization of sync server, wherein, the sync server with The connection of TCP/IP length is kept between at least one cloud server.
Then, in step S520, by first file system interface in the terminal device and the synchronous service Data syn-chronization is carried out between device.
For example, the terminal device is received recently from institute by first file system interface from the sync server State the synchronous data of at least one cloud server;Or the terminal device by first file system interface to described Sync server sends the data at least a portion cloud server that upload at least one described cloud server.
Finally, the method for data synchronization for terminal device according to embodiments of the present invention terminates in step S599.
Still illustrated with downloading data syn-chronization and uploading data syn-chronization.
First, for the synchronous situation of downloading data, set as it was previously stated, the sync server can preserve the terminal Standby last time is synchronous from the sync server(Download)The All Files data of file(Hereinafter referred to as the first file data), And after the sync server is synchronous with least one described cloud server, can be preserved in the sync server The All Files data associated with the user of the terminal device stored at least one described cloud server(Referred to below as For the second file data).
When first file data is different from second file data, the terminal device is from the synchronous service Device receives second file data, or receives second file data and first file from the sync server The differential data of data.
Alternatively, the sync server can preserve the cryptographic Hash of first file data, and can preserve Second file data.When the cryptographic Hash of first file data is different from the cryptographic Hash of second file data, The terminal device receives second file data from the sync server, or receives described from the sync server The differential data of second file data and first file data.
Alternatively, the sync server can preserve the cryptographic Hash of first file data, and described same The cryptographic Hash of second file data can be preserved in step server, without directly preserving second file data. When the cryptographic Hash of first file data is different from the cryptographic Hash of second file data, the sync server can be from Corresponding cloud server at least one described cloud server downloads second file data, and the terminal device is from institute State sync server and receive second file data, or second file data and institute are received from the sync server State the differential data of the first file data.
Alternatively, when the cryptographic Hash of first file data is different from the cryptographic Hash of second file data, The sync server only receives second file data and first file data from the correspondence cloud server Differential data, and the terminal device also only receives second file data and the described first text from the sync server The differential data of number of packages evidence.
On the other hand, in the case where uploading data syn-chronization, as described above, the terminal device can be asked in the synchronization Asking includes the All Files data that the premises equipment requests are uploaded(Hereinafter referred to as the 3rd file data), the synchronous service Device can preserve the 3rd file data.Then, the sync server is described come synchronization using the 3rd file data Corresponding cloud server at least one cloud server.
Alternatively, the terminal device can include the institute that the premises equipment requests are uploaded in the synchronization request There is file data(Hereinafter referred to as the 3rd file data)Cryptographic Hash, the sync server can preserve the 3rd number of files According to cryptographic Hash.Moreover, after the sync server is synchronous with least one described cloud server, the synchronous service All texts associated with the user of the terminal device stored at least one described cloud server can be preserved in device Number of packages evidence(Hereinafter referred to as the 4th file data)Cryptographic Hash.In the cryptographic Hash and the 4th file of the 3rd file data When the cryptographic Hash of data is different, the 3rd file data can be sent to the sync server by the terminal device.So Afterwards, the sync server using the 3rd file data come the corresponding high in the clouds at least one synchronous described cloud server Server.
Alternatively, the cryptographic Hash and the 4th number of files of the 3rd file data are determined in the sync server According to cryptographic Hash it is different when, the cryptographic Hash of the 4th file data is sent to the terminal document by the sync server, Then the terminal installation can be based on the 3rd data file, the cryptographic Hash of the 3rd data file, the 4th number The differential data of the 3rd data file and the 4th data file is calculated according to the cryptographic Hash of file and by the difference Divided data is sent to the sync server, and then the differential data is uploaded at least one cloud by the sync server again Hold the corresponding cloud server in server.
The single application programming interfaces that need to only unify on the terminal device, pass through the single application programming interfaces and institute State and data syn-chronization is completed between sync server, and the terminal can be specified by the single application programming interfaces Specific file and the corresponding relation of corresponding cloud server, such as specific file is to be uploaded to arrive for which cloud server.Accordingly Ground, signs in at least one described cloud server without using the user account number on the terminal device, also achieves Data syn-chronization between the terminal device and at least one described cloud server.
Preferably, the sync server is wirelessly connected with the terminal device, first file system Interface is the interface for supporting http protocol.
As shown in fig. 7, showing the signal of the data synchronization unit 700 for terminal device according to embodiments of the present invention Property block diagram.
Data synchronization unit 700 for terminal device according to embodiments of the present invention includes synchronization request and sends part 710 and data synchronizer unit 720.
The synchronization request sends part 710 and supports the first file system interface, and passes through first file system interface Data synchronization request is sent to sync server, the data synchronization request is used to indicate to carry out the terminal device and synchronous clothes The data syn-chronization of business device.The connection of TCP/IP length is kept between the sync server and at least one cloud server.
The data synchronizer unit 720 supports first file system interface, and passes through first file system interface Data syn-chronization is carried out between the terminal device and the sync server.
First, for the synchronous situation of downloading data, as it was previously stated, terminal device last time synchronously takes from described Business device is synchronous(Download)The All Files data of file are referred to as the first file data, and at least one described cloud server The All Files data associated with the user of the terminal device of middle storage are referred to as the second file data.The synchronous clothes Business device can preserve the cryptographic Hash of first file data and/or first file data, and can also preserve described The cryptographic Hash of second file data and/or second file data.
The synchronization request sends part 710 and sends data syn-chronization to sync server by first file system interface Request, first file data and second file data or first file are determined in the sync server When the cryptographic Hash of data is different from the cryptographic Hash of second file data, the data synchronizer unit 720 synchronously takes from described Business device receives second file data, or receives second file data and the described first text from the sync server The differential data of number of packages evidence.
On the other hand, in the case where uploading data syn-chronization, as described above, all texts that the premises equipment requests are uploaded Number of packages is according to the user's phase with the terminal device for being referred to as storing in the 3rd file data, at least one described cloud server The All Files data of association are referred to as the 4th file data.
The synchronization request sends part 710 and sends data syn-chronization to sync server by first file system interface Request, the data synchronization request can include the 3rd file data.Alternatively, the synchronization request sends part 710 Data synchronization request is sent to sync server by first file system interface, while the data synchronizer unit 720 send the 3rd file data to the sync server.
Alternatively, the synchronization request sends part 710 and sent out by first file system interface to sync server Data synchronization request is sent, the data synchronization request can include the cryptographic Hash of the 3rd file data.In the synchronous service When device determines that the cryptographic Hash of the 3rd file data is different from the cryptographic Hash of the 4th file data, the data syn-chronization portion Part 720 can receive the cryptographic Hash comparative result from the sync server(I.e. cryptographic Hash is different), the data synchronizer unit 720 ability send the 3rd file data to the sync server.Alternatively, described is determined in the sync server When the cryptographic Hash of three file datas is different from the cryptographic Hash of the 4th file data, the data synchronizer unit 720 can be from The sync server receives the cryptographic Hash of the 4th file data, and the data synchronizer unit 720 is based on the described 3rd number The 3rd data text is calculated according to file, the cryptographic Hash of the 3rd data file, the cryptographic Hash of the 4th data file The differential data of part and the 4th data file and the differential data is sent to the sync server.
The single application programming interfaces that need to only unify on the terminal device, pass through the single application programming interfaces and institute State and data syn-chronization is completed between sync server, and the terminal can be specified by the single application programming interfaces Specific file and the corresponding relation of corresponding cloud server, such as specific file is to be uploaded to arrive for which cloud server.Accordingly Ground, signs in at least one described cloud server without using the user account number on the terminal device, also achieves Data syn-chronization between the terminal device and at least one described cloud server.
Preferably, the terminal device is wirelessly connected with the sync server, first file system Interface is the interface for supporting http protocol.
Preferably, the data synchronization unit 700 also includes wireless communication unit 730, for according to wireless communication protocol Wireless connection is set up with the sync server.
Method of data synchronization and data synchronization unit according to embodiments of the present invention, by sync server maintenance and at least TCP/IP length connection between one cloud server, to keep the sync server and at least one described cloud server Between data syn-chronization, only terminal device need carry out data syn-chronization when, just set up between terminal device and sync server Data syn-chronization.Thus, without signing in at least one described cloud service using user account number on the terminal device In the case of device, the number set up by using unified application programming interfaces between the terminal device and the sync server According to synchronization.
Although describing example embodiment by reference to accompanying drawing here, it should be understood that above-mentioned example embodiment is merely exemplary , and be not intended to limit the scope of the invention to this.Those of ordinary skill in the art can carry out various changes wherein And modification, it is made without departing from the scope of the present invention and spirit.All such changes and modifications are intended to be included in appended claims Within required the scope of the present invention.

Claims (15)

1. a kind of method of data synchronization, applied in sync server, methods described includes:
The TCP/IP length between the sync server and at least one cloud server is kept to connect;
Connected using the TCP/IP length, keep the data between the sync server and at least one described cloud server It is synchronous;
Synchronization request is received from terminal device;
Data syn-chronization is carried out between the terminal device and the sync server;
The wherein described TCP/IP length connection kept between the sync server and at least one cloud server includes:Institute State in sync server, at least one described cloud server is signed in using user account number, wherein, each cloud service utensil There is corresponding user account number;For each cloud server, based on corresponding user account number, set up the cloud server with it is described TCP/IP length connection between sync server.
2. method of data synchronization as claimed in claim 1, it is characterised in that described to receive synchronization request bag from terminal device Include:
Receiving the synchronization from the terminal device by the first file system interface disposed in the sync server please Ask, the synchronization request indicates the data synchronization request at least one cloud server;And
The synchronization request is parsed, is identified in the sync server recently from the synchronization of at least one described cloud server Data.
3. method of data synchronization as claimed in claim 2, it is characterised in that described to be taken in the terminal device with the synchronization Carrying out data syn-chronization between business device includes:
By first file system interface by the data syn-chronization of the terminal device into the sync server recently from The synchronous data of at least one described cloud server;Or
At least one described cloud server will be uploaded to by being received by first file system interface from the terminal device In at least one of data.
4. method of data synchronization as claimed in claim 2, it is characterised in that
First file system interface is the interface for supporting http protocol.
5. a kind of method of data synchronization, applied to terminal device, methods described includes:
Data synchronization request, institute are sent to sync server by the first file system interface for being disposed on the terminal device State data synchronization request be used for indicate carry out the terminal device and the data syn-chronization of sync server, wherein, it is described synchronous to take It is engaged in keeping TCP/IP length to connect between device and at least one cloud server;
Data syn-chronization is carried out between the terminal device and the sync server by first file system interface;
The connection of TCP/IP length is kept to include between wherein described sync server and at least one cloud server:In the synchronization On server, at least one described cloud server is signed in using user account number, wherein, each cloud server has corresponding User account number;For each cloud server, based on corresponding user account number, the cloud server and the synchronous clothes are set up TCP/IP length connection between business device.
6. method of data synchronization as claimed in claim 5, it is characterised in that described to be existed by first file system interface Data syn-chronization is carried out between the terminal device and the sync server to be included:
The terminal device is received recently from described at least one by first file system interface from the sync server The synchronous data of individual cloud server;Or
The terminal device sent by first file system interface to the sync server to upload to it is described at least At least one of data in one cloud server.
7. method of data synchronization as claimed in claim 5, it is characterised in that
First file system interface is the interface for supporting http protocol.
8. a kind of data synchronization unit, applied in sync server, described device includes:
TCP/IP connection members, for keeping the TCP/IP length between the sync server and at least one cloud server to connect Connect;
First data synchronizer unit, for using TCP/IP length connection keep the sync server with it is described at least one Data syn-chronization between cloud server;
Receiving part is asked, for receiving synchronization request from terminal device;
Second data synchronizer unit, for carrying out data syn-chronization between the terminal device and the sync server;
Wherein described TCP/IP connection members, at least one described cloud server is signed in using user account number, wherein, each Cloud server has corresponding user account number;
For each cloud server, the TCP/IP connection members are based on corresponding user account number and set up and the cloud service TCP/IP length connection between device.
9. data synchronization unit as claimed in claim 8, it is characterised in that the synchronization request indicate to it is described at least one The data synchronization request of cloud server,
The request receiving part supports the first file system interface, parses the synchronization request, and identify recently from it is described to The synchronous data of a few cloud server.
10. data synchronization unit as claimed in claim 9, it is characterised in that second data synchronizer unit is supported described First file system interface, and by the data syn-chronization of the terminal device into the sync server recently from described at least one The synchronous data of individual cloud server;Or from terminal device reception will upload at least one described cloud server At least one of data.
11. data synchronization unit as claimed in claim 9, it is characterised in that
First file system interface is the interface for supporting http protocol.
12. data synchronization unit as claimed in claim 8, it is characterised in that described device also includes:Wireless communication unit, For setting up wireless connection according to wireless communication protocol and the terminal device.
13. a kind of data synchronization unit, applied to terminal device, described device includes:
Synchronization request sends part, supports the first file system interface, and by first file system interface to synchronous service Device sends data synchronization request, and the data synchronization request is used for the data for indicating to carry out the terminal device and sync server It is synchronous, wherein, the connection of TCP/IP length is kept between the sync server and at least one cloud server;
Data synchronizer unit, supports first file system interface, and by first file system interface in the terminal Data syn-chronization is carried out between equipment and the sync server;
The connection of TCP/IP length is kept to include between wherein described sync server and at least one cloud server:In the synchronization On server, at least one described cloud server is signed in using user account number, wherein, each cloud server has corresponding User account number;For each cloud server, based on corresponding user account number, the cloud server and the synchronous clothes are set up TCP/IP length connection between business device.
14. data synchronization unit as claimed in claim 13, it is characterised in that described device also includes:
Wireless communication unit, for setting up wireless connection according to wireless communication protocol and the sync server.
15. data synchronization unit as claimed in claim 13, it is characterised in that
First file system interface is the interface for supporting http protocol.
CN201310012928.7A 2013-01-14 2013-01-14 Method of data synchronization and data synchronization unit Active CN103929450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310012928.7A CN103929450B (en) 2013-01-14 2013-01-14 Method of data synchronization and data synchronization unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310012928.7A CN103929450B (en) 2013-01-14 2013-01-14 Method of data synchronization and data synchronization unit

Publications (2)

Publication Number Publication Date
CN103929450A CN103929450A (en) 2014-07-16
CN103929450B true CN103929450B (en) 2017-11-03

Family

ID=51147527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310012928.7A Active CN103929450B (en) 2013-01-14 2013-01-14 Method of data synchronization and data synchronization unit

Country Status (1)

Country Link
CN (1) CN103929450B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391747A (en) * 2014-09-03 2016-03-09 苏州派尔网络科技有限公司 Cloud intelligent equipment management method
CN105577829B (en) * 2016-02-02 2019-04-30 深圳市指点信息科技有限公司 A kind of method and system for realizing that data are synchronous in cloud platform
CN108076081B (en) * 2016-11-09 2021-02-26 菜鸟智能物流控股有限公司 Method, device and system for synchronizing service data
CN110602168B (en) * 2019-08-13 2022-03-01 平安科技(深圳)有限公司 Data synchronization method and device, computer equipment and storage medium
CN111935656B (en) * 2020-07-24 2021-12-14 深圳市沃特沃德软件技术有限公司 Method and device for long connection of IP data and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007080167A (en) * 2005-09-16 2007-03-29 Hitachi Information Systems Ltd Software resource distribution system and method, and program
CN1976275A (en) * 2006-12-15 2007-06-06 深圳市戴文科技有限公司 Data synchronizing system and method
CN102368737A (en) * 2011-11-25 2012-03-07 裘嘉 Cloud storage system and data access method thereof
CN102387167A (en) * 2010-09-02 2012-03-21 国基电子(上海)有限公司 Terminal equipment and data synchronization method thereof
CN102801783A (en) * 2012-06-29 2012-11-28 张建忠 Local cloud storing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007080167A (en) * 2005-09-16 2007-03-29 Hitachi Information Systems Ltd Software resource distribution system and method, and program
CN1976275A (en) * 2006-12-15 2007-06-06 深圳市戴文科技有限公司 Data synchronizing system and method
CN102387167A (en) * 2010-09-02 2012-03-21 国基电子(上海)有限公司 Terminal equipment and data synchronization method thereof
CN102368737A (en) * 2011-11-25 2012-03-07 裘嘉 Cloud storage system and data access method thereof
CN102801783A (en) * 2012-06-29 2012-11-28 张建忠 Local cloud storing method and system

Also Published As

Publication number Publication date
CN103929450A (en) 2014-07-16

Similar Documents

Publication Publication Date Title
CN103929450B (en) Method of data synchronization and data synchronization unit
US9367125B2 (en) Terminal apparatus for shooting and distributing video data and video-data distribution method
CN106021023B (en) Application program recovery method and device and terminal
CN101867613B (en) Content delivery CDN sub system and data synchronization method
EP2924952A1 (en) Data synchronization method and device
CN102710966A (en) Video live broadcast method and system based on HTTP (Hyper Text Transport Protocol)
CN104270406A (en) System And Associated Terminal, Method And Computer Program Product For Uploading Content
EP3022969B1 (en) Method and system for providing multiple service discovery in a wireless environment
CN102708192B (en) A kind of method and system of document sharing, equipment
CN103986764A (en) Equipment and method used for multi-client collaborative file uploading
US20140068018A1 (en) Content synchronization apparatus and method for cloud service system
CN102843425A (en) Method based on cloud storage instead of local storage, and communication terminal
CN103647870A (en) Terminal and terminal expression display method
CN102624768A (en) Method and system for carrying out file synchronization processing between different devices
CN103561281A (en) Multimedia data sharing method and device
CN103986646A (en) Message transmission method, system and terminal device
US9058311B1 (en) User timeframe selection for delivery of media resources
EP2955927B1 (en) Insertion of a content item to a media stream
CN107251529B (en) Method and apparatus for transmitting and receiving information between servers in content transmission network system
CN103763380A (en) Method and system for demonstrating data synchronously
CN102647470A (en) Cloud download method in on-line application platform and on-line application platform system
US20200275153A1 (en) System and method for pushing scheduled content to optimize network bandwidth
CN104092754A (en) File storage system and method
US9286365B2 (en) Data synchronizing system and method thereof
CN102685234A (en) Social-network-based address book updating and synchronizing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant