CN104065676A - File synchronization method and file synchronization equipment - Google Patents

File synchronization method and file synchronization equipment Download PDF

Info

Publication number
CN104065676A
CN104065676A CN201310088476.0A CN201310088476A CN104065676A CN 104065676 A CN104065676 A CN 104065676A CN 201310088476 A CN201310088476 A CN 201310088476A CN 104065676 A CN104065676 A CN 104065676A
Authority
CN
China
Prior art keywords
file
fileinfo
terminal equipment
server
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.)
Pending
Application number
CN201310088476.0A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310088476.0A priority Critical patent/CN104065676A/en
Publication of CN104065676A publication Critical patent/CN104065676A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a file synchronization method and file synchronization equipment. The file synchronization method comprises that registration of terminal equipment is received; first file information of a first file stored in the terminal equipment is acquired from the terminal equipment, equipment identification of the terminal equipment, file identification of the first file and the first file information are relevantly stored, and the first file is also stored in a file server; second file information generated after updating of the first file at the file server is acquired from the file server; file updating information is calculated via comparison of the first file information and the second file information; and performance of file synchronization is notified to the terminal equipment according to the file updating information. According to the file synchronization method, work in file synchronization performed by the terminal equipment is simplified so that energy consumption and traffic cost generated in file synchronization of the terminal equipment and the file server can be greatly reduced.

Description

