CN103685385A - Method, system and device for file synchronization - Google Patents

Method, system and device for file synchronization Download PDF

Info

Publication number
CN103685385A
CN103685385A CN201210337118.4A CN201210337118A CN103685385A CN 103685385 A CN103685385 A CN 103685385A CN 201210337118 A CN201210337118 A CN 201210337118A CN 103685385 A CN103685385 A CN 103685385A
Authority
CN
China
Prior art keywords
file
daily record
file operation
synchronization
synchronous
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210337118.4A
Other languages
Chinese (zh)
Inventor
李勇
孙悦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201210337118.4A priority Critical patent/CN103685385A/en
Publication of CN103685385A publication Critical patent/CN103685385A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, a system and a device for file synchronization. After a synchronizing terminal monitors that a file to be updated is updated to an updated file, file operating information which is used for representing all updating operations which are executed for updating the file to be updated to the updated file is provided to a synchronized terminal in a form of a file operation log. After the file operation log is obtained by the synchronized terminal, an updating operation is executed on the corresponding file to be updated according to the file operating information in the file operation log so as to realize file synchronization with the synchronizing terminal. Therefore, processing resource consumption which is caused by a large quantity of calculation work about file difference comparison can be effectively avoided. In particular, under the condition of the participation of mobile equipment in synchronization, the problems that when file synchronization is involved by the mobile terminal equipment through the utilization of a traditional difference synchronization method, the calculation efficiency is low, and insufficient processing resources, such as large power consumption are caused are solved.

Description

