CN104008116A - File synchronization method and electronic device - Google Patents

File synchronization method and electronic device Download PDF

Info

Publication number
CN104008116A
CN104008116A CN201310062377.5A CN201310062377A CN104008116A CN 104008116 A CN104008116 A CN 104008116A CN 201310062377 A CN201310062377 A CN 201310062377A CN 104008116 A CN104008116 A CN 104008116A
Authority
CN
China
Prior art keywords
synchronous documents
information
synchronous
treatment
treat
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
CN201310062377.5A
Other languages
Chinese (zh)
Other versions
CN104008116B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310062377.5A priority Critical patent/CN104008116B/en
Publication of CN104008116A publication Critical patent/CN104008116A/en
Application granted granted Critical
Publication of CN104008116B publication Critical patent/CN104008116B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a file synchronization method and an electronic device, and relates to the communication field. The file synchronization method and the electronic device improve file synchronization efficiency. The technical scheme includes: obtaining an information set of files to be synchronized; generating a first sequence during the obtaining process of information of N files to be synchronized, which is contained in the information set of the files to be synchronized; obtaining attribute information of the files to be synchronized, which are corresponding to the information of the N files to be synchronized, and performing priority ranking on the information of the N files to be synchronized according to the attribute information of the N files to be synchronized so as to generate a second sequence; synchronizing the N files to be synchronized, which are corresponding to the information of N files to be synchronized, according to the second sequence through a communication unit and a network storage unit. Efficiency of synchronizing the N files to be synchronized, which are corresponding to the information of the N files to be synchronized, according to the second sequence is higher than efficiency of synchronizing the N files to be synchronized, which are corresponding to the information of the N files to be synchronized, according to the first sequence. The file synchronization method and the electronic device are applied into the file synchronization process.

Description