File synchronisation method and file synchronization equipment
Technical field
The present invention relates to the file synchronization of equipment end and server end, and relate more specifically to a kind of method and apparatus that carries out file synchronization between equipment end and server end.
Background technology
Along with the variation of mobile device kind and the fast lifting of mobile device performance, mobile device has become requisite instrument in the modern life.Yet, due to the limited memory space of mobile device itself and computing capability, cannot and calculate all data and all be deployed in mobile device end.Increasing mobile device rely on himself wireless interconnected module (such as) carry out alternately to realize the expansion of memory space and computational resource with the server in high in the clouds, this is also considered to be the effective way that personal consumption electronic product is expanded performance, reduced system power dissipation.
When a certain file of server end occurs to upgrade, between mobile device and cloud server, often need to carry out corresponding simultaneous operation, consistent with server end content in equipment end to guarantee this document.Yet existing cloud stores service tends to a large amount of numerous and diverse work to transfer to equipment end to complete aspect file synchronization, has caused thus many meaningless energy consumptions and network traffics expense.
For example, in equipment end and server end, all preserve file " patent_spec.doc ", this document size is 2MB, and when in the situation that server end this document has been added a line word, the file size after renewal is also approximately 2MB.In the case, existing cloud stores service need to scan that to all local files file is upgraded in equipment end.Particularly, in equipment end, each local file is carried out to file compare operation, and from server end, receive renewal (that is, synchronous) in the situation that judgement file is updated, this brings high file consistence maintenance cost to equipment end.
Therefore the method and the relevant device that, need a kind of file synchronization work that can simplified apparatus end.
Summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of file synchronisation method and file synchronization equipment, this document synchronizer is as buffer memory (cache) server between terminal equipment and file server, by carry out file compare operation at this document synchronizer place, judge whether to receive file update data from file server, and then to terminal equipment, transmit file update data.By this document synchronous method and file synchronization equipment, can greatly be reduced at the file synchronization operation of carrying out at terminal equipment place, in other words, described terminal equipment only needs to receive where necessary simply file update data, and without carrying out numerous and diverse compare operation of file one by one.
According to an aspect of the present invention, provide a kind of file synchronisation method, be applied to file synchronization equipment, having comprised: the registration of receiving terminal apparatus; From described terminal equipment, obtain the first fileinfo of the first file of storing and the file identification of the device identification of described terminal equipment, described the first file and described the first fileinfo are stored explicitly described terminal equipment, described the first file is also stored in file server place; From described file server, obtain the second fileinfo generating at described the first file after described file server is updated; More described the first fileinfo and described the second fileinfo are with calculation document lastest imformation; And according to described file update information, to described terminal equipment notice, carry out file synchronization.
Preferably, at described file synchronisation method, can also comprise: from described file server, obtain file synchronization notification message, wherein, after obtaining described file synchronization notification message from described file server, from described file server, obtain described the second fileinfo, at described file synchronization notification message, comprise the file identification of the first file being updated, or when described server obtains described the second fileinfo, obtaining explicitly the file identification of the first file being updated.
In the case, received the file identification and described the second fileinfo of the first file being updated from described file server after, described file synchronisation method can also comprise described the first fileinfo that retrieval and described file identification are stored explicitly.
Alternatively, in described file synchronisation method, according to predetermined space periodically, for the file identification of described the first file and the first fileinfo being associated thereof, from described file server, obtain described the first file in the corresponding document information of described file server, wherein, in the situation that described the first file is not updated at described file server place, described corresponding document information is identical with described the first fileinfo; In the situation that described the first file is updated at described file server place, described corresponding document information is different from described the first fileinfo and be described the second fileinfo.
Preferably, in described file synchronisation method, according to described file update information, to described terminal equipment notice, carry out file synchronization and comprise: to described terminal equipment, transmit the file identification for the treatment of synchronous the first file being updated.
Preferably, described file synchronisation method also comprises: according to described file update information, from described file server, receive the data division of the need renewal of described the first file; And received data division is sent to described terminal equipment.
Alternatively, in described file synchronisation method, according to described file update information, to described terminal equipment notice, carrying out file synchronization comprises: to described terminal equipment, transmit and treat file identification and the described file update information of synchronous the first file being updated, to make described terminal equipment can utilize described file update information to receive the data division of the need renewal of described the first file from described file server.
Preferably, in described file synchronisation method, described the first fileinfo is included in the cryptographic Hash of the first file of storing in described terminal equipment; And described the second fileinfo is included in the cryptographic Hash of the first file after described server place upgrades.
According to a further aspect of the invention, provide a kind of file synchronization equipment, having comprised: registration management part, for the registration of receiving terminal apparatus; The first fileinfo receiving unit, for obtain the first fileinfo of the first file of storing at described terminal equipment from described terminal equipment, described the first file is also stored in file server place; The associated part of fileinfo, for storing the file identification of the device identification of described terminal equipment, described the first file and described the first fileinfo explicitly; The second fileinfo receiving unit, for obtaining the second fileinfo generating after described server is updated at described the first file from described file server; Lastest imformation calculating section, for more described the first fileinfo and described the second fileinfo with calculation document lastest imformation; And file synchronization notification section, for carrying out file synchronization according to described file update information to described terminal equipment notice.
Preferably, described file synchronization equipment can also comprise: synchronization notice receiving unit, for obtaining file synchronization notification message from described file server, wherein, after described synchronization notice receiving unit obtains described file synchronization notification message from described file server, described the second fileinfo receiving unit obtains described the second fileinfo from described file server, wherein, at described file synchronization notification message, comprise the file identification of the first file being updated, or described the second fileinfo receiving unit obtains explicitly the file identification of the first file being updated when obtaining described the second fileinfo.
In the case, described file synchronization equipment can also comprise: document retrieval part, for described the second fileinfo receiving unit has received the file identification and described the second fileinfo of the first file being updated from described server after, described the first fileinfo that retrieval and described file identification are stored explicitly in the associated part of described fileinfo.
Alternatively, in described file synchronization equipment, described the second fileinfo receiving unit can be according to predetermined space periodically, for the file identification of described the first file and the first fileinfo being associated thereof, from described file server, obtain described the first file in the corresponding document information of described file server, wherein, in the situation that described the first file is not updated at described file server place, described corresponding document information is identical with described the first fileinfo; In the situation that described the first file is updated at described file server place, described corresponding document information is different from described the first fileinfo and be described the second fileinfo.
Preferably, in described file synchronization equipment, described file synchronization notification section transmits the file identification for the treatment of synchronous the first file being updated to described terminal equipment.
Preferably, described file synchronization equipment can also comprise: data receiver part, for receive the data division of the need renewal of described the first file from described file server according to described file update information; And data translator unit, for received data division is sent to described terminal equipment.
Alternatively, in described file synchronization equipment, described file synchronization notification section transmits and treats file identification and the described file update information of synchronous the first file being updated to described terminal equipment, to make described terminal equipment can utilize described file update information to receive the data division of the need renewal of described the first file from described file server.
Preferably, the cryptographic Hash that described the first fileinfo is the first file of storing in described terminal equipment; And described the second fileinfo is the cryptographic Hash of the first file after described server place upgrades.
Employing can simplify according to file synchronisation method of the present invention and file synchronization equipment the work that terminal equipment is done in file synchronization, by greatly reducing terminal equipment and file server, carries out energy consumption and the flow expense that file synchronization produces.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in specification, claims and accompanying drawing.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, for explaining the present invention, is not construed as limiting the invention together with embodiments of the present invention.In the accompanying drawings:
Fig. 1 illustrates the schematic diagram that carries out file synchronization in prior art between terminal equipment and file server;
Fig. 2 illustrates according to the employing cache server-aided of the embodiment of the present invention and between terminal equipment and file server, carries out the schematic diagram of file synchronization;
Fig. 3 illustrates the interaction figure that carries out file synchronization according to the employing cache server-aided of the embodiment of the present invention;
Fig. 4 illustrates according to the flow chart of the file synchronisation method of the embodiment of the present invention; And
Fig. 5 illustrates according to the schematic block diagram of the file synchronization equipment of the embodiment of the present invention.
Embodiment
Describe in detail with reference to the accompanying drawings according to each embodiment of the present invention.Here, it should be noted that in the accompanying drawings, identical Reference numeral is given and substantially had part identical or similar structures and function, and will omit being repeated in this description about them.
As shown in Figure 1, show the schematic diagram that carries out file synchronization in prior art between terminal equipment and file server.The file server in existing terminal equipment and high in the clouds directly carries out file synchronization, needs terminal equipment to scan one by one the All Files of wherein storage, and correspondingly carries out numerous and diverse operations such as file comparison and renewal.This is a large amount of computational resources at occupied terminal equipment place, and has also correspondingly caused a large amount of energy consumption.On the other hand, because the reciprocal process between terminal equipment and file server is comparatively numerous and diverse, this mode of directly carrying out file synchronization between terminal equipment and file server has also caused a large amount of network traffics expenses at terminal equipment place.
Consider the problems referred to above of prior art, inventor has proposed to arrange the technical scheme of cache server between terminal equipment and file server, by the simultaneous operation of carrying out at terminal equipment place is married again on cache server terminal equipment is discharged from numerous and diverse simultaneous operation, thereby the computational resource that reduces terminal equipment place takies, and makes terminal equipment centralized calculation resource to carry out other operation; Also reduce the energy consumption at terminal equipment place simultaneously, correspondingly extended the service time of battery of terminal equipment; On the other hand, also saved the network traffics expense at terminal equipment place.Below, in connection with Fig. 2, to Fig. 5, specifically describe according to the file synchronisation method of the embodiment of the present invention and file synchronization equipment.
As shown in Figure 2, show according to the employing cache server-aided of the embodiment of the present invention and between terminal equipment and file server, carry out the schematic diagram of file synchronization.This cache server be specifically designed to carry out and file server between file synchronization operation (that is, data simultaneous operation).Particularly, maintenance of information, file difference inspection etc. calculating is compared, revised to the file that this cache server is responsible for carrying out in file update process, and only will finally revise result, informs terminal equipment.
Terminal equipment need to be to cache server registration, and in cache server, backs up the fileinfo in described terminal equipment.
Cache server can be managed a plurality of terminal equipments simultaneously, whether the terminal equipment no matter registered to cache server is current signs in to this cache server, this cache server can be automatically carry out file compare operation to each file of wherein storage, and calculation document lastest imformation correspondingly.
In the situation that the terminal equipment of having registered to cache server is current, sign in to this cache server, this cache server can carry out file synchronization to described terminal equipment notice according to calculated file update information.And, receive file synchronization confirmation from described terminal equipment after, can receive the file data part that needs renewal from described file server, and be then transmitted to described terminal equipment.
In the situation that the terminal equipment of having registered to cache server is current, do not sign in to this cache server, this cache server can be stored calculated file update information.When described terminal equipment signs in to this cache server, then to described terminal equipment notice, carry out file synchronization according to the file update information calculating.
As shown in Figure 3, show the interaction figure that carries out file synchronization according to the employing cache server-aided of the embodiment of the present invention.
First, terminal equipment A is to cache server registration, and the current version f(that backs up the first file in described terminal equipment A in cache server is, prototype version f) fileinfo.
In terminal equipment B by first file of this locality from current version f(, prototype version f) be revised as revision f ', and this modification is uploaded to (that is, being synchronized to) file server.Therefore, correspondingly, the first file of storing in file server is updated to revision f ' from version f.
Then, cache server is after the fileinfo of revision f ' that has obtained described the first file, the fileinfo of the prototype version f of described the first file having backed up in the fileinfo of the revision f ' of described the first file of foundation and this cache server, calculation document lastest imformation.Described fileinfo can be the cryptographic Hash of described the first file.
Next, cache server receives the file data part that will upgrade from file server, and is transmitted to terminal equipment A.
In the situation that described terminal equipment A does not login, cache server after the fileinfo of revision that has obtained described the first file from file server, can utilize the original file information of preserving in this cache server to carry out calculation document lastest imformation at every turn.
Alternatively, in the situation that described terminal equipment A does not login, cache server is at every turn after the fileinfo of revision that has obtained described the first file from file server, can utilize the original file information preserved in this cache server and before this upgrades, calculate not yet notify (a plurality of) file update information to described terminal equipment A, calculate this file update information.Then, after described terminal equipment A login, described cache server can receive according to the All Files lastest imformation of wherein preserving the file data part that will upgrade from described file server.
On the other hand, described cache server can send to described terminal equipment A by the All Files lastest imformation about described the first file, to make described terminal equipment can utilize described file update information to receive the data division of the need renewal of described the first file from described file server.
As shown in Figure 4, show according to the flow chart of the file synchronisation method 400 of the embodiment of the present invention.According to the file synchronisation method 400 of the embodiment of the present invention, be applied to file synchronization equipment, described file synchronization equipment can be cache server recited above.
According to the file synchronisation method 400 of the embodiment of the present invention, at step S401, start.
At step S410, the registration of receiving terminal apparatus.As previously mentioned, described file synchronization equipment can receive the registration of a plurality of terminal equipments, and correspondingly manages a plurality of terminal equipments.Below, in order clearly to describe the present invention design, will launch to describe the single terminal equipment in the situation that, yet should be appreciated that the situation that is applied to equally a plurality of terminal equipments according to the file synchronisation method 400 of the embodiment of the present invention.
Then, at step S420, the first fileinfo of the first file of storing described terminal equipment from described terminal equipment acquisition.Described the first file is also stored in file server place.For example, described the first file is uploaded to described file server by described terminal equipment, or by another terminal equipment, uploaded to described file server, described another terminal equipment can also can be to described file synchronization facility registration to described file synchronization facility registration.For example, described terminal equipment can be smart mobile phone, and described another terminal equipment can be another smart mobile phone or desktop computer.Described the first fileinfo can be included in the cryptographic Hash of the first file of storing in described terminal equipment.
At step S430, in described file synchronization equipment, the file identification of the device identification of described terminal equipment, described the first file and described the first fileinfo are stored explicitly.
After described step S430, described terminal equipment is likely published from described file synchronization equipment.
Next, at step S440, from described file server, obtain the second fileinfo generating at described the first file after described file server is updated.Described the second fileinfo is included in the cryptographic Hash of the first file after described server place upgrades.
At step S450, more described the first fileinfo and described the second fileinfo are with calculation document lastest imformation.
Then, at step S460, whether detect described terminal equipment in logging status.For example, by detecting, whether from described terminal equipment, receive heartbeat message or whether from described terminal equipment, receive the information of publishing etc., whether detecting described terminal equipment still in logging status.Those skilled in the art can also utilize other conventional technological means of this area whether to detect described terminal equipment in logging status, and the present invention is not subject to the restriction of concrete detection means.
In the situation that step S460 detects described terminal equipment in logging status, at step S470, according to described file update information, to described terminal equipment notice, carry out file synchronization.
Yet, in the situation that step S460 detects described terminal equipment not in logging status, can forward step S440 to, so that calculation document lastest imformation next time.
Finally, according to the file synchronisation method of the embodiment of the present invention, at step S499, finish.
Below, will specifically describe according to the specific implementation of the step S440 in the file synchronisation method 400 of the embodiment of the present invention.
The first example
After described the first file in described file server is updated, shown in figure 3, after described the first file in described file server is upgraded by terminal equipment B, described file server sends file synchronization notification message to described file synchronization server.Described terminal equipment B can be identical or different with another above-mentioned terminal equipment, and also can or not register, login or not login to described file synchronization server registration.
Correspondingly, according in the file synchronisation method of the embodiment of the present invention, at step S4410, from described file server, obtain file synchronization notification message, then at step S4420, from described file server, obtain described the second fileinfo.
Described step S4410 and described step S4420 can carry out simultaneously; Or can successively carry out, can be after obtaining described file synchronization notification message from described file server, then obtain described the second fileinfo from described file server.
Can comprise at described file synchronization notification message the file identification of the first file being updated, or can when described server obtains described the second fileinfo, obtain explicitly the file identification of the first file being updated.
Then, after step S4420, can also perform step S4430, wherein, according to the file identification of the first file being updated receiving from described file server, retrieve described the first fileinfo of storing explicitly with described file identification in described file synchronization equipment.
In order to simplify, step S4410-S4430 is not shown in the accompanying drawings.
The second example
According to the file synchronisation method of the embodiment of the present invention, described file synchronization equipment also can be according to predetermined space periodically, for the file identification of described the first file and the first fileinfo being associated thereof, from described file server, obtain described the first file in the corresponding document information of described file server.In other words, described file synchronization equipment also can periodically initiatively be carried out simultaneous operation according to predetermined space.
In the situation that described the first file is not updated at described file server place, described corresponding document information is identical with described the first fileinfo.
In the situation that described the first file is updated at described file server place, described corresponding document information is different from described the first fileinfo and be described the second fileinfo.
Below, will specifically describe according to the specific implementation of the step S470 in the file synchronisation method 400 of the embodiment of the present invention.
The first example
According to the step S470 in the file synchronisation method 400 of the embodiment of the present invention, can comprise a plurality of sub-steps.
At step S4710, to described terminal equipment, transmit the file identification for the treatment of synchronous the first file being updated.
Alternatively, at step S4720, from described terminal equipment, receive file synchronization acknowledge message.
At step S4730, according to described file update information, from described file server, receive the data division of the need renewal of described the first file.
Then, at step S4740, received data division is forwarded to described terminal equipment, thus complete the data file at described terminal equipment place synchronous/upgrade.
In order to simplify, step S4710-S4740 is not shown in the accompanying drawings.
The second example
According in the step S470 in the file synchronisation method 400 of the embodiment of the present invention, to described terminal equipment, transmit file identification and the described file update information for the treatment of synchronous the first file being updated.Thus, make described terminal equipment can utilize described file update information from described file server, to receive the data division of the need renewal of described the first file.In the case, described file synchronization equipment needs without receiving and forward from described file server the file data part upgraded.
As shown in Figure 5, show according to the schematic block diagram of the file synchronization equipment 500 of the embodiment of the present invention.
According to the file synchronization equipment 500 of the embodiment of the present invention, comprise: registration management part 510, the first fileinfo receiving unit 520, the second fileinfo receiving unit 530, the associated part 540 of fileinfo, lastest imformation calculating section 550 and file synchronization notification section 560.
Described registration management part 510 is for the registration of receiving terminal apparatus.As previously mentioned, described registration management part 510 can receive the registration of a plurality of terminal equipments, and correspondingly manages a plurality of terminal equipments.Below, in order clearly to describe the present invention design, will launch to describe the single terminal equipment in the situation that, yet should be appreciated that the situation that is applied to equally a plurality of terminal equipments according to the file synchronization equipment 500 of the embodiment of the present invention.
The first fileinfo receiving unit 520 is for obtaining the first fileinfo of the first file of storing at described terminal equipment from described terminal equipment, described the first file is also stored in file server place.For example, described the first file is uploaded to described file server by described terminal equipment, or by another terminal equipment, uploaded to described file server, described another terminal equipment can not registered to described registration management part 510 to registration management part 510 registrations of described file synchronization equipment yet.For example, described terminal equipment can be smart mobile phone, and described another terminal equipment can be another smart mobile phone or desktop computer.Described the first fileinfo can be included in the cryptographic Hash of the first file of storing in described terminal equipment.
The associated part 540 of fileinfo is for storing the file identification of the device identification of described terminal equipment, described the first file and described the first fileinfo explicitly.
The second fileinfo receiving unit 550 is for obtaining the second fileinfo generating after described server is updated at described the first file from described file server.Described the second fileinfo is included in the cryptographic Hash of the first file after described server place upgrades.
Lastest imformation calculating section 550 for more described the first fileinfo and described the second fileinfo with calculation document lastest imformation.
File synchronization notification section 560 is for carrying out file synchronization according to described file update information to described terminal equipment notice.
The first example
Described file synchronization equipment 500 can also comprise synchronization notice receiving unit 570, for obtaining file synchronization notification message from described file server.
Particularly, after described the first file in described file server is updated, shown in figure 3, after described the first file in described file server is upgraded by terminal equipment B, described file server sends file synchronization notification message to the synchronization notice receiving unit 570 of described file synchronization server.Described terminal equipment B can be identical or different with another above-mentioned terminal equipment, and also can or not register, login or not login to described file synchronization server registration.
After described synchronization notice receiving unit 570 obtains described file synchronization notification message from described file server, described the second fileinfo receiving unit 530 obtains described the second fileinfo from described file server.Can comprise at described file synchronization notification message the file identification of the first file being updated, or described the second fileinfo receiving unit 530 obtains explicitly the file identification of the first file being updated when obtaining described the second fileinfo.
Alternatively, described synchronization notice receiving unit 570 can be embodied as described the second fileinfo receiving unit 530 together with described the second fileinfo receiving unit 530, be that described the second fileinfo receiving unit 530 obtains described file synchronization notification message and described the second fileinfo from described file server, at described file synchronization notification message, comprise the file identification of the first file being updated; Or described the second fileinfo receiving unit 530 from described file server obtain described file synchronization notification message, file identification and described second fileinfo of the first file of being updated.
In the case, described file synchronization equipment 500 can also comprise document retrieval part 545, for described the second fileinfo receiving unit 530 has received the file identification and described the second fileinfo of the first file being updated from described file server after, described the first fileinfo that retrieval and described file identification are stored explicitly in the associated part of described fileinfo.
In order to simplify, described synchronization notice receiving unit 570 and described document retrieval part 545 are not shown in Fig. 5.
The second example
Described the second fileinfo receiving unit 530 according to predetermined space periodically, for the file identification of described the first file and the first fileinfo being associated thereof, from described file server, obtain described the first file in the corresponding document information of described file server.In other words, the second fileinfo receiving unit 530 of described file synchronization equipment also can periodically initiatively be carried out simultaneous operation according to predetermined space.
In the situation that described the first file is not updated at described file server place, described corresponding document information is identical with described the first fileinfo.
In the situation that described the first file is updated at described file server place, described corresponding document information is different from described the first fileinfo and be described the second fileinfo.
After lastest imformation calculating section 550 has calculated file update information, described file synchronization notification section 560 is carried out file synchronization according to described file update information to described terminal equipment notice.
Described file synchronization notification section 560 can transmit file identification and the described file update information for the treatment of synchronous the first file being updated to described terminal equipment.Thus, make described terminal equipment can utilize described file update information from described file server, to receive the data division of the need renewal of described the first file.
Alternatively, described file synchronization notification section 560 can transmit the file identification for the treatment of synchronous the first file being updated to described terminal equipment.
In the case, described file synchronization equipment 500 can also comprise data receiver part 580 and data translator unit 590.
Described data receiver part 580 is for receiving the data division of the need renewal of described the first file from described file server according to described file update information.Described data translator unit 590 is for being sent to described terminal equipment by received data division.
In order to simplify, described data receiver part 580 and described data translator unit 590 are not shown in Fig. 5.
According to the embodiment of the present invention, by cache server as file synchronization equipment, replace terminal equipment to carry out file comparison, revise maintenance of information and file difference inspection etc. evaluation work, the computational resource that greatly reduces terminal equipment place takies, and makes terminal equipment centralized calculation resource to carry out other operation; Also reduce the energy consumption at terminal equipment place simultaneously, correspondingly extended the service time of battery of terminal equipment; On the other hand, also saved the network traffics expense at terminal equipment place.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential hardware platform by means of software and realize, and can certainly all by software or hardware, implement.Understanding based on such, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, disk, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in some part of each embodiment of the present invention or embodiment.
Describe each embodiment of the present invention in the above in detail.Yet, it should be appreciated by those skilled in the art that without departing from the principles and spirit of the present invention, can carry out various modifications to these embodiment, combination or sub-portfolio, and such modification should fall within the scope of the present invention.

