CN102624768B - Carry out the method and system of file synchronization process between different devices - Google Patents
Carry out the method and system of file synchronization process between different devices Download PDFInfo
- Publication number
- CN102624768B CN102624768B CN201110038714.8A CN201110038714A CN102624768B CN 102624768 B CN102624768 B CN 102624768B CN 201110038714 A CN201110038714 A CN 201110038714A CN 102624768 B CN102624768 B CN 102624768B
- Authority
- CN
- China
- Prior art keywords
- file
- client
- record
- hash value
- filename
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Embodiments provide a kind of method and apparatus carrying out file synchronization process between different devices.The method specifically includes that the first equipment sends the synchronization request carrying the filename of file, hash hash value and virtual route to the second equipment, and described second equipment obtains the file that described hash value is corresponding, is preserved by described file;Described second equipment adds the record of file corresponding to described hash value in the file information table that this locality preserves, and filename and virtual route in virtual route in described record, the value of filename field and described synchronization request are equal.The embodiment of the present invention can be broken away from the actual physics path of the document directory structure on equipment and storage file and carry out file synchronization process, facilitates user to manage the files such as audio/video file between different devices.
Description
Technical field
The present invention relates to computer application field, particularly relate to a kind of method and apparatus carrying out file synchronization process between different devices.
Background technology
In recent years, along with computer is more and more extensive in the application of people's daily life, increasing people is owned by multi-section computer.Such as: have, in office, the office computer that company is equipped with, be in for entertainment with the desktop computer of online, and also have a frivolous notebook computer or panel computer during outdoor trip.
Meanwhile, multimedia video amusement remains one of most common requirements in current internet, computer utility.Then, can there is a lot of audio/video file in the multi-section computer that user has, it is necessary between multi-section computer, carry out the data syn-chronization of audio/video file.
The method of a kind of data syn-chronization carrying out audio/video file between multiple computers of the prior art is: based on the method for synchronization in the actual physics path of storing documents.Needing on the two computers synchronized, the filename of identical audio/video file and the actual physics path deposited are completely the same.
Such as, computer B needs the audio/video file synchronizing to deposit on computer A, it is possible to first obtain the playlist on the player used on computer A, the filename that this playlist includes each audio/video file and the actual physics path deposited.Then, on computer B, on the actual physics path identical with computer A, deposit the identical audio/video file with same file name according to above-mentioned playlist.
In realizing process of the present invention, at least there are the following problems to inventor have found that the method for the data syn-chronization carrying out audio/video file between multiple computers of the prior art: in actual applications, and identical audio/video file can not be accomplished completely the same in the actual physics path of two computers sometimes.
Such as: the actual physics path of certain audio/video file on computer A is " D: MyMusic Dangerous.mp3 ", and computer B is likely to do not have " D: ", then this music file synchronization failure between computer A/B. at all.
Summary of the invention
The embodiment provides a kind of method and apparatus carrying out file synchronization process between different devices, to realize effectively carrying out between multi-section computer the data syn-chronization of the files such as audio/video file.
A kind of method carrying out file synchronization process between different devices, including:
First equipment sends the synchronization request carrying the filename of file, hash hash value and virtual route to the second equipment, and described second equipment obtains the file that described hash value is corresponding, is preserved by described file;
Described second equipment adds the record of file corresponding to described hash value in the file information table that this locality preserves, and filename and virtual route in virtual route in described record, the value of filename field and described synchronization request are equal.
A kind of system carrying out file synchronization process between different devices, including:
First equipment;For sending the synchronization request carrying the filename of file, hash hash value and virtual route to the second equipment, described second equipment obtains the file that described hash value is corresponding, is preserved by described file;
Second equipment;For adding the record of file corresponding to described hash value in the file information table that preserves in this locality, filename and virtual route in virtual route in described record, the value of filename field and described synchronization request are equal.
The technical scheme provided by embodiments of the invention described above can be seen that, the embodiment of the present invention generates the virtual route of file by the various attribute informations according to file, the virtual route utilizing file between different apparatus such as computer carries out file synchronization and processes operation, such that it is able to the actual physics path of the document directory structure broken away from equipment and storage file carries out file synchronization process, user is facilitated to manage the files such as audio/video file between different devices.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below the accompanying drawing used required during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The process chart of a kind of method carrying out file synchronization process from client that Fig. 1 provides for the embodiment of the present invention one;
The process chart of a kind of method carrying out file synchronization process from server to client that Fig. 2 provides for the embodiment of the present invention two;
Fig. 3 is the concrete structure figure of a kind of system carrying out file synchronization process between different devices that the embodiment of the present invention three improves.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
For ease of the understanding to the embodiment of the present invention, it is further explained explanation below in conjunction with accompanying drawing for several specific embodiments, and each embodiment is not intended that the restriction to the embodiment of the present invention.
Embodiment one
The handling process of a kind of method carrying out file synchronization process from client that this embodiment provides is as it is shown in figure 1, include following process step:
Step 11, client calculate the hash value of each file.
The embodiment of the present invention, by needing to carry out the multiple devices of file synchronization process, such as computer, is divided into client and server, and the quantity of client can be multiple, and the quantity of server is 1, and each client all and carries out file synchronization process between server.
On the client for needing each file of management, such as, audio/video file, first pass through Hash (hash) algorithm and calculate the hash value of file.The input file (being called again preliminary mapping, pre-image) of random length can be transformed into the output file of regular length by above-mentioned hash algorithm, and this output file is exactly the hash value of above-mentioned input file.The hash value that different files are corresponding is different, therefore can identify a file with hash value.Common hash algorithm has CRC32, MD5, SHA1 etc..
Step 12, the mode by the hash value of file, virtual route and actual physics path combine is taked to store and log file on the client.
On the client file is left in after on actual physics path, generate the virtual route of file according to the various attribute informations of file.Above-mentioned attribute information specifically includes that the 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 is easy to understand, is such as: the film/science fiction/U.S./terminator;Film/story of a play or opera/domestic/Zhou Xingchi/talk on the journey to west etc., the partitioning scenario of the memorizer on above-mentioned virtual route and client and document directory structure, and it doesn't matter in the actual physics path of storing documents, to break away from coupling between the record information of file and physical pathway.
In actual applications, the actual physics path of above-mentioned storing documents can be determined according to the hash value of file, and the actual physics path that such as SHA1 value is the file of f90efb623b5abea70af63c470daa8674444fb1df can be:
D/data/unimediafile/f9/0e/f90efb623b5abea70af63c470daa8674444fb1df。
On the client by the filename of a file, virtual route, actual physics path and hash value, and and related information between the information such as server end whether synchronization preserve.Such as, above-mentioned related information is preserved in client by file information table.
Above-mentioned fileinfo tableau format is as follows:
Step 13, user end to server send and carry the synchronization request needing the hash value of file of synchronization, filename and virtual route, the local file corresponding either with or without preserving above-mentioned hash value of server lookup.
When client needs to synchronize certain file to server end, obtain the hash value of this document, filename and virtual route by inquiring about the above-mentioned file information table of local preservation, send the synchronization request carrying this hash value, filename and virtual route to server.After server receives this document synchronization request, the local file corresponding either with or without preserving above-mentioned hash value of inquiry, if it has, then perform step 14;Otherwise, step 15 is performed.
Step 14, server add the record information that above-mentioned file is corresponding, " filename " and the value in " virtual route " field in the file information table that this locality preserves and keep consistent with the corresponding information in above-mentioned synchronization request.
Server obtains the hash value, filename and the virtual route that carry in above-mentioned synchronization request, and obtains the mark of above-mentioned client.
Server adds the record information that above-mentioned file is corresponding in the file information table that this locality preserves.The fileinfo tableau format that server local preserves can be such that
In the file information table that same file preserves on the server can corresponding different record, every record corresponding different virtual route and client respectively.
The value in " filename " and " virtual route " field in the record that above-mentioned file that server adds in the file information table that this locality preserves is corresponding keeps consistent with the above-mentioned filename obtained from synchronizing information with virtual route, the value of " actual physics path " field is filled according to the actual physics path preserving above-mentioned file data, can be inconsistent with client, and in " client of synchronization " field, record the mark of above-mentioned client.
Then, server sends syn ack information to above-mentioned client, after above-mentioned client receives above-mentioned syn ack information, the value of " with the whether server end synchronizes " field in the record that in the file information table preserve this locality, above-mentioned file is corresponding is updated to "Yes".
Then, the synchronization process completing above-mentioned file between clients and servers operates.
Step 15, user end to server upload the file data of above-mentioned file, the file data of above-mentioned file is preserved by server, the file information table that this locality preserves is added the record information that above-mentioned file is corresponding, " filename " and the value in " virtual route " field and keeps consistent with the corresponding information in synchronization request.
Server sends back to above-mentioned client and answers, the file data of the notice above-mentioned file of client upload.
Actual physics path in the file information table that client preserves according to this locality, uploads the file data of above-mentioned file to server.This document data are saved on selected actual physics path after receiving the file data of the above-mentioned file that client sends by server.Server also obtains the hash value, filename and the virtual route that carry in above-mentioned synchronization request, and obtains the mark of above-mentioned client.
Then, server adds the record information that above-mentioned file is corresponding in the file information table that this locality preserves, the filename and the virtual route that are set to from above-mentioned synchronization request to obtain the value in " filename " and " virtual route " field in record corresponding for above-mentioned file keep consistent, the value of " actual physics path " field is filled according to the actual physics path preserving above-mentioned file data, and records the mark of above-mentioned client in " client of synchronization " field.
Then, server sends syn ack information to above-mentioned client, and after above-mentioned client receives above-mentioned syn ack information, in the file information table preserve this locality, the value of " with the whether server end synchronizes " field in the record of above-mentioned file is updated to "Yes".
Then, the data syn-chronization completing above-mentioned file between clients and servers operates.
Embodiment two
It is a kind of from server to the handling process of the method for client synchronization file as in figure 2 it is shown, include following process step that this embodiment provides:
Step 21, user end to server send synchronization request, and filename in the file information table that this locality is preserved by server, virtual route and hash value extract as synchronizing information, are sent to above-mentioned client.
When the file of record carries out file synchronization process operation in the file information table that client wants and server preserve, send synchronization request to server.
After server receives above-mentioned synchronization request, the filename in the file information table of this locality preservation, virtual route and hash value are extracted as synchronizing information, sends the sync response information carrying this synchronizing information to above-mentioned client.
Above-mentioned synchronizing information and the local file information table preserved are compared by step 22, client, it is judged that in above-mentioned synchronizing information, whether the hash value of record has record in the file information table that client this locality preserves.
After client receives above-mentioned sync response information, after obtaining the synchronizing information wherein carried, the information of record in above-mentioned synchronizing information and the local file information table preserved is compared.When in above-mentioned synchronizing information, the hash value of record does not have record in the file information table that client this locality preserves, then perform step 23;Otherwise, step 24 is performed.
Step 23, server send the download instruction information carrying download link information to client, and client downloads, from server, the file data that above-mentioned hash value is corresponding.Client adds the record of file corresponding to above-mentioned hash value in file information table, is set to consistent with the corresponding information in above-mentioned synchronizing information by the value of " filename ", " virtual route " field in record.
When the hash value of above-mentioned synchronizing information record does not have record in the file information table that client this locality preserves, then user end to server sends the solicited message of file data corresponding to above-mentioned hash value.After server receives above-mentioned solicited message, the value of " actual physics path " field in record according to file corresponding to above-mentioned hash value in the file information table that this locality preserves, obtain the download link information of file data corresponding to above-mentioned hash value, send the download instruction information carrying above-mentioned download link information to client.
After client receives above-mentioned download instruction information, download, according to the above-mentioned download link information wherein carried, the file data that above-mentioned hash value is corresponding, by the document data saving of download on selected actual physics path.
Client adds the record of file corresponding to above-mentioned hash value in the file information table that this locality preserves, the value of " filename ", " virtual route " field in record is set to consistent with " filename ", " virtual route " in above-mentioned synchronizing information, the actual physics path that " actual physics path " preserves above-mentioned file data according to reality is filled in, and the value of " with whether server end synchronizes " field is set to "Yes".User end to server sends the sync response information carrying above-mentioned hash value, after server receives this sync response information, " client of the synchronization " field in record corresponding to above-mentioned hash value in the file information table that this locality preserves records the mark of above-mentioned client.Then, the synchronization process operation of file corresponding to above-mentioned hash value is completed between clients and servers.
The value of " filename ", " virtual route " field in the record of the file that step 24, the client above-mentioned hash value in file information table is corresponding is set to consistent with the corresponding information in above-mentioned synchronizing information.
When the file that all have recorded identical hash value in above-mentioned synchronizing information and the local file information table preserved, and when the value of " with the whether server end synchronizes " field in record corresponding to above-mentioned hash value in the file information table that client this locality preserves is "No", " filename " in the record that above-mentioned hash value in the file information table that then this locality is preserved by client is corresponding, the value of " virtual route " field is set to and " filename " in above-mentioned synchronizing information, " virtual route " is consistent, the value of " with whether server end synchronizes " field is set to "Yes".User end to server sends the sync response information carrying above-mentioned hash value, after server receives this sync response information, " client of the synchronization " field in record corresponding to above-mentioned hash value in the file information table that this locality preserves records the mark of above-mentioned client.Then, the data syn-chronization operation of file corresponding to above-mentioned hash value is completed between clients and servers.
When the file that all have recorded identical hash value in above-mentioned synchronizing information and the local file information table preserved, and when the value of " with the whether server synchronizes " field in record corresponding to above-mentioned hash value in the file information table that client this locality preserves is "Yes", then it is made without the synchronization process operation of file.
Embodiment three
This embodiment improves a kind of system carrying out file synchronization process between different devices, its concrete structure is as it is shown on figure 3, include following equipment:
First equipment 31;For sending the synchronization request carrying the filename of file, hash hash value and virtual route to the second equipment, described second equipment obtains the file that described hash value is corresponding, is preserved by described file;
Second equipment 32;For adding the record of file corresponding to described hash value in the file information table that preserves in this locality, filename and virtual route in virtual route in described record, the value of filename field and described synchronization request are equal.
The first described equipment is client, and described client includes:
File storage and management module 311, for being left in by file after on the actual physics path on equipment, generate virtual route according to the various attribute informations of described file;Adding the record that described file is corresponding in the file information table preserved on said device, the field in this record includes whether filename, virtual route, actual physics path, hash value and server synchronize.
The second described equipment is server, and described server includes:
File storage and management module 321, for being left in by file after on the actual physics path on equipment, generate virtual route according to the various attribute informations of described file;Adding the record that described file is corresponding in the file information table preserved on said device, the field in this record includes the client of filename, virtual route, actual physics path, hash value, synchronization.
Described client includes:
First synchronous processing module 312, for when client needs to certain file of server sync, obtain the filename of described file, hash value and virtual route by inquiring about the file information table preserved in the storage of described file and management module, send the synchronization request carrying the filename of described file, hash value and virtual route to server;
Described server includes:
First synchronous processing module 322, after receiving the synchronization request that described client sends, the local file corresponding either with or without preserving described hash value of querying server, if it has, then record the actual physics path of file corresponding to described hash value;Otherwise, notify the file data of file described in described client upload, after receiving the file data of described file of described client upload, by described document data saving on selected actual physics path, and record this actual physics path;
The file information table preserved in the storage of described file with management module adds the record that described file is corresponding, filename in this record is set to consistent with virtual route with the filename obtained from described synchronizing information with the value in virtual route field, the value of actual physics path field is set to the actual physics path of described record, and the value of the client field of synchronization is set to the mark of described client;
Syn ack information is sent to described client;
The first synchronous processing module in described client, after being additionally operable to receive described syn ack information, is updated to the value of in the record of file described in the file information table preserved in the storage of described file and management module and server end whether synchronization field and is.
Described client includes:
Second synchronous processing module 313, for when in the file information table preserved in client wants with server, the file of record carries out synchronization process operation, described client sends synchronization request to described server;
Described server includes:
Second synchronous processing module 323, after receiving the described synchronization request that described client sends, filename in the file information table of this locality preservation, virtual route and hash value are extracted as synchronizing information, sends the sync response information carrying described synchronizing information to described client;
The second synchronous processing module 313 in described client, the hash value being additionally operable to work as in the synchronizing information that described server sends over does not have record in the file information table that client this locality preserves, the solicited message of file data corresponding to described hash value is then sent to described server, described file data is downloaded, by the document data saving of download on selected actual physics path according to the download link information that described server sends over;
The file information table that this locality preserves is added or is updated the record of file corresponding to described hash value, the filename value of " filename ", " virtual route " field in described record being set to and obtain from described synchronizing information is consistent with virtual route, and the value of " with whether server end synchronizes " field is set to "Yes";Send, to described server, the synchronization process carrying described hash value and complete information;
The second synchronous processing module 323 in described server, it is additionally operable to receive after the synchronization process that described client sends completes information, the client field of the synchronization in the record that described hash value in the file information table that this locality preserves is corresponding records the mark of described client.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can be by the hardware that computer program carrys out instruction relevant to complete, described program can be stored in a computer read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc..
In sum, the embodiment of the present invention generates the virtual route of file by the various attribute informations according to file, the virtual route utilizing file between different apparatus such as computer carries out file synchronization and processes operation, such that it is able to the actual physics path of the document directory structure broken away from equipment and storage file carries out file synchronization process, facilitate user to manage the files such as audio/video file between different devices, promote the convenience of user file simultaneously operating.
The embodiment of the present invention is by arranging a server to multiple clients, each client all and carries out file synchronization process operation between server, such that it is able to make multiple client obtain the files such as popular audio/video file at no distant date easily from server sync, reduce the file synchronization between multiple client and process bandwidth and the time loss cost of operation.
The above; being only the present invention preferably detailed description of the invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; the change that can readily occur in 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 scope of the claims.
Claims (10)
1. the method carrying out file synchronization process between different devices, it is characterised in that including:
First equipment sends the synchronization request carrying the filename of file, hash hash value and virtual route to the second equipment, and described second equipment obtains the file that described hash value is corresponding, is preserved by described file;
Described second equipment adds the record of file corresponding to described hash value in the file information table that this locality preserves, and filename and virtual route in virtual route in described record, the value of filename field and described synchronization request are equal.
2. the method carrying out file synchronization process between different devices according to claim 1, it is characterised in that described method also includes:
Being left in by file on equipment after on actual physics path, generate virtual route according to the various attribute informations of described file, described equipment includes: described first equipment and described second equipment;
Adding the record that described file is corresponding in the file information table preserved on said device, the field in this record includes filename, virtual route, actual physics path and hash value.
3. the method carrying out file synchronization process between different devices according to claim 2, it is characterized in that, the first described equipment sends the synchronization request carrying the filename of file, hash value and virtual route to the second equipment, described second equipment obtains the file that described hash value is corresponding, described file is carried out preservation and includes:
When client needs to certain file of server sync, the file information table that described client preserves by inquiring about this locality obtains the filename of described file, hash value and virtual route, sends the synchronization request carrying the filename of described file, hash value and virtual route to server;
After described server receives described synchronization request, the local file corresponding either with or without preserving described hash value of inquiry, if it has, then record the actual physics path of file corresponding to described hash value;Otherwise, described in notice client upload, the file data of file, after receiving the file data of described file of described client upload, by described document data saving on selected actual physics path, and records this actual physics path.
4. the method carrying out file synchronization process between different devices according to claim 3, it is characterized in that, described described second equipment adds the record of file corresponding to described hash value in the file information table that this locality preserves, filename in virtual route in described record, the value of filename field and described synchronization request and virtual route is equal includes:
Described server adds the record that described file is corresponding in the file information table that this locality preserves, filename in this record is set to consistent with virtual route with the filename obtained from described synchronizing information with the value in virtual route field, the value of actual physics path field is set to the actual physics path of described record, and the value of the client field of synchronization is set to the mark of described client;
Described server sends syn ack information to described client, and after described client receives described syn ack information, in the record of file described in the file information table preserve this locality and server end whether synchronization field value is updated to and is.
5. the method carrying out file synchronization process between different devices according to claim 2, it is characterized in that, the first described equipment sends the synchronization request carrying the filename of file, hash value and virtual route to the second equipment, described second equipment obtains the file that described hash value is corresponding, described file is carried out preservation and includes:
When in the file information table preserved in client wants with server, the file of record carries out synchronization process operation, described client sends synchronization request to described server, after described server receives described synchronization request, filename in the file information table of this locality preservation, virtual route and hash value are extracted as synchronizing information, sends the sync response information carrying described synchronizing information to described client;
When the hash value in described synchronizing information does not have record in the file information table that client this locality preserves, then described client sends the solicited message of file data corresponding to described hash value to described server, described server sends the download link information of described file data to described client, described client downloads described file data according to described download link information, by the document data saving of download on selected actual physics path.
6. the method carrying out file synchronization process between different devices according to claim 5, it is characterized in that, described described second equipment adds the record of file corresponding to described hash value in the file information table that this locality preserves, filename in virtual route in described record, the value of filename field and described synchronization request and virtual route is equal includes:
Described client is added in the file information table that this locality preserves or updates the record of file corresponding to described hash value, the filename value of " filename ", " virtual route " field in described record being set to and obtain from described synchronizing information is consistent with virtual route, and the value of " with whether server end synchronizes " field is set to "Yes";
Described client sends, to described server, the synchronization process carrying described hash value and completes information, server receives after this synchronization process completes information, records the mark of described client in the client field of the synchronization in the record that described hash value in the file information table that this locality preserves is corresponding.
7. the system carrying out file synchronization process between different devices, it is characterised in that including:
First equipment;For sending the synchronization request carrying the filename of file, hash hash value and virtual route to the second equipment, described second equipment obtains the file that described hash value is corresponding, is preserved by described file;
Second equipment;For adding the record of file corresponding to described hash value in the file information table that preserves in this locality, filename and virtual route in virtual route in described record, the value of filename field and described synchronization request are equal.
8. the system carrying out file synchronization process between different devices according to claim 7, it is characterised in that the first described equipment is client, and described client includes:
File storage and management module 311, for being left in by file after on the actual physics path on equipment, generate virtual route according to the various attribute informations of described file;Adding the record that described file is corresponding in the file information table preserved on said device, the field in this record includes whether filename, virtual route, actual physics path, hash value and server synchronize;
The second described equipment is server, and described server includes:
File storage and management module 321, for being left in by file after on the actual physics path on equipment, generate virtual route according to the various attribute informations of described file;Adding the record that described file is corresponding in the file information table preserved on said device, the field in this record includes the client of filename, virtual route, actual physics path, hash value, synchronization.
9. the system carrying out file synchronization process between different devices according to claim 8, it is characterised in that described client includes:
First synchronous processing module, for when client needs to certain file of server sync, obtain the filename of described file, hash value and virtual route by inquiring about the file information table preserved in the storage of described file and management module, send the synchronization request carrying the filename of described file, hash value and virtual route to server;
Described server includes:
First synchronous processing module, after receiving the synchronization request that described client sends, the local file corresponding either with or without preserving described hash value of querying server, if it has, then record the actual physics path of file corresponding to described hash value;Otherwise, notify the file data of file described in described client upload, after receiving the file data of described file of described client upload, by described document data saving on selected actual physics path, and record this actual physics path;
The file information table preserved in the storage of described file with management module adds the record that described file is corresponding, filename in this record is set to consistent with virtual route with the filename obtained from described synchronizing information with the value in virtual route field, the value of actual physics path field is set to the actual physics path of described record, and the value of the client field of synchronization is set to the mark of described client;
Syn ack information is sent to described client;
The first synchronous processing module in described client, after being additionally operable to receive described syn ack information, is updated to the value of in the record of file described in the file information table preserved in the storage of described file and management module and server end whether synchronization field and is.
10. the system carrying out file synchronization process between different devices according to claim 8, it is characterised in that described client includes:
Second synchronous processing module, for when in the file information table preserved in client wants with server, the file of record carries out synchronization process operation, described client sends synchronization request to described server;
Described server includes:
Second synchronous processing module, after receiving the described synchronization request that described client sends, filename in the file information table of this locality preservation, virtual route and hash value are extracted as synchronizing information, sends the sync response information carrying described synchronizing information to described client;
The second synchronous processing module in described client, the hash value being additionally operable to work as in the synchronizing information that described server sends over does not have record in the file information table that client this locality preserves, the solicited message of file data corresponding to described hash value is then sent to described server, described file data is downloaded, by the document data saving of download on selected actual physics path according to the download link information that described server sends over;
The file information table that this locality preserves is added or is updated the record of file corresponding to described hash value, the filename value of " filename ", " virtual route " field in described record being set to and obtain from described synchronizing information is consistent with virtual route, and the value of " with whether server end synchronizes " field is set to "Yes";Send, to described server, the synchronization process carrying described hash value and complete information;
The second synchronous processing module in described server, it is additionally operable to receive after the synchronization process that described client sends completes information, the client field of the synchronization in the record that described hash value in the file information table that this locality preserves is corresponding records the mark of described client.
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 CN102624768A (en) | 2012-08-01 |
CN102624768B true 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) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102868765B (en) * | 2012-10-09 | 2015-06-03 | 乐视网信息技术(北京)股份有限公司 | Method and system for uploading files |
CN103780658B (en) * | 2012-10-25 | 2017-09-12 | 中国电信股份有限公司 | Document down loading method, device and system |
CN103916423A (en) * | 2012-12-31 | 2014-07-09 | 华为技术有限公司 | 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 |
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 |
CN106453663B (en) * | 2016-12-13 | 2019-10-22 | 河北思达歌数据科技投资有限公司 | Improved storage expansion method and device based on cloud service |
CN109739810B (en) * | 2018-12-07 | 2021-10-08 | 中山市江波龙电子有限公司 | File synchronization method, server, client and device with storage function |
CN111553139B (en) * | 2019-01-23 | 2022-06-14 | 北大方正集团有限公司 | 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 (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7437484B2 (en) * | 2003-12-29 | 2008-10-14 | International Business Machines Corporation | Method for optimizing synchronization |
-
2011
- 2011-01-28 CN CN201110038714.8A patent/CN102624768B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN102624768A (en) | 2012-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102624768B (en) | Carry out the method and system of file synchronization process between different devices | |
EP3062311B1 (en) | Media content playback system and method | |
US8682903B2 (en) | System and method for synchronized content directories on cluster devices | |
CA2661066C (en) | Auto-selection of media files | |
CN105893457B (en) | Media content playback system and method | |
BR112014000597B1 (en) | METHOD AND SYSTEM FOR DOWNLOADING A MULTIMEDIA FILE | |
US20120203932A1 (en) | Multi-master media metadata synchronization | |
JP2009506423A5 (en) | ||
US9773059B2 (en) | Tape data management | |
US10862936B2 (en) | Unified playback position | |
JP2007115247A (en) | Method and apparatus for making client synchronize device suitable for multi-server environment | |
US20070192797A1 (en) | Method of and apparatus for managing distributed contents | |
CN103634616B (en) | A kind of stream media ordering method and device based on cloud storage | |
US20120311080A1 (en) | Management of Downloads from a Network-Based Digital Data Repository | |
JP2010516181A (en) | Method and apparatus for transferring digital content from a personal computer to a portable handset | |
CN105100210A (en) | File cache method and device applied to client | |
WO2010064116A1 (en) | Method, apparatus and computer program product for sub-file level synchronization | |
US8255545B1 (en) | Dual-phase content synchronization | |
US8806051B2 (en) | Multimedia file sharing method and system thereof | |
US9122709B2 (en) | Management of media files | |
CN105893458B (en) | Media content playback system and method | |
TW201405324A (en) | Cloud storage system and data storage and sharing method based on the system | |
US20140195550A1 (en) | Accessing audio files from an online content management system | |
WO2009052311A1 (en) | Method and apparatus for identifying a piece of content | |
CN102904917A (en) | Mass image processing system and method thereof |
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 |