A kind of file synchronisation method and electronic equipment
Technical field
The present invention relates to the communications field, relate in particular to a kind of file synchronisation method and electronic equipment.
Background technology
Along with the development of mobile Internet, the demand of storage, migration and the management of user to personal data is more and more stronger, therefore under the guidance of this demand of user, and the Core Feature of production firm using file synchronization function as individual cloud storage products.When file carries out in personal device end and high in the clouds when synchronous, there are multiple synchronous documents problems of uploading or retransmitting of queuing up for the treatment of, in order to ensure the efficiency of file synchronization, treating synchronous documents carries out effectively sorting particularly important with regard to what show, prior art was generally treated afterwards synchronous documents according to the elder generation of sequence of operation or the order of makeing mistakes and was carried out synchronously, in the time of needs upload file, treating synchronous documents according to the sequencing being modified uploads, or upload and make mistakes need to retransmit time when file, treat synchronous documents according to the sequencing of makeing mistakes and retransmit.
State in realization in the process of file synchronization, inventor finds that in prior art, at least there are the following problems: do not distinguish if treat characteristic, the type etc. of synchronous documents, only carry out synchronously according to the sequencing operating or make mistakes, may cause synchronous efficiency not high, it is longer to the holding time of network than uploading small documents for example to upload large file, is so just unfavorable for carrying out more file and uploads within the time of unit length; Or upload while makeing mistakes when multiple files, if just retransmit according to the sequencing of document lending, just may cause uploading the file of makeing mistakes and repeatedly retransmit, take Internet resources, cause the file that can upload smoothly not upload.
Summary of the invention
Embodiments of the invention provide a kind of method and electronic equipment of file synchronization, have improved the synchronous efficiency of file.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A first aspect of the present invention, provides a kind of file synchronisation method, and described method is applied in electronic equipment, and described electronic equipment comprises communication unit, and described electronic equipment is connected with a network storage unit by described communication unit, comprising:
Synchronous documents information aggregate is treated in acquisition; Describedly treat to comprise in synchronous documents information aggregate N and treat synchronous documents information, described in treat that each in synchronous documents information aggregate treats that synchronous documents information and one treats that synchronous documents is corresponding; Treat that synchronous documents information generates First ray in described procurement process for described N, wherein, N is more than or equal to 2 integer;
Described in obtaining, treat to treat the corresponding attribute information for the treatment of synchronous documents of synchronous documents information described in described each in synchronous documents information aggregate;
Treat that according to described the corresponding attribute information for the treatment of synchronous documents of synchronous documents information treats that to described N synchronous documents information carries out prioritization described in each, produce the second sequence;
Treat that by described communication unit and described network storage units synchronization and described N the corresponding N of synchronous documents information is treated synchronous documents according to described the second sequence;
Wherein, synchronously treat that with described N N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents is higher than synchronously treating N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents with described N according to described First ray according to described the second sequence.
In conjunction with first aspect, in a kind of possible implementation, in the time that described attribute information comprises at least two kinds;
Describedly treat that according to described the corresponding attribute information for the treatment of synchronous documents of synchronous documents information treats that to described N synchronous documents information carries out prioritization described in each, produce the second sequence, comprising:
Treat that the corresponding attribute information for the treatment of synchronous documents of synchronous documents information obtains described in each and describedly treat the corresponding priority factors for the treatment of synchronous documents of synchronous documents information described in each according to described;
Treat that according to described the corresponding priority factors for the treatment of synchronous documents of synchronous documents information treats that to described N synchronous documents information carries out prioritization described in each, produce the second sequence.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, treat that at synchronous described N the corresponding N of synchronous documents information is treated, in the process of synchronous documents, also to comprise:
Obtain at least one newly-increased synchronous documents information for the treatment of;
Obtain the described newly-increased corresponding newly-increased attribute information for the treatment of synchronous documents of synchronous documents information for the treatment of;
Obtain the described newly-increased priority factors for the treatment of synchronous documents according to the described newly-increased attribute information for the treatment of synchronous documents;
Treat that according to the described newly-increased priority factors for the treatment of synchronous documents and described N the priority factors for the treatment of synchronous documents not synchronous in synchronous documents newly-increasedly treats that synchronous documents information and described N treat synchronously in synchronous documents not treat that synchronous documents is corresponding and treat that synchronous documents information carries out prioritization to described, produce the 3rd sequence;
According to described the 3rd sequence by described communication unit with described in described network storage units synchronization newly-increased treat synchronous documents and described N treat in synchronous documents do not synchronize treat synchronous documents.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, treat that at synchronous described N the corresponding N of synchronous documents information is treated, in the process of synchronous documents, also to comprise:
When described N in synchronous documents in the time that synchronous documents is synchronously made mistakes, by described N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents completes by described communication unit and described network storage units synchronization, by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, when described N in synchronous documents in the time that synchronous documents is synchronously made mistakes, by described N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents completes by described communication unit and described network storage units synchronization, by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes, comprising:
When described N in synchronous documents in the time that synchronous documents is synchronously made mistakes, in Preset Time by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes;
If that synchronously makes mistakes described treats still synchronization failure of synchronous documents, by described N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents completes by described communication unit and described network storage units synchronization, by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, described attribute information includes but not limited to: file size, file repeat to upload number of times, file nearest service time, file type, different attribute informations has different ordering rules in sequence.
A second aspect of the present invention, provides a kind of electronic equipment, and described electronic equipment comprises communication unit, and described electronic equipment is connected with a network storage unit by described communication unit, and described electronic equipment also comprises:
First obtains unit, treats synchronous documents information aggregate for obtaining; Describedly treat to comprise in synchronous documents information aggregate N and treat synchronous documents information, described in treat that each in synchronous documents information aggregate treats that synchronous documents information and one treats that synchronous documents is corresponding; Treat that synchronous documents information generates First ray in described procurement process for described N, wherein, N is more than or equal to 2 integer;
The first acquiring unit, for obtain described first obtain that unit obtains described in treat to treat the corresponding attribute information for the treatment of synchronous documents of synchronous documents information described in synchronous documents information aggregate described each;
The first generation unit, for obtain according to described the first acquiring unit described each described in treat that the corresponding attribute information for the treatment of synchronous documents of synchronous documents information treats that to described N synchronous documents information carries out prioritization, produce the second sequence;
The first lock unit, for described the second sequence of producing according to described the first generation unit by described communication unit and described network storage units synchronization and the individual individual synchronous documents for the treatment of of the corresponding N of synchronous documents information for the treatment of of described N;
Wherein, synchronously treat that with described N N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents is higher than synchronously treating N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents with described N according to described First ray according to described the second sequence.
In conjunction with second aspect, in a kind of possible implementation, in the time that described attribute information comprises at least two kinds;
Described the first generation unit, comprising:
Acquisition module, for obtain according to described the first acquiring unit described each described in treat that the corresponding attribute information for the treatment of synchronous documents of synchronous documents information obtains and describedly treat the corresponding priority factors for the treatment of synchronous documents of synchronous documents information described in each;
Generation module, for obtain according to described acquisition module described each described in treat that the corresponding priority factors for the treatment of synchronous documents of synchronous documents information treats that to described N synchronous documents information carries out prioritization, produce the second sequence.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, treat that at the synchronous described N of described the first lock unit the corresponding N of synchronous documents information is treated, in the process of synchronous documents, also to comprise:
Second obtains unit, for obtaining at least one newly-increased synchronous documents information for the treatment of;
Second acquisition unit, obtain for obtaining described second the described newly-increased corresponding newly-increased attribute information for the treatment of synchronous documents of synchronous documents information for the treatment of that unit obtains, and obtain the described newly-increased priority factors for the treatment of synchronous documents according to the described newly-increased attribute information for the treatment of synchronous documents;
The second generation unit, treat that for the described newly-increased priority factors for the treatment of synchronous documents obtained according to described second acquisition unit and described N the not synchronous priority factors for the treatment of synchronous documents of synchronous documents newly-increasedly treats that synchronous documents information and described N treat synchronously in synchronous documents not treat that synchronous documents is corresponding and treat that synchronous documents information carries out prioritization to described, produce the 3rd sequence;
The second lock unit, for described the 3rd sequence that produces according to described the second generation unit by described communication unit with described in described network storage units synchronization newly-increased treat synchronous documents and described N individual treat synchronous documents do not synchronize treat synchronous documents.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, treat that at the synchronous described N of described the first lock unit the corresponding N of synchronous documents information is treated, in the process of synchronous documents, also to comprise:
Processing unit, for when described N individual until synchronous documents in the time that synchronous documents is synchronously made mistakes, by described N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents completes by described communication unit and described network storage units synchronization, by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, described processing unit, comprising:
The first processing module, for when described N until synchronous documents in the time that synchronous documents is synchronously made mistakes, in Preset Time by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes;
The second processing module, if for described synchronously make mistakes treat still synchronization failure of synchronous documents, by described N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents completes by described communication unit and described network storage units synchronization, by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, described attribute information includes but not limited to: file size, file repeat to upload number of times, file nearest service time, file type, different attribute informations has different ordering rules in sequence.
The file synchronisation method that the embodiment of the present invention provides and electronic equipment, according to each attribute information for the treatment of synchronous documents for the treatment of that synchronous documents information is corresponding for the treatment of in synchronous documents information aggregate, treat N in synchronous documents information aggregate and treat that synchronous documents information carries out prioritization, produce the second sequence, and treat the corresponding N for the treatment of of a synchronous documents information synchronous documents according to the second sequence by communication unit and network storage units synchronization and N, with the characteristic for the treatment of synchronous documents in prior art, the attribute informations such as type are not distinguished, just treat synchronous documents according to the sequencing operating or make mistakes and carry out locking phase ratio by communication unit and network storage unit, carry out prioritization according to the attribute information for the treatment of synchronous documents, and treat synchronous documents according to the sequence sequencing and carry out synchronously, improve the efficiency of file synchronization.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
A kind of file synchronisation method process flow diagram that Fig. 1 provides for the embodiment of the present invention in a kind of application scenarios;
A kind of file synchronisation method process flow diagram that Fig. 2 provides for the embodiment of the present invention in another kind of application scenarios;
The another kind of file synchronisation method process flow diagram that Fig. 3 provides for the embodiment of the present invention in another kind of application scenarios;
Another file synchronisation method process flow diagram that Fig. 4 provides for the embodiment of the present invention in another kind of application scenarios;
The another kind of file synchronisation method process flow diagram that Fig. 5 provides for the embodiment of the present invention;
A kind of electronic equipment composition schematic diagram that Fig. 6 provides for the embodiment of the present invention;
The another kind of electronic equipment composition schematic diagram that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of file synchronisation method, is applied to electronic equipment, and this electronic equipment comprises communication unit, and is connected with a network storage unit by this communication unit.
In a kind of application scenarios, as shown in Figure 1, in the time that attribute information is file size, the method can comprise:
Synchronous documents information aggregate is treated in 101a, acquisition.
Wherein, in the time that electronic equipment and network storage unit carry out file synchronization, first electronic equipment obtains treats synchronous documents information aggregate, this treats that in synchronous documents information aggregate, comprising N treats synchronous documents information, treat that each in synchronous documents information aggregate treats that synchronous documents information and one treats that synchronous documents is corresponding, treat that synchronous documents information can automatically generate First ray according to the sequencing obtaining in procurement process for N, wherein, N is more than or equal to 2 integer.
102a, obtain each corresponding file size for the treatment of synchronous documents of synchronous documents information for the treatment of of treating in synchronous documents information aggregate.
Wherein, when electronic equipment obtains after synchronous documents information aggregate, just can be according to each synchronous documents information for the treatment of of treating in synchronous documents information aggregate, obtain each corresponding file size for the treatment of synchronous documents of synchronous documents information for the treatment of.
103a, treat that according to each the corresponding file size for the treatment of synchronous documents of synchronous documents information treats that to N synchronous documents information carries out prioritization, produce the second sequence.
Wherein, when electronic equipment get each treat the file size for the treatment of synchronous documents corresponding to synchronous documents information after, just can eachly treat that the corresponding file size for the treatment of synchronous documents of synchronous documents information treats that to N synchronous documents information carries out prioritization according to what get, and produce the second sequence.Concrete: preferentially synchronous small documents, the synchronous priority that is to say small documents is high, the synchronous priority of large file is low, in the second sequence producing, the corresponding file size for the treatment of synchronous documents of the synchronous documents information for the treatment of coming is above less than the corresponding file size for the treatment of synchronous documents of the synchronous documents information for the treatment of coming below.
104a, treat that by communication unit and network storage units synchronization and N the corresponding N of synchronous documents information is treated synchronous documents according to the second sequence.
Wherein, when electronic equipment according to get the file size until synchronous documents corresponding to the synchronous documents information that needs produce after the second sequence, just can be according to the second sequence producing by communication unit and network storage unit, the individual corresponding synchronous documents for the treatment of of synchronous documents information for the treatment of of synchronous and N, wherein, because the second sequence is according to treating that the file size of synchronous documents obtains, therefore synchronously treat that with N N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents is higher than synchronously treating N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents with N according to First ray according to the second sequence.
In another kind of application scenarios, as shown in Figure 2, when attribute information is file while repeating to upload number of times, the method can comprise:
Synchronous documents information aggregate is treated in 101b, acquisition.
102b, obtain and treat that each in synchronous documents information aggregate treats that the corresponding file for the treatment of synchronous documents of synchronous documents information repeats to upload number of times.
103b, treat that according to each the corresponding file for the treatment of synchronous documents of synchronous documents information repeats to upload number of times and treats that to N synchronous documents information carries out prioritization, produce the second sequence.
Wherein, when electronic equipment get each treat that the file for the treatment of synchronous documents corresponding to synchronous documents information repeats to upload number of times after, just can treat that the file for the treatment of synchronous documents corresponding to synchronous documents information repeats to upload number of times N is treated to synchronous documents information carries out prioritization according to each, and produce the second sequence.Concrete: can be before synchronous documents, by the history for the treatment of synchronous documents make mistakes retransmit number of times record, can think make mistakes the probability that the more file of number of times again makes mistakes when synchronous can be much larger than the less file of other number of times of makeing mistakes, that is to say that file repeats to upload the priority for the treatment of synchronous documents that number of times is few higher, it is lower that file repeats to upload the priority for the treatment of synchronous documents often, in the second sequence producing, coming the file for the treatment of synchronous documents corresponding to the synchronous documents information for the treatment of above repeats to upload number of times and is less than the corresponding file for the treatment of synchronous documents of the synchronous documents information for the treatment of coming below and repeats to upload number of times.
104b, treat that by communication unit and network storage units synchronization and N the corresponding N of synchronous documents information is treated synchronous documents according to the second sequence.
Wherein, obtain because the second sequence repeats to upload number of times according to the file for the treatment of synchronous documents, therefore synchronously treat that with N N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents is higher than synchronously treating N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents with N according to First ray according to the second sequence.
It should be noted that, in the embodiment of the present invention step 101b to the associated description of particular content in step 104b can be with reference to step 101a in the embodiment of the present invention specific descriptions to corresponding content in step 104a, this is no longer going to repeat them for the embodiment of the present invention.
In another kind of application scenarios, as shown in Figure 3, in the time that attribute information is file nearest service time, the method can comprise:
Synchronous documents information aggregate is treated in 101c, acquisition.
102c, obtain and treat that each in synchronous documents information aggregate treats synchronous documents information corresponding nearest service time of file for the treatment of synchronous documents.
103c, synchronous documents information corresponding file nearest service time for the treatment of synchronous documents treat that to N synchronous documents information carries out prioritization according to each treating, produce the second sequence.
Wherein, when electronic equipment get each treat the file for the treatment of synchronous documents nearest service time corresponding to synchronous documents information after, just can file that treat synchronous documents nearest service time corresponding to synchronous documents information treat that to N synchronous documents information carries out prioritization according to each treating, and produce the second sequence.Concrete: file has represented the access habits of user to file nearest service time, according to the existing locality principle of file operation, the file often being used still has very large probability in the future and is used, that is to say that the probability that the file that often used is modified can be very large, the file that therefore can preferentially synchronously least often use, once this file synchronously will be seldom modified or access again, therefore more approach the priority for the treatment of synchronous documents of current time nearest service time low, service time is high early than the larger priority for the treatment of synchronous documents of current time recently, in the second sequence producing, the file for the treatment of synchronous documents corresponding to the synchronous documents information for the treatment of above of coming is greater than the synchronous documents information for the treatment of below that comes corresponding nearest service time of file for the treatment of synchronous documents nearest service time.
104c, treat that by communication unit and network storage units synchronization and N the corresponding N of synchronous documents information is treated synchronous documents according to the second sequence.
It should be noted that, in the embodiment of the present invention step 101c to the associated description of particular content in step 104c can be with reference to step 101a in the embodiment of the present invention specific descriptions to corresponding content in step 104a, this is no longer going to repeat them for the embodiment of the present invention.
In another kind of application scenarios, as shown in Figure 4, in the time that attribute information is file type, the method can comprise:
Synchronous documents information aggregate is treated in 101d, acquisition.
102d, obtain each corresponding file type for the treatment of synchronous documents of synchronous documents information for the treatment of of treating in synchronous documents information aggregate.
103d, treat that according to each the corresponding file type for the treatment of synchronous documents of synchronous documents information treats that to N synchronous documents information carries out prioritization, produce the second sequence.
Wherein, when electronic equipment get each treat the file type for the treatment of synchronous documents corresponding to synchronous documents information after, just can treat that the file type for the treatment of synchronous documents corresponding to synchronous documents information treat that to N synchronous documents information carries out prioritization according to each, and produce the second sequence.Concrete: file type can be divided into can editing files and Fei Ke editing files, can first treat that by not editable synchronous documents carries out synchronously in embodiments of the present invention, until not editable after synchronous documents synchronously completes, synchronous editable file again, so not only can carry out local cache to editable file, can also be by synchronous as early as possible not editable file, that is to say and editablely treat that the priority of synchronous documents is low, not editablely treat that the priority of synchronous documents is high.
104d, treat that by communication unit and network storage units synchronization and N the corresponding N of synchronous documents information is treated synchronous documents according to the second sequence.
It should be noted that, in the embodiment of the present invention step 101d to the associated description of particular content in step 104d can be with reference to step 101a in the embodiment of the present invention specific descriptions to corresponding content in step 104a, this is no longer going to repeat them for the embodiment of the present invention.
The file synchronisation method that the embodiment of the present invention provides, according to each attribute information for the treatment of synchronous documents for the treatment of that synchronous documents information is corresponding for the treatment of in synchronous documents information aggregate, treat N in synchronous documents information aggregate and treat that synchronous documents information carries out prioritization, produce the second sequence, and treat the corresponding N for the treatment of of a synchronous documents information synchronous documents according to the second sequence by communication unit and network storage units synchronization and N, with the characteristic for the treatment of synchronous documents in prior art, the attribute informations such as type are not distinguished, just treat synchronous documents according to the sequencing operating or make mistakes and carry out locking phase ratio by communication unit and network storage unit, carry out prioritization according to the attribute information for the treatment of synchronous documents, and treat synchronous documents according to the sequence sequencing and carry out synchronously, improve the efficiency of file synchronization.
The embodiment of the present invention provides a kind of file synchronisation method, is applied to electronic equipment, and this electronic equipment comprises communication unit, and is connected with a network storage unit by this communication unit, and as shown in Figure 5, the method can comprise:
201, obtain and treat synchronous documents information aggregate.
Wherein, in the time that electronic equipment and network storage unit carry out file synchronization, first electronic equipment needs to obtain treats synchronous documents information aggregate, this treats that in synchronous documents information aggregate, comprising N treats synchronous documents information, treat that each in synchronous documents information aggregate treats that synchronous documents information and one treats that synchronous documents is corresponding, treat that synchronous documents information automatically generates First ray in the process obtaining for N, wherein N is more than or equal to 2 integer.Concrete, the file synchronization of electronic equipment and network storage unit can comprise the upload and download of file, in the time that electronic equipment need to be to the upload file of network poke unit, electronic equipment can first obtain and treat synchronous documents information aggregate from electronic equipment, or in the time that electronic equipment need to be from network storage unit download file, personal device end can first obtain and treat synchronous documents information aggregate from network storage unit.
202, obtain each corresponding attribute information for the treatment of synchronous documents of synchronous documents information for the treatment of of treating in synchronous documents information aggregate.
Wherein, when electronic equipment obtains after synchronous documents information aggregate, can from the database of electronic equipment, obtain and treat each corresponding attribute information for the treatment of synchronous documents of synchronous documents information for the treatment of in synchronous documents information aggregate, attribute information comprises at least following a kind of: the size of file, file repeat to upload number of times, file nearest service time, file type.Electronic equipment it should be noted that before need to synchronously be treated synchronous documents, when in the time that synchronous documents is modified, electronic equipment can upgrade the attribute information for the treatment of synchronous documents of storing in database, or newly-increased during until synchronous documents when having, electronic equipment can increase and increases the attribute information for the treatment of synchronous documents newly in database.
It should be noted that, the attribute information described in the embodiment of the present invention comprises but does not limit size, the file of the file of enumerating in the invention process to repeat to upload number of times, file nearest service time, file type.
203, treat that according to each the corresponding attribute information for the treatment of synchronous documents of synchronous documents information obtains each corresponding priority factors for the treatment of synchronous documents of synchronous documents information for the treatment of.
Wherein, when electronic equipment get treat in synchronous documents information aggregate after the corresponding attribute information for the treatment of synchronous documents of the synchronous documents information that needs, just can according to the corresponding attribute information for the treatment of synchronous documents of needed synchronous documents information determine treat in synchronous documents information aggregate the corresponding priority factors for the treatment of synchronous documents of the synchronous documents information that needs.Concrete, can adopt following index to determine the priority for the treatment of synchronous documents.For example, in the time that attribute information is file size, preferentially synchronous small documents, that is to say that the synchronous priority of small documents is high, and the synchronous priority of large file is low; When attribute information be file repeat to upload number of times time, it is higher that file repeats to upload the priority for the treatment of synchronous documents that number of times is few, it is lower that file repeats to upload the priority for the treatment of synchronous documents often; In the time that attribute information is file nearest service time, the preferentially synchronous file least often using, therefore more approach the priority for the treatment of synchronous documents of current time nearest service time low, service time is high early than the larger priority for the treatment of synchronous documents of current time recently; In the time that attribute information is file type, editablely treat that the priority of synchronous documents is low, not editablely treat that the priority of synchronous documents is high.For example, in the time that attribute information comprises that file size, file repeat to upload number of times, nearest service time of file and file type simultaneously, can calculate the priority factors for the treatment of synchronous documents, concrete computing formula is:
P ( f ) = T ( f ) × L ( f ) × K ( f ) S ( f )
Wherein, P (f) is for treating the priority factors of synchronous documents, T (f) is for to treat that the file of synchronous documents repeats to upload number of times, L (f) is the nearest service time of file for the treatment of synchronous documents, K (f) is for treating the file type of synchronous documents, and S (f) is for treating the file size of synchronous documents.
It should be noted that, in the time determining priority factors, for the calculating for the treatment of in embodiments of the present invention synchronous documents priority factors, four kinds of attribute informations that can provide according to the embodiment of the present invention wherein at least any one calculates, the number of embodiment of the present invention attribute information to the calculating priority level factor at this does not limit, and includes but not limited to for the kind of the attribute information for the treatment of synchronous documents four kinds of attribute informations that the embodiment of the present invention provides.
204, treat that according to each the corresponding priority factors for the treatment of synchronous documents of synchronous documents information treats that to N synchronous documents information carries out prioritization, produce the second sequence.
Wherein, when electronic equipment according to treat the corresponding attribute information for the treatment of synchronous documents of synchronous documents information determine treat in synchronous documents information aggregate the synchronous documents information that needs corresponding treat synchronous documents priority factors after, just can be according to each priority factors for the treatment of synchronous documents for the treatment of that synchronous documents information is corresponding of determining, N is treated to synchronous documents information carries out prioritization, and produce the second sequence.
205, treat that by communication unit and network storage units synchronization and N the corresponding N of synchronous documents information is treated synchronous documents according to the second sequence.
Wherein, when electronic equipment is after according to needed synchronous documents information, the corresponding priority factors for the treatment of synchronous documents treats that to N synchronous documents information is carried out prioritization, now just can be according to the second sequence, by communication unit and network storage units synchronization and the individual individual synchronous documents for the treatment of of the corresponding N of synchronous documents information for the treatment of of N.
Concrete, synchronously treat according to priority factors at electronic equipment in synchronous documents information aggregate in the corresponding process for the treatment of synchronous documents of the synchronous documents information that needs, can carry out following steps 205a1,205a2,205a3 and 205a4.
205a1, obtain at least one newly-increased synchronous documents information for the treatment of.
Wherein, treat that N corresponding to synchronous documents information is treated in the process of synchronous documents at electronic equipment according to the synchronous N of priority factors, newly-increasedly need when synchronous until synchronous documents when having, electronic equipment just can obtain the newly-increased synchronous documents information for the treatment of.Can be wherein one and newly-increased treat synchronous documents information, can be also two or more newly-increased synchronous documents information for the treatment of.
205a2, obtain the newly-increased corresponding newly-increased attribute information for the treatment of synchronous documents of synchronous documents information for the treatment of, and obtain the newly-increased priority factors for the treatment of synchronous documents according to the newly-increased attribute information for the treatment of synchronous documents.
Wherein, when electronic equipment obtain newly-increased treat synchronous documents information after, need to from database, obtain this newly-increased corresponding newly-increased attribute information for the treatment of synchronous documents of synchronous documents information for the treatment of, and determine this newly-increased priority factors for the treatment of synchronous documents according to this attribute information, wherein the newly-increased attribute information for the treatment of synchronous documents includes but not limited at least following a kind of: the size of file, file repeat to upload number of times, file nearest service time, file type.
It should be noted that, can be with reference to the computation process of priority factors for the treatment of synchronous documents in the step 203 of the embodiment of the present invention for the computation process of the newly-increased priority factors for the treatment of synchronous documents, in this not go into detail for the embodiment of the present invention.
205a3, treat that according to the newly-increased priority factors for the treatment of synchronous documents and N the priority factors for the treatment of synchronous documents not synchronous in synchronous documents treats that to newly-increased synchronous documents information and N treat synchronously in synchronous documents not treat that synchronous documents is corresponding and treat that synchronous documents information carries out prioritization, produce the 3rd sequence.
Wherein, when get newly-increased treat the priority factors of synchronous documents after, electronic equipment can be treated the priority factors for the treatment of synchronous documents not synchronous in synchronous documents according to the newly-increased priority factors for the treatment of synchronous documents and N, treat that to newly-increased synchronous documents information and N treat synchronously in synchronous documents not treat that synchronous documents is corresponding and treat that synchronous documents information resequences, and produce the 3rd sequence.
205a4, according to the 3rd sequence by communication unit and network storage units synchronization newly-increased treat synchronous documents and N treat in synchronous documents do not synchronize treat synchronous documents.
Wherein, when electronic equipment to newly-increased treat synchronous documents information and N treat in synchronous documents not synchronous treat that synchronous documents is corresponding and treat that synchronous documents information is resequenced according to priority factors and produced the 3rd sequence after, can be according to the 3rd sequence, and cross communication unit and network storage unit and treat synchronous documents and N is individual treats that the synchronous documents for the treatment of of not synchronizeing in synchronous documents proceeds synchronously to newly-increased.
Concrete, synchronously treat according to priority factors at electronic equipment in synchronous documents information aggregate in the corresponding process for the treatment of synchronous documents of the synchronous documents information that needs, can also carry out following steps 205b1 and 205b2.
205b1, when N in synchronous documents in the time that synchronous documents is synchronously made mistakes, in Preset Time, carry out re-synchronization by communication unit and network storage unit to synchronizeing the synchronous documents for the treatment of of makeing mistakes.
Wherein, N is treated to the synchronous documents for the treatment of in synchronous documents carries out in synchronous process, if need synchronous documents makes a mistake when synchronous, electronic equipment can be within the default time carries out re-synchronization by communication unit and network storage unit to synchronizeing the synchronous documents for the treatment of of makeing mistakes.
If what 205b2 synchronously made mistakes treats still synchronization failure of synchronous documents, by N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents completes by communication unit and network storage units synchronization, carry out re-synchronization by communication unit and described network storage unit to synchronizeing the synchronous documents for the treatment of of makeing mistakes.
Wherein, treat synchronous documents synchronization failure still within the predetermined time when what this was synchronously made mistakes, now just can by N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents completes by communication unit and network storage units synchronization, carry out re-synchronization by communication unit and described network storage unit to synchronizeing the synchronous documents for the treatment of of makeing mistakes.
The file synchronisation method that the embodiment of the present invention provides, according to each attribute information for the treatment of synchronous documents for the treatment of that synchronous documents information is corresponding for the treatment of in synchronous documents information aggregate, treat N in synchronous documents information aggregate and treat that synchronous documents information carries out prioritization, produce the second sequence, and treat the corresponding N for the treatment of of a synchronous documents information synchronous documents according to the second sequence by communication unit and network storage units synchronization and N, with the characteristic for the treatment of synchronous documents in prior art, the attribute informations such as type are not distinguished, just treat synchronous documents according to the sequencing operating or make mistakes and carry out locking phase ratio by communication unit and network storage unit, carry out prioritization according to the attribute information for the treatment of synchronous documents, and treat synchronous documents according to the sequence sequencing and carry out synchronously, improve the efficiency of file synchronization.
The embodiment of the present invention provides a kind of electronic equipment, as shown in Figure 6, this electronic equipment comprises communication unit 31, and be connected with a network storage unit 32 by described communication unit 31, this electronic equipment can also comprise: first obtains unit 33a, the first acquiring unit 34a, the first generation unit 35a, the first lock unit 36a.
First obtains unit 33a, treats synchronous documents information aggregate for obtaining; Describedly treat to comprise in synchronous documents information aggregate N and treat synchronous documents information, described in treat that each in synchronous documents information aggregate treats that synchronous documents information and one treats that synchronous documents is corresponding; Treat that synchronous documents information generates First ray in described procurement process for described N, wherein, N is more than or equal to 2 integer.
The first acquiring unit 34a, for obtain described first obtain that unit 33a obtains described in treat to treat the corresponding attribute information for the treatment of synchronous documents of synchronous documents information described in synchronous documents information aggregate described each.
The first generation unit 35a, for obtain according to described the first acquiring unit 34a described each described in treat that the corresponding attribute information for the treatment of synchronous documents of synchronous documents information treats that to described N synchronous documents information carries out prioritization, produce the second sequence.
The first lock unit 36a, synchronizes with described network storage unit 32 by described communication unit 31 and treats that with described N the corresponding N of synchronous documents information is treated synchronous documents for described the second sequence producing according to described the first generation unit 35a.
Wherein, synchronously treat that with described N N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents is higher than synchronously treating N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents with described N according to described First ray according to described the second sequence.
Further, as shown in Figure 7, in the time that described attribute information comprises at least two kinds, described the first generation unit 35a can comprise: acquisition module 35a1, generation module 35a2.
Acquisition module 35a1, for obtain according to described the first acquiring unit 34a described each described in treat that the corresponding attribute information for the treatment of synchronous documents of synchronous documents information obtains and describedly treat the corresponding priority factors for the treatment of synchronous documents of synchronous documents information described in each.
Generation module 35a2, for obtain according to described acquisition module 35a1 described each described in treat that the corresponding priority factors for the treatment of synchronous documents of synchronous documents information treats that to described N synchronous documents information carries out prioritization, produce the second sequence.
Further, treat that at the synchronous described N of described the first lock unit 36a the corresponding N of synchronous documents information is treated that, in the process of synchronous documents, described electronic equipment can also comprise: second obtains unit 33b, second acquisition unit 34b, the second generation unit 35b, the second lock unit 36b.
Second obtains unit 33b, for obtaining at least one newly-increased synchronous documents information for the treatment of.
Second acquisition unit 34b, obtain for obtaining described second the described newly-increased corresponding newly-increased attribute information for the treatment of synchronous documents of synchronous documents information for the treatment of that unit 33b obtains, and obtain the described newly-increased priority factors for the treatment of synchronous documents according to the described newly-increased attribute information for the treatment of synchronous documents.
The second generation unit 35b, treat that for the described newly-increased priority factors for the treatment of synchronous documents obtained according to described second acquisition unit 34b and described N the not synchronous priority factors for the treatment of synchronous documents of synchronous documents newly-increasedly treats that synchronous documents information and described N treat synchronously in synchronous documents not treat that synchronous documents is corresponding and treat that synchronous documents information carries out prioritization to described, produce the 3rd sequence.
The second lock unit 36b, synchronize described increasing newly for described the 3rd sequence producing according to described the second generation unit 35b and treats the individual not synchronous synchronous documents for the treatment of of treating synchronous documents of synchronous documents and described N with described network storage unit 32 by described communication unit 31.
Further, treat that at the synchronous described N of described the first lock unit 36a the corresponding N of synchronous documents information is treated that in the process of synchronous documents, described electronic equipment can also comprise: processing unit 33c.
Processing unit 33c, for when described N individual until synchronous documents in the time that synchronous documents is synchronously made mistakes, by described N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents has been synchronizeed with described network storage unit 32 by described communication unit 31, by described communication unit 31 with described in described network storage unit 32 re-synchronizations, synchronize the synchronous documents for the treatment of of makeing mistakes.
Further, described processing unit 33c can comprise: the first processing module 33c1, the second processing module 33c2.
The first processing module 33c1, for when described N until synchronous documents in the time that synchronous documents is synchronously made mistakes, in Preset Time by described communication unit 31 with described in described network storage unit 32 re-synchronizations, synchronize the synchronous documents for the treatment of of makeing mistakes.
The second processing module 33c2, if for described synchronously make mistakes treat still synchronization failure of synchronous documents, by described N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents has been synchronizeed with described network storage unit 32 by described communication unit 31, by described communication unit 31 with described in described network storage unit 32 re-synchronizations, synchronize the synchronous documents for the treatment of of makeing mistakes.
Further, described attribute information includes but not limited to: file size, file repeat to upload number of times, file nearest service time, file type, and different attribute informations has different ordering rules in sequence.
The electronic equipment that the embodiment of the present invention provides, according to each attribute information for the treatment of synchronous documents for the treatment of that synchronous documents information is corresponding for the treatment of in synchronous documents information aggregate, treat N in synchronous documents information aggregate and treat that synchronous documents information carries out prioritization, produce the second sequence, and treat the corresponding N for the treatment of of a synchronous documents information synchronous documents according to the second sequence by communication unit and network storage units synchronization and N, with the characteristic for the treatment of synchronous documents in prior art, the attribute informations such as type are not distinguished, just treat synchronous documents according to the sequencing operating or make mistakes and carry out locking phase ratio by communication unit and network storage unit, carry out prioritization according to the attribute information for the treatment of synchronous documents, and treat synchronous documents according to the sequence sequencing and carry out synchronously, improve the efficiency of file synchronization.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computing machine, hard disk or CD etc., comprise that some instructions are in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (12)