A kind of mthods, systems and devices of file synchronization
Technical field
The present invention relates to data service field and cloud computing field, relate in particular to a kind of mthods, systems and devices of file synchronization.
Background technology
Telefile is synchronously widely used in the fields such as remote backup, Web and ftp website mirroring, content distributing network, web access.Its essence is the system based on shown in Fig. 1, between cloud sync client, or cloud sync client and cloud synchronization server end are while having file synchronization demand, utilize minimal network transmission quantity, within the shortest time, make by the file update in synchronously holding for comprise with synchronous end corresponding upgraded treat the technology that synchronous documents is consistent.After realizing file synchronization, synchronously end is with consistent by the corresponding document version in synchronously holding.
Wherein, synchronous end refers to comprise and upgrades cloud sync client or the cloud synchronization server end for the treatment of synchronous documents, and by synchronous end, referred to and treat synchronous documents according to described renewal, upgrades cloud sync client or the cloud synchronization server end of the corresponding document of self storage.
Realize at present the synchronous method of telefile and comprise full dose synchronous method and residual quantity synchronous method.Wherein, full dose synchronous method is: synchronous end is sent to and is synchronously held after this document is copied completely after monitoring and needing synchronous file to upgrade, and by synchronous end, is utilized this document to upgrade corresponding original document, thereby realizes the synchronous of file.Because the method is that whole file is carried out to copy transmissions, therefore, in the situation that file is larger, can take a large amount of network bandwidths, completing the synchronous time also can be longer.
Traditional residual quantity synchronous method is: after synchronous end monitors renewal and needs synchronous file to upgrade, this document is carried out to cutting formation piecemeal summary info, and piecemeal summary info is sent to and is synchronously held; Quilt is synchronous to be held by execution piecemeal summary info and by the file quotient of difference pair of synchronous documents, thereby determines the blocks of files that need upgrade; The blocks of files of definite need being upgraded by synchronous end sends to synchronous end, and the synchronous end of request sends the residual quantity file fragment of the blocks of files of upgrading corresponding to need, and the residual quantity file fragment sending according to synchronous end is realized the synchronous of file.With respect to full dose synchronous method, owing to adopting traditional residual quantity synchronous method can avoid transmission to need synchronous whole file, and only need to transmit residual quantity file fragment, thereby save transfer resource.
Yet, in traditional residual quantity synchronous method, execute file quotient of difference to time need to carry out a large amount of residual quantity and calculate and comparison work, can expend very large processing resource.Especially when by synchronous end during for mobile device, due to mobile device computing capability and electric quantitative limitation, make its processing resource that is difficult to provide enough and to complete traditional residual quantity synchronous method.
Summary of the invention
The embodiment of the present invention provides a kind of method and system of file synchronization, in order to solve in prior art, exist to carry out the problem that heap file residual quantity comparing calculation could be realized file synchronization.
The embodiment of the present invention also provides a kind of device of synchronous end and the device that a kind of quilt is synchronously held.
The embodiment of the present invention is by the following technical solutions:
A system for file synchronization, comprises synchronous end and is synchronously held, wherein:
Synchronous end, for at file update to be updated for after transaction file, obtain file operation daily record, and described file operation daily record is offered and synchronously held, wherein, file operation log packet contains for representing that by file update to be updated be the file operation information that the performed update all of transaction file operates;
The file operation daily record providing for obtaining described synchronous end is synchronously provided; According to the described file operation information comprising in file operation daily record, corresponding file to be updated is carried out to described renewal operation.
A method for file synchronization, comprising:
Synchronous end for after transaction file, obtains file operation daily record at file update to be updated, and wherein, file operation log packet is containing for representing that by file update to be updated be the performed update all of transaction file operates file operation information;
Described file operation daily record is offered and synchronously held, indicate described quilt synchronously to hold according to the file operation information comprising in described file operation daily record, corresponding file to be updated is carried out and upgraded operation.
A method for file synchronization, also comprises:
Quilt synchronously end obtains the file operation daily record that described synchronous end provides, and wherein, file operation log packet contains for representing that by file update to be updated be the file operation information that the performed update all of transaction file operates;
According to the file operation information comprising in file operation daily record, corresponding file to be updated is carried out to described renewal operation.
A device for synchronous end, comprising:
Daily record obtains unit, at file update to be updated for after transaction file, obtain file operation daily record, wherein, file operation log packet is containing for representing that by file update to be updated be the performed update all of transaction file operates file operation information;
Daily record provides unit, for the file operation daily record that described daily record acquisition unit is obtained, offers and is synchronously held, and indicates described quilt synchronously to hold according to the file operation information comprising in described file operation daily record, and corresponding file to be updated is carried out and upgraded operation.
The device that quilt is synchronously held, comprising:
Daily record obtains unit, the file operation daily record providing for obtaining synchronous end, and wherein, file operation log packet contains for representing that by file update to be updated be the file operation information that the performed update all of transaction file operates;
File update unit, the file operation information comprising for obtain the file operation daily record of unit acquisition according to described daily record, carries out described renewal operation to corresponding file to be updated.
The beneficial effect of the embodiment of the present invention is as follows:
The embodiment of the present invention directly completes file synchronization by the mode of log file Update log and transfer files Operation Log, and the right evaluation work of effectively avoiding carrying out a large amount of file quotient of difference need to expend the problem of a large amount of processing resources.Especially there iing mobile device to participate in synchronous in the situation that, efficiently solving the computational efficiency occurring when mobile terminal device utilizes traditional residual quantity synchronous method to participate in file synchronization low, the larger problem of processing inadequate resource that waits of power consumption.
Accompanying drawing explanation
A kind of telefile synchronous system architecture schematic diagram that Fig. 1 provides for background technology;
A kind of file syn chronizing system structural representation that Fig. 2 provides for the embodiment of the present invention;
The flow chart of a kind of file synchronisation method that Fig. 3 provides for the embodiment of the present invention;
A kind of schematic diagram that utilizes version vector to realize file synchronization that Fig. 4 provides for the embodiment of the present invention.
Embodiment
For what exist in solution prior art, will carry out the problem that heap file residual quantity comparing calculation could be realized file synchronization, the embodiment of the present invention provides a kind of method and system of file synchronization.By synchronous end, monitoring file update to be updated for after transaction file, with the form of file operation daily record, by comprising for the file operation information that to represent file update to be updated be the performed update all operation of transaction file, offer and synchronously held; After synchronous end acquisition this document Operation Log, according to the file operation information comprising in this document Operation Log, corresponding file to be updated is carried out and upgraded operation to realize and to synchronize the file synchronization of holding.The method of the file synchronization that the embodiment of the present invention provides directly completes file synchronization by the mode of log file Update log and transfer files Operation Log, and right evaluation work can expend compared with the problem of multiprocessing resource effectively to avoid carrying out a large amount of file quotient of difference.
Below in conjunction with Figure of description, embodiments of the invention are described, should be appreciated that embodiment described herein only uses and description and interpretation the present invention, is not limited to the present invention.And in the situation that not conflicting, embodiment and the feature in implementation column in this explanation can be interosculated.
Embodiment 1
The embodiment of the present invention provides a kind of file syn chronizing system, and the synchronous end in this system is mainly used at file update to be updated, for after transaction file, obtaining file operation daily record, and described file operation daily record being offered and synchronously held.Wherein, file operation log packet contains for representing that by file update to be updated be the file operation information that the performed update all of transaction file operates.Correspondingly, by synchronous end, be mainly used in obtaining the file operation daily record that synchronous end provides, according to the file operation information comprising in file operation daily record, corresponding file to be updated carried out to described renewal operation.Below in conjunction with Fig. 2, specifically introduce the performed function of modules in this system.
When the cloud sync client 22 of mobile terminal A is as synchronous end, cloud synchronization server end 21 is when synchronously being held, and the process that obtains file operation daily record can be as described below:
First, the file update client 23 being arranged in mobile terminal A realizes the renewal operation to file, such as establishment, deleted file or transaction file content etc.; And at file update to be updated for storing this transaction file after transaction file.Meanwhile, the file operation information that log recording plug-in unit 231 records of file update client 23 operate for characterizing the update all of file update module 23 execution, and according to the file operation Information generation file operation daily record of record.Wherein, this log recording plug-in unit 231 can be arranged in the Document Editing software in file update client 23.
Then, file operation daily record monitoring module 24 is monitoring file update client 23 by file update to be updated during for transaction file, the file operation daily record of obtaining its record to log recording plug-in unit 231.
File operation daily record based on obtaining, the file operation log management module 25 that cloud sync client 22 comprises and synchronous service module 26 can further coordinate and realize to cloud synchronization server end 21 Transmit message Operation Logs:
File operation log management module 25, the file operation daily record obtaining for storage file Operation Log monitoring module 24.
Synchronous service module 26, for after transaction file, obtains the corresponding file operation daily record of file operation log management module 25 storages for the file update to be updated monitoring file update module 23; And send and comprise the file synchronization request of the sign of transaction file to cloud synchronization server end 21; After receiving the cloud synchronization server end 21 file operation instruction that request sends according to file synchronization, to cloud synchronization server end 21 Transmit message Operation Logs.
The file operation daily record sending based on cloud sync client 22, the synchronous documents stored data base 27 being comprised as the cloud synchronization server end 21 of synchronously being held and synchronization module 28 can coordinate realizes file synchronization.The major function of synchronous documents stored data base 27 and synchronization module 28 is as described below:
Synchronous documents stored data base 27, for storing the file to be updated of cloud synchronization server end 21.
Synchronization module 28, the file synchronization request sending for receiving synchronous service module 26; According to comprising the sign of transaction file in this document synchronization request, determine need to the file corresponding to be updated of storage in synchronous documents stored data base 27 carry out synchronous after, to the cloud sync client 22 Transmit message operational orders of mobile terminal A; And receive cloud sync client 22 according to the file operation daily record of this document operational order transmission, and according to the file operation information comprising in file operation daily record, the file corresponding to be updated of storage in synchronous documents stored data base 27 is carried out to described renewal operation.
Optionally, cloud synchronization server end 21 can also comprise the file operation log store database 29 of the file operation daily record that storage synchronization module 28 receives.
Based on file operation log store database 29, when cloud synchronization server end 21 and cloud sync client 22 realize after file synchronization, cloud synchronization server end 21 will be as synchronous end, and the cloud sync client 213 of mobile terminal B and the cloud sync client 214 of mobile terminal C will be as synchronously being held.Now the notice pushing module 210 in cloud synchronization server 21, to cloud sync client 213 and cloud sync client 214 pushing files synchronized push message, can comprise the sign of transaction file in this document synchronized push message.Cloud sync client 213 and cloud sync client 214 will be after receiving notice pushing module 210 Transmit message synchronized push message, according to the sign of the transaction file comprising in file synchronization PUSH message, from file operation log store database 29, download corresponding file operation daily record, and according to the file operation information comprising in file operation daily record, corresponding file to be updated is carried out to described renewal operation, thereby realize the file synchronization with cloud synchronization server end 21, and finally realized the file synchronization with cloud sync client 22.
Further, when file update has occurred cloud sync client 213, and cloud synchronization server end 21 has been obtained file operation daily record as synchronously holding from cloud sync client 213, and according to the file operation information comprising in file operation daily record, by corresponding file update to be updated in cloud synchronization server end 21 during for transaction file, if now need further between cloud synchronization server end 21 and cloud sync client 22 execute file synchronous, cloud synchronization server end 21 is as synchronous end, and cloud sync client 22 is as synchronously being held.
Particularly, at cloud synchronization server end 21, as synchronous end, cloud sync client 22 is as under the scene of synchronously being held, and the mode that realizes file synchronization is as follows:
The file operation daily record providing for obtaining cloud synchronization server end 21, cloud sync client 22 also comprises synchronization message receiver module 211, the file synchronization PUSH message sending for receiving the notice pushing module 210 of cloud synchronization server end 21.Wherein, in this document synchronized push message, comprise the sign of transaction file.In addition, the sign of the transaction file comprising in the file synchronization PUSH message that file operation log management module 25 receives according to synchronization message receiver module 211, downloads corresponding file operation daily record from cloud synchronization server end 21.File operation daily record based on downloading to, the file operation information that cloud sync client 22 comprises according to it, to being stored in the file corresponding to be updated of the sign corresponding to above-mentioned transaction file in file update client 23, carry out renewal operation, thereby realized the file synchronization of client 23 with cloud synchronization server end 21.
In above-mentioned flow process, by realizing successively the file synchronization of the file synchronization of cloud sync client 213 and synchronization server end 21 and synchronization server end 21 and cloud sync client 22, finally realize synchronizeing of cloud sync client 213 and cloud sync client 22.
In sum, the file syn chronizing system that the embodiment of the present invention provides monitors file update to be updated for after transaction file at synchronous end, by having comprised the file operation daily record of file update to be updated for the file operation information that the performed update all of transaction file operates, offers and is synchronously held; By synchronous end, obtained after file operation daily record, according to the file operation information comprising in this document Operation Log, corresponding file to be updated is carried out and upgraded operation, just can realize and synchronize the file synchronization of end.This system directly completes file synchronization by the mode of log file Update log and transfer files Operation Log, effectively avoided carrying out the processing resource cost that a large amount of right evaluation works of file quotient of difference causes, especially there iing mobile device to participate in synchronous in the situation that, efficiently solve the computational efficiency occurring when mobile terminal device utilizes traditional residual quantity synchronous method to participate in file synchronization low, the larger problem of processing inadequate resource that waits of power consumption.
Implement two
Based on above-mentioned file syn chronizing system, a kind of file synchronisation method that the embodiment of the present invention also provides, in the method synchronous end at file update to be updated for after transaction file, obtain file operation daily record, and this document Operation Log is offered and synchronously held, indicate described quilt synchronously to hold according to the file operation information comprising in described file operation daily record, corresponding file to be updated is carried out and upgraded operation.Below in conjunction with file synchronisation method flow chart 3, illustrate.
Step 31, cloud sync client monitor file update to be updated in file update client for transaction file.
Step 32, cloud sync client are obtained the file operation daily record of its record to the log recording plug-in unit in file update client, wherein, file operation log packet contains for representing that by file update to be updated be the file operation information that the performed update all of transaction file operates.
Step 33, cloud sync client are to cloud synchronization server end Transmit message synchronization request, and this document synchronization request comprises the sign of transaction file.
Optionally, in cloud sync client, during to cloud synchronization server end Transmit message synchronization request, can carry the version of transaction file corresponding to transaction file sign.
Step 34, cloud synchronization server end provides the sign of transaction file according to cloud sync client, determines file to be updated.
Optionally, according to the optional step of step 33, what the FileVersion of the file to be updated that cloud synchronization server end is stored self and above-mentioned cloud sync client were carried compares with transaction file version, determines and upgrades the needed file operation daily record of file to be updated.The concrete methods of realizing of this possibility will illustrate below.
Step 35, cloud synchronization server after determining file to be updated to cloud sync client Transmit message operational order, to cloud sync client demand file Operation Log.
Step 36, cloud sync client receive the backward cloud synchronization server of file operation instruction Transmit message Operation Log.Wherein, the data structure of file operation daily record is as shown in table 1.
Table 1:
File identification Start offset amount Deflected length Operation note Replacement data
For understanding the implication of each parameter in the data structure of this document Operation Log, illustrate below.If the file content to be updated of synchronous documents A is that " good morning! ", file A is upgraded after operation, transaction file content is that " good night! " the corresponding renewal operation occurring with this synchronous documents, the data structure of spanned file Operation Log is:
File identification Start offset amount Deflected length Operation note Replacement data
A
1 2 Content update Evening
Step 37, cloud synchronization server are according to the file operation information comprising in file operation diary, corresponding file to be updated is carried out and upgraded operation, file synchronization with realization with cloud sync client, the file operation daily record that cloud synchronization server storing received arrives simultaneously.
After the file synchronization of step 38, the realization of cloud synchronization server and above-mentioned cloud sync client, to other cloud sync client Transmit message synchronized push message, in this document synchronized push message, comprise the sign of transaction file.
Optionally, cloud synchronization server during to other cloud sync client Transmit message synchronized push message, can carry the version of transaction file of the sign correspondence of transaction file.
Step 39, other cloud sync client bases sign of transaction file are determined file to be updated.
Optionally, the FileVersion of the file to be updated that other cloud sync client are stored self and the latest document version that cloud synchronization server end carries compare, and determine and upgrade the needed file operation daily record of file to be updated.
Step 310, other cloud sync client are from cloud synchronization server download file Operation Log, and according to the file operation information comprising in file operation diary, corresponding file to be updated are carried out and upgraded operation, to realize the file synchronization with cloud synchronization server.Flow process is complete.
For the possibility in said method flow process, the embodiment of the present invention also provides a kind of method of relatively carrying out to determine to realize the required file operation daily record of file synchronization by FileVersion.This document version represents by state vector, and the structure of state vector is <a, b, c....>.Suppose that cloud synchronization server is node M, two cloud sync client are for being respectively node A, B., for any one node, all there is a state vector <M, A, B> records the release status of current known node, and this state vector is monotonically increasing.Because M is as cloud synchronization server node, itself can not independently produce data variation, therefore M oneself state is constant, here just only consider state vector <A, B> determines and realizes the required file operation daily record of file synchronization in the state variation of each node.
Fig. 4 utilizes version vector to realize the schematic diagram of file synchronization.As shown in the figure, the state vector that needs synchronous FileVersion for characterizing cloud sync client A, B of cloud synchronization server M and cloud sync client B record is all <1,1>, the state vector that needs synchronous FileVersion for characterizing cloud sync client A, B of the record of cloud sync client A is <3,1>, illustrates that renewal has occurred the synchronous documents that needs of cloud sync client A.
For above-mentioned situation, when cloud sync client A need synchronous documents occur to upgrade time, cloud sync client A is to cloud synchronization server M Transmit message synchronization request, and when Transmit message synchronization request, carry for characterizing the state vector <3 of transaction file version, 1>, cloud synchronization server M is by the state vector <1 of self, the state vector <3 of 1> and reception, 1> compares, two file operation daily records that judgement need to be updated to state A-2 and be updated to state A-3 from state A-2 from state A-1 are to realize synchronizeing of cloud synchronization server M and cloud sync client A.So, cloud synchronization server M just sends for asking the file operation instruction of these two file operation daily records to cloud sync client A, and cloud sync client A, after receiving this document operational order, sends above-mentioned two file operation daily records to cloud synchronization server M.Cloud synchronization server M receives the file operation daily record that cloud sync client A sends, and according to the file operation information comprising in file operation daily record, the file to be updated of cloud synchronization server M has been carried out and upgraded operation, to realize and the synchronizeing of cloud sync client A.
Further, cloud synchronization server M can carry and characterize the state vector <3 of transaction file version, 1> is to cloud sync client B Transmit message synchronized push message, cloud sync client B by self storage for characterizing the state vector <1 of FileVersion to be updated, the state vector <3 of 1> and reception, 1> compares, judgement need to be updated to state A-2 and from state A-2, be updated to two file operation daily records of state A-3 from state A-1, so, cloud sync client B will download above-mentioned file operation daily record to realize and the synchronizeing of cloud synchronization server M at cloud synchronization server M, thereby final realization is synchronizeed with cloud sync client A's.
In sum, the file synchronisation method that the embodiment of the present invention provides directly completes file synchronization by the mode of log file Update log and transfer files Operation Log, effectively avoids carrying out the processing resource cost that a large amount of right evaluation works of file quotient of difference causes.
The file synchronisation method providing corresponding to the embodiment of the present invention, the embodiment of the present invention also provides a kind of device of synchronous end, and the concrete structure of this device comprises:
Daily record obtains unit, at file update to be updated for after transaction file, acquisition file operation daily record; Wherein, file operation log packet contains for representing that by file update to be updated be the file operation information that the performed update all of transaction file operates.
Daily record provides unit, for daily record being obtained to file operation daily record that unit obtains, offers and is synchronously held, and indication synchronously hold according to the file operation information comprising in described file operation daily record, corresponding file to be updated is carried out to renewal and operate.
When the device of synchronous end is cloud sync client, by synchronous end, during for cloud synchronization server end, the device of synchronous end also comprises:
Log recording plug-in unit, for recording the file operation daily record of include file operation information;
Daily record obtains unit and specifically can record the file operation daily record that plug-in unit records for obtaining also storing daily record.Now, daily record provides unit specifically can comprise:
File synchronization request sends subelement, for obtaining unit in daily record, obtains after file operation daily record, and to synchronously being held Transmit message synchronization request, wherein, file synchronization request comprises the sign of transaction file;
File operation command reception subelement, for receiving the file operation instruction being sent according to the file synchronization request of file synchronization request transmission subelement transmission by synchronous end;
File operation Log Sender subelement, for being sent to synchronously holding the described file operation daily record that described daily record obtains unit storage.
And the device of working as synchronous end is cloud synchronization server end, described quilt is synchronously held while being cloud sync client, and daily record obtains unit specifically can be for receiving the described file operation daily record that be different from other cloud sync client transmissions of synchronously being held.Now, daily record provides unit specifically can comprise:
File synchronization message push subelement, for to synchronously being held pushing files synchronized push message, wherein, comprises the sign of transaction file in file synchronization PUSH message;
File operation daily record provides subelement, for daily record being obtained to file operation daily record that unit obtains offers the file synchronization PUSH message that pushes according to file synchronization message push subelement and synchronously being held of download file Operation Log.
The file synchronisation method providing corresponding to the embodiment of the present invention, the device that the embodiment of the present invention also provides a kind of quilt synchronously to hold, in order to solve in prior art, exist to carry out the problem that heap file residual quantity comparing calculation could be realized file synchronization.The concrete structure of this device comprises:
Daily record obtains unit, the file operation daily record providing for obtaining synchronous end, and wherein, file operation log packet contains for representing that by file update to be updated be the file operation information that the performed update all of transaction file operates.
File update unit, the file operation information comprising for obtain the file operation daily record of unit acquisition according to daily record, carries out and upgrades operation corresponding file to be updated.
When described synchronous end is cloud sync client, when the device that described quilt is synchronously held is cloud synchronization server end, daily record obtains unit and specifically can comprise:
File synchronization request receiving subelement, the file synchronization request sending for receiving synchronous end;
File operation instruction sends subelement, the sign of the transaction file comprising for the file synchronization request receiving according to file synchronization request receiving subelement, determine need to the file corresponding to be updated of storing in described synchronous documents stored data base carry out synchronous after, to synchronous end Transmit message operational order;
File operation daily record receives subelement, the file operation daily record sending according to the file operation instruction of file operation instruction transmission subelement transmission for receiving synchronous end.
And work as described synchronous end, be cloud synchronization server end, when the device that described quilt is synchronously held is cloud sync client, daily record obtains unit and specifically can comprise:
File synchronization PUSH message receives subelement, the file synchronization PUSH message pushing for receiving described synchronous end;
Subelement is downloaded in file operation daily record, and the sign of the transaction file comprising for the file synchronization PUSH message receiving according to file synchronization PUSH message reception subelement, downloads corresponding file operation daily record from synchronous end.
In sum, the embodiment of the present invention provides a kind of system of file synchronization, method and apparatus, synchronous end is monitoring file update to be updated for after transaction file, by having comprised the file operation daily record of file update to be updated for the file operation information that the performed update all of transaction file operates, offers and is synchronously held; After synchronous end acquisition file operation daily record, according to the file operation information comprising in this document Operation Log, corresponding file to be updated is carried out and upgraded operation to realize and to synchronize the file synchronization of holding.This file syn chronizing system that the embodiment of the present invention provides directly completes file synchronization by the mode of log file Update log and transfer files Operation Log, effectively avoid carrying out the processing resource cost that a large amount of right evaluation works of file quotient of difference causes, especially there iing mobile device to participate in synchronous in the situation that, efficiently solve the computational efficiency occurring when mobile terminal device utilizes traditional residual quantity synchronous method to participate in file synchronization low, the larger problem of processing inadequate resource that waits of power consumption.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (17)

