CN105260202A - Client file updating method and system - Google Patents

Client file updating method and system Download PDF

Info

Publication number
CN105260202A
CN105260202A CN201510587672.1A CN201510587672A CN105260202A CN 105260202 A CN105260202 A CN 105260202A CN 201510587672 A CN201510587672 A CN 201510587672A CN 105260202 A CN105260202 A CN 105260202A
Authority
CN
China
Prior art keywords
file
client
server
update
renewal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510587672.1A
Other languages
Chinese (zh)
Inventor
王文治
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201510587672.1A priority Critical patent/CN105260202A/en
Publication of CN105260202A publication Critical patent/CN105260202A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a client file updating method and system. The method comprises the following steps of transmitting a file update request to a server by the client, wherein the file update request carries an identification of a file to be updated; after receiving the file update request by the server, transmitting an updated file corresponding to the identification to the client; comparing a file to be updated stored in the client with the updated file by the client, and finding out incremental data; and performing incremental updating on the file to be updated stored in the client by the client according to the incremental data.

Description

A kind of client file update method and system
Technical field
The application relates to but is not limited to client file more frontier, particularly relates to a kind of client file update method and system.
Background technology
Existing client file update method comprises full dose and upgrades and incremental update.When incremental update refers to and carries out renewal rewards theory, only upgrade the place needing to change, do not need renewal or updated place then can not repeat to upgrade, incremental update upgrades relative with full dose.
Relative full dose upgrades, and increases renewal speed faster, to the data processing resources of client, data storage resource take little.
Existing client file increment updating method generally comprises following steps:
After the file of client on the server that the file known with self stores is corresponding has carried out upgrading, send file update request to server;
The described file self stored, after receiving the response message of server, is sent to server by client;
After server receives the file from client, the updating file on the file of reception and server is contrasted, finds incremental data;
The described incremental data found is sent to client by server.
Optionally, when the file that self stores is sent to server by client, if the file self stored is comparatively large, for improving transfer efficiency, a point block operations can be carried out to the file that self stores, then block data and the checking data that is used for server identification block data are sent to server.
Existing client file increment updating method has following deficiency:
1, the operation finding incremental data is completed by server, when the client of carrying out file update is more, easily causes server calculating pressure large, requires high to the software and hardware of server;
2, when transmitting block data between server and client side, server needs to divide storage space and stores checking data, and when the client of carrying out file update is more, checking data is also more, takies the storage resources that server is larger.
Summary of the invention
The invention provides a kind of client file update method and system, the technical matters of server assumes excessive calculating pressure when how to avoid client file to carry out incremental update to solve.
For solving the problem, the invention provides a kind of client file update method, described method comprises:
User end to server sends file update request, and file identification to be updated is carried in described file update request;
After server receives described file update request, the file after renewal corresponding for described mark is sent to client;
File after the file to be updated that client stores self and described renewal contrasts, and finds incremental data;
Client, according to described incremental data, carries out incremental update to the file to be updated that self stores.
Optionally, described method also comprises:
Server, after knowing that file there occurs renewal, carries out piecemeal to the file after upgrading;
Server is by blocked file and be used for identifying that the checking data of blocked file is stored in external buffers.
Optionally, the file after renewal corresponding for described mark is sent to client by described server, comprising:
Server, according to described mark, is downloaded and the described blocked file identified after corresponding renewal from described external buffers;
Server is by this blocked file and be used for identifying that the checking data of this blocked file is sent to client.
Optionally, described method also comprises:
After the file to be updated that client stores self carries out incremental update, record Update log, described Update log comprises: user is new record, user profile and/or client configuration information more.
For solving the problems of the technologies described above, embodiments provide a kind of client of file update, described client comprises:
Memory module, for storage file;
Update request module, for sending file update request to server, file identification to be updated is carried in described file update request;
Computing module, for receiving from server with the described file identified after corresponding renewal, and contrasting the file after the file to be updated self stored and described renewal, finding incremental data;
File update module, for according to described incremental data, carries out incremental update to the file to be updated that self stores.
Optionally, described client also comprises:
Upgrade logging modle, after the file to be updated for storing self carries out incremental update, record Update log, described Update log comprises: user is new record, user profile and/or client configuration information more.
For solving the problems of the technologies described above, embodiments provide a kind of server of file update, described server comprises:
Upgrade monitoring modular, for receiving the file update request from client, file identification to be updated is carried in described file update request;
Updating file sending module, after receiving described file update request, is sent to client by the file after renewal corresponding for described mark.
Optionally, described server also comprises:
File block module, for after knowing that file there occurs renewal, carries out piecemeal to the file after upgrading;
Described updating file sending module, also for by the blocked file obtained by file block module and be used for identifying that the checking data of blocked file is stored in external buffers.
Optionally, updating file sending module, for the file after renewal corresponding for described mark is sent to client, comprising:
According to described mark, download and the described blocked file identified after corresponding renewal from described external buffers;
By blocked file and be used for identifying that the checking data of this blocked file is sent to client.
Technique scheme, when client file carries out incremental update, by finding the transition of operation of incremental data to client executing, reduces the calculating pressure of server; For each client, need the file of renewal limited at one time, and then need the operation amount of the searching incremental data of carrying out less, the calculating pressure that client increases is in tolerance interval.
Accompanying drawing explanation
Fig. 1 is the client file update method process flow diagram of the embodiment of the present invention;
Fig. 2 is the client composition module map of the file update of the embodiment of the present invention;
Fig. 3 is the server comprising modules figure of the file update of the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, hereinafter will be described in detail to embodiments of the invention by reference to the accompanying drawings.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
Fig. 1 is the client file update method process flow diagram of the embodiment of the present invention.
S101 user end to server sends file update request, and file identification to be updated is carried in described file update request;
Optionally, client sends file update request to server after knowing file update notice from server;
After S102 server receives described file update request, the file after renewal corresponding for described mark is sent to client;
File after the file to be updated that S103 client stores self and described renewal contrasts, and finds incremental data;
S104 client, according to described incremental data, carries out incremental update to the file to be updated that self stores.
Optionally, before said method, server, after knowing that file there occurs renewal, carries out piecemeal to the file after upgrading; Server is by blocked file and be used for identifying that the checking data of blocked file is stored in external buffers.
Corresponding, the file after renewal corresponding for described mark is sent to client by step S102 server, comprising:
Server, according to described mark, is downloaded and the described blocked file identified after corresponding renewal from described external buffers; Server is by this blocked file and be used for identifying that the checking data of this blocked file is sent to client.
In technique scheme, the updating file after piecemeal is stored in external buffers by server, instead of is stored in server, can save the storage space of server.Technique scheme server is by carrying out piecemeal to updating file, and transmission blocked file, can improve the transfer efficiency of updating file.
Optionally, said method also comprises:
After the file to be updated that client stores self carries out incremental update, record Update log, described Update log comprises: user is new record, user profile and/or client configuration information more.
Client, by record Update log, facilitates that technician is follow-up checks software upgrading situation, when there is software upgrading mistake, and also convenient investigation, mis repair.
Technique scheme, when client file carries out incremental update, by finding the transition of operation of incremental data to client executing, reduces the calculating pressure of server; For each client, need the file of renewal limited at one time, and then need the operation amount of the searching incremental data of carrying out less, the calculating pressure that client increases is in tolerance interval.
Fig. 2 is the client composition module map of the file update of the embodiment of the present invention.
Described client comprises:
Memory module, for storage file;
Update request module, for sending file update request to server, file identification to be updated is carried in described file update request;
Optionally, described update request module sends file update request to server after knowing file update notice from server;
Computing module, for receiving from server with the described file identified after corresponding renewal, and contrasting the file after the file to be updated self stored and described renewal, finding incremental data;
File update module, for according to described incremental data, carries out incremental update to the file to be updated that self stores.
Optionally, described client also comprises:
Upgrade logging modle, after the file to be updated for storing self carries out incremental update, record Update log, described Update log comprises: user is new record, user profile and/or client configuration information more.
Client, by record Update log, facilitates that technician is follow-up checks software upgrading situation, when there is software upgrading mistake, and also convenient investigation, mis repair.
Technique scheme, when client file carries out incremental update, by finding the transition of operation of incremental data to client executing, reduces the calculating pressure of server; For each client, need the file of renewal limited at one time, and then need the operation amount of the searching incremental data of carrying out less, the calculating pressure that client increases is in tolerance interval.
Fig. 3 is the server comprising modules figure of the file update of the embodiment of the present invention.
Described server comprises:
Upgrade monitoring modular, for receiving the file update request from client, file identification to be updated is carried in described file update request;
Updating file sending module, after receiving described file update request, is sent to client by the file after renewal corresponding for described mark.
Optionally, described server also comprises:
File block module, for after knowing that file there occurs renewal, carries out piecemeal to the file after upgrading;
Described updating file sending module, also for by the blocked file obtained by file block module and be used for identifying that the checking data of blocked file is stored in external buffers.
Optionally, described updating file sending module, for the file after renewal corresponding for described mark is sent to client, comprising:
According to described mark, download and the described blocked file identified after corresponding renewal from described external buffers; By blocked file and be used for identifying that the checking data of this blocked file is sent to client.
In technique scheme, the updating file after piecemeal is stored in external buffers by server, instead of is stored in server, can save the storage space of server.Technique scheme server is by carrying out piecemeal to updating file, and transmission blocked file, can improve the transfer efficiency of updating file.
In addition, updating file is directly sent to client by technique scheme server, no longer carries out the operation finding incremental data, reduces the calculating pressure of server.
The all or part of step that one of ordinary skill in the art will appreciate that in said method is carried out instruction related hardware by program and is completed, and described program can be stored in computer-readable recording medium, as ROM (read-only memory), disk or CD etc.Alternatively, all or part of step of above-described embodiment also can use one or more integrated circuit to realize, and correspondingly, each module/unit in above-described embodiment can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
It should be noted that; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art can make various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection domain that all should belong to the claim appended by the present invention.