1. a file synchronisation method, is characterized in that, described method is applied in electronic equipment, and described electronic equipment comprises communication unit, and described electronic equipment is connected with a network storage unit by described communication unit, comprising:
Synchronous documents information aggregate is treated in acquisition; Describedly treat to comprise in synchronous documents information aggregate N and treat synchronous documents information, described in treat that each in synchronous documents information aggregate treats that synchronous documents information and one treats that synchronous documents is corresponding; Treat that synchronous documents information generates First ray in described procurement process for described N, wherein, N is more than or equal to 2 integer;
Described in obtaining, treat to treat the corresponding attribute information for the treatment of synchronous documents of synchronous documents information described in described each in synchronous documents information aggregate;
Treat that according to described the corresponding attribute information for the treatment of synchronous documents of synchronous documents information treats that to described N synchronous documents information carries out prioritization described in each, produce the second sequence;
Treat that by described communication unit and described network storage units synchronization and described N the corresponding N of synchronous documents information is treated synchronous documents according to described the second sequence;
Wherein, synchronously treat that with described N N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents is higher than synchronously treating N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents with described N according to described First ray according to described the second sequence.
2. file synchronisation method according to claim 1, is characterized in that, in the time that described attribute information comprises at least two kinds;
Describedly treat that according to described the corresponding attribute information for the treatment of synchronous documents of synchronous documents information treats that to described N synchronous documents information carries out prioritization described in each, produce the second sequence, comprising:
Treat that the corresponding attribute information for the treatment of synchronous documents of synchronous documents information obtains described in each and describedly treat the corresponding priority factors for the treatment of synchronous documents of synchronous documents information described in each according to described;
Treat that according to described the corresponding priority factors for the treatment of synchronous documents of synchronous documents information treats that to described N synchronous documents information carries out prioritization described in each, produce the second sequence.
3. file synchronisation method according to claim 2, is characterized in that, treats that at synchronous described N the corresponding N of synchronous documents information is treated, in the process of synchronous documents, also to comprise:
Obtain at least one newly-increased synchronous documents information for the treatment of;
Obtain the described newly-increased corresponding newly-increased attribute information for the treatment of synchronous documents of synchronous documents information for the treatment of;
Obtain the described newly-increased priority factors for the treatment of synchronous documents according to the described newly-increased attribute information for the treatment of synchronous documents;
Treat that according to the described newly-increased priority factors for the treatment of synchronous documents and described N the priority factors for the treatment of synchronous documents not synchronous in synchronous documents newly-increasedly treats that synchronous documents information and described N treat synchronously in synchronous documents not treat that synchronous documents is corresponding and treat that synchronous documents information carries out prioritization to described, produce the 3rd sequence;
According to described the 3rd sequence by described communication unit with described in described network storage units synchronization newly-increased treat synchronous documents and described N treat in synchronous documents do not synchronize treat synchronous documents.
4. file synchronisation method according to claim 2, is characterized in that, treats that at synchronous described N the corresponding N of synchronous documents information is treated, in the process of synchronous documents, also to comprise:
When described N in synchronous documents in the time that synchronous documents is synchronously made mistakes, by described N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents completes by described communication unit and described network storage units synchronization, by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes.
5. file synchronisation method according to claim 4, it is characterized in that, when described N in synchronous documents in the time that synchronous documents is synchronously made mistakes, by described N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents completes by described communication unit and described network storage units synchronization, by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes, comprising:
When described N in synchronous documents in the time that synchronous documents is synchronously made mistakes, in Preset Time by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes;
If that synchronously makes mistakes described treats still synchronization failure of synchronous documents, by described N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents completes by described communication unit and described network storage units synchronization, by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes.
6. according to the file synchronisation method described in any one in claim 1 to 5, it is characterized in that, described attribute information includes but not limited to: file size, file repeat to upload number of times, file nearest service time, file type, different attribute informations has different ordering rules in sequence.
7. an electronic equipment, is characterized in that, described electronic equipment comprises communication unit, and described electronic equipment is connected with a network storage unit by described communication unit, and described electronic equipment also comprises:
First obtains unit, treats synchronous documents information aggregate for obtaining; Describedly treat to comprise in synchronous documents information aggregate N and treat synchronous documents information, described in treat that each in synchronous documents information aggregate treats that synchronous documents information and one treats that synchronous documents is corresponding; Treat that synchronous documents information generates First ray in described procurement process for described N, wherein, N is more than or equal to 2 integer;
The first acquiring unit, for obtain described first obtain that unit obtains described in treat to treat the corresponding attribute information for the treatment of synchronous documents of synchronous documents information described in synchronous documents information aggregate described each;
The first generation unit, for obtain according to described the first acquiring unit described each described in treat that the corresponding attribute information for the treatment of synchronous documents of synchronous documents information treats that to described N synchronous documents information carries out prioritization, produce the second sequence;
The first lock unit, for described the second sequence of producing according to described the first generation unit by described communication unit and described network storage units synchronization and the individual individual synchronous documents for the treatment of of the corresponding N of synchronous documents information for the treatment of of described N;
Wherein, synchronously treat that with described N N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents is higher than synchronously treating N corresponding to synchronous documents information the efficiency for the treatment of synchronous documents with described N according to described First ray according to described the second sequence.
8. electronic equipment according to claim 7, is characterized in that, in the time that described attribute information comprises at least two kinds;
Described the first generation unit, comprising:
Acquisition module, for obtain according to described the first acquiring unit described each described in treat that the corresponding attribute information for the treatment of synchronous documents of synchronous documents information obtains and describedly treat the corresponding priority factors for the treatment of synchronous documents of synchronous documents information described in each;
Generation module, for obtain according to described acquisition module described each described in treat that the corresponding priority factors for the treatment of synchronous documents of synchronous documents information treats that to described N synchronous documents information carries out prioritization, produce the second sequence.
9. electronic equipment according to claim 8, is characterized in that, treats that at the synchronous described N of described the first lock unit the corresponding N of synchronous documents information is treated, in the process of synchronous documents, also to comprise:
Second obtains unit, for obtaining at least one newly-increased synchronous documents information for the treatment of;
Second acquisition unit, obtain for obtaining described second the described newly-increased corresponding newly-increased attribute information for the treatment of synchronous documents of synchronous documents information for the treatment of that unit obtains, and obtain the described newly-increased priority factors for the treatment of synchronous documents according to the described newly-increased attribute information for the treatment of synchronous documents;
The second generation unit, treat that for the described newly-increased priority factors for the treatment of synchronous documents obtained according to described second acquisition unit and described N the not synchronous priority factors for the treatment of synchronous documents of synchronous documents newly-increasedly treats that synchronous documents information and described N treat synchronously in synchronous documents not treat that synchronous documents is corresponding and treat that synchronous documents information carries out prioritization to described, produce the 3rd sequence;
The second lock unit, for described the 3rd sequence that produces according to described the second generation unit by described communication unit with described in described network storage units synchronization newly-increased treat synchronous documents and described N individual treat synchronous documents do not synchronize treat synchronous documents.
10. electronic equipment according to claim 8, is characterized in that, treats that at the synchronous described N of described the first lock unit the corresponding N of synchronous documents information is treated, in the process of synchronous documents, also to comprise:
Processing unit, for when described N individual until synchronous documents in the time that synchronous documents is synchronously made mistakes, by described N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents completes by described communication unit and described network storage units synchronization, by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes.
11. electronic equipments according to claim 10, is characterized in that, described processing unit, comprising:
The first processing module, for when described N until synchronous documents in the time that synchronous documents is synchronously made mistakes, in Preset Time by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes;
The second processing module, if for described synchronously make mistakes treat still synchronization failure of synchronous documents, by described N until in synchronous documents except synchronously make mistakes until synchronous documents after synchronous documents completes by described communication unit and described network storage units synchronization, by described communication unit with described in described network storage unit re-synchronization, synchronize the synchronous documents for the treatment of of makeing mistakes.
12. according to the electronic equipment described in any one in claim 7 to 11, it is characterized in that, described attribute information includes but not limited to: file size, file repeat to upload number of times, file nearest service time, file type, different attribute informations has different ordering rules in sequence.
CN201310062377.5A 2013-02-27 2013-02-27 A kind of file synchronisation method and electronic equipment Active CN104008116B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310062377.5A CN104008116B (en) 2013-02-27 2013-02-27 A kind of file synchronisation method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310062377.5A CN104008116B (en) 2013-02-27 2013-02-27 A kind of file synchronisation method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104008116A true CN104008116A (en) 2014-08-27
CN104008116B CN104008116B (en) 2018-06-01