Claims (16)

1. a file synchronisation method, is applied to file synchronization equipment, and this document synchronous method comprises:
The registration of receiving terminal apparatus;
From described terminal equipment, obtain the first fileinfo of the first file of storing and the file identification of the device identification of described terminal equipment, described the first file and described the first fileinfo are stored explicitly described terminal equipment, described the first file is also stored in file server place;
From described file server, obtain the second fileinfo generating at described the first file after described file server is updated;
More described the first fileinfo and described the second fileinfo are with calculation document lastest imformation; And
According to described file update information, to described terminal equipment notice, carry out file synchronization.
2. file synchronisation method as claimed in claim 1, also comprises:
From described file server, obtain file synchronization notification message,
Wherein, after obtaining described file synchronization notification message from described file server, from described file server, obtain described the second fileinfo,
At described file synchronization notification message, comprise the file identification of the first file being updated, or when described server obtains described the second fileinfo, obtaining explicitly the file identification of the first file being updated.
3. file synchronisation method as claimed in claim 2, also comprises:
Received the file identification and described the second fileinfo of the first file being updated from described file server after, described the first fileinfo that retrieval and described file identification are stored explicitly.
4. file synchronisation method as claimed in claim 1, wherein, according to predetermined space periodically, for the file identification of described the first file and the first fileinfo being associated thereof, from described file server, obtain described the first file in the corresponding document information of described file server
Wherein, in the situation that described the first file is not updated at described file server place, described corresponding document information is identical with described the first fileinfo;
In the situation that described the first file is updated at described file server place, described corresponding document information is different from described the first fileinfo and be described the second fileinfo.
5. file synchronisation method as claimed in claim 1, wherein, carries out file synchronization according to described file update information to described terminal equipment notice and comprises: to described terminal equipment, transmit the file identification for the treatment of synchronous the first file being updated.
6. file synchronisation method as claimed in claim 5, also comprises:
According to described file update information, from described file server, receive the data division of the need renewal of described the first file; And
Received data division is sent to described terminal equipment.
7. file synchronisation method as claimed in claim 1, wherein, according to described file update information, to described terminal equipment notice, carrying out file synchronization comprises: to described terminal equipment, transmit and treat file identification and the described file update information of synchronous the first file being updated, to make described terminal equipment can utilize described file update information to receive the data division of the need renewal of described the first file from described file server.
8. file synchronisation method as claimed in claim 1, wherein,
Described the first fileinfo is included in the cryptographic Hash of the first file of storing in described terminal equipment; And
Described the second fileinfo is included in the cryptographic Hash of the first file after described server place upgrades.
9. a file synchronization equipment, comprising:
Registration management part, for the registration of receiving terminal apparatus;
The first fileinfo receiving unit, for obtain the first fileinfo of the first file of storing at described terminal equipment from described terminal equipment, described the first file is also stored in file server place;
The associated part of fileinfo, for storing the file identification of the device identification of described terminal equipment, described the first file and described the first fileinfo explicitly;
The second fileinfo receiving unit, for obtaining the second fileinfo generating after described server is updated at described the first file from described file server;
Lastest imformation calculating section, for more described the first fileinfo and described the second fileinfo with calculation document lastest imformation; And
File synchronization notification section, for carrying out file synchronization according to described file update information to described terminal equipment notice.
10. file synchronization equipment as claimed in claim 9, also comprises:
Synchronization notice receiving unit, for obtaining file synchronization notification message from described file server,
Wherein, after described synchronization notice receiving unit obtains described file synchronization notification message from described file server, described the second fileinfo receiving unit obtains described the second fileinfo from described file server,
Wherein, at described file synchronization notification message, comprise the file identification of the first file being updated, or described the second fileinfo receiving unit obtains explicitly the file identification of the first file being updated when obtaining described the second fileinfo.
11. file synchronization equipment as claimed in claim 10, also comprise:
Document retrieval part, for described the second fileinfo receiving unit has received the file identification and described the second fileinfo of the first file being updated from described file server after, described the first fileinfo that retrieval and described file identification are stored explicitly in the associated part of described fileinfo.
12. file synchronization equipment as claimed in claim 9, wherein,
Described the second fileinfo receiving unit according to predetermined space periodically, for the file identification of described the first file and the first fileinfo being associated thereof, from described file server, obtain described the first file in the corresponding document information of described file server
Wherein, in the situation that described the first file is not updated at described file server place, described corresponding document information is identical with described the first fileinfo;
In the situation that described the first file is updated at described file server place, described corresponding document information is different from described the first fileinfo and be described the second fileinfo.
13. file synchronization equipment as claimed in claim 9, wherein,
Described file synchronization notification section transmits the file identification for the treatment of synchronous the first file being updated to described terminal equipment.
14. file synchronization equipment as claimed in claim 9, also comprise:
Data receiver part, for receiving the data division of the need renewal of described the first file from described file server according to described file update information; And
Data translator unit, for being sent to described terminal equipment by received data division.
15. file synchronisation methods as claimed in claim 9, wherein, described file synchronization notification section transmits and treats file identification and the described file update information of synchronous the first file being updated to described terminal equipment, to make described terminal equipment can utilize described file update information to receive the data division of the need renewal of described the first file from described file server.
16. file synchronization equipment as claimed in claim 9, wherein,
The cryptographic Hash that described the first fileinfo is the first file of storing in described terminal equipment; And
Described the second fileinfo is the cryptographic Hash of the first file after described server place upgrades.
CN201310088476.0A 2013-03-19 2013-03-19 File synchronization method and file synchronization equipment Pending CN104065676A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310088476.0A CN104065676A (en) 2013-03-19 2013-03-19 File synchronization method and file synchronization equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310088476.0A CN104065676A (en) 2013-03-19 2013-03-19 File synchronization method and file synchronization equipment