Claims (9)

1. a client file update method, is characterized in that, described method comprises:
User end to server sends file update request, and file identification to be updated is carried in described file update request;
After server receives described file update request, the file after renewal corresponding for described mark is sent to client;
File after the file to be updated that client stores self and described renewal contrasts, and finds incremental data;
Client, according to described incremental data, carries out incremental update to the file to be updated that self stores.
2. the method for claim 1, is characterized in that, described method also comprises:
Server, after knowing that file there occurs renewal, carries out piecemeal to the file after upgrading;
Server is by blocked file and be used for identifying that the checking data of blocked file is stored in external buffers.
3. method as claimed in claim 2, is characterized in that, the file after renewal corresponding for described mark is sent to client by described server, comprising:
Server, according to described mark, is downloaded and the described blocked file identified after corresponding renewal from described external buffers;
Server is by this blocked file and be used for identifying that the checking data of this blocked file is sent to client.
4. the method according to any one of claims 1 to 3, is characterized in that, described method also comprises:
After the file to be updated that client stores self carries out incremental update, record Update log, described Update log comprises: user is new record, user profile and/or client configuration information more.
5. a client for file update, is characterized in that, described client comprises:
Memory module, for storage file;
Update request module, for sending file update request to server, file identification to be updated is carried in described file update request;
Computing module, for receiving from server with the described file identified after corresponding renewal, and contrasting the file after the file to be updated self stored and described renewal, finding incremental data;
File update module, for according to described incremental data, carries out incremental update to the file to be updated that self stores.
6. client as claimed in claim 5, it is characterized in that, described client also comprises:
Upgrade logging modle, after the file to be updated for storing self carries out incremental update, record Update log, described Update log comprises: user is new record, user profile and/or client configuration information more.
7. a server for file update, is characterized in that, described server comprises:
Upgrade monitoring modular, for receiving the file update request from client, file identification to be updated is carried in described file update request;
Updating file sending module, after receiving described file update request, is sent to client by the file after renewal corresponding for described mark.
8. server as claimed in claim 7, it is characterized in that, described server also comprises:
File block module, for after knowing that file there occurs renewal, carries out piecemeal to the file after upgrading;
Described updating file sending module, also for by the blocked file obtained by file block module and be used for identifying that the checking data of blocked file is stored in external buffers.
9. server as claimed in claim 8, is characterized in that, updating file sending module, for the file after renewal corresponding for described mark is sent to client, comprising:
According to described mark, download and the described blocked file identified after corresponding renewal from described external buffers;
By blocked file and be used for identifying that the checking data of this blocked file is sent to client.
CN201510587672.1A 2015-09-15 2015-09-15 Client file updating method and system Pending CN105260202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510587672.1A CN105260202A (en) 2015-09-15 2015-09-15 Client file updating method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510587672.1A CN105260202A (en) 2015-09-15 2015-09-15 Client file updating method and system