1. a system for file synchronization, comprises synchronous end and is synchronously held, it is characterized in that, wherein:
Synchronous end, for at file update to be updated for after transaction file, obtain file operation daily record, and described file operation daily record is offered and synchronously held, wherein, file operation log packet contains for representing that by file update to be updated be the file operation information that the performed update all of transaction file operates;
The file operation daily record providing for obtaining described synchronous end is synchronously provided; According to the described file operation information comprising in file operation daily record, corresponding file to be updated is carried out to described renewal operation.
2. the system as claimed in claim 1, is characterized in that, described synchronous end is cloud sync client, and the synchronous end of described quilt is cloud synchronization server end;
Described synchronous end specifically comprises:
Log recording plug-in unit, for recording the file operation daily record that comprises described file operation information;
File operation daily record monitoring module, for obtaining the described file operation daily record of log recording plug-in unit record;
File operation log management module, the described file operation daily record obtaining for storage file Operation Log monitoring module;
Synchronous service module, for to described quilt, synchronously hold send comprise described in the file synchronization request of the sign of transaction file, and after receiving the file operation instruction that synchronously end sends according to described file synchronization request of described quilt, to described quilt, synchronously hold the described file operation daily record that sends described file operation log management module storage.
3. the system as claimed in claim 1, is characterized in that, described synchronous end is cloud synchronization server end, and the synchronous end of described quilt is cloud sync client;
Described quilt is synchronously held specifically and is comprised:
Synchronization message receiver module, the file synchronization PUSH message pushing for receiving described synchronous end;
File operation log management module, the sign of the described transaction file comprising for the file synchronization PUSH message receiving according to synchronization message receiver module, from described synchronous end, download corresponding file operation daily record, and according to the described file operation information comprising in file operation daily record, to be stored in file update client, corresponding to the file corresponding to be updated of the sign of described transaction file, carry out described renewal operation.
4. the system as claimed in claim 1, is characterized in that, described synchronous end is cloud sync client, and the synchronous end of described quilt is cloud synchronization server end;
Described quilt is synchronously held specifically and is comprised:
Synchronous documents stored data base, for storing file to be updated;
Synchronization module, the file synchronization request sending for receiving described synchronous end, and according to the sign of transaction file described in comprising in described file synchronization request, determine need to the file corresponding to be updated of storing in described synchronous documents stored data base carry out synchronous after, to described synchronous end Transmit message operational order; And receive described synchronous end according to the file operation daily record of described file operation instruction transmission, and according to the described file operation information comprising in file operation daily record, the file corresponding to be updated of storing in synchronous documents stored data base is carried out to described renewal operation, and by described file operation log store in file operation log store database;
File operation log store database, the file operation daily record receiving for storing described synchronization module.
5. the system as claimed in claim 1, is characterized in that, described synchronous end is cloud synchronization server end, and the synchronous end of described quilt is cloud sync client;
Described synchronous end specifically comprises:
Notice pushing module, for synchronously hold pushing files synchronized push message to described quilt, wherein, the sign of transaction file described in comprising in described file synchronization PUSH message;
File operation log store database, for obtaining and store described file operation daily record, and offers described file operation daily record according to the described file synchronization PUSH message of notice pushing module propelling movement and downloads synchronously being held of described file operation daily record.
6. a method for file synchronization, is characterized in that, comprising:
Synchronous end for after transaction file, obtains file operation daily record at file update to be updated, and wherein, file operation log packet is containing for representing that by file update to be updated be the performed update all of transaction file operates file operation information;
Described file operation daily record is offered and synchronously held, indicate described quilt synchronously to hold according to the file operation information comprising in described file operation daily record, corresponding file to be updated is carried out and upgraded operation.
7. method as claimed in claim 6, is characterized in that, described synchronous end is cloud sync client, and the synchronous end of described quilt is cloud synchronization server end;
Synchronous end obtains file operation daily record, and described file operation daily record is offered and synchronously held, and specifically comprises:
The file operation daily record that synchronous end obtains and storing daily record records plug-in unit record; And
To described quilt synchronously hold send comprise described in the file synchronization request of the sign of transaction file;
Receive after the file operation instruction that synchronously end sends according to described file synchronization request of described quilt, to described quilt, synchronously hold the described file operation daily record that sends storage.
8. method as claimed in claim 6, is characterized in that, described synchronous end is cloud synchronization server end, and the synchronous end of described quilt is cloud sync client;
Synchronous end obtains file operation daily record, and described file operation daily record is offered and synchronously held, and specifically comprises:
Synchronous termination is received and is different from the described file operation daily record that other cloud sync client that described quilt synchronously holds send;
To described quilt, synchronously hold pushing files synchronized push message, wherein, the sign of transaction file described in comprising in described file synchronization PUSH message;
Described file operation daily record is offered according to described file synchronization PUSH message and downloads synchronously being held of described file operation daily record.
9. a method for file synchronization, is characterized in that, comprising:
Quilt synchronously end obtains the file operation daily record that described synchronous end provides, and wherein, file operation log packet contains for representing that by file update to be updated be the file operation information that the performed update all of transaction file operates;
According to the file operation information comprising in file operation daily record, corresponding file to be updated is carried out to described renewal operation.
10. method as claimed in claim 9, is characterized in that, described synchronous end is cloud sync client, and the synchronous end of described quilt is cloud synchronization server end;
The file operation daily record being provided by the described synchronous end of synchronous end acquisition specifically comprises:
By synchronous termination, received the file synchronization request that described synchronous end sends; And
According to the sign of the transaction file comprising in described file synchronization request, determine need to the file corresponding to be updated of storing in described synchronous documents stored data base carry out synchronous after, to described synchronous end Transmit message operational order; And
Receive the file operation daily record that described synchronous end sends according to described file operation instruction.
11. methods as claimed in claim 9, is characterized in that, described synchronous end is cloud synchronization server end, and the synchronous end of described quilt is cloud sync client;
By synchronous end, obtained the file operation daily record that described synchronous end provides, specifically comprise:
By synchronous termination, received the file synchronization PUSH message that described synchronous end pushes; And
According to the sign of the described transaction file comprising in file synchronization PUSH message, from described synchronous end, download corresponding file operation daily record.
The device of 12. 1 kinds of synchronous ends, is characterized in that, comprising:
Daily record obtains unit, at file update to be updated for after transaction file, obtain file operation daily record, wherein, file operation log packet is containing for representing that by file update to be updated be the performed update all of transaction file operates file operation information;
Daily record provides unit, for the file operation daily record that described daily record acquisition unit is obtained, offers and is synchronously held, and indicates described quilt synchronously to hold according to the file operation information comprising in described file operation daily record, and corresponding file to be updated is carried out and upgraded operation.
13. devices as claimed in claim 12, is characterized in that, the device of described synchronous end is cloud sync client, and the synchronous end of described quilt is cloud synchronization server end; The device of described synchronous end also comprises:
Log recording plug-in unit, for recording the described file operation daily record that comprises described file operation information;
Daily record obtains unit specifically for the file operation daily record obtaining and storing daily record records plug-in unit record;
Daily record provides unit specifically to comprise:
File synchronization request sends subelement, for obtaining unit in described daily record, obtains after file operation daily record, to described quilt, synchronously holds Transmit message synchronization request, the sign of transaction file described in described file synchronization request comprises;
File operation command reception subelement, the file operation instruction sending according to the file synchronization request of described file synchronization request transmission subelement transmission for receiving the synchronous end of described quilt;
File operation Log Sender subelement, sends for synchronously holding to described quilt the described file operation daily record that described daily record obtains unit storage.
14. devices as claimed in claim 12, is characterized in that, the device of described synchronous end is cloud synchronization server end, and the synchronous end of described quilt is cloud sync client;
Daily record obtains unit and is different from specifically for receiving the described file operation daily record that other cloud sync client that described quilt synchronously holds send;
Daily record provides unit specifically to comprise:
File synchronization message push subelement, for to synchronously being held pushing files synchronized push message, wherein, the sign of transaction file described in comprising in described file synchronization PUSH message;
File operation daily record provides subelement, offers the file synchronization PUSH message pushing according to described file synchronization message push subelement download synchronously being held of described file operation daily record for the file operation daily record that described daily record acquisition unit is obtained.
15. 1 kinds of devices that quilt is synchronously held, is characterized in that, comprising:
Daily record obtains unit, the file operation daily record providing for obtaining synchronous end, and wherein, file operation log packet contains for representing that by file update to be updated be the file operation information that the performed update all of transaction file operates;
File update unit, the file operation information comprising for obtain the file operation daily record of unit acquisition according to described daily record, carries out described renewal operation to corresponding file to be updated.
16. devices as claimed in claim 15, is characterized in that, described synchronous end is cloud sync client, and the device that described quilt is synchronously held is cloud synchronization server end;
Daily record obtains unit and specifically comprises:
File synchronization request receiving subelement, the file synchronization request sending for receiving described synchronous end;
File operation instruction sends subelement, the sign of the transaction file comprising for the file synchronization request receiving according to described file synchronization request receiving subelement, determine need to the file corresponding to be updated of storing in described synchronous documents stored data base carry out synchronous after, to described synchronous end Transmit message operational order;
File operation daily record receives subelement, the file operation daily record sending according to the file operation instruction of described file operation instruction transmission subelement transmission for receiving described synchronous end.
17. devices as claimed in claim 15, is characterized in that, described synchronous end is cloud synchronization server end, and the device that described quilt is synchronously held is cloud sync client;
Daily record obtains unit and specifically comprises:
File synchronization PUSH message receives subelement, the file synchronization PUSH message pushing for receiving described synchronous end;
Subelement is downloaded in file operation daily record, and the sign of the described transaction file comprising for the file synchronization PUSH message receiving according to file synchronization PUSH message reception subelement, downloads corresponding file operation daily record from described synchronous end.
CN201210337118.4A 2012-09-12 2012-09-12 Method, system and device for file synchronization Pending CN103685385A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210337118.4A CN103685385A (en) 2012-09-12 2012-09-12 Method, system and device for file synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210337118.4A CN103685385A (en) 2012-09-12 2012-09-12 Method, system and device for file synchronization