Family

ID=51368775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310062377.5A Active CN104008116B (en) 2013-02-27 2013-02-27 A kind of file synchronisation method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104008116B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836842A (en) * 2015-03-31 2015-08-12 上海大唐移动通信设备有限公司 Method and device for synchronizing FTP server files
CN107094160A (en) * 2016-02-18 2017-08-25 北大方正集团有限公司 The method and system that a kind of data are downloaded
CN109002446A (en) * 2017-06-07 2018-12-14 联芯科技有限公司 A kind of intelligent sorting method, terminal and computer readable storage medium
CN111787074A (en) * 2020-06-18 2020-10-16 杭州美创科技有限公司 File synchronization method and terminal
WO2023001208A1 (en) * 2021-07-22 2023-01-26 华为技术有限公司 Multi-file synchronization method and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369280A (en) * 2008-10-10 2009-02-18 深圳市茁壮网络技术有限公司 Method and device for web page browsing in digital television terminal
CN101854392A (en) * 2010-05-20 2010-10-06 清华大学 Personal data management method based on cloud computing environment
CN101998148A (en) * 2009-08-26 2011-03-30 北京中传视讯科技有限公司 Method of front end transmission strategy based on CMMB (China Mobile Multimedia Broadcasting) data broadcast channel
CN102346740A (en) * 2010-08-02 2012-02-08 联想(北京)有限公司 File synchronization method, electronic equipment and synchronization system
US8191044B1 (en) * 2006-12-14 2012-05-29 Fannie Mae System and method for maintaining requirements traceability
CN102932477A (en) * 2012-11-15 2013-02-13 北京奇虎科技有限公司 Network storage client and synchronization method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8191044B1 (en) * 2006-12-14 2012-05-29 Fannie Mae System and method for maintaining requirements traceability
CN101369280A (en) * 2008-10-10 2009-02-18 深圳市茁壮网络技术有限公司 Method and device for web page browsing in digital television terminal
CN101998148A (en) * 2009-08-26 2011-03-30 北京中传视讯科技有限公司 Method of front end transmission strategy based on CMMB (China Mobile Multimedia Broadcasting) data broadcast channel
CN101854392A (en) * 2010-05-20 2010-10-06 清华大学 Personal data management method based on cloud computing environment
CN102346740A (en) * 2010-08-02 2012-02-08 联想(北京)有限公司 File synchronization method, electronic equipment and synchronization system
CN102932477A (en) * 2012-11-15 2013-02-13 北京奇虎科技有限公司 Network storage client and synchronization method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836842A (en) * 2015-03-31 2015-08-12 上海大唐移动通信设备有限公司 Method and device for synchronizing FTP server files
CN104836842B (en) * 2015-03-31 2017-12-08 上海大唐移动通信设备有限公司 A kind of method and device of synchronous ftp server file
CN107094160A (en) * 2016-02-18 2017-08-25 北大方正集团有限公司 The method and system that a kind of data are downloaded
CN107094160B (en) * 2016-02-18 2020-07-14 北大方正集团有限公司 Method and system for downloading data file
CN109002446A (en) * 2017-06-07 2018-12-14 联芯科技有限公司 A kind of intelligent sorting method, terminal and computer readable storage medium
CN111787074A (en) * 2020-06-18 2020-10-16 杭州美创科技有限公司 File synchronization method and terminal
CN111787074B (en) * 2020-06-18 2023-04-21 杭州美创科技股份有限公司 File synchronization method and terminal
WO2023001208A1 (en) * 2021-07-22 2023-01-26 华为技术有限公司 Multi-file synchronization method and electronic device