Publications (1)

Publication Number Publication Date
CN104065676A true CN104065676A (en) 2014-09-24

Family

ID=51553207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310088476.0A Pending CN104065676A (en) 2013-03-19 2013-03-19 File synchronization method and file synchronization equipment

Country Status (1)

Country Link
CN (1) CN104065676A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468767A (en) * 2014-12-01 2015-03-25 无锡清华信息科学与技术国家实验室物联网技术中心 Method and system for detecting cloud storage data collision
CN105279378A (en) * 2015-10-26 2016-01-27 武汉帕菲利尔信息科技有限公司 Synchronization method for ultrasound image and diagnosis report of medical UIS (Ultrasound information system) and front-end server
CN105338215A (en) * 2015-10-26 2016-02-17 武汉帕菲利尔信息科技有限公司 Synchronization method for medical LIS system inspection report, and preposed server
CN105335611A (en) * 2015-10-26 2016-02-17 武汉帕菲利尔信息科技有限公司 Synchronizing method of medical PACS (Picture Archiving and Communication System) image data and preposed server
CN105373986A (en) * 2015-10-26 2016-03-02 武汉帕菲利尔信息科技有限公司 Realization method for hospital film-free cloud computing
CN105389463A (en) * 2015-10-26 2016-03-09 武汉帕菲利尔信息科技有限公司 Medical RIS (Remote Installation Service) system diagnosis report synchronization method and front-end server
CN106156072A (en) * 2015-03-31 2016-11-23 北大方正集团有限公司 File relay management method and file relay management system
CN106453498A (en) * 2016-09-08 2017-02-22 北京小米移动软件有限公司 File synchronization method and apparatus
CN108259590A (en) * 2018-01-10 2018-07-06 广州穗圣信息科技有限公司 A kind of internet and LAN file intelligent synchronization method, apparatus and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6336115B1 (en) * 1997-06-17 2002-01-01 Fujitsu Limited File sharing system in a client/server environment with efficient file control using a www-browser-function extension unit
CN1846197A (en) * 2003-09-25 2006-10-11 国际商业机器公司 Method, system and program for data synchronization
CN1852137A (en) * 2005-07-20 2006-10-25 华为技术有限公司 Method for realizing synchronization of client end data and server end data
CN102457549A (en) * 2010-10-28 2012-05-16 盛乐信息技术(上海)有限公司 Data synchronization system and method for multiple network storage devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6336115B1 (en) * 1997-06-17 2002-01-01 Fujitsu Limited File sharing system in a client/server environment with efficient file control using a www-browser-function extension unit
CN1846197A (en) * 2003-09-25 2006-10-11 国际商业机器公司 Method, system and program for data synchronization
CN1852137A (en) * 2005-07-20 2006-10-25 华为技术有限公司 Method for realizing synchronization of client end data and server end data
CN102457549A (en) * 2010-10-28 2012-05-16 盛乐信息技术(上海)有限公司 Data synchronization system and method for multiple network storage devices

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468767B (en) * 2014-12-01 2017-12-12 无锡清华信息科学与技术国家实验室物联网技术中心 A kind of cloud storage data collision detection method and system
CN104468767A (en) * 2014-12-01 2015-03-25 无锡清华信息科学与技术国家实验室物联网技术中心 Method and system for detecting cloud storage data collision
CN106156072A (en) * 2015-03-31 2016-11-23 北大方正集团有限公司 File relay management method and file relay management system
CN105279378B (en) * 2015-10-26 2017-09-22 武汉帕菲利尔信息科技有限公司 The synchronous method and front server of medical UIS systems ultrasonoscopy and diagnosis report
CN105373986A (en) * 2015-10-26 2016-03-02 武汉帕菲利尔信息科技有限公司 Realization method for hospital film-free cloud computing
CN105389463A (en) * 2015-10-26 2016-03-09 武汉帕菲利尔信息科技有限公司 Medical RIS (Remote Installation Service) system diagnosis report synchronization method and front-end server
CN105335611A (en) * 2015-10-26 2016-02-17 武汉帕菲利尔信息科技有限公司 Synchronizing method of medical PACS (Picture Archiving and Communication System) image data and preposed server
CN105338215A (en) * 2015-10-26 2016-02-17 武汉帕菲利尔信息科技有限公司 Synchronization method for medical LIS system inspection report, and preposed server
CN105335611B (en) * 2015-10-26 2017-09-29 武汉帕菲利尔信息科技有限公司 The synchronous method and front server of medical PACS system image data
CN105389463B (en) * 2015-10-26 2017-11-28 武汉帕菲利尔信息科技有限公司 The synchronous method and front server of medical RIS system diagnostics report
CN105279378A (en) * 2015-10-26 2016-01-27 武汉帕菲利尔信息科技有限公司 Synchronization method for ultrasound image and diagnosis report of medical UIS (Ultrasound information system) and front-end server
CN105338215B (en) * 2015-10-26 2018-01-05 武汉帕菲利尔信息科技有限公司 The synchronous method and front server of medical LIS system tests report
CN105373986B (en) * 2015-10-26 2018-11-27 武汉帕菲利尔信息科技有限公司 The implementation method of hospital's film-free cloud computing
CN106453498A (en) * 2016-09-08 2017-02-22 北京小米移动软件有限公司 File synchronization method and apparatus
CN106453498B (en) * 2016-09-08 2020-09-08 北京小米移动软件有限公司 File synchronization method and device
CN108259590A (en) * 2018-01-10 2018-07-06 广州穗圣信息科技有限公司 A kind of internet and LAN file intelligent synchronization method, apparatus and system