Publications (1)

Publication Number Publication Date
CN105260202A true CN105260202A (en) 2016-01-20

Family

ID=55099905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510587672.1A Pending CN105260202A (en) 2015-09-15 2015-09-15 Client file updating method and system

Country Status (1)

Country Link
CN (1) CN105260202A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790172A (en) * 2016-12-29 2017-05-31 东软集团股份有限公司 A kind of file sharing method and server, client
CN107220035A (en) * 2016-03-22 2017-09-29 比亚迪股份有限公司 Interface subject updates system and method, client, instrument terminal and server
CN107329771A (en) * 2017-05-11 2017-11-07 广东网金控股股份有限公司 A kind of project increment updating method, device and user terminal
CN108762798A (en) * 2017-04-25 2018-11-06 腾讯科技(深圳)有限公司 A kind of method and device of incremental update file
CN109739540A (en) * 2019-01-03 2019-05-10 中国联合网络通信集团有限公司 The data update system of data-updating method, data update apparatus and eUICC mould group
CN111723062A (en) * 2020-06-28 2020-09-29 天津联想协同科技有限公司 File synchronization method, device and storage medium
WO2021081758A1 (en) * 2019-10-29 2021-05-06 深圳市欢太科技有限公司 Data update method, device, terminal apparatus, and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055785A (en) * 2009-11-09 2011-05-11 杭州华三通信技术有限公司 Online upgrade method for distributed system, distributed system and equipment
CN103002010A (en) * 2012-10-29 2013-03-27 北京奇虎科技有限公司 Method, device and system for updating data based on incremental data
CN103428188A (en) * 2012-05-25 2013-12-04 北京小米科技有限责任公司 Method and apparatus for file updating, and associated equipment
US20150100955A1 (en) * 2012-06-13 2015-04-09 Tencent Technology (Shenzhen) Company Limited Method and System for Updating Software

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055785A (en) * 2009-11-09 2011-05-11 杭州华三通信技术有限公司 Online upgrade method for distributed system, distributed system and equipment
CN103428188A (en) * 2012-05-25 2013-12-04 北京小米科技有限责任公司 Method and apparatus for file updating, and associated equipment
US20150100955A1 (en) * 2012-06-13 2015-04-09 Tencent Technology (Shenzhen) Company Limited Method and System for Updating Software
CN103002010A (en) * 2012-10-29 2013-03-27 北京奇虎科技有限公司 Method, device and system for updating data based on incremental data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CNBANG: "《两种增量更新方案》", 《HTTP://BLOG.CNBANG.NET/TECH/2258/》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220035A (en) * 2016-03-22 2017-09-29 比亚迪股份有限公司 Interface subject updates system and method, client, instrument terminal and server
CN106790172A (en) * 2016-12-29 2017-05-31 东软集团股份有限公司 A kind of file sharing method and server, client
CN106790172B (en) * 2016-12-29 2020-03-17 东软集团股份有限公司 File sharing method, server and client
CN108762798A (en) * 2017-04-25 2018-11-06 腾讯科技(深圳)有限公司 A kind of method and device of incremental update file
CN108762798B (en) * 2017-04-25 2021-11-26 腾讯科技(深圳)有限公司 Method and device for updating file in increment mode
CN107329771A (en) * 2017-05-11 2017-11-07 广东网金控股股份有限公司 A kind of project increment updating method, device and user terminal
CN109739540A (en) * 2019-01-03 2019-05-10 中国联合网络通信集团有限公司 The data update system of data-updating method, data update apparatus and eUICC mould group
WO2021081758A1 (en) * 2019-10-29 2021-05-06 深圳市欢太科技有限公司 Data update method, device, terminal apparatus, and computer readable storage medium
CN114258525A (en) * 2019-10-29 2022-03-29 深圳市欢太科技有限公司 Data updating method and device, terminal equipment and computer readable storage medium
CN111723062A (en) * 2020-06-28 2020-09-29 天津联想协同科技有限公司 File synchronization method, device and storage medium

Similar Documents

Publication Publication Date Title
CN105260202A (en) Client file updating method and system
US9967222B2 (en) Method and device for managing shared memory in robot operating system
US20200050506A1 (en) Hot updates to controller software using tool chain
US10116746B2 (en) Data storage method and network interface card
CN103067445B (en) Method and device of software upgrading of distributed system
CN105389177A (en) Software version confirmation method, device and system
CN104113576A (en) Method and device for updating client
CN110297608B (en) Data processing method, device and storage medium
CN102497286A (en) Method and device for matching management information base (MIB)
CN110333876A (en) A kind of data clearing method and control equipment
CN105549974A (en) Chip firmware updating method and system
CN110855529A (en) Network information security monitoring method, device, server and readable storage medium
CN105245581A (en) Application program transmission method and device
CN104348905A (en) Method and device for pushing message in off-line way
CN111722857A (en) Updating method and device of software development kit, electronic equipment and storage medium
CN104063377A (en) Information processing method and electronic equipment using same
CN103327026A (en) Data updating method and updating system
CN113127921A (en) Method, electronic device and computer program product for data management
CN113986312B (en) Software upgrading method and device, electronic equipment and computer readable storage medium
CN110098960B (en) Secret-free automatic configuration method and device for distributed block storage system
CN111163100B (en) Data structure, communication method, device, storage medium and equipment
CN111338681A (en) Firmware upgrading method and system for equipment
CN112468562A (en) Vehicle-mounted terminal file sending and upgrading method, device and storage medium
CN111538651A (en) Interface testing method, device, server and storage medium
CN109728883B (en) Data interaction method and system, source system and target system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160120

RJ01 Rejection of invention patent application after publication