Also Published As

Publication number Publication date
CN104008116B (en) 2018-06-01

Similar Documents

Publication Publication Date Title
US20200142879A1 (en) Index maintenance based on a comparison of rebuild vs. update
KR102110057B1 (en) Song confirmation method and device, storage medium
US9792340B2 (en) Identifying data items
CN102483731B (en) Have according to search load by the medium of the fingerprint database of equilibrium
CN109871311B (en) Method and device for recommending test cases
CN103428264B (en) The method of data syn-chronization, equipment and system
CN106372221A (en) File synchronization method, equipment and system
CN102857578B (en) A kind of file uploading method of network hard disc, system and net dish client
CN110609872A (en) Method and apparatus for synchronizing node data
CN104008116A (en) File synchronization method and electronic device
CN109857803B (en) Data synchronization method, device, equipment, system and computer readable storage medium
US20090187588A1 (en) Distributed indexing of file content
KR20130020050A (en) Apparatus and method for managing bucket range of locality sensitivie hash
JP6506686B2 (en) Technique for automatically managing file descriptors
CN112036125B (en) Document management method and device and computer equipment
CN113076710B (en) Clock signal global synchronization and division verification method and device, electronic equipment and storage medium
CN111292225B (en) Partitioning graphics data for large-scale graphics processing
CN106156070A (en) A kind of querying method, Piece file mergence method and relevant apparatus
CN110046062A (en) Distributed data processing method and system
EP3827370A1 (en) Tracking attribution of content in an online collaborative electronic document
CN104079623A (en) Method and system for controlling multilevel cloud storage synchrony
US10659304B2 (en) Method of allocating processes on node devices, apparatus, and storage medium
CN101917282A (en) Method, device and system for processing alarm shielding rules
CN109450684B (en) Method and device for expanding physical node capacity of network slicing system
US11651030B2 (en) Delta-based conflict-free replicated data type arrays using dot stores that map dots to dot stores

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant