CN102624768A - Method and system for carrying out file synchronization processing between different devices - Google Patents

Method and system for carrying out file synchronization processing between different devices Download PDF

Info

Publication number
CN102624768A
CN102624768A CN2011100387148A CN201110038714A CN102624768A CN 102624768 A CN102624768 A CN 102624768A CN 2011100387148 A CN2011100387148 A CN 2011100387148A CN 201110038714 A CN201110038714 A CN 201110038714A CN 102624768 A CN102624768 A CN 102624768A
Authority
CN
China
Prior art keywords
file
client
hash value
record
server
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.)
Granted
Application number
CN2011100387148A
Other languages
Chinese (zh)
Other versions
CN102624768B (en
Inventor
李大龙
赵东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110038714.8A priority Critical patent/CN102624768B/en
Publication of CN102624768A publication Critical patent/CN102624768A/en
Application granted granted Critical
Publication of CN102624768B publication Critical patent/CN102624768B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The embodiment of the invention provides a method and an apparatus for carrying out file synchronization processing between different devices. The method mainly comprises the following steps: a first device sends a file synchronization request carrying a file name, a Hash value and a virtual path to a second device, and the second device acquires a file corresponding to the Hash value and stores the file; the second device adds a record of the file corresponding to the Hash value in a file information table which is stored locally, and values of a virtual path and a file name field in the record are equal to that of the file name and the virtual path in the file synchronization request. According to the embodiment, a file directory structure on the device and an actual physical path of the stored file can be extricated to carry out synchronization processing, and convenience is brought to a user to manage an audio-visual file and the like between different devices.

Description

Between distinct device, carry out the method and system that file synchronization is handled
Technical field
The present invention relates to computer application field, relate in particular to a kind of method and apparatus that file synchronization is handled that between distinct device, carries out.
Background technology
In recent years, along with computer in the application of people's daily life more and more widely, increasing people has the multi-section computer.Such as: at the office computer that office has company to be equipped with, the desktop computer of be in FYA and online usefulness, and also have a frivolous notebook computer or panel computer during outdoor trip.
Meanwhile, the multimedia video amusement remains one of common requirements in current internet, the computer application.So, can there be a lot of audio/video files in the multi-section computer that user has, need between the multi-section computer, carry out the data sync of audio/video file.
A kind of method of between multiple computers, carrying out the data sync of audio/video file of the prior art is: based on the method for synchronization in the actual physics path of store files.On the synchronous two computers of needs, the filename of identical audio/video file is in full accord with the actual physics path of depositing.
Such as, at the audio/video file that needs on the computer B to deposit on the synchronous computer A, can obtain computer A earlier and go up the playlist on the player that uses, comprise the filename of each audio/video file and the actual physics path of depositing in this playlist.Then, on computer B, on the actual physics path identical, deposit identical audio/video file with same file name with computer A according to above-mentioned playlist.
In realizing process of the present invention; The inventor finds that there is following problem at least in the method in the data sync of carrying out audio/video file between the multiple computers of the prior art: in practical application, identical audio/video file can not be accomplished in full accord in the actual physics path of two computers sometimes.
Such as: the actual physics path of certain audio/video file on the computer A be " MyMusic ", and possibly not have on the computer B at all " D: ", so this music file synchronization failure between computer A/B.
Summary of the invention
Embodiments of the invention provide a kind of method and apparatus that file synchronization is handled that between distinct device, carries out, to realize between the multi-section computer, carrying out effectively the data sync of files such as audio/video file.
A kind of method of between distinct device, carrying out the file synchronization processing comprises:
The file synchronization request that first equipment sends the filename, hash hash value and the virtual route that carry file to second equipment, said second equipment obtains said hash value corresponding file, and said file is preserved;
Said second equipment adds the record of said hash value corresponding file in the file information table that preserve this locality, filename in the value of the virtual route in the said record, filename field and the said file synchronization request and virtual route equate.
A kind of system that between distinct device, carries out the file synchronization processing comprises:
First equipment; Be used for sending to second equipment file synchronization request of the filename, hash hash value and the virtual route that carry file, said second equipment obtains said hash value corresponding file, and said file is preserved;
Second equipment; The file information table that is used for preserving in this locality is added the record of said hash value corresponding file, and filename in the value of the virtual route in the said record, filename field and the said file synchronization request and virtual route equate.
Technical scheme by the embodiment of the invention described above provides can be found out; The embodiment of the invention is passed through the virtual route according to the various attribute information spanned files of file; Between different apparatus such as computer, utilize the virtual route of file to carry out file synchronization processing operation; Thereby the actual physics path that can break away from document directory structure and storage file on the equipment is carried out file synchronization and is handled, and makes things convenient for the user between distinct device, to manage files such as audio/video file.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention; The accompanying drawing of required use is done to introduce simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
A kind of process chart that carries out the method for file synchronization processing from the user end to server end that Fig. 1 provides for the embodiment of the invention one;
A kind of process chart that carries out the method for file synchronization processing from server to client that Fig. 2 provides for the embodiment of the invention two;
A kind of concrete structure figure that between distinct device, carries out the system of file synchronization processing that Fig. 3 improves for the embodiment of the invention three.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
For ease of the understanding to the embodiment of the invention, will combine accompanying drawing below is that example is done further and explained with several specific embodiments, and each embodiment does not constitute the qualification to the embodiment of the invention.
Embodiment one
This embodiment provides, and a kind of to carry out the handling process of the method that file synchronization handles from the user end to server end as shown in Figure 1, comprises following treatment step:
Step 11, client calculate the hash value of each file.
The embodiment of the invention is carried out the multiple devices that file synchronization is handled with needs, such as computer, is divided into client and server, and the quantity of client can be for a plurality of, and the quantity of server is 1, and each client all and carry out file synchronization between the server and handle.
Each file of on client, managing for needs, such as, audio/video file, elder generation is through the hash value of Hash (hash) algorithm computation outfile.Above-mentioned hash algorithm can (being called again trade-shows penetrates, and pre-image) is transformed into the output file of regular length, and this output file is exactly the hash value of above-mentioned input file with the input file of random length.The corresponding hash value of different files is different, therefore can identify a file with hash value.Common hash algorithm has CRC32, MD5, SHA1 etc.
Step 12, the mode of on client, taking hash value, virtual route and actual physics path with file to combine are stored and log file.
On the client with document storage after on the actual physics path, according to the virtual route of the various attribute information spanned files of file.Above-mentioned attribute information mainly comprises: information such as the type of file, title, related person, relevant area and issuing time.
Above-mentioned virtual route is the file identification information that user easier is understood, such as being: the film/science fiction/U.S./terminator; Film/story of a play or opera/homemade/Zhou Xingchi/talk on the journey to west etc.; The subregion situation and the document directory structure of the memory on above-mentioned virtual route and the client; And it doesn't matter in the actual physics path of store files, with the recorded information of breaking away from file and the coupling between the physical pathway.
In practical application, the actual physics path of above-mentioned store files can confirm according to the hash value of file, such as the SHA1 value be f90efb623b5abea70af63c470daa8674444fb1df file the actual physics path can for:
D/data/unimediafile/f9/0e/f90efb623b5abea70af63c470daa8674444fb1df。
On client with filename, virtual route, actual physics path and the hash value of a file, and and whether server end synchronous etc. between the information related information preserve.Such as, preserve above-mentioned related information in client through file information table.
Above-mentioned fileinfo tableau format is following:
Figure BSA00000434897300051
Step 13, user end to server send the file synchronization request of carrying the hash value, filename and the virtual route that need synchronous file, and whether server lookup this locality preserves above-mentioned hash value corresponding file.
When client need be to server end synchronously during certain file; Through inquiring about hash value, filename and the virtual route that local above-mentioned file information table of preserving is obtained this document, send the file synchronization request of carrying this hash value, filename and virtual route to server.After server received this document synchronization request, whether inquiry this locality preserved above-mentioned hash value corresponding file, if having, then execution in step 14; Otherwise, execution in step 15.
Step 14, server add the corresponding recorded information of above-mentioned file in the file information table that preserve this locality, value in " filename " and " virtual route " field and the corresponding information in the above-mentioned file synchronization request are consistent.
Server obtains hash value, filename and the virtual route that carries in the above-mentioned file synchronization request, and obtains the sign of above-mentioned client.
Server adds the corresponding recorded information of above-mentioned file in the file information table that preserve this locality.The local fileinfo tableau format of preserving of server can be following:
Figure BSA00000434897300061
Can corresponding different record in the file information table that same file is preserved on server, every virtual route and client that record is corresponding different respectively.
Value in " filename " and " virtual route " field in the record of the above-mentioned file correspondence that server adds in the file information table that preserve this locality and the above-mentioned filename that from synchronizing information, obtains and virtual route are consistent; The value of " actual physics path " field is filled in according to the actual physics path of preserving above-mentioned file data; Can be inconsistent with client, and in " synchronous client " field the record above-mentioned client sign.
Then; Server sends syn ack information to above-mentioned client; After above-mentioned client received above-mentioned syn ack information, the value of " whether synchronous with the server end " field in the record that above-mentioned file is corresponding in the file information table with this locality preservation was updated to " being ".
So, accomplished the Synchronous Processing operation of the above-mentioned file between client and server.
Step 15, user end to server are uploaded the file data of above-mentioned file; Server is preserved the file data of above-mentioned file; In the file information table that preserve this locality, add the corresponding recorded information of above-mentioned file, value in " filename " and " virtual route " field and the corresponding information in the file synchronization request are consistent.
Server sends it back to above-mentioned client and answers, the file data of the above-mentioned file of notice client upload.
Client is uploaded the file data of above-mentioned file according to the actual physics path in the file information table of this locality preservation to server.Server is kept at this document data on the selected actual physics path after receiving the file data of the above-mentioned file that client sends.Server also obtains hash value, filename and the virtual route that carries in the above-mentioned file synchronization request, and obtains the sign of above-mentioned client.
Then; Server adds the corresponding recorded information of above-mentioned file in the file information table that preserve this locality; Filename and virtual route that value in " filename " and " virtual route " field in the record of above-mentioned file correspondence is set to from above-mentioned file synchronization request, obtain are consistent; The value of " actual physics path " field is filled in according to the actual physics path of preserving above-mentioned file data, and in " synchronous client " field, writes down the sign of above-mentioned client.
Then; Server sends syn ack information to above-mentioned client; After above-mentioned client received above-mentioned syn ack information, the value of " whether synchronous with the server end " field in the file information table that this locality is preserved in the record of above-mentioned file was updated to " being ".
So, accomplished the data sync operation of the above-mentioned file between client and server.
Embodiment two
What this embodiment provided is a kind of as shown in Figure 2 to the handling process of the method for client synchronous documents from server, comprises following treatment step:
Step 21, user end to server send the file synchronization request, and server extracts filename, virtual route and the hash value in the file information table of this locality preservation as synchronizing information, sends to above-mentioned client.
When the file that writes down in the file information table of client wants and server for saving carries out file synchronization processing operation, send the file synchronization request to server.
After server receives above-mentioned file synchronization request, filename, virtual route and hash value in the file information table of this locality preservation are extracted as synchronizing information, send the sync response information of carrying this synchronizing information to above-mentioned client.
Step 22, client compare above-mentioned synchronizing information and local file information table of preserving, and judge whether the hash value that writes down in the above-mentioned synchronizing information has record in the file information table that client terminal local is preserved.
After client receives above-mentioned sync response information, obtain the synchronizing information of wherein carrying after, information recorded in above-mentioned synchronizing information and the local file information table of preserving is compared.When the hash value that writes down in the above-mentioned synchronizing information does not have record in the file information table that client terminal local is preserved, then execution in step 23; Otherwise, execution in step 24.
Step 23, server send to client and carry the download indication information of download link information, and client is downloaded above-mentioned hash value corresponding file data from server.Client is added the record of above-mentioned hash value corresponding file in file information table, the value of " filename ", " virtual route " field in the record be set to above-mentioned synchronizing information in corresponding information consistent.
When the hash value of above-mentioned synchronizing information record does not have record in the file information table that client terminal local is preserved, then user end to server sends the solicited message of above-mentioned hash value corresponding file data.After server receives above-mentioned solicited message; Value according to " actual physics path " field in the record of the above-mentioned hash value corresponding file in the file information table of this locality preservation; Obtain the download link information of above-mentioned hash value corresponding file data, send to client and carry the download indication information of above-mentioned download link information.
After client received above-mentioned download indication information, the above-mentioned hash value corresponding file of the above-mentioned download link download of information data according to wherein carrying were kept at the downloaded files data on the selected actual physics path.
Client is added the record of above-mentioned hash value corresponding file in the file information table that preserve this locality; The value of " filename ", " virtual route " field in the record be set to above-mentioned synchronizing information in " filename ", " virtual route " consistent; Fill in the actual physics path that above-mentioned file data is preserved according to reality in " actual physics path ", and the value of " whether synchronous with server end " field is set to " being ".User end to server sends the sync response information of carrying above-mentioned hash value; After server receives this sync response information, the sign of the above-mentioned client of record in " synchronous client " field in the record of the above-mentioned hash value correspondence in the file information table that preserve this locality.So, between client and server, accomplished the Synchronous Processing operation of above-mentioned hash value corresponding file.
" filename " in the record of step 24, the client above-mentioned hash value corresponding file in file information table, the value of " virtual route " field be set to above-mentioned synchronizing information in corresponding information consistent.
In the file information table of above-mentioned synchronizing information and local preservation, all write down the file of identical hash value; And when the value of " whether synchronous with the server end " field in the record of the above-mentioned hash value correspondence in the file information table that client terminal local is preserved is " denying "; " filename " in the record that then the above-mentioned hash value in the file information table of preserving of client this locality is corresponding, the value of " virtual route " field be set to above-mentioned synchronizing information in " filename ", " virtual route " consistent, the value of " whether synchronous with server end " field is set to " being ".User end to server sends the sync response information of carrying above-mentioned hash value; After server receives this sync response information, the sign of the above-mentioned client of record in " synchronous client " field in the record of the above-mentioned hash value correspondence in the file information table that preserve this locality.So, between client and server, accomplished the data sync operation of above-mentioned hash value corresponding file.
In the file information table of above-mentioned synchronizing information and local preservation, all write down the file of identical hash value; And when the value of " whether synchronous with the server " field in the record of the above-mentioned hash value correspondence in the file information table that client terminal local is preserved is " being ", then need not carry out the Synchronous Processing operation of file.
Embodiment three
This embodiment has improved a kind of system that file synchronization is handled that between distinct device, carries out, and its concrete structure is as shown in Figure 3, comprises following equipment:
First equipment 31; Be used for sending to second equipment file synchronization request of the filename, hash hash value and the virtual route that carry file, said second equipment obtains said hash value corresponding file, and said file is preserved;
Second equipment 32; The file information table that is used for preserving in this locality is added the record of said hash value corresponding file, and filename in the value of the virtual route in the said record, filename field and the said file synchronization request and virtual route equate.
Described first equipment is client, comprises in the said client:
File storage and administration module 311 are used for document storage after on the actual physics path on the equipment, generate virtual routes according to the various attribute informations of said file; Add the corresponding record of said file in the file information table of on said equipment, preserving, the field in this record comprises whether filename, virtual route, actual physics path, hash value and server be synchronous.
Described second equipment is server, comprises in the said server:
File storage and administration module 321 are used for document storage after on the actual physics path on the equipment, generate virtual routes according to the various attribute informations of said file; Add the corresponding record of said file in the file information table of on said equipment, preserving, the field in this record comprises filename, virtual route, actual physics path, hash value, synchronous client.
Comprise in the described client:
First synchronous processing module 312; Be used for when client need be to certain file of server sync; Through inquiring about filename, hash value and the virtual route that the file information table of preserving in said file storage and the administration module is obtained said file, send the file synchronization request of the filename, hash value and the virtual route that carry said file to server;
Comprise in the described server:
First synchronous processing module 322, after being used to receive the file synchronization request of said client transmission, whether querying server this locality preserves said hash value corresponding file, if having, then writes down the actual physics path of said hash value corresponding file; Otherwise, notify the file data of the said file of said client upload, receive the file data of said file of said client upload after, said document data saving on selected actual physics path, and is write down this actual physics path;
Add the corresponding record of said file in the file information table of in said file storage and administration module, preserving; Filename in this record is set to consistent with virtual route with the filename that from said synchronizing information, obtains with value in the virtual route field; The value of actual physics path field is set to the actual physics path of said record, and the value of synchronous client field is set to the sign of said client;
Send syn ack information to said client;
First synchronous processing module in the said client; After also being used to receive said syn ack information, with in the record of file described in the file information table of preserving in said file storage and the administration module with server end whether the value of synchronization field be updated to and be.
Comprise in the described client:
Second synchronous processing module 313 is used for when the file that writes down in the file information table that client wants and server are preserved carries out the Synchronous Processing operation, and said client is sent the file synchronization request to said server;
Comprise in the described server:
Second synchronous processing module 323; After being used to receive the said file synchronization request of said client transmission; Filename, virtual route and hash value in the file information table of this locality preservation are extracted as synchronizing information, send the sync response information of carrying said synchronizing information to said client;
Second synchronous processing module 313 in the described client; Also be used in the file information table that client terminal local is preserved, not having record when the hash value of the synchronizing information that said server sends over; Then send the solicited message of said hash value corresponding file data to said server; The said file data of download link download of information according to said server sends over is kept at the downloaded files data on the selected actual physics path;
In the file information table that preserve this locality, add or upgrade the record of said hash value corresponding file; The value of " filename " in the said record, " virtual route " field is set to consistent with virtual route with the filename that from said synchronizing information, obtains, and the value of " whether synchronous with server end " field is set to " being "; Send the Synchronous Processing of carrying said hash value to said server and accomplish information;
Second synchronous processing module 323 in the said server; After also being used to receive the Synchronous Processing completion information of said client transmission, the sign of the said client of record in the synchronous client field in the record of the said hash value correspondence in the file information table that preserve this locality.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
In sum; The embodiment of the invention is passed through the virtual route according to the various attribute information spanned files of file; Between different apparatus such as computer, utilize the virtual route of file to carry out file synchronization processing operation; Thereby the actual physics path that can break away from document directory structure and storage file on the equipment is carried out file synchronization and is handled, and makes things convenient for the user between distinct device, manage files such as audio/video file, the convenience of lifting user file simultaneous operation.
The embodiment of the invention is provided with a server through giving a plurality of clients; Each client all and carry out file synchronization between the server and handle operation; Thereby can make the convenient ground of a plurality of clients obtain files such as popular audio/video file at no distant date from server sync, the file synchronization that has reduced between a plurality of clients is handled bandwidth and the time loss cost of operating.
The above; Be merely the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses; The variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (10)

1. one kind is carried out the method that file synchronization is handled between distinct device, it is characterized in that, comprising:
The file synchronization request that first equipment sends the filename, hash hash value and the virtual route that carry file to second equipment, said second equipment obtains said hash value corresponding file, and said file is preserved;
Said second equipment adds the record of said hash value corresponding file in the file information table that preserve this locality, filename in the value of the virtual route in the said record, filename field and the said file synchronization request and virtual route equate.
2. method of between distinct device, carrying out the file synchronization processing according to claim 1 is characterized in that said method also comprises:
On the equipment with document storage after on the actual physics path, generate virtual routes according to the various attribute informations of said file, said equipment comprises: said first equipment and said second equipment;
Add the corresponding record of said file in the file information table of on said equipment, preserving, the field in this record comprises filename, virtual route, actual physics path and hash value.
3. method of between distinct device, carrying out the file synchronization processing according to claim 2; It is characterized in that; Described first equipment sends the file synchronization request of the filename, hash value and the virtual route that carry file to second equipment; Said second equipment obtains said hash value corresponding file, said file is preserved comprise:
When client need be to certain file of server sync; Said client is through inquiring about filename, hash value and the virtual route that local file information table of preserving is obtained said file, the file synchronization request of sending the filename, hash value and the virtual route that carry said file to server;
After said server received said file synchronization request, whether inquiry this locality preserved said hash value corresponding file, if having, then writes down the actual physics path of said hash value corresponding file; Otherwise, the file data of notice client upload said file, receive the file data of said file of said client upload after, said document data saving on selected actual physics path, and is write down this actual physics path.
4. method of between distinct device, carrying out the file synchronization processing according to claim 3; It is characterized in that; Described said second equipment adds the record of said hash value corresponding file in the file information table that preserve this locality, filename and virtual route in the value of the virtual route in the said record, filename field and the said file synchronization request equate to comprise:
Said server adds the corresponding record of said file in the file information table that preserve this locality; Filename in this record is set to consistent with virtual route with the filename that from said synchronizing information, obtains with value in the virtual route field; The value of actual physics path field is set to the actual physics path of said record, and the value of synchronous client field is set to the sign of said client;
Said server sends syn ack information to said client, after said client receives said syn ack information, described in the file information table that this locality is preserved in the record of file with server end whether the value of synchronization field be updated to and be.
5. method of between distinct device, carrying out the file synchronization processing according to claim 2; It is characterized in that; Described first equipment sends the file synchronization request of the filename, hash value and the virtual route that carry file to second equipment; Said second equipment obtains said hash value corresponding file, said file is preserved comprise:
When the file that writes down in the file information table of preserving in client wants and the server carries out the Synchronous Processing operation; Said client is sent the file synchronization request to said server; After said server receives said file synchronization request; Filename, virtual route and hash value in the file information table of this locality preservation are extracted as synchronizing information, send the sync response information of carrying said synchronizing information to said client;
When the hash value in the said synchronizing information does not have record in the file information table that client terminal local is preserved; Then said client is sent the solicited message of said hash value corresponding file data to said server; Said server sends the download link information of said file data to said client; Said client is kept at the downloaded files data on the selected actual physics path according to the said file data of said download link download of information.
6. method of between distinct device, carrying out the file synchronization processing according to claim 5; It is characterized in that; Described said second equipment adds the record of said hash value corresponding file in the file information table that preserve this locality, filename and virtual route in the value of the virtual route in the said record, filename field and the said file synchronization request equate to comprise:
Said client adds or upgrades the record of said hash value corresponding file in the file information table that preserve this locality; The value of " filename " in the said record, " virtual route " field is set to consistent with virtual route with the filename that from said synchronizing information, obtains, and the value of " whether synchronous with server end " field is set to " being ";
Said client is sent the Synchronous Processing of carrying said hash value to said server and is accomplished information; After server receives this Synchronous Processing completion information, the sign of the said client of record in the synchronous client field in the record of the said hash value correspondence in the file information table that preserve this locality.
7. one kind is carried out the system that file synchronization is handled between distinct device, it is characterized in that, comprising:
First equipment; Be used for sending to second equipment file synchronization request of the filename, hash hash value and the virtual route that carry file, said second equipment obtains said hash value corresponding file, and said file is preserved;
Second equipment; The file information table that is used for preserving in this locality is added the record of said hash value corresponding file, and filename in the value of the virtual route in the said record, filename field and the said file synchronization request and virtual route equate.
8. the system that between distinct device, carries out the file synchronization processing according to claim 7 is characterized in that described first equipment is client, comprises in the said client:
File storage and administration module 311 are used for document storage after on the actual physics path on the equipment, generate virtual routes according to the various attribute informations of said file; Add the corresponding record of said file in the file information table of on said equipment, preserving, the field in this record comprises whether filename, virtual route, actual physics path, hash value and server be synchronous.
Described second equipment is server, comprises in the said server:
File storage and administration module 321 are used for document storage after on the actual physics path on the equipment, generate virtual routes according to the various attribute informations of said file; Add the corresponding record of said file in the file information table of on said equipment, preserving, the field in this record comprises filename, virtual route, actual physics path, hash value, synchronous client.
9. the system that between distinct device, carries out the file synchronization processing according to claim 8 is characterized in that, comprises in the described client:
First synchronous processing module; Be used for when client need be to certain file of server sync; Through inquiring about filename, hash value and the virtual route that the file information table of preserving in said file storage and the administration module is obtained said file, send the file synchronization request of the filename, hash value and the virtual route that carry said file to server;
Comprise in the described server:
First synchronous processing module, after being used to receive the file synchronization request of said client transmission, whether querying server this locality preserves said hash value corresponding file, if having, then writes down the actual physics path of said hash value corresponding file; Otherwise, notify the file data of the said file of said client upload, receive the file data of said file of said client upload after, said document data saving on selected actual physics path, and is write down this actual physics path;
Add the corresponding record of said file in the file information table of in said file storage and administration module, preserving; Filename in this record is set to consistent with virtual route with the filename that from said synchronizing information, obtains with value in the virtual route field; The value of actual physics path field is set to the actual physics path of said record, and the value of synchronous client field is set to the sign of said client;
Send syn ack information to said client;
First synchronous processing module in the said client; After also being used to receive said syn ack information, with in the record of file described in the file information table of preserving in said file storage and the administration module with server end whether the value of synchronization field be updated to and be.
10. the system that between distinct device, carries out the file synchronization processing according to claim 8 is characterized in that, comprises in the described client:
Second synchronous processing module is used for when the file that writes down in the file information table that client wants and server are preserved carries out the Synchronous Processing operation, and said client is sent the file synchronization request to said server;
Comprise in the described server:
Second synchronous processing module; After being used to receive the said file synchronization request of said client transmission; Filename, virtual route and hash value in the file information table of this locality preservation are extracted as synchronizing information, send the sync response information of carrying said synchronizing information to said client;
Second synchronous processing module in the described client; Also be used in the file information table that client terminal local is preserved, not having record when the hash value of the synchronizing information that said server sends over; Then send the solicited message of said hash value corresponding file data to said server; The said file data of download link download of information according to said server sends over is kept at the downloaded files data on the selected actual physics path;
In the file information table that preserve this locality, add or upgrade the record of said hash value corresponding file; The value of " filename " in the said record, " virtual route " field is set to consistent with virtual route with the filename that from said synchronizing information, obtains, and the value of " whether synchronous with server end " field is set to " being "; Send the Synchronous Processing of carrying said hash value to said server and accomplish information;
Second synchronous processing module in the said server; After also being used to receive the Synchronous Processing completion information of said client transmission, the sign of the said client of record in the synchronous client field in the record of the said hash value correspondence in the file information table that preserve this locality.
CN201110038714.8A 2011-01-28 2011-01-28 Carry out the method and system of file synchronization process between different devices Active CN102624768B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110038714.8A CN102624768B (en) 2011-01-28 2011-01-28 Carry out the method and system of file synchronization process between different devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110038714.8A CN102624768B (en) 2011-01-28 2011-01-28 Carry out the method and system of file synchronization process between different devices

Publications (2)

Publication Number Publication Date
CN102624768A true CN102624768A (en) 2012-08-01
CN102624768B CN102624768B (en) 2016-06-29

Family

ID=46564452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110038714.8A Active CN102624768B (en) 2011-01-28 2011-01-28 Carry out the method and system of file synchronization process between different devices

Country Status (1)

Country Link
CN (1) CN102624768B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868765A (en) * 2012-10-09 2013-01-09 乐视网信息技术(北京)股份有限公司 Method and system for uploading files
CN103327124A (en) * 2013-07-12 2013-09-25 北京金山云网络技术有限公司 File synchronization method, file synchronization method device, client, server side and equipment
CN103780658A (en) * 2012-10-25 2014-05-07 中国电信股份有限公司 File downloading method, device and system
WO2014101889A1 (en) * 2012-12-31 2014-07-03 华为技术有限公司 Data synchronization method and device
CN104917819A (en) * 2015-04-29 2015-09-16 努比亚技术有限公司 Method and system for achieving data synchronization
CN106453663A (en) * 2016-12-13 2017-02-22 宁夏凯速德科技有限公司 Improved cloud service-based storage capacity expansion method and device
US20170187800A1 (en) * 2015-12-28 2017-06-29 Le Holdings (Beijing) Co., Ltd. File synchronization method, electronic device
CN109739810A (en) * 2018-12-07 2019-05-10 中山市江波龙电子有限公司 File synchronisation method, server, client and the device with store function
CN111553139A (en) * 2019-01-23 2020-08-18 北大方正集团有限公司 Picture typesetting method and equipment
CN114979119A (en) * 2022-05-23 2022-08-30 深圳市云语科技有限公司 Method for supporting multiple storages through virtual path in file transmission system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050165947A1 (en) * 2003-12-29 2005-07-28 Auriemma Stephen T. System and method for optimizing synchronization
CN101404648A (en) * 2008-11-17 2009-04-08 深圳华为通信技术有限公司 Media terminal and its data synchronization method and system
CN101447937A (en) * 2009-02-27 2009-06-03 北京理工大学 Rapid data positioning method based on path division and multi-distributed-directory
CN101529819A (en) * 2006-10-31 2009-09-09 三星电子株式会社 Method and apparatus for preventing duplicate saving of resource between universal plug and play devices providing content directory service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050165947A1 (en) * 2003-12-29 2005-07-28 Auriemma Stephen T. System and method for optimizing synchronization
CN101529819A (en) * 2006-10-31 2009-09-09 三星电子株式会社 Method and apparatus for preventing duplicate saving of resource between universal plug and play devices providing content directory service
CN101404648A (en) * 2008-11-17 2009-04-08 深圳华为通信技术有限公司 Media terminal and its data synchronization method and system
CN101447937A (en) * 2009-02-27 2009-06-03 北京理工大学 Rapid data positioning method based on path division and multi-distributed-directory

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868765B (en) * 2012-10-09 2015-06-03 乐视网信息技术(北京)股份有限公司 Method and system for uploading files
CN102868765A (en) * 2012-10-09 2013-01-09 乐视网信息技术(北京)股份有限公司 Method and system for uploading files
CN103780658B (en) * 2012-10-25 2017-09-12 中国电信股份有限公司 Document down loading method, device and system
CN103780658A (en) * 2012-10-25 2014-05-07 中国电信股份有限公司 File downloading method, device and system
WO2014101889A1 (en) * 2012-12-31 2014-07-03 华为技术有限公司 Data synchronization method and device
CN103327124B (en) * 2013-07-12 2016-08-10 北京金山云网络技术有限公司 A kind of method of file synchronization, device, client, server end and equipment
CN103327124A (en) * 2013-07-12 2013-09-25 北京金山云网络技术有限公司 File synchronization method, file synchronization method device, client, server side and equipment
CN104917819A (en) * 2015-04-29 2015-09-16 努比亚技术有限公司 Method and system for achieving data synchronization
CN104917819B (en) * 2015-04-29 2019-01-01 努比亚技术有限公司 A kind of method and system for realizing that data are synchronous
US20170187800A1 (en) * 2015-12-28 2017-06-29 Le Holdings (Beijing) Co., Ltd. File synchronization method, electronic device
CN106453663A (en) * 2016-12-13 2017-02-22 宁夏凯速德科技有限公司 Improved cloud service-based storage capacity expansion method and device
CN106453663B (en) * 2016-12-13 2019-10-22 河北思达歌数据科技投资有限公司 Improved storage expansion method and device based on cloud service
CN109739810A (en) * 2018-12-07 2019-05-10 中山市江波龙电子有限公司 File synchronisation method, server, client and the device with store function
CN111553139A (en) * 2019-01-23 2020-08-18 北大方正集团有限公司 Picture typesetting method and equipment
CN114979119A (en) * 2022-05-23 2022-08-30 深圳市云语科技有限公司 Method for supporting multiple storages through virtual path in file transmission system

Also Published As

Publication number Publication date
CN102624768B (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN102624768A (en) Method and system for carrying out file synchronization processing between different devices
CA2661066C (en) Auto-selection of media files
AU2009201279B2 (en) Managing media files using metadata injection
CN105578209A (en) Pop-up screen display method and apparatus
CN102904878B (en) For the method and system of the efficient download of packet
US20120311080A1 (en) Management of Downloads from a Network-Based Digital Data Repository
CN103634616B (en) A kind of stream media ordering method and device based on cloud storage
CN102510384A (en) Personal data sharing interactive processing method and server
US20090064041A1 (en) Method and apparatus for providing a user with dynamic sync status
US8806051B2 (en) Multimedia file sharing method and system thereof
CN114780054B (en) Split screen display method and related device
JP2007527575A (en) Method and apparatus for synchronizing and identifying content
US8775600B2 (en) Storage system and data management method in storage system
JP2015534170A (en) Subtitle processing method, apparatus, system, and storage medium
US20150150044A1 (en) Audio/video-on-demand method, server, terminal and system
JP5403692B2 (en) Broadcast station system, advertisement management system, advertisement management method, and program
CN107220388A (en) A kind of method and apparatus of upper transmitting file
US9060044B2 (en) System and method to actively transfer video content across device during video playback (active playback)
CN107205177A (en) Video broadcasting method and device
CN106843760A (en) It is a kind of based on the asynchronous remote copy system deleted and method again
US8103839B2 (en) Content data communication system, content data recording/reproducing device, data communication method and program
KR20150029918A (en) System of synchronizing contents in a cloud system having a plurality of distributed servers
KR100834543B1 (en) Method and apparatus for sharing a live presentation file over a network
CN104717242A (en) Method of editing shared file by multiple users, server and user side
EP2336911A1 (en) Efficient change tracking of transcoded copies

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant