CN104917819B - A kind of method and system for realizing that data are synchronous - Google Patents
A kind of method and system for realizing that data are synchronous Download PDFInfo
- Publication number
- CN104917819B CN104917819B CN201510213772.8A CN201510213772A CN104917819B CN 104917819 B CN104917819 B CN 104917819B CN 201510213772 A CN201510213772 A CN 201510213772A CN 104917819 B CN104917819 B CN 104917819B
- Authority
- CN
- China
- Prior art keywords
- data
- information
- entity
- record information
- synchronization
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Abstract
The invention discloses a kind of method and devices for realizing data synchronization, comprising: when needing to carry out data synchronization, the record information of only synchrodata is determined whether according to the synchronization request of data;Only when the record information of synchrodata, according to the record information deposited in the synchronizing information of synchronization request more new data;When needing the record information and data entity of synchrodata, after the record information to synchronizing information for increasing data newly, determined whether to upload data entity according to the file verification value of data entity, to realize the synchronization of data entity;The synchronization request of data includes the record information and file verification value of data.The method of the present invention determines whether only to synchronize and whether carry out the upload of data entity to record information by judgement, reduce data it is synchronous when data traffic, avoid as the synchronous bring of data repeats storage and caused by data redundancy.
Description
Technical field
The present invention relates to synchronizing information technology, espespecially a kind of method and system for realizing that data are synchronous.
Background technique
With the development in wireless communication technique and market, movement has been opened in popularizing for the large area of Intelligent Terminal degree
The prelude of Internet era.People will more rely on the connections such as mobile terminal, such as smart phone, tablet computer, electric paper book
Internet is to obtain information.It is that the Internet era of representative is different from PC, it is more that mobile internet era will show terminal, platform
Sample trend.Bring user it is convenient while, mobile Internet introduces the problem of data fusion between more equipment.For reality
The consistency of data (such as picture, video, audio etc.), data synchronization technology come into being between existing equipment.
Currently, manufacturer generally uses the function of backup and reduction to carry out, data are synchronous, and data, which synchronize, to be needed the record of data
Information (such as filename, author etc.) and data entity are handled together as an entirety.That is, it needs to the record information of data and
Data entity is as whole progress while handling, according to the record information of data and data entity on the storage road of file server
The synchronizing information of diameter generation data.It, also can be by data when progress data are synchronous if be only modified to record information
Entity uploads to sync server together, while causing customer flow waste, increases the load pressure of sync server.
In addition, since the record information of data and data entity are synchronized processing as an entirety, if each user adopts
With different record information, then when data are synchronous, can repeat to transmit data entity, to cause because recording the difference of information
A large amount of data redundancy file, occupies the disk of a large amount of sync server and is not easy to synchronize the management of data.
Summary of the invention
In order to solve the above technical problem, the present invention provides a kind of method and system for realizing that data are synchronous, can save
Customer flow, mitigates the load pressure of sync server, while reducing the synchronous data redundancy of data.
In order to reach the object of the invention, the present invention provides a kind of methods for realizing that data are synchronous, need to carry out data same
When step, comprising:
The record information of only synchrodata is determined whether according to the synchronization request of data;
Only when the record information of synchrodata, believed according to the record deposited in the synchronizing information of synchronization request more new data
Breath;When needing the record information and data entity of synchrodata, after the record information to synchronizing information for increasing data newly, according to data reality
The file verification value of body determines whether to upload data entity, to realize the synchronization of data entity;
The synchronization request includes the record information and file verification value of data.
Further, synchronizing information includes: the client synchronization information and sync server synchronizing information of data.
Further, before this method further include: preset the record information and data entity for carrying out data respectively
It is synchronous, pass through the record information of data generation synchronizing information synchronous with data entity.
Further, it is determined that only whether the record information of synchrodata specifically includes:
When data carry out the synchronization request, when having had the record information of data in the synchronizing information, determination is only same
Walk the record information of the data;
When synchronizing information does not include the record information of data, the record information and the institute for needing synchrodata are determined
State data entity.
Further, this method further include:
Each data are marked by different data client marks and data server identification respectively, there are identical
When data client mark and data server identification, determine there has been the record information of the data in the synchronizing information;
There is no when identical data client mark and data server identification, the note for not including the data in synchronizing information is determined
Record information.
Further, specific according to the record information deposited in the synchronizing information of the record information update data of synchronization request
Include:
Record information is deleted or modified according to the synchronization request, the note deposited in the synchronizing information is deleted or modified
Information is recorded, realizes that data are synchronous.
Further, determined whether to upload data entity according to the file verification value of data entity, to realize data entity
Synchronize and specifically include:
With the file verification value of the data entity of the data of the synchronization request, the synchronous all data of user are matched
Data entity,
When being worth identical data entity comprising file verification, then by the storage of data entity identical with this document check value
Routing update realizes the synchronization of data entity into the synchronizing information of data;
It is worth identical data entity not comprising file verification, then uploads the data entity of data to file server, it will be upper
The store path of the data entity of biography is added in the synchronizing information of data, realizes the synchronization of data entity.
Further, file verification value is 32 value of cyclic redundancy check (CRC).
Further, this method further include: the corresponding subscriber identity information of each user is set, by all numbers of same user
According to the synchronizing information be associated with its subscriber identity information.
Further, this method further include:
Using identical access credentials and information encryption key, the synchronous data entity of the data and record information are carried out
Synchronization.
Further, after completion data entity is synchronous with record information, this method further include: it is real to delete the data
The access credentials and information encryption key of body and record synchronizing information.
On the other hand, the application also provides a kind of device for realizing that data are synchronous, comprising: determination unit and synchronization unit;
Wherein,
Determination unit determines whether the record information of only synchrodata for the synchronization request according to data;
Synchronization unit includes synchronous recording module and synchronization entity module;Wherein,
Synchronous recording module, when record information for only synchrodata, synchronous according to synchronization request more new data is believed
The record information deposited in breath;
Synchronization entity module is specifically used for, and when needing the record information and data entity of synchrodata, increases the record of data newly
After information to synchronizing information, determined whether to upload data entity according to the file verification value of data entity, to realize data entity
Synchronization;
The synchronization request includes the record information and file verification value of data;
The synchronizing information includes the client synchronization information and sync server synchronizing information of data.
Further, it is determined that unit is specifically used for,
When data carry out the synchronization request, when having had the record information of data in the synchronizing information, determination is only same
Walk the record information of the data;
When synchronizing information does not include the record information of data, the record information and the institute for needing synchrodata are determined
State data entity.
Further, which further includes marking unit, for passing through different data client marks and data respectively
Server identification marks each data, described in determining when identical data client mark and data server identification
There is the record information of the data in synchronizing information;There is no identical data client mark and data server identifications
When, determine the record information for not including the data in synchronizing information.
Further, synchronous recording module is specifically used for, only when the record information of synchrodata,
Record information is deleted or modified according to the synchronization request, the note deposited in the synchronizing information is deleted or modified
Information is recorded, realizes that data are synchronous.
Further, synchronization entity module when for needing the record information and data entity of synchrodata, increases data newly
Information is recorded into synchronizing information,
With the file verification value of the data entity of the data of the synchronization request, the synchronous all data of user are matched
Data entity,
When being worth identical data entity comprising file verification, then by the storage of data entity identical with this document check value
Routing update realizes the synchronization of data entity into the synchronizing information of data;
It is worth identical data entity not comprising file verification, then uploads the data entity of data to file server, it will be upper
The store path of the data entity of biography is added in the synchronizing information of data, realizes the synchronization of data entity.
Further, which further includes synchronization association unit, will for the corresponding subscriber identity information of each user to be arranged
The synchronizing information of all data of same user is associated with its subscriber identity information.
Compared with prior art, technical scheme includes: when needing to carry out data to synchronize, to be asked according to the synchronization of data
It asks, it is determined whether the only record information of synchrodata;Only when the record information of synchrodata, according to synchronization request more new data
The record information deposited in synchronizing information;When needing the record information and data entity of synchrodata, the record information of data is increased newly
To after synchronizing information, determined whether to upload data entity according to the file verification value of data entity, to realize the same of data entity
Step;The synchronization request of data includes the record information and file verification value of data.The method of the present invention is determined whether only by judgement
The upload of data entity is synchronized and whether carried out to record information, data traffic when data synchronize is reduced, avoids
Data redundancy caused by as the synchronous bring repetition storage of data.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart that the present invention realizes the synchronous method of data;
Fig. 2 is the structural block diagram that the present invention realizes the synchronous device of data;
Fig. 3 is the method flow diagram of first embodiment of the invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Fig. 1 is the flow chart that the present invention realizes the synchronous method of data, need to carry out data it is synchronous when, as shown in Figure 1, packet
It includes:
Step 100, the synchronization request according to data, it is determined whether the only record information of synchrodata;Here, data is same
Step request includes the record information and file verification value of data.The record information of determining only synchrodata executes step 101;It needs
When the record information and data entity of synchrodata, step 102 is executed.
Before the method for the present invention further include: the record information for presetting progress data respectively is synchronous with data entity,
Pass through the record information of data generation synchronizing information synchronous with data entity.Here, synchronizing information be include record information
The information synchronous with the data of the store path of data entity belongs to the common knowledge of those skilled in the art.
In this step, it is determined whether only the record information of synchrodata specifically includes:
When having had the record information of data when data synchronize request, in synchronizing information, determining only synchrodata
Record information;
When synchronizing information does not include the record information of data, the record information and data entity for needing synchrodata are determined.
If do not include the record information of data in synchronizing information, illustrate that synchronizing information did not carried out data before
It is synchronous, it is therefore desirable to the record information and data entity of synchrodata.
In the method for the present invention, synchronizing information includes: client synchronization information and sync server synchronizing information.
The method of the present invention further include:
Each data are marked by different data client marks and data server identification respectively, there are identical data
When client identification and data server identification, determine there has been the record information of data in synchronizing information;There is no identical
When data client mark and data server identification, the record information for not including data in synchronizing information is determined.
It should be noted that marking each data by data client mark and data server identification;Here, data visitor
Family end mark and data server identification can be corresponding code identification or letter mark or with codings and letter mixing structure
At mark or other distinguishing identifiers, as long as it is unique that mark data may be implemented.By data with data client identify and
After data server mark is distinguished, if a data are synchronized excessively, the data client mark and data of data
Server identification will not change, and therefore, synchronous letter can be determined with data server identification by being identified by data client
In breath whether include data record information.
Further, by whether including the record information of data, if including record information, it is same that data are carried out
Step is only modified to having deposited record information comprising modifying to the record information deposited or deletion record information, or delete
Except record information, therefore synchronous data are marked, when synchronizing processing to data, according to the label of data to phase
The client synchronization information and server synchronizing information answered are handled.Data client mark can use client identity mark
Know (CID), data server mark can be realized using data server identity (SID).
When the record information of step 101, only synchrodata, synchronous according to the record information update data of synchronization request is believed
The record information deposited in breath;
It is specific according to the record information deposited in the synchronizing information of the record information update data of synchronization request in this step
Include:
Record information is deleted or modified according to synchronization request, the record information deposited in synchronizing information is deleted or modified,
Realize that data are synchronous.
It should be noted that by the determination of the only record information of synchrodata, compared with prior art, without being counted
Factually when the synchronization of body, data entity can be greatly reduced and upload the flow generated.
Step 102 when needing the record information and data entity of synchrodata, increases the record information of data newly to synchronizing information
Afterwards, determined whether to upload data entity according to the file verification value of data entity, to realize the synchronization of data entity.
In this step, determined whether to upload data entity according to the file verification value of data entity, to realize data entity
Synchronize and specifically include:
With the file verification value of the data entity of the data of synchronization request, the data for matching the synchronous all data of user are real
Body,
When being worth identical data entity comprising file verification, then by the storage of data entity identical with this document check value
Routing update realizes the synchronization of data entity into the synchronizing information of data;
It is worth identical data entity not comprising file verification, then uploads the data entity of data to file server, it will be upper
The store path of the data entity of biography is added in the synchronizing information of data, realizes the synchronization of data entity.
It should be noted that passing through the data entity of synchronous data for needing to carry out the synchronous data of data entity
File verification value all data synchronous with user data entity, it is determined whether data entity upload is carried out, for deleting
Before the document entities of synchronizing information of data do not delete data entity, therefore when carrying out delete operation due to the present invention
Without carrying out repeating upload, to reduce due to the synchronous customer flow generated of data, in addition, being carried out using file verification value
The judgement of data entity is avoided since data entity repeats disk redundancy caused by uploading.
Each data packet contains corresponding respective client synchronization information and sync server synchronizing information, that is, passes through clothes
Business device synchronizing information can decide whether the synchronization for only carrying out record information, reduce the data traffic of user.Synchronize number
When according to downloading, the data for recording information by client synchronization acquisition of information and obtaining synchrodata from file server are real
Body.
Before the method for the present invention further include: send the file verification value of the data entity of data to sync data service device.
File check value is cyclic redundancy check (CRC32) value in the method for the present invention.
The method of the present invention further include: the corresponding subscriber identity information of each user is set, by the synchronization of the data of same user
Information is associated with its subscriber identity information.
Subscriber identity information can be determined by User Identity, and User Identity must uniquely be marked
Know, can be the unique identification of terminal device, be also possible to other preset unique identifications.As long as user area may be implemented
Point, the synchronous data of different user can be distinguished by subscriber identity information, by synchronizing information and user identity
Information association by incidence relation, carries out the synchronization of data, updates synchronizing information when user's progress data are synchronous.
The method of the present invention further include:
Using identical access credentials and information encryption key, carries out the synchronous data entity of data and record the same of information
Step.
After completion data entity is synchronous with record information, the method for the present invention further include: delete data entity and record
The access credentials and information encryption key of synchronizing information.
The method of the present invention determines whether only to synchronize to record information and whether carry out the upper of data entity by judgement
It passes, reduces data traffic when data synchronize, avoid and repeat data redundancy caused by storing caused by data synchronize.
Fig. 2 is the structural block diagram that the present invention realizes the synchronous device of data, as shown in Fig. 2, determination unit and synchronization unit;
Wherein,
Determination unit determines whether the record information of only synchrodata for the synchronization request according to data;
Synchronization unit includes synchronous recording module and synchronization entity module;Wherein,
Synchronous recording module, when record information for only synchrodata, synchronous according to synchronization request more new data is believed
The record information deposited in breath;
Synchronization entity module when for needing the record information and data entity of synchrodata, increases the record information of data newly
To after synchronizing information, determined whether to upload data entity according to the file verification value of data entity, to realize the same of data entity
Step;
Synchronization request includes the record information and file verification value of data;
Synchronizing information includes the client synchronization information and sync server synchronizing information of data.
Determination unit is specifically used for,
When having had the record information of data when data synchronize request, in synchronizing information, determining only synchrodata
Record information;
When synchronizing information does not include the record information of data, the record information and data entity for needing synchrodata are determined.
Apparatus of the present invention further include marking unit, for passing through different data client marks and data server respectively
Mark marks each data, there are when identical data client mark and data server identification, determines in synchronizing information and has deposited
There is the record information of data;There is no when identical data client mark and data server identification, determine in synchronizing information
Record information not comprising data.
Synchronous recording module is specifically used for, only when the record information of synchrodata,
Record information is deleted or modified according to synchronization request, the record information deposited in synchronizing information is deleted or modified,
Realize that data are synchronous.
Synchronization entity module is specifically used for, and when needing the record information and data entity of synchrodata, increases the record of data newly
Information into synchronizing information,
With the file verification value of the data entity of the data of synchronization request, the data for matching the synchronous all data of user are real
Body,
When being worth identical data entity comprising file verification, then by the storage of data entity identical with this document check value
Routing update realizes the synchronization of data entity into the synchronizing information of data;
It is worth identical data entity not comprising file verification, then uploads the data entity of data to file server, it will be upper
The store path of the data entity of biography is added in the synchronizing information of data, realizes the synchronization of data entity.
Apparatus of the present invention further include synchronization association unit, will be same for the corresponding subscriber identity information of each user to be arranged
The synchronizing information of all data of user is associated with its subscriber identity information.
File verification value of the present invention is CRC32 value.
It should be noted that can be disposed on data same for each unit and/or module in the device of the invention
Step system, or connect with each server in data synchronous system, for example, determination unit setting is carried out in sync server
Whether only synchronous recording module and client and sync server are attached realization by the determination of the record information of synchrodata
Synchronization entity module is set to file server and is made whether to upload the judgement of data entity by the synchronization for recording information.
The method of the present invention is carried out below by way of specific embodiment to understand that detailed description, embodiment are only used for stating this hair
It is bright, it is not intended to restrict the invention the protection scope of method.
Embodiment 1
The present embodiment synchronizes data instance with customer end A and is illustrated, and personally identifies in the present embodiment
(PID) as subscriber identity information, SID as data server mark, CID as data client mark, by establish with
The mapping relations of PID, SID and CID carry out the processing of user data synchronization, that is, establish with the mapping relations of PID, SID, CID,
The client synchronization information that the synchronous data of user are obtained using CID as keyword query is obtained using SID as keyword query
The sync server synchronizing information of the synchronous data of user.
The present embodiment, the setting and connection that each unit of the present invention and module are dispersed in data synchronous system will
The determination that sync server is made whether the record information of only synchrodata is arranged in determination unit, by synchronous recording module and visitor
Family end is attached with sync server realizes the synchronous of record information, and synchronization entity module is set to file server and is carried out
Whether the judgement of data entity is uploaded.
Fig. 3 is the flow chart of first embodiment of the invention method, as shown in Figure 3, comprising:
Step 300, client send out the file verification value of data client mark, the record information of data and data entity
It is sent to sync server.Here, if data are the data of sync server synchronized mistake, one in the data information uploaded
As further include data state parameter information, general pass through state parameter status (N/U/D) indicate: where N indicates new
Increase, U indicates modification, D indicates to delete.
In addition, the present embodiment, when client sends above- mentioned information, using the sync server obtained from sync server
Access credentials and information encryption key.
Step 301 inquires sync server synchronizing information according to CID sync server, it is determined whether only synchrodata
Record information;
This step specifically includes:
When data synchronize request, there is the record information of the corresponding CID of data in sync server synchronizing information
When, determine the record information of only synchrodata;
When synchronizing information do not include the corresponding CID of data record information when, determine need synchrodata record information and
Data entity.
When step 302, determination need the record information and data entity of synchrodata, SID and the file verification of data are uploaded
It is worth file server;
It should be noted that the present embodiment is by synchronization entity module and file server, therefore by the SID and file of data
Check value is sent to file server.In the present embodiment file check value with CRC32 preferably.
Step 303, file server determine whether to upload data entity according to the file verification value of data entity;
This step specifically includes:
With the file verification value of the data entity of synchronization request data, all numbers that user is synchronized to file server are matched
According to data entity,
When being worth identical data entity comprising file verification, then by the storage road of the identical data entity of this document check value
Diameter is updated into the synchronizing information of data, realizes the synchronization of data entity;
It is worth identical data entity not comprising file verification, then uploads the data entity of data to file server, it will be upper
The store path of the data entity of biography is added in the synchronizing information of data, realizes the synchronization of data entity.
Step 304, basis are it is confirmed that no upload data entity, carries out the synchronization of data entity;Specifically, including file
When the identical data entity of check value, step 3050~3051 are executed;When being worth identical data entity not comprising file verification, hold
Row step 3060,
The store path of the identical data entity of this document check value is updated to sync server is synchronous and is believed by step 3050
In breath;
Step 3051, the modification sync client synchronizing information according to sync server synchronizing information;
Step 3060, file server feed back the data entity for uploading data to sync server;Here, the information of feedback
Determine which data entity uploaded according to the SID in the sync server synchronizing information of the data set in sync server;
Step 3061, sync server determine client according to the SID that file server feeds back the data for uploading data entity
The CID in synchronizing information is held, notifies client to upload data entity by CID;
Step 3062, client upload the data entity of synchronous data, and the store path of the data entity of upload is added
It is added in client synchronization information;
Step 3063, the update feedback of client synchronization information to sync server, sync server are same according to client
The update of information is walked, the store path information of data entity in synchronized server sync information.
Step 307, sync server are synchronous according to the CID in the synchronous client synchronization information of data, sync server
The SID and subscriber identity information PID of information are established and are believed with PID, CID and SID at the synchronization map relationship of the user of mapping relations
Breath.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use
Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention
Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (15)
1. a kind of method for realizing data synchronization, which is characterized in that when needing to carry out data synchronization, comprising:
The record information of only synchrodata is determined whether according to the synchronization request of data;
Only when the record information of synchrodata, according to the record information deposited in the synchronizing information of synchronization request more new data;It needs
When the record information and data entity of synchrodata, after the record information to synchronizing information for increasing data newly, according to data entity
File verification value determines whether to upload data entity, to realize the synchronization of data entity;
The synchronization request includes the record information and file verification value of data;
The record information for determining whether only synchrodata includes:
When data carry out the synchronization request, go out in the synchronizing information to have had the record of data according to the marker for judgment of data
When information, the record information for only synchronizing the data is determined;
When the marker for judgment according to data, which goes out synchronizing information, does not include the record information of the data, determination needs synchrodata
The record information and the data entity.
2. the method according to claim 1, wherein the synchronizing information includes: the client synchronization letter of data
Breath and sync server synchronizing information.
3. the method according to claim 1, wherein before this method further include: preset and carry out institute respectively
The record information for stating data is synchronous with data entity, generates together by the way that the record information of the data is synchronous with data entity
Walk information.
4. the method according to claim 1, wherein this method further include: pass through different data consumers respectively
End mark and data server identification mark each data, and there are identical data client mark and data server identifications
When, determine there has been the record information of the data in the synchronizing information;There is no identical data clients to identify sum number
When according to server identification, the record information for not including the data in synchronizing information is determined.
5. according to the method described in claim 2, it is characterized in that, the record information update data according to synchronization request
The record information deposited in synchronizing information specifically includes:
Record information is deleted or modified according to the synchronization request, the record letter deposited in the synchronizing information is deleted or modified
Breath realizes that data are synchronous.
6. the method according to claim 1, wherein described determine whether according to the file verification value of data entity
Data entity is uploaded, to realize that synchronizing for data entity specifically includes:
With the file verification value of the data entity of the data of the synchronization request, the number of the synchronous all data of user is matched
Factually body,
When being worth identical data entity comprising file verification, then by the store path of data entity identical with this document check value
It updates in the synchronizing information of data, realizes the synchronization of data entity;
It is worth identical data entity not comprising file verification, then uploads the data entity of data to file server, by upload
The store path of data entity is added in the synchronizing information of data, realizes the synchronization of data entity.
7. method according to claim 1 or 6, which is characterized in that the file verification value is cyclic redundancy check (CRC) 32
Value.
8. the method according to claim 1, wherein this method further include: the corresponding user's body of each user is arranged
Part information, the synchronizing information of all data of same user is associated with its subscriber identity information.
9. the method according to claim 1, wherein this method further include:
Using identical access credentials and information encryption key, carries out the synchronous data entity of the data and record the same of information
Step.
10. according to the method described in claim 9, it is characterized in that, being somebody's turn to do after completion data entity is synchronous with record information
Method further include: delete the data entity and record the access credentials and information encryption key of synchronizing information.
11. a kind of device for realizing that data are synchronous characterized by comprising determination unit and synchronization unit;Wherein,
Determination unit when synchronizing request for data, goes out to have had data in synchronizing information according to the marker for judgment of data
Record information when, determine and only synchronize the record information of the data;
When the marker for judgment according to data, which goes out synchronizing information, does not include the record information of the data, determination needs synchrodata
The record information and the data entity;
Synchronization unit includes synchronous recording module and synchronization entity module;Wherein,
Synchronous recording module, when record information for only synchrodata, according in the synchronizing information of synchronization request more new data
The record information deposited;
Synchronization entity module is specifically used for, and when needing the record information and data entity of synchrodata, increases the record information of data newly
To after synchronizing information, determined whether to upload data entity according to the file verification value of data entity, to realize the same of data entity
Step;
The synchronization request includes the record information and file verification value of data;
The synchronizing information includes the client synchronization information and sync server synchronizing information of data.
12. device according to claim 11, which is characterized in that the device further includes marking unit, for passing through respectively
Different data client marks and data server identification mark each data, there are identical data client mark and
When data server identifies, determine there has been the record information of the data in the synchronizing information;There is no identical data
When client identification and data server identification, the record information for not including the data in synchronizing information is determined.
13. device according to claim 11, which is characterized in that the synchronous recording module is specifically used for, only same step number
According to record information when,
Record information is deleted or modified according to the synchronization request, the record letter deposited in the synchronizing information is deleted or modified
Breath realizes that data are synchronous.
14. device according to claim 11, which is characterized in that the synchronization entity module, for needing synchrodata
When recording information and data entity, the record information of data is increased newly into synchronizing information,
With the file verification value of the data entity of the data of the synchronization request, the number of the synchronous all data of user is matched
Factually body,
When being worth identical data entity comprising file verification, then by the store path of data entity identical with this document check value
It updates in the synchronizing information of data, realizes the synchronization of data entity;
It is worth identical data entity not comprising file verification, then uploads the data entity of data to file server, by upload
The store path of data entity is added in the synchronizing information of data, realizes the synchronization of data entity.
15. device according to claim 11, which is characterized in that the device further includes synchronization association unit, for being arranged
Each corresponding subscriber identity information of user closes the synchronizing information of all data of same user and its subscriber identity information
Connection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510213772.8A CN104917819B (en) | 2015-04-29 | 2015-04-29 | A kind of method and system for realizing that data are synchronous |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510213772.8A CN104917819B (en) | 2015-04-29 | 2015-04-29 | A kind of method and system for realizing that data are synchronous |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104917819A CN104917819A (en) | 2015-09-16 |
CN104917819B true CN104917819B (en) | 2019-01-01 |
Family
ID=54086517
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510213772.8A Active CN104917819B (en) | 2015-04-29 | 2015-04-29 | A kind of method and system for realizing that data are synchronous |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104917819B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115277681B (en) * | 2022-07-29 | 2024-04-02 | 山石网科通信技术股份有限公司 | File synchronization method and device for avoiding conflict in synchronization process |
CN116016496A (en) * | 2023-01-30 | 2023-04-25 | 中国联合网络通信集团有限公司 | Real-time file synchronization method, device, equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101325478A (en) * | 2008-08-06 | 2008-12-17 | 北京北纬通信科技股份有限公司 | Method and system for data synchronization |
CN101500208A (en) * | 2008-01-31 | 2009-08-05 | 三星电子株式会社 | Data synchronization method and system between devices |
CN102291453A (en) * | 2011-08-09 | 2011-12-21 | 中兴通讯股份有限公司 | Data synchronization method and device |
CN102624768A (en) * | 2011-01-28 | 2012-08-01 | 腾讯科技(深圳)有限公司 | Method and system for carrying out file synchronization processing between different devices |
CN103457905A (en) * | 2012-05-28 | 2013-12-18 | 腾讯科技(深圳)有限公司 | Data synchronizing method, data synchronizing system and data synchronizing device |
-
2015
- 2015-04-29 CN CN201510213772.8A patent/CN104917819B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101500208A (en) * | 2008-01-31 | 2009-08-05 | 三星电子株式会社 | Data synchronization method and system between devices |
CN101325478A (en) * | 2008-08-06 | 2008-12-17 | 北京北纬通信科技股份有限公司 | Method and system for data synchronization |
CN102624768A (en) * | 2011-01-28 | 2012-08-01 | 腾讯科技(深圳)有限公司 | Method and system for carrying out file synchronization processing between different devices |
CN102291453A (en) * | 2011-08-09 | 2011-12-21 | 中兴通讯股份有限公司 | Data synchronization method and device |
CN103457905A (en) * | 2012-05-28 | 2013-12-18 | 腾讯科技(深圳)有限公司 | Data synchronizing method, data synchronizing system and data synchronizing device |
Also Published As
Publication number | Publication date |
---|---|
CN104917819A (en) | 2015-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9112936B1 (en) | Systems and methods for ephemeral eventing | |
CN101009516B (en) | A method, system and device for data synchronization | |
WO2016192327A1 (en) | Network-based file cloud synchronization method | |
EP2200222A1 (en) | A data synchronization method, system and device | |
US20100194896A1 (en) | Automatically tagging images with nearby short range communication device information | |
CN103605798A (en) | Method for directly operating file stored at cloud end | |
CN104348859B (en) | File synchronisation method, device, server, terminal and system | |
KR20140031451A (en) | Apparatus and metoho for synchronizing a contents in cloud service system | |
CN102736923B (en) | Software customization installation method and system | |
CN104238819A (en) | Detection method and system for display screen state in mobile terminal | |
CN104378234A (en) | Cross-data-center data transmission processing method and system | |
CN103078899A (en) | Method and device for synchronizing enterprise address book | |
US20170229146A1 (en) | Real-time content editing with limited interactivity | |
CN102882851B (en) | The generation method of address list and server | |
CN105872168A (en) | Address list update method and device | |
CN104917819B (en) | A kind of method and system for realizing that data are synchronous | |
CN102594874B (en) | Synchronization processing method and device | |
CN104063475A (en) | User-defined list processing method and device | |
US9436769B2 (en) | Automatic device upload configuration | |
CN104301438A (en) | File uploading method | |
WO2018001054A1 (en) | Method and device for synchronizing cloud desktop data | |
CN105718496A (en) | cross-platform file attribute synchronization method and computer readable storage medium | |
CN107528909A (en) | A kind of synchronous method of network communication contact book data cloud | |
CN106657360A (en) | Synchronization method and system for NIS servers under Linux system | |
CN102148853A (en) | Method for synchronizing contact information |
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 |