Publications (1)

Publication Number Publication Date
CN103685385A true CN103685385A (en) 2014-03-26

Family

ID=50321689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210337118.4A Pending CN103685385A (en) 2012-09-12 2012-09-12 Method, system and device for file synchronization

Country Status (1)

Country Link
CN (1) CN103685385A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407846A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Information processing method and device
CN104488248A (en) * 2014-04-15 2015-04-01 华为技术有限公司 File synchronization method, server and terminal
CN105095358A (en) * 2015-06-24 2015-11-25 北京京东尚科信息技术有限公司 Method and system for acquiring database operation logs
WO2016101752A1 (en) * 2014-12-22 2016-06-30 北京奇虎科技有限公司 Method and device for data synchronization
CN106227810A (en) * 2016-07-22 2016-12-14 深圳市先河系统技术有限公司 A kind of file monitor method and server
CN106452717A (en) * 2016-09-14 2017-02-22 上海斐讯数据通信技术有限公司 Multi-router one-way synchronization method and system
CN106547470A (en) * 2015-09-16 2017-03-29 伊姆西公司 Daily record storage optimization method and equipment
CN106657174A (en) * 2015-10-28 2017-05-10 阿里巴巴集团控股有限公司 Data synchronizing and updating methods and data synchronizing and updating devices
CN106657170A (en) * 2015-10-28 2017-05-10 阿里巴巴集团控股有限公司 Data synchronization method and device
CN112231152A (en) * 2020-12-11 2021-01-15 北京国导科技有限公司 Data synchronization method, remote server, client and system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104488248A (en) * 2014-04-15 2015-04-01 华为技术有限公司 File synchronization method, server and terminal
WO2015157904A1 (en) * 2014-04-15 2015-10-22 华为技术有限公司 File synchronization method, server, and terminal
CN104488248B (en) * 2014-04-15 2017-09-08 华为技术有限公司 A kind of file synchronisation method, server and terminal
CN104407846A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Information processing method and device
CN104407846B (en) * 2014-10-29 2020-03-20 中国建设银行股份有限公司 Information processing method and device
WO2016101752A1 (en) * 2014-12-22 2016-06-30 北京奇虎科技有限公司 Method and device for data synchronization
CN105095358A (en) * 2015-06-24 2015-11-25 北京京东尚科信息技术有限公司 Method and system for acquiring database operation logs
CN106547470A (en) * 2015-09-16 2017-03-29 伊姆西公司 Daily record storage optimization method and equipment
CN106657170A (en) * 2015-10-28 2017-05-10 阿里巴巴集团控股有限公司 Data synchronization method and device
CN106657174A (en) * 2015-10-28 2017-05-10 阿里巴巴集团控股有限公司 Data synchronizing and updating methods and data synchronizing and updating devices
CN106657174B (en) * 2015-10-28 2020-11-03 阿里巴巴集团控股有限公司 Data synchronization method, data updating method and data updating device
CN106657170B (en) * 2015-10-28 2021-03-30 斑马智行网络(香港)有限公司 Data synchronization method and device
CN106227810A (en) * 2016-07-22 2016-12-14 深圳市先河系统技术有限公司 A kind of file monitor method and server
CN106452717A (en) * 2016-09-14 2017-02-22 上海斐讯数据通信技术有限公司 Multi-router one-way synchronization method and system
CN112231152A (en) * 2020-12-11 2021-01-15 北京国导科技有限公司 Data synchronization method, remote server, client and system

