CN102480494B - File updating method, device and system - Google Patents

File updating method, device and system Download PDF

Info

Publication number
CN102480494B
CN102480494B CN201010555642.XA CN201010555642A CN102480494B CN 102480494 B CN102480494 B CN 102480494B CN 201010555642 A CN201010555642 A CN 201010555642A CN 102480494 B CN102480494 B CN 102480494B
Authority
CN
China
Prior art keywords
file
user
original document
service end
thesaurus
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
Application number
CN201010555642.XA
Other languages
Chinese (zh)
Other versions
CN102480494A (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201010555642.XA priority Critical patent/CN102480494B/en
Publication of CN102480494A publication Critical patent/CN102480494A/en
Application granted granted Critical
Publication of CN102480494B publication Critical patent/CN102480494B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The invention discloses a file updating method, a device and a system. The method includes: a scanning server transmits each original file to a client and each user file uploaded by a client, and stores the original file and the user file respectively in a corresponding list in a preset file repository in a form of directory, and then compares the user file with the original file to obtain the difference, obtains a corresponding file from the file repository based on the difference, and transmits the file to a server so as to complete the updating of the original file in the server. In the method disclosed in the invention, difference updating is only needed to be performed and the updated file can be independently obtained from the file repository to complete the updating to the original files at the server, the purposes of avoiding repeated copy, increasing transmission rate, reducing download time and reducing system consumption are achieved.

Description

A kind of method of file update, Apparatus and system
Technical field
The present invention relates to database field, in particular, relate to a kind of method, Apparatus and system of file update.
Background technology
Development and needs along with information technology and market, for meeting the demand of computerized information, IT technical development and enterprise and supply chain, a kind of ERP (Enterprise ResourcePlanning, Enterprise Resources Plan) application is provided, and it comprises by client/service architecture.Client (enterprise) finds by this ERP application (EPR itself is not management) problem of management that self exists, thereby can make client on the basis of understanding problem, solve the problem existing.
In the client of at present EPR application, if user rs environment goes wrong, can have influence on whole client's management, therefore, need to reappear problem, and reproduction problem is exactly the user rs environment before will reducing.In the prior art, for reduction user rs environment need to copy the heap file in client's current environment, so that the file that technical staff is got by analysis, thus reduction user rs environment obtains the very crux of problem, and then solve the problem existing in user rs environment.
But, adopt the mode of prior art to reduce user rs environment, when the associated documents in user rs environment are copied by technical staff, there is following shortcoming: need the file size of copy excessive, even file is compressed, capacity also can be take G substantially as unit, causes transmission speed excessively slow, the problem that download time is longer; Simultaneously, in the file copying, most file is all that service end offers client, in the process of only having sub-fraction file to use client, be modified, and prior art cannot be distinguished the difference between above-mentioned file in the process copying, therefore duplicate copy, increase the problem of system power dissipation.
Summary of the invention
In view of this, the invention provides a kind of method, Apparatus and system of file update, to overcome prior art in carrying out the process of copied files with reduction user rs environment, because file size is more greatly when duplicating copy, the transmission speed causing is excessively slow, download time is longer, thereby increases the problem of system power dissipation.
For achieving the above object, the invention provides following technical scheme:
A method for file update, comprising:
Scan service end sends to each original document of client, and original document described in each is stored in default file thesaurus;
When carrying out file update:
Each user file of scanning client, create for preserving the user rs environment list of user file described in each, and the original document in user file described in each and described default file thesaurus is contrasted, the user file there are differences is stored in described default file thesaurus;
Each original document of scan service end, creates the home environment list that user preserves original document described in each;
Contrast original document and the user file under described home environment list and user rs environment list, preserved;
When there is difference, according to described difference, from described default file thesaurus, obtain corresponding file, described file is sent to service end, complete the renewal to original document in service end.
Preferably, comprising: at scan service end, send to default file thesaurus before each original document of client.
Preferably, described original document or user file all adopt catalogue form to preserve, and the mode that described employing catalogue form is preserved is:
The informative abstract md5 value of original document described in each or user file is obtained in calculating;
According to described md5 value, for title, set up corresponding catalogue, this catalogue comprises file relative path, filename and md5 value.
Preferably, contrasting the original document preserved under described home environment list and user rs environment list and the process of user file is:
Whether the directory name md5 value contrasting under described home environment list and user rs environment list there are differences;
Whether the file relative path and the filename that contrast in the catalogue under described home environment list and user rs environment list there are differences.
Preferably, when described difference is md5 value while only appearing in described user rs environment list:
According to described md5 value, from described default file thesaurus, obtain the catalogue of corresponding described md5 value, and file corresponding to described catalogue is sent to service end, in described service end, preserve, complete the renewal to original document in service end.
Preferably, when described difference is that md5 value is different, when file relative path is identical with filename:
According to described md5 value, from described default file thesaurus, obtain the catalogue of corresponding described md5 value, and file corresponding to described catalogue is sent to service end, cover the original document under corresponding home environment list directory in described service end, complete the renewal to original document in service end.
Preferably, when described difference is that file relative path and filename are only present in described home environment list, while not existing in described user rs environment list:
Send deleted file information to service end, delete the original document under corresponding home environment list directory in described service end, complete the renewal to original document in service end.
Preferably, also comprise: adopt after catalogue form preserves described original document or user file, set up respectively directory index.
A device for file update, comprising:
Default unit, for setting up file thesaurus, and is kept at described file thesaurus by the file of original document and client upload;
Scanning element, sends to each original document of client for scan service end, and when carrying out file update the file in scan service end and client;
Creating unit, for when the file update, creates home environment list and user rs environment list, and original document described in each and user file is stored in respectively under described home environment list and user rs environment list;
Contrast unit, for the original document of each user file of contrast scans client and described file thesaurus, and contrasts the user file of preserving under the original document preserved under described home environment list and user rs environment list;
Uploading unit, while contrasting for the original document at scanning each user file of client and described file thesaurus, uploads the user file there are differences in described file thesaurus and preserves;
Updating block, for the file of preserving under home environment list and user rs environment list, contrast while there is difference, according to described difference, from described file thesaurus, obtain the file in requisition for upgrading, and the file after upgrading is sent to service end, complete the renewal to original document in service end.
A system for file update, comprising: service end, client and file update device claimed in claim 9;
Described service end, for sending original document to client, and receives the transaction file that file update device sends, and completes the renewal to original document;
Described file update device, be used for linking described service end and client, and set up file thesaurus, when carrying out file update, scan service end and client, set up the list of corresponding described service end and client, the file first original document of preserving with file thesaurus in client being there are differences is uploaded in described file thesaurus; The original document and the user file that correspondence are kept in corresponding described service end and client side list contrast again, and obtain difference between the two, obtain corresponding file according to this difference from file thesaurus, send it to described service end;
Described client, the original document sending for receiving described service end, and upload user file to described file update device.
Known via above-mentioned technical scheme, compared with prior art, the invention discloses a kind of method, Apparatus and system of file update, its method is: by setting up file thesaurus, and send to the original document of client to scan to service end, each original document is stored in file thesaurus, when carrying out file update, scanning each user file of client and each original document of service end, create each self-corresponding user rs environment list and home environment list, first the file in the user file in user rs environment list and file thesaurus is contrasted, client is uploaded to the file there are differences in file thesaurus and preserves, contrast again user rs environment list and home environment list, being about to each user file and original document contrasts, when there is difference, according to difference, from file thesaurus, obtain corresponding file, this document is sent to service end, complete the renewal to original document in service end, and then complete the reduction to user rs environment.By the above-mentioned disclosed method of the present invention, can be when reduction user rs environment, need not directly from user rs environment, to all user files, copy, but by the process of difference update, the file independently obtaining from file thesaurus after renewal upgrades the original document of service end, can when completing user rs environment reduction, not only avoid repeating copy, also improve transmission speed, reduced download time and reduced the power consumption of system.
Accompanying drawing explanation
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 embodiments of the invention, for those of ordinary skills, do not paying under the prerequisite of creative work, other accompanying drawing can also be provided according to the accompanying drawing providing.
Fig. 1 is the method flow diagram of the embodiment of the present invention one disclosed a kind of file update;
Fig. 2 is the method flow diagram of the embodiment of the present invention two disclosed a kind of file updates;
Fig. 3 is the method flow diagram of the embodiment of the present invention three disclosed a kind of file updates;
Fig. 4 is the method flow diagram of the embodiment of the present invention four disclosed a kind of file updates;
Fig. 5 is the structural representation of the disclosed a kind of file update device of the embodiment of the present invention;
Fig. 6 is the structural representation of the disclosed a kind of file update system of the embodiment of the present invention.
Embodiment
For quote and know for the purpose of, the explanation of the technical term hereinafter using, write a Chinese character in simplified form or abridge and be summarized as follows:
Md5:Message Digest Algorithm md5, message digest algorithm the 5th edition, for guaranteeing the complete consistency of communication, is the widely used hashing algorithm of computer;
ERP:Enterprise Resource Planning, Enterprise Resources Plan.
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, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
When user's site environment of current application EPR goes wrong, adopt all user files in copy user environment to reduce user environment, but in the process of copy All Files, not only the capacity of file is excessive, and easily duplicate the phenomenon of copy, thereby cause, transmission speed is excessively slow, download time is long, and the problem that increases system power dissipation.Therefore, the embodiment of the invention discloses a kind of method of file update, Apparatus and system, by setting up file thesaurus, in carrying out the process of file update, respectively the file of client and service end is scanned, and create corresponding user rs environment list and home environment list, again client by with file thesaurus in the file that there are differences be uploaded in file thesaurus and preserve, and then the user file in the original document in home environment list and user rs environment list is contrasted, when there is difference, and the file independently obtaining from this document thesaurus after renewal completes the renewal to the original document of service end, and then complete the reduction to user rs environment.Avoiding large capacity copy and to repeat copy, to reach improving transmission speed, reduce download time and reduce the object of the power consumption of system, be elaborated for example below detailed process.
Embodiment mono-
Refer to accompanying drawing 1, the method flow diagram for the disclosed a kind of file update of the embodiment of the present invention, mainly comprises the following steps:
Step S101, sets up file thesaurus.
In the process of ERP application, for guaranteeing when user rs environment goes wrong, the providing end of this ERP application, service end can avoid adopting method of the prior art to obtain the file in user rs environment.Contact is set up in embodiment utilization disclosed by the invention between service end and client, the thesaurus of creating a file, can complete the user file of the original document of service end and client upload is carried out to unified management and processing, guarantee in reduction user rs environment, service end is separately from independently copying relevant file file thesaurus, need not directly enter user rs environment, and do not need the All Files in user rs environment to copy, when increasing the fail safe of copy procedure, reduced the capacity of the file of required copy, thereby transmission speed and the speed of download of file have been improved.
It should be noted that, this document thesaurus can be based upon service end, also can be based upon client, and can set up the contact between service end and client by wide area network, also can for example, by local area network (LAN) (research and develop inside and can set up contact by local area network (LAN)), thereby compare transmission speed that can more effective raising file with directly entering the speed of user rs environment while carrying out file copy in prior art.
Step S102, scan service end sends to each original document of client, and the form by each original document with catalogue is stored in described file thesaurus.
When service end sends original document to client, execution step S102, each original document is scanned, simultaneously, the original document that scanning is obtained is kept in file thesaurus, and each original document obtaining through overscanning is with the form of catalogue, being kept in this home environment list of a line a line, and original document is all corresponding to catalogue separately.
It should be noted that, in file thesaurus, preserve in the process of the original document scanning, the form of catalogue can be diversified, is not limited in capable form, as long as a corresponding catalogue of original document.
In addition, be stored in the catalogue under this home environment list, every row catalogue comprise in have the md5 value of file relative path, filename and file.
Step S103, each user file of scanning client, create for preserving the user rs environment list of user file described in each, and the original document in user file described in each and described default file thesaurus is contrasted, the user file there are differences is stored in described default file thesaurus.
When carrying out file update, execution step S103, the user file of scanning client, create corresponding user rs environment list, being kept under this user rs environment list with form a line a line of catalogue by the user file scanning, contrast when upgrading after carrying out, being stored in the content that the every row catalogue under this user rs environment list comprises is the md5 value of file relative path, filename and file.
When client is scanned, original document in the user file scanning and default file thesaurus is contrasted, judging while there are differences, the user file scanning is different from original document, this user file is uploaded in file thesaurus and is preserved.
It should be noted that, user file comprises that user sets the file that can upload by client, these user files comprise the file of user's generation when using ERP application and the file that user independently uploads automatically, and client is to the original document of service end transmission.
Step S104, each original document of scan service end, creates the home environment list that user preserves original document described in each.
Step S105, contrasts the file in described home environment list and user rs environment list.
For completing the renewal of the original document that service end is preserved, so that correct reduction user rs environment, therefore at execution step S104 and step S105, each original document in scan service end, create corresponding home environment list and preserve the original document (contrast while upgrading afterwards for convenience of execution, being stored in the content that the every row catalogue under this home environment list comprises is file relative path, the md5 value of filename and file), then the file in home environment list and user rs environment list is contrasted, to find difference between the two, when carrying out two contrasts between list, be actually and carry out contrast one by one by being kept at two catalogues under list, to file relative path and the filename in catalogue, or the md5 value of file contrasts.
Step S106 when there is difference, obtains corresponding file according to described difference from described default file thesaurus, and described file is sent to service end, completes the renewal to original document in service end.
In the process of execution step S105, through contrasting and find the difference between user file and original document one by one, according to this difference, from the file thesaurus of setting up in advance, obtain corresponding file, the file of this correspondence difference is sent to service end, the original document there are differences in service end is replaced, deleted or increases, to eliminate the file difference between service end and client, the original document that service end is preserved is upgraded, to guarantee can to utilize the file after renewal to carry out correct reduction to user rs environment in service end.
It should be noted that, at execution step S103, contrast client scan to user file and during the file in file thesaurus, the user file there are differences is directly stored in file thesaurus with the form of catalogue, or directly the original document contrasting is modified, covered or deletes in file thesaurus, also the original document in can document retaining thesaurus, by the file upgrading, the user file there are differences is directly stored in file thesaurus.
By the disclosed method of the embodiment of the present invention, the file of preserving in service end is upgraded, between service end and client, set up associated, utilization is set up associated file thesaurus the copy work of most of file is separated from user rs environment, and only need to from file thesaurus, obtain the partial document of difference update, the part of upgrading in file thesaurus is sent to service end, file that service end utilization is upgraded is correct complete completes the reduction to user rs environment simultaneously.Therefore, adopt the disclosed file updating method of the embodiment of the present invention, not only can reach and reduce the file size that needs copy, improved the transmission speed of file and the object of speed of download, also can reach the phenomenon of avoiding duplicating copy, reduce greatly the object of system power dissipation.
Embodiment bis-
Refer to accompanying drawing 2, on the basis of the disclosed embodiment of the invention described above, the present embodiment has been described in detail for preserving original document and performed step S102, step S103 and the step S104 of user file, mainly comprises the following steps:
Step S101, sets up file thesaurus.
The process of execution step S101, and execution step S101 result that subsequent step is produced is consistent with the content of step S101 described in above-described embodiment one, detailed content, referring to embodiment mono-, repeats no more here.
During step S102 in carrying out embodiment mono-, specifically can comprise the following steps:
Step S1021, scan service end sends to each original document of client, calculates the md5 value of original document described in each.
Execution step S1021, each original document that scan service end sends, calculates the md5 value of each original document, by calculating the information integrity of the definite original document of md5 value, generally, an original document of a md5 value correspondence.
Step S1022 sets up the catalogue with the name of original document md5 value, and the original document of the described md5 value of correspondence is kept under corresponding catalogue under described file thesaurus.
Due to the corresponding original document of each md5 value, therefore, in file thesaurus, md5 value with original document is named, set up corresponding catalogue, this catalogue comprises the md5 value of file relative path, filename and file, and a line is preserved a catalogue in file thesaurus.
When carrying out file update, the concrete steps while carrying out the step S103 in embodiment mono-comprise:
Step S1031, each user file of scanning client, calculates the md5 value of user file described in each.
Step S1032, creates the user rs environment list of corresponding client.
Step S1033 sets up the catalogue with the name of user file md5 value, and the user file of the described md5 value of correspondence is kept under corresponding catalogue under described user rs environment list.
Step S1034, contrasts the original document of preserving in described user file and described file thesaurus, and the user file there are differences is uploaded in file thesaurus and is preserved with catalogue form.
While performing step S1031 to step S1033, what in step S1031, scan is each user file of client, the user file that called customer terminal is uploaded, can be the user file (for example file of newly-increased file, modification or the file of deletion) that client produces when using ERP application, can be also the user file that needs active upload that client sets.By client, set the confidentiality that can improve customer information here, and in the process of reduction user rs environment, make client understand the relevant user file of active upload on the basis of present case.
The calculating of md5 value for the user file of scanning, the corresponding user file of same each md5 value, therefore, under the user rs environment list creating, md5 value with user file is named, set up corresponding catalogue, this catalogue comprises the md5 value of file relative path, filename and file, and a line is preserved a catalogue in user rs environment list.
After scanning the user file of client and preserving, execution step S1034, the original document of preserving in the user file of preservation and file thesaurus is contrasted, the user file there are differences is directly stored in file thesaurus with the form of catalogue, or directly the original document contrasting is modified in file thesaurus, cover or delete, also the original document in can document retaining thesaurus, by the file upgrading, the user file there are differences is directly stored in file thesaurus, to obtain the file of preservation while upgrading afterwards from file thesaurus.
When carrying out file update, the concrete steps while carrying out the step S104 in embodiment mono-comprise:
Step S1041, each original document of scan service end, calculates the md5 value of original document described in each.
Step S1042, creates the home environment list of corresponding with service end.
Step S1043 sets up the catalogue with the name of local file md5 value, and the local file of the described md5 value of correspondence is kept under corresponding catalogue under described home environment list.
Execution step S1041 is basic consistent with the process of above-mentioned steps S1031 to S1033 to the mode of step S1043.Adopt and preserve in the same way the original document that service end scans, the mode of preserving original document is here identical with the mode that user file is stored in user rs environment list, repeats no more here.
Step S105, contrasts the file in described home environment list and user rs environment list.
Step S106 when there is difference, obtains corresponding file according to described difference from described default file thesaurus, and described file is sent to service end, completes the renewal to original document in service end.
In this embodiment disclosed by the invention, it is consistent that the implementation of step S105 and step S106 discloses corresponding process with above-described embodiment, repeats no more here.
In embodiment disclosed by the invention, by calculating the md5 value of original document and user file, can be convenient while setting up catalogue corresponding to file in file thesaurus, and convenient according to the definite file that will contrast of md5 value, to complete the contrast one by one of catalogue under home environment list and user rs environment list, and get difference between the two.Then, according to this difference, from the file thesaurus of setting up in advance, obtain corresponding file again, the file of this correspondence difference is sent to service end, the original document there are differences in service end is replaced, deleted or increases, to eliminate the file difference between service end and client, the original document that service end is preserved is upgraded, to guarantee can to utilize the file after renewal to carry out correct reduction to user rs environment in service end.
It should be noted that, that to calculate the file md5 value of obtaining be catalogue that name nominating is corresponding in the present invention, but, this is preferably embodiment of one of the present invention, name about catalogue is not limited in this, can also adopt other mode, for example the combination of file relative path and filename.
By the disclosed method of the embodiment of the present invention, the file of preserving in service end is upgraded, only need in file thesaurus, complete the renewal of difference part, the part of upgrading in file thesaurus is sent to service end, file that service end utilization is upgraded is correct complete completes the reduction to user rs environment simultaneously.Therefore, adopt the disclosed file updating method of the embodiment of the present invention, not only can reach and reduce the file size that needs copy, improved the transmission speed of file and the object of speed of download, also can reach the phenomenon of avoiding duplicating copy, reduce greatly the object of system power dissipation.
Embodiment tri-
Refer to accompanying drawing 2 and accompanying drawing 3, on the basis of the disclosed embodiment of the invention described above, the present embodiment has been described in detail for contrasting step S105 performed while upgrading and the detailed process of step S106, mainly comprises the following steps:
Step S101, sets up file thesaurus.
Step S1021, scan service end sends to each original document of client, calculates the md5 value of original document described in each.
Step S1022 sets up the catalogue with the name of original document md5 value, and the original document of the described md5 value of correspondence is kept under corresponding catalogue under described file thesaurus.
Step S1031, each user file of scanning client, calculates the md5 value of user file described in each.
Step S1032, creates the user rs environment list of corresponding client.
Step S1033 sets up the catalogue with the name of user file md5 value, and the user file of the described md5 value of correspondence is kept under corresponding catalogue under described user rs environment list.
Step S1034, contrasts the original document of preserving in described user file and described file thesaurus, and the user file there are differences is uploaded in file thesaurus and is preserved with catalogue form.
Step S1041, each original document of scan service end, calculates the md5 value of original document described in each.
Step S1042, creates the home environment list of corresponding with service end.
Step S1043 sets up the catalogue with the name of local file md5 value, and the local file of the described md5 value of correspondence is kept under corresponding catalogue under described home environment list.
The disclosed step S101 of the invention described above embodiment is to the implementation of step S1043, and is the same (referring to accompanying drawing 2) on the impact of follow-up execution step, repeats no more here.It should be noted that, as shown in Figure 3, when the step S105 in carrying out embodiment mono-and step S106, specifically can comprise the following steps:
Step S1051, contrasts the file in described home environment list and user rs environment list, judges whether to be only present in the file in described user rs environment list, if had, performs step S1061; If no, perform step S1063.
Due to the catalogue of preserving under home environment list and under user rs environment list, this catalogue is except the md5 value name with file, in this catalogue, also include file relative path and filename, in the process contrasting one by one at execution step S1051, if only there is the catalogue (including corresponding file relative path and filename) of this md5 value name in user rs environment list, this catalogue of being present under this user rs environment list of explanation is newly-increased catalogue, user file that should catalogue is also increased newly.Therefore, after determining the newly-increased catalogue of existence, then execution step S1061; If there is no, perform step S1063.
Step S1052, contrasts the file in described home environment list and user rs environment list, judge whether the file that all exists in described home environment list and user rs environment list, but the different file of file md5 value, if had, performs step S1061; If no, perform step S1063.
The catalogue of preserving under home environment list and under user rs environment list, although these catalogues are all to name with the md5 value of file, also include file relative path and filename in catalogue.In the process contrasting one by one at execution step S1052, if file relative path is identical with filename, be that this document is all present in home environment list and user rs environment list, but, the md5 value of this document is but not identical, illustrates that client has revised original document in the process of using ERP application.Therefore,, after definite original document is modified, transfer execution step S1061; If there is no difference, perform step S1063.
Step S1053, contrasts the file in described home environment list and user rs environment list, judges whether to be only present in the file in described home environment list, if had, performs step S1062; If no, perform step S1063.
Equally, in the process contrasting one by one at execution step S1053, if only there is (documents relative path and filename) in home environment list, and do not exist in user rs environment list, illustrate and under user rs environment list, deleted this catalogue.Therefore, after determining the catalogue of deleting, then execution step S1062; If there is no, perform step S1063.
Step S1061, according to described user file corresponding md5 value from the file thesaurus of described foundation in advance, obtain the catalogue of corresponding described md5 value.
Step S1062, sends deleted file information to service end.
Execution above-mentioned steps S1051 is definite there is newly-increased catalogue, from file thesaurus, obtain the file directory of corresponding md5 value, and this catalogue is while performing step S1034, to be stored in the file of client upload in file thesaurus; Carry out above-mentioned steps S1052 and determine the catalogue of revising, when carrying out file update, approach or the mode of obtaining the catalogue of modification are consistent with step S1051; Carry out above-mentioned S1053, for the catalogue of deleting in user rs environment list, can retain and do not do other operations, only need this lastest imformation, need the information of deleted file to be sent to service end, complete the renewal to original document in service end.
Step S1063, is sent to service end by the file completing after above-mentioned steps S1051, step S1052 and step S1053 upgrade, and completes the renewal to original document in service end.
In file thesaurus, execute to the renewal of catalogue corresponding to Miscellaneous Documents (increase newly, revise and delete) afterwards, after home environment list and user rs environment list contrast, file after the difference of obtaining according to contrast is upgraded corresponding catalogue is sent to service end, complete the renewal to original document in service end, to guarantee can to utilize the file after renewal to carry out correct reduction to user rs environment in service end.
It should be noted that, the mode that the user file in client contrasts with original document in file thesaurus, home environment list is respectively consistent.
By the disclosed method of the above embodiment of the present invention, can be when reduction user rs environment, need not directly from user rs environment, to all user files, copy, but by the process of difference update, the file independently obtaining from this document thesaurus after renewal upgrades the original document of service end, can when completing user rs environment reduction, not only avoid repeating copy, also improve transmission speed, reduced download time and reduced the power consumption of system.
Embodiment tetra-
Refer to accompanying drawing 4, on the basis of the disclosed embodiment of the invention described above, also increased the process of setting up index, and have been described in detail in this embodiment disclosed by the invention, mainly comprise the following steps:
Step S101, sets up file thesaurus.
Step S102, scan service end sends to each original document of client, and the form by each original document with catalogue is stored in described file thesaurus.
Step S107 sets up index to the catalogue of original document described in each in file thesaurus.
Step S103, each user file of scanning client, create for preserving the user rs environment list of user file described in each, and the original document in user file described in each and described default file thesaurus is contrasted, the user file there are differences is stored in described default file thesaurus.
Step S104, each original document of scan service end, creates the home environment list that user preserves original document described in each.
Step S105, contrasts the file in described home environment list and user rs environment list.
Step S106 when there is difference, obtains corresponding file according to described difference from described default file thesaurus, and described file is sent to service end, completes the renewal to original document in service end.
In this embodiment disclosed by the invention, on the basis of above-described embodiment, to have increased the step of setting up directory index, and after interpolation and step S102, for the catalogue under file thesaurus is set up index, in order to guarantee in the situation that file is more, can find fast corresponding catalogue, improve the speed of upgrading, further reduce the power consumption of system.
In the disclosed embodiment of the invention described above, describe method in detail, for method of the present invention, can adopt the device of various ways to realize, therefore the invention also discloses a kind of device, provide specific embodiment below and be elaborated.
Refer to accompanying drawing 5, in device disclosed in this invention, mainly comprise: default unit 501, scanning element 502, creating unit 503, contrast unit 504, uploading unit 505 and updating block 506.
Default unit 501, for setting up file thesaurus.
Scanning element 502, sends to each original document of client for scan service end, and when carrying out file update the file in scan service end and client.
Creating unit 503, for when the file update, creates home environment list and user rs environment list, and original document described in each and user file is stored in respectively under described home environment list and user rs environment list.
Contrast unit 504, for the original document of each user file of contrast scans client and described file thesaurus, and contrasts the user file of preserving under the original document preserved under described home environment list and user rs environment list.
Uploading unit 505, while contrasting for the original document at scanning each user file of client and described file thesaurus, uploads the user file there are differences in described file thesaurus and preserves.
Updating block 506, for the file of preserving under home environment list and user rs environment list, contrast while there is difference, according to described difference, from described file thesaurus, obtain the file in requisition for upgrading, and the file after upgrading is sent to service end, complete the renewal to original document in service end.
In disclosed this device of the embodiment of the present invention, utilize default unit 501 to set up file thesaurus, by original document or user file through scanning element 502 scannings, the file that service end is sent to client is stored in default unit with the form of catalogue, and when carrying out file update, form with catalogue is stored under the corresponding home environment list and user rs environment list of creating unit 503 establishments, and then contrast through contrast unit 504, obtain the difference between original document and user file, user file original document in each user file of client and file thesaurus being there are differences by uploading unit 505 is uploaded in file thesaurus and is preserved, by updating block 506, according to the difference between the file of preserving under home environment list and user rs environment list, from file thesaurus, obtain corresponding file, and be sent to service end the original document of service end is upgraded, to reached, avoid repeating copy, improve the object of transmission speed, minimizing download time and reduction system power dissipation.
The unit that above-mentioned execution is preset, scanned, creates, contrasts and upgrade, the process of its execution is consistent with step corresponding in the disclosed embodiment of the method for the invention described above, is described no longer in detail here.
In the disclosed embodiment of the invention described above, describe method and apparatus in detail, for method of the present invention, can adopt the device of various ways to realize, based on the disclosed preferred device of the invention described above, the invention also discloses a kind of system based on this device, provide specific embodiment below and be elaborated.
Refer to accompanying drawing 6, the system configuration schematic diagram for the disclosed a kind of file update of the embodiment of the present invention, mainly comprises: the disclosed file update device 603 of service end 601, client 602 and above-described embodiment.
Service end 601, for sending original document to client 602, and receives the transaction file that file update device 603 sends, and completes the renewal to original document.
File update device 603, be used for linking described service end 601 and client 603, and set up file thesaurus, when carrying out file update, scan service end 601 and client 603, set up the list of corresponding described service end 601 and client 603, the file first original document of preserving with file thesaurus in client 603 being there are differences is uploaded in described file thesaurus; The original document and the user file that correspondence are kept in corresponding described service end and client side list contrast again, and obtain difference between the two, obtain corresponding file according to this difference from file thesaurus, send it to described service end 601.
Client 603, the original document sending for receiving described service end 601, and upload user file to described file update device 602.
The disclosed above-mentioned service end 601 of the embodiment of the present invention, client 602 and file update device 603 part corresponding with the invention described above embodiment the methods and apparatus disclosed are said the process carried out and public consistent, repeat no more here.
In sum
By method, the Apparatus and system of file update disclosed by the invention, only need to carry out difference update, and the file independently obtaining from file thesaurus after renewal completes the renewal to the original document of service end, reached and avoided repeating copy, improved the object of transmission speed, minimizing download time and reduction system power dissipation.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.For the disclosed device of embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part partly illustrates referring to method.
The software module that the method for describing in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to carry out, or the combination of the two is implemented.Software module can be placed in the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Above-mentioned explanation to the disclosed embodiments, makes professional and technical personnel in the field can realize or use the present invention.To the multiple modification of these embodiment, will be apparent for those skilled in the art, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a method for file update, is characterized in that, comprising:
Scan service end sends to each original document of client, and original document described in each is stored in default file thesaurus;
When carrying out file update:
Each user file of scanning client, create for preserving the user rs environment list of user file described in each, and the original document in user file described in each and described default file thesaurus is contrasted, the user file there are differences is stored in described default file thesaurus;
Each original document of scan service end, creates the home environment list that user preserves original document described in each;
Contrast original document and the user file under described home environment list and user rs environment list, preserved;
When there is difference, according to described difference, from described default file thesaurus, obtain corresponding file, described file is sent to service end, complete the renewal to original document in service end, wherein, the file of described correspondence refers to the file of corresponding described difference.
2. method according to claim 1, is characterized in that, comprising: at scan service end, send to default file thesaurus before each original document of client.
3. method according to claim 1, is characterized in that, described original document or user file all adopt catalogue form to preserve, and the mode that described employing catalogue form is preserved is:
The informative abstract md5 value of original document described in each or user file is obtained in calculating;
According to described md5 value, for title, set up corresponding catalogue, this catalogue comprises file relative path, filename and md5 value.
4. method according to claim 3, is characterized in that, contrasts the original document preserved under described home environment list and user rs environment list and the process of user file to be:
Whether the directory name md5 value contrasting under described home environment list and user rs environment list there are differences;
Whether the file relative path and the filename that contrast in the catalogue under described home environment list and user rs environment list there are differences.
5. method according to claim 4, is characterized in that, when described difference is md5 value while only appearing in described user rs environment list:
According to described md5 value, from described default file thesaurus, obtain the catalogue of corresponding described md5 value, and file corresponding to described catalogue is sent to service end, in described service end, preserve, complete the renewal to original document in service end.
6. method according to claim 4, is characterized in that, when described difference is that md5 value is different, when file relative path is identical with filename:
According to described md5 value, from described default file thesaurus, obtain the catalogue of corresponding described md5 value, and file corresponding to described catalogue is sent to service end, cover the original document under corresponding home environment list directory in described service end, complete the renewal to original document in service end.
7. method according to claim 4, is characterized in that, when described difference is that file relative path and filename are only present in described home environment list, while not existing in described user rs environment list:
Send deleted file information to service end, delete the original document under corresponding home environment list directory in described service end, complete the renewal to original document in service end.
8. method according to claim 3, is characterized in that, also comprises: adopt after catalogue form preserves described original document or user file, set up respectively directory index.
9. a device for file update, is characterized in that, comprising:
Default unit, for setting up file thesaurus, and is kept at described file thesaurus by the file of original document and client upload;
Scanning element, sends to each original document of client for scan service end, and when carrying out file update the file in scan service end and client;
Creating unit, for when the file update, creates home environment list and user rs environment list, and original document described in each and user file is stored in respectively under described home environment list and user rs environment list;
Contrast unit, for the original document of each user file of contrast scans client and described file thesaurus, and contrasts the user file of preserving under the original document preserved under described home environment list and user rs environment list;
Uploading unit, while contrasting for the original document at scanning each user file of client and described file thesaurus, uploads the user file there are differences in described file thesaurus and preserves;
Updating block, for the file of preserving under home environment list and user rs environment list, contrast while there is difference, according to described difference, from described file thesaurus, obtain corresponding file, and described file is sent to service end, complete the renewal to original document in service end, wherein, the file of described correspondence refers to the file of corresponding described difference.
10. a system for file update, is characterized in that, comprising: service end, client and file update device claimed in claim 9;
Described service end, for sending original document to client, and receives the transaction file that file update device sends, and completes the renewal to original document;
Described file update device, be used for linking described service end and client, and set up file thesaurus, when carrying out file update, scan service end and client, set up the list of corresponding described service end and client, the file first original document of preserving with file thesaurus in client being there are differences is uploaded in described file thesaurus; The original document and the user file that correspondence are kept in corresponding described service end and client side list contrast again, and obtain difference between the two, obtain corresponding file according to this difference from file thesaurus, send it to described service end;
Described client, the original document sending for receiving described service end, and upload user file to described file update device.
CN201010555642.XA 2010-11-23 2010-11-23 File updating method, device and system Active CN102480494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010555642.XA CN102480494B (en) 2010-11-23 2010-11-23 File updating method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010555642.XA CN102480494B (en) 2010-11-23 2010-11-23 File updating method, device and system

Publications (2)

Publication Number Publication Date
CN102480494A CN102480494A (en) 2012-05-30
CN102480494B true CN102480494B (en) 2014-04-02

Family

ID=46092974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010555642.XA Active CN102480494B (en) 2010-11-23 2010-11-23 File updating method, device and system

Country Status (1)

Country Link
CN (1) CN102480494B (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533525B (en) * 2012-07-02 2016-12-07 华为终端有限公司 The method, apparatus and system of the regular transmission that policy control is relevant with charging
CN102811260B (en) * 2012-08-10 2015-04-15 清华大学 File cloud synchronizing system and method
CN104008104A (en) * 2013-02-22 2014-08-27 纬创资通股份有限公司 Method for processing document change and electronic device
CN104133822B (en) * 2013-07-15 2016-09-14 腾讯科技(深圳)有限公司 A kind of method and device that file on memorizer is scanned
CN104424188B (en) * 2013-08-19 2018-07-20 上海携程商务有限公司 The system and method that the web data of acquisition is updated
CN103685278B (en) * 2013-12-17 2017-01-11 西安诺瓦电子科技有限公司 Method and management terminal end for media release
CN104778637A (en) * 2014-01-10 2015-07-15 携程计算机技术(上海)有限公司 Hotel data processing system and method
CN105549985A (en) * 2014-10-29 2016-05-04 任子行网络技术股份有限公司 Method and system for enhancing reliability of Linux application system
CN104536961A (en) * 2014-11-04 2015-04-22 深圳创维数字技术有限公司 Scanning method and scanning system for local media files
CN105812427B (en) * 2014-12-31 2019-08-13 中国电信股份有限公司 File uploads and method for down loading, device and file server
CN104881466B (en) * 2015-05-25 2018-09-07 百度在线网络技术(北京)有限公司 The processing of data fragmentation and the delet method of garbage files and device
EP3179688A1 (en) * 2015-12-11 2017-06-14 Koninklijke KPN N.V. Updating part of a manifest file on the basis of patches
CN106886433A (en) * 2015-12-16 2017-06-23 阿里巴巴集团控股有限公司 The update method and device of client software
CN105681078A (en) * 2016-01-11 2016-06-15 努比亚技术有限公司 Network parameter upgrading device and method
CN106371867B (en) * 2016-08-29 2020-01-21 深圳市证通电子股份有限公司 Financial equipment software updating method and system
CN108270834B (en) * 2016-12-30 2021-08-10 北京国双科技有限公司 Data transmission method and device
CN107484003B (en) * 2017-07-01 2019-11-15 武汉斗鱼网络科技有限公司 Television listing data Local hydrodynamic unit method, storage medium, electronic equipment and system
CN107332918A (en) * 2017-07-07 2017-11-07 上海斐讯数据通信技术有限公司 A kind of high in the clouds local file synchronization realizing method and system
CN107479881B (en) * 2017-07-31 2020-07-31 武汉斗鱼网络科技有限公司 Method for synchronizing difference codes, storage medium, electronic device and system
CN108108724B (en) * 2018-01-19 2020-05-08 浙江工商大学 Vehicle detector training method based on multi-subregion image feature automatic learning
CN111049889B (en) * 2019-12-04 2022-07-08 车智互联(北京)科技有限公司 Static resource uploading method and device, integrated server and system
CN112347747B (en) * 2020-11-03 2024-03-19 金蝶云科技有限公司 Form style processing method and related device
CN112597118B (en) * 2021-01-04 2024-03-29 杭州海量存储技术有限公司 Shared file adding method and device
CN114286195B (en) * 2021-12-23 2023-10-13 广州津虹网络传媒有限公司 Live gift resource updating method and device, equipment, medium and product thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360127A (en) * 2008-09-10 2009-02-04 金蝶软件(中国)有限公司 File updating method and transmission system
CN101453418A (en) * 2007-12-05 2009-06-10 高德软件有限公司 Updating method for synchronization between customer terminal and server
CN101770515A (en) * 2010-01-18 2010-07-07 杭州顺网科技股份有限公司 Data block comparison based data updating method
CN101833486A (en) * 2010-04-07 2010-09-15 山东高效能服务器和存储研究院 Method for designing remote backup and recovery system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453418A (en) * 2007-12-05 2009-06-10 高德软件有限公司 Updating method for synchronization between customer terminal and server
CN101360127A (en) * 2008-09-10 2009-02-04 金蝶软件(中国)有限公司 File updating method and transmission system
CN101770515A (en) * 2010-01-18 2010-07-07 杭州顺网科技股份有限公司 Data block comparison based data updating method
CN101833486A (en) * 2010-04-07 2010-09-15 山东高效能服务器和存储研究院 Method for designing remote backup and recovery system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
任欣,等.远程文件备份与恢复系统的设计与实现.《计算机工程》.2009,第35卷(第10期), *
赵吴汉,等.基于Internet的高效文件备份方法.《计算机工程》.2010,第36卷(第2期), *

Also Published As

Publication number Publication date
CN102480494A (en) 2012-05-30

Similar Documents

Publication Publication Date Title
CN102480494B (en) File updating method, device and system
CN111566633B (en) Commit protocol for synchronizing content items
US10795812B1 (en) Virtual copy forward method and system for garbage collection in cloud computing networks
EP1513065B1 (en) File system and file transfer method between file sharing devices
CN102404338B (en) File synchronization method and device
KR101122890B1 (en) Remote file updates through remote protocol
CN101593249B (en) Suspicious file analyzing method and suspicious file analyzing system
CN102629247B (en) Method, device and system for data processing
KR20180055952A (en) Data replication technique in database management system
CN110268380A (en) File system hierarchy structure mirror image across cloud data repository
CN103414759B (en) Network disk file transmission method and device
CN103731483A (en) Virtual file system based on cloud computing
CN107667351A (en) The system and method for the full data backup and resume for being automatically based upon cloud on mobile device
CN104239122B (en) A kind of virtual machine migration method and device
US11392458B2 (en) Reconstructing lost data objects by generating virtual user files from available nodes within a cluster
CN104615710A (en) Electronic map frame data updating method
CN109977170A (en) The synchronous method and system of network data inside and outside a kind of government affairs
US20230101774A1 (en) Techniques for performing clipboard-to-file paste operations
US20210342378A1 (en) External storage of unstructured database objects
KR101258387B1 (en) The digital aging system and the management method
CN104281486B (en) A kind of virtual machine treating method and apparatus
TW201629797A (en) Method for performing file synchronization control, and associated apparatus
US20210124716A1 (en) Reconstructing lost data objects by generating virtual user files from available tiers within a node
CN107515946A (en) Portal management editing system
CN106921706A (en) User data transferring system and its method based on customer location

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