Similar Documents

Publication Publication Date Title
CN104065676A (en) File synchronization method and file synchronization equipment
US10083021B2 (en) Method and apparatus for providing firmware over the air service to user equipments
CN106021023B (en) Application program recovery method and device and terminal
CN103237060B (en) A kind of data object acquisition, Apparatus and system
CN102708192B (en) A kind of method and system of document sharing, equipment
CN102355682A (en) Sensor adapting method, sensor adapting device and IOT (Internet Of Things) system
CN104144150A (en) Method, device and system for having access to information through metadata
KR102276795B1 (en) A method for wireless charging based on block chain and a computer readable recording medium on which a program for carrying out the method is recorded
CN103064757A (en) Method and system for backing up data
CN103905574A (en) DNS service access method and DNS data synchronization method and device
US10938773B2 (en) Method and apparatus for synchronizing contact information and medium
CN103457748A (en) Data transmission method, system and device
CN104092754A (en) File storage system and method
CN101087263B (en) A method and system for capturing user status information via search engine
CN106462421B (en) Telecommunication device and method for updating software in a telecommunication device
KR20160026138A (en) Rapid sync method for cloud file system and cloud file system using the same
CN107273047B (en) Cache management method, cache manager and storage management software
CN103425707A (en) Data analyzing method and data analyzing device
JP5162686B2 (en) Method for retrieving object from DM client and device management system related thereto
CN101730119B (en) Reverse acquisition method and device of network element configuration data
CN108846455A (en) A kind of method and terminal device of the protective relaying device maintenance based on two dimensional code
CN109194740B (en) Method and equipment for power generation management
CN111190858B (en) Method, device, equipment and storage medium for storing software information
CN104348646A (en) Configuration data processing method, device and system
CN109325057B (en) Middleware management method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 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

Application publication date: 20140924

RJ01 Rejection of invention patent application after publication