Similar Documents

Publication Publication Date Title
CN103685385A (en) Method, system and device for file synchronization
CN102571940B (en) Application program remote installation system, method, intelligent terminal, application server
CN102404338B (en) File synchronization method and device
CN110703980B (en) File transmission method and device
CN102984194A (en) Sychronization of configuration file of virtual application distribution chassis
CN102291416A (en) Two-way synchronizing method and system of client-side and server-side
CN103544303A (en) Data synchronization method, system and device
CN111399764B (en) Data storage method, data reading device, data storage equipment and data storage medium
CN102420857A (en) Operation instruction transmission and processing methods, transmission and cache servers and storage system
CN101360127A (en) File updating method and transmission system
CN101848188A (en) Method and device for updating data block checking information
CN103841180A (en) Network data synchronization method and device based on operating instruction, terminal device and server
CN104252397A (en) Realizing method for supporting automatic backup of cloud platform user file
CN110213359B (en) Internet of vehicles networking data pushing system and method based on D2D
CN112838935A (en) Electronic data exchange method and system
CN105335186B (en) Data downloading management method and system
CN110958150A (en) Management method and device for dynamic service configuration
CN105162869A (en) Data backup management method and equipment
CN102647470A (en) Cloud download method in on-line application platform and on-line application platform system
CN105635286A (en) Method for synchronous data synchronization of distributed system
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN103118045A (en) Method and system of off-line downloading
CN104701982A (en) Method for automatically updating distribution line monitor terminal
CN101552773B (en) Method, equipment and system for processing data item identifier mapping in data synchronization
CN104113594A (en) Method and system for file uploading based on JS uploading assembly

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140326