CN105354341B - The update method and device of file - Google Patents
The update method and device of file Download PDFInfo
- Publication number
- CN105354341B CN105354341B CN201510960386.5A CN201510960386A CN105354341B CN 105354341 B CN105354341 B CN 105354341B CN 201510960386 A CN201510960386 A CN 201510960386A CN 105354341 B CN105354341 B CN 105354341B
- Authority
- CN
- China
- Prior art keywords
- document entity
- terminal device
- application program
- identification information
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/182—Distributed file systems
- G06F16/184—Distributed file systems implemented as replicated file system
- G06F16/1844—Management specifically adapted to replicated file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
- G06F16/1787—Details of non-transparently synchronising file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/182—Distributed file systems
- G06F16/1824—Distributed file systems implemented using Network-attached Storage [NAS] architecture
- G06F16/183—Provision of network file services by network file servers, e.g. by using NFS, CIFS
Abstract
The invention discloses a kind of update method of file and devices, it is related to Internet technical field, main purpose is to solve the problem of cause in repair process the file corruption in the presence of virus so that user can not continue to use this document the file that there is virus.Main technical schemes of the invention include: the attribute information that server obtains the preset application program of each installing terminal equipment in local area network, and determine the installation number of preset application program;The attribute information of preset application program includes: file identification information;File identification information is the unique identification information of document entity;If installation number is more than default installation threshold value, document entity is obtained according to file identification information, and document entity is saved;When detecting that the corresponding file identification information of document entity and file identification information are inconsistent in terminal device, the document entity in document entity replacement terminal device is used.During the present invention is applied to protection terminal device file security.
Description
Technical field
The present invention relates to Internet technical fields, more particularly to the update method and device of a kind of file.
Background technique
With the continuous development of computer technology, the level of informatization of human society is higher and higher, and entire society is to calculating
The degree of dependence of machine information is also higher and higher.At the same time, in computer system the threat of the security presence of file also continuous
Growth.The unit that the file is defined for the purpose of the partial function for realizing certain function or some software.
Currently, after being infected in the file of computer, by using antivirus application program to virus document into
Row is repaired, and detailed process includes: starting antivirus application program, and antivirus application program can obtain all texts stored in computer
Part, and successively all files are scanned, the file after determining virus infection, and the virion is handled.But
The file that there is virus is being carried out to lead to there are problems that viral file corruption in repair process, so that user can not be after
It is continuous to use this document, if the file of damage is the necessary file for starting certain application program, user is caused to be unable to run using journey
Sequence.
Summary of the invention
In view of this, the update method and device of a kind of file provided by the invention, main purpose is to solve to depositing
The file corruption for causing to there are problems that virus in repair process is carried out in the file of virus, so that user can not continue to use
The problem of this document.
According to the present invention on one side, the present invention provides a kind of update methods of file, this method comprises:
Server obtains the attribute information of the preset application program of each installing terminal equipment in local area network, and described in determination
The installation number of preset application program;Wherein, the attribute information of the preset application program includes: file identification information;It is described
File identification information is the unique identification information of document entity;
If the installation number is more than default installation threshold value, the document entity is obtained according to file identification information, and
The document entity is saved;
When detecting that the corresponding file identification information of document entity and the file identification information are not in the terminal device
When consistent, the document entity in document entity replacement terminal device is used.
According to the present invention on the other hand, the present invention provides a kind of updating device of file, which includes:
First acquisition unit, the attribute for obtaining the preset application program of each installing terminal equipment in local area network are believed
Breath;Wherein, the attribute information of the preset application program includes: file identification information;The file identification information is that file is real
The unique identification information of body;
First determination unit, for obtained in the first acquisition unit the preset application program attribute information it
Afterwards, the installation number of the preset application program is determined;
Second acquisition unit, for determining that the installation number is more than default installation threshold value when first determination unit
When, the document entity is obtained according to file identification information;
Storage unit, the document entity for obtaining the second acquisition unit save;
Replacement unit detects the corresponding file identification information of document entity and the text in the terminal device for working as
When part identification information is inconsistent, the file in document entity replacement terminal device saved using the storage unit is real
Body.
By above-mentioned technical proposal, the update method and device of file provided by the invention, server are obtained in local area network
The attribute information of the preset application program of each installing terminal equipment, and determine the installation number of preset application program, wherein it is pre-
The attribute information for setting application program includes file identification information;If installation number is more than that default installation is preset, according to files-designated
Know acquisition of information document entity, and the document entity that will acquire is saved, when detecting that document entity is corresponding in terminal device
File identification information and server in file identification information it is inconsistent when, use document entity replacement terminal device in text
Part entity;With in the prior art to exist virus file carry out repair process in, cause in the presence of virus file corruption, make
User can not continue to use this document and compare, installation rate is larger on terminal device in server local area network first in the present invention
The corresponding document entity of preset application program backed up, when server is prevented in real time to the file in terminal device
When shield, however, it is determined that the document entity damage in terminal device, the then document entity that server is backed up are replaced in terminal device
The document entity damaged, it is ensured that terminal user can normal operating, use this document entity.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of the update method of file provided in an embodiment of the present invention;
Fig. 2 shows a kind of servers provided in an embodiment of the present invention to obtain the side of document entity according to file identification information
Method flow chart;
Fig. 3 shows the flow chart of the update method of another file provided in an embodiment of the present invention;
Fig. 4 shows a kind of composition block diagram of the updating device of file provided in an embodiment of the present invention;
Fig. 5 shows the composition block diagram of the updating device of another file provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The embodiment of the present invention provides a kind of update method of file, and this method is applied to the server side of anti-virus system,
As shown in Figure 1, this method comprises:
101, server obtains the attribute information of the preset application program of each installing terminal equipment in local area network, and determines
The installation number of the preset application program.
In the embodiment of the present invention, the attribute information of the preset application program including but not limited to the following contents, such as:
File identification information, file store path information, the equipment identification information of terminal device, preset application program version number letter
Breath, the operation system information of terminal device, the software identification information of preset application program etc.;Wherein, the file identification letter
Breath is the unique identification information of document entity;The embodiment of the present invention is specific interior to include in the attribute information of preset application program
Hold without limiting.
As a kind of implementation of the embodiment of the present invention, in the preset application program of installing terminal equipment on server
The attribute information of preset application program, the attribute information for the preset application program that server receiving terminal equipment reports are reported, and is united
Count the installation number of preset application program in local area network;As another implementation of the embodiment of the present invention, server is right
When each terminal device carries out file security scanning in local area network, the preset application program installed in each terminal device is obtained
Attribute programs, and count the installation number of preset application program in local area network.The preset application program installed in terminal device is
Any type of application program on the market, the embodiment of the present invention is to the concrete type of preset application program without limiting.
If 102, the installation number is more than default installation threshold value, server obtains the text according to file identification information
Part entity, and the document entity is saved.
The default installation threshold value is empirical value, and the standard that default installation threshold value is arranged is the important journey of preset application program
In degree and local area network in each terminal device preset application program installation rate.When the installation number for determining preset application program
When preset more than default installation, illustrate important procedure either preset application program of the preset application program in a local network
Installation rate, reach the premise that server carries out backup preservation to the corresponding document entity of preset application program, therefore, server
It needs to obtain the corresponding file of preset application program from the terminal device for installing preset application program according to file identification information
Entity, and the document entity that will acquire is saved.The purpose that server stores document entity is, when server is examined
Measuring the corresponding document entity of preset application program installed in terminal device in local area network has damage or terminal device can not
When operating to document entity, the document entity damaged or terminal device can not operate is replaced by server, so as to
Terminal device can operate normally preset application program or use document entity.
In embodiments of the present invention, the quantity of the corresponding document entity of a preset application program may have multiple, for example,
Document entity may have 12.Alternatively, may also have 80 etc., and different document entities may be made of multiple files;
The different corresponding document entities of preset application program have differences, and the embodiment of the present invention is to the corresponding file of preset application program
The number of entity is without limiting.
Illustratively, it is assumed that default installation threshold value is 80%, and the quantity of terminal device is 1000 in local area network, only when
When the installation number of preset application program is more than or equal to 800 in server statistics terminal device, server just can be to pre-
The corresponding document entity of application program is set to be saved.Or, it is assumed that the important procedure of preset application program is higher, for example, wealth
The application program of business department, no matter the installation of the application program of the Finance Department each terminal device in a local network is more
It is few, as long as soon as have an application program for installation Finance Department in terminal device, it is corresponding to the application program of the Finance Department
Document entity carry out backup preservation.In the embodiment of the present invention, installation threshold value and the higher preset application of significance level are preset
Program is configured by the operation maintenance personnel of local area network, and the foundation of setting is the actual demand of Different LANs, and the present invention is implemented
Example is to default installation threshold value and the higher preset application program of significance level without limiting.
It should be noted that in the embodiment of the present invention, it is all pre- without being installed in terminal device each in local area network
It sets application program to be saved, it is intended that saving the unnecessary resource overhead of server.Illustratively, it is assumed that local area network
The quantity of middle terminal device is 500, and the terminal device for installing application program I only has one, if server is to I pairs of application program
The document entity answered is saved, and the probability that damaging occurs in the corresponding document entity of application program I is smaller, therefore, causes to take
The wasting of resources of the corresponding document entity of business device storage application program I.
103, when detecting that the corresponding file identification information of document entity and the file identification are believed in the terminal device
When ceasing inconsistent, server uses the document entity in document entity replacement terminal device.
During each terminal device of the server in local area network carries out the security sweep of file, if detecting terminal
The file identification information stored in the corresponding file identification information of document entity and server in equipment is inconsistent, it is determined that eventually
The corresponding document entity of preset application program has damaged in end equipment, and therefore, server is real using the file that it is locally stored
The document entity damaged in body replacement terminal device, so that the preset application program in terminal device can operate normally, or
Person, terminal device being capable of normal operating document entities.
The update method of file provided in an embodiment of the present invention, server obtain each installing terminal equipment in local area network
The attribute information of preset application program, and determine the installation number of preset application program, wherein the attribute of preset application program is believed
Breath includes file identification information;If installation number is more than that default installation is preset, document entity is obtained according to file identification information,
And the document entity that will acquire is saved, when detecting in terminal device the corresponding file identification information of document entity and service
When file identification information in device is inconsistent, the document entity in document entity replacement terminal device is used;With in the prior art
The file that there is virus is being carried out to lead to the file corruption in the presence of virus in repair process, so that user can not continue to use
This document is compared, and installation rate is biggish preset using journey on terminal device in server local area network first in the embodiment of the present invention
The corresponding document entity of sequence is backed up, when server is when carrying out real-time protection to the file in terminal device, however, it is determined that
Document entity damage in terminal device, the then document entity that server is backed up replace the file damaged in terminal device
Entity, it is ensured that terminal user can normal operating, use this document entity.
Further, server is in order to ensure the document entity that damages in document entity replacement terminal device of its storage
Safety, before the document entity in document entity replacement terminal device of the server using its storage, server needs are sentenced
Whether the security level of disconnected document entity meets file replacement standard, wherein the file replacement standard works as terminal for limiting
After document entity damage in equipment, if the document entity for allowing server that it is directly used to store is replaced to be damaged in terminal device
Bad document entity;Popular to say, server judges that document entity whether there is in file white list.
If server determines that the security level of document entity meets file replacement standard, supporting paper entity is present in text
In part white list, the security level of document entity is higher, and there is no any Viral risks, detects terminal device in server
When the corresponding file identification information of middle document entity and the inconsistent file identification information that it is stored, directly using the text of its storage
The document entity damaged in part entity replacement terminal device.As a kind of optional way of the embodiment of the present invention, when server is true
Determine document entity security level meet file replacement standard after, this document entity is identified, so as in subsequent use
When this document entity replaces the document entity in terminal device, without verifying the security level of document entity, i.e., replaceable terminal
Document entity in equipment saves the operating time of document entity in server replacement terminal device.
If server determines that the security level of document entity does not meet file replacement standard, supporting paper entity is neither deposited
It is in file white list, is also not present in file blacklist, belongs to grey file, the safety of document entity cannot be direct
It determines, at this point, output display document entity does not meet the prompt information of document entity in directly replacement terminal device;From client layer
Face is said, after local area network operation maintenance personnel checks the prompt information, is clicked the ACK button in interface, is determined the file in server
Entity can replace the document entity of the damage in terminal device;It is realized from technology, server receives confirmation replacement instruction,
The document entity stored using server local replaces the document entity damaged in terminal device.As the embodiment of the present invention
A kind of optional way, although the security level of document entity does not meet file replacement standard, document entity is without virus
Such document entity can be added in file white list, and be identified to this document entity by risk, so that subsequent use should
When document entity replaces the document entity in terminal device, the i.e. replaceable terminal device of security level without verifying document entity
In document entity, save server replacement terminal device in document entity operating time.
Further, as the refinement and extension to above-mentioned embodiment illustrated in fig. 1, in step 102 server according to file
When identification information obtains the document entity, following methods may be employed without limitation of to realize, as shown in Fig. 2, the method
Include:
201, according to the attribute information of the preset application program, the occupied space size of the document entity is determined.
During server obtains document entity, the attribute information of preset application program is obtained, and to the attribute information
It is parsed, determines the practical occupied space size of document entity.It further include institute in the attribute information of the preset application program
State the occupied space size of document entity.
202, judge whether the occupied space size is more than preset occupied space threshold value.
If it is determined that the occupied space size is less than the preset occupied space threshold value, 203 are thened follow the steps;If it is determined that
The occupied space size is more than the preset occupied space threshold value, thens follow the steps 204.
The preset occupied space threshold value is empirical value, is determined by local area network operation maintenance personnel, and preset occupied space is being arranged
When threshold value, it is 500KB that preset occupied space threshold value, which can be set,;Alternatively, it is 1GB etc. that preset occupied space threshold value, which also can be set,
Deng, the embodiment of the present invention to the specific setting size of preset occupied space threshold value without limiting.
203, the terminal device of any one installation preset application program into local area network, which issues, uploads the text
The instruction information of part entity.
When determining that the occupied space size is less than the preset occupied space threshold value, server believes file identification
Breath is carried in instruction information, which is issued to any one installation preset application program in local area network
It is according to the file identification information in instruction information that file is real after terminal device receives instruction information in terminal device
Body is uploaded to server.
Sequence executes step 206.
204, fractionation number is carried out to the document entity, the preset applications is installed to different based on fractionation number
The terminal device of program issues the instruction information for uploading the document entity.
When server determines that the occupied space size is more than the preset occupied space threshold value, in order to determine that terminal is set
The standby speed for uploading document entity, and reduce the load pressure of transmitting file on terminal device, therefore, server is to document entity
Carry out fractionation number.
Illustratively, it is assumed that include 10 files in document entity, file name is respectively file 1, file 2, file
Number is that A is issued to the installation preset application program by 3 ... files 10, server by file 1 and file 2, number A
First terminal equipment, by file 3 and file 4, number B, and number B is issued to the preset second terminal being applied to of installation
Number F is issued to the 5th terminal device for installing preset application program by equipment ... by file 9 and file 10, number F.
The above is only illustrative citing, file and split numbering without tool that the embodiment of the present invention includes to document entity
Body limits.
205, the document entity segment that different terminal equipment uploads is received, is numbered according to the fractionation described in receiving
Document entity segment is assembled.
The document entity is uploaded since server is issued to the terminal device of the different installation preset application programs
Indicate information, when terminal device returns to document entity, the document entity segment corresponding with number is split of return, therefore,
After the document entity segment for receiving terminal device return, document entity segment is assembled according to number is split, is assembled into
Complete document entity.
206, the document entity is obtained.
Further, in order to ensure the correctness of the document entity stored in server, side shown in Fig. 2 is based in server
After method obtains document entity, firstly, the document entity uploaded to terminal device parses, determine that the first file identification is believed
Breath, wherein first file identification information is the corresponding file identification information of document entity that terminal device uploads;Secondly,
The attribute information of preset application program is parsed, determines the second file identification information, wherein the second file identification letter
Breath is the file identification information carried in preset application program;Finally, the first file identification information and the second file identification are believed
Breath is compared, and determines whether the first file identification information is consistent with the second file identification information, however, it is determined that the first file identification
Information is consistent with the second file identification information, then directly saves the document entity that terminal device uploads;If it is determined that first
File identification information and the second file identification information are inconsistent, then other into local area network install the terminal of preset application program
Equipment reacquires document entity, i.e., executes method shown in Fig. 2 again, until server determines the file that terminal device uploads
Until first file identification information of entity is consistent with the second file identification information.
Further, before being saved document entity, whether confirmation server local is stored with document entity, if
Determining that server local is not stored has document entity, then stores document entity;If it is determined that being stored in server local
Document entity, it is determined that without being stored again to document entity.
Further, server is in order to determine the safety of document entity, in using document entity replacement terminal device
Document entity before, according to the device identification of terminal device to terminal device carry out purview certification, if terminal device passes through power
Limit certification, illustrates the local area network where terminal device belongs to server, then using the file in document entity replacement terminal device
Entity;If terminal device does not pass through purview certification, illustrate the local area network where terminal device is not belonging to server, then not executing makes
With the document entity in document entity replacement terminal device.In embodiments of the present invention, the corresponding local area network of a server,
The server will record the device identification of each terminal device in local area network.
Further, as to it is above-mentioned be that strength summarizes, the embodiment of the present invention also provides the update side of another file
Method, as shown in figure 3, this method comprises:
301, server obtains the attribute information of the preset application program of each installing terminal equipment in local area network, and determines
The installation number of the preset application program.
If 302, the installation number is more than default installation threshold value, server obtains the text according to file identification information
Part entity.
303, the document entity that server uploads terminal device parses, and determines the first file identification information;To institute
The attribute information for stating preset application program is parsed, and determines the second file identification information.
304, server determines whether first file identification information and second file identification information are consistent.
If it is determined that first file identification information and second file identification information are inconsistent, 302 are thened follow the steps;
If it is determined that first file identification information is consistent with second file identification information, 305 are thened follow the steps.
305, server confirms whether it is locally stored with the document entity.
If it is determined that server local is not stored the document entity, 306 are thened follow the steps;If it is determined that server local is not
It is stored with the document entity, then without saving the document entity.
306, server saves the document entity.
307, when detecting that the corresponding file identification information of document entity and the file identification are believed in the terminal device
When ceasing inconsistent, server judges whether the security level of the document entity meets file replacement standard.
If it is determined that the security level of document entity does not meet the file replacement standard, then follow the steps
308;If it is determined that the security level of the document entity meets the file replacement standard, 309 are thened follow the steps.
308, server receives confirmation replacement instruction.
Execute step 309.
309, server uses the document entity in document entity replacement terminal device.
It should be noted that the related description in relation to step 301-309, please refers to the detailed description of above-described embodiment, this hair
Bright embodiment is no longer repeated one by one herein.
Further, as the realization to method shown in above-mentioned Fig. 1 and Fig. 3, another embodiment of the present invention additionally provides one
The updating device of kind file.The Installation practice is corresponding with preceding method embodiment, and to be easy to read, present apparatus embodiment is no longer
Detail content in preceding method embodiment is repeated one by one, it should be understood that the device in the present embodiment can correspond to
Realize the full content in preceding method embodiment.
A kind of updating device of file provided in an embodiment of the present invention, the device are applied to server side, as shown in figure 4,
The device includes:
First acquisition unit 41, the attribute for obtaining the preset application program of each installing terminal equipment in local area network are believed
Breath;Wherein, the attribute information of the preset application program includes: file identification information;The file identification information is the text
The unique identification information of part entity;
First determination unit 42, for obtaining the attribute information of the preset application program in the first acquisition unit 41
Later, the installation number of the preset application program is determined;
Second acquisition unit 43, for determining that the installation number is more than default installation threshold when first determination unit 42
When value, the document entity is obtained according to file identification information;
Storage unit 44, the document entity for obtaining the second acquisition unit 43 save;
Replacement unit 45, for when detect in the terminal device the corresponding file identification information of document entity with it is described
When file identification information is inconsistent, the file in terminal device is replaced using the document entity that the storage unit 44 saves
Entity.
Further, as shown in figure 5, described device further include:
Judging unit 46, for real using the file in document entity replacement terminal device in the replacement unit 45
Before body, judge whether the security level of the document entity meets file replacement standard;Wherein, the file replacement standard is used
In restriction after the document entity in terminal device damages, if allow directly using in document entity replacement terminal device
The document entity of damage;
The replacement unit 45 is also used to the security level when the document entity for determining the judgement of judging unit 46
When meeting the file replacement standard, directly using the document entity in document entity replacement terminal device;
Receiving unit 47, described in not met when the security level for the document entity for determining the judgement of judging unit 46
When file replaces standard, confirmation replacement instruction is received;
The replacement unit 45 is also used to based on described in the received confirmation replacement instruction use of the receiving unit 47
Document entity replaces the document entity in terminal device.
Further, as shown in figure 5, the second acquisition unit 43 includes:
Determining module 431 determines the occupancy of the document entity for the attribute information according to the preset application program
Space size;It further include the occupied space size of the document entity in the attribute information of the preset application program;
Judgment module 432, whether the occupied space size for judging that the determining module 431 determines is more than preset
Occupied space threshold value;
First issues module 433, for being less than when the occupied space size for determining that the judgment module 432 judges
When the preset occupied space threshold value, the terminal device of any one installation preset application program into local area network is issued
Upload the instruction information of the document entity;It wherein, include the file identification information in the instruction information;
First receiving module 434, the document entity uploaded for receiving terminal apparatus;
First obtains module 435, for first receiving module 434 receive it is described state document entity after, obtain
It is described to state document entity.
Further, as shown in figure 5, the second acquisition unit 43 further include:
Module 436 is split, for being more than described pre- when the occupied space size for determining the judgement of judgment module 432
When setting occupied space threshold value, fractionation number is carried out to the document entity;
Second issues module 437, and the fractionation for being split based on the fractionation module 436 is numbered to different installation institutes
The terminal device for stating preset application program issues the instruction information for uploading the document entity;
Second receiving module 438, for receiving the document entity segment of different terminal equipment upload;
Module 439 is assembled, for according to the file for splitting number and receiving second receiving module 438
Entity segment is assembled;
Second obtains module 4310, for after the assembling module 439 assembles the document entity segment,
Obtain the document entity.
Further, as shown in figure 5, described device further include:
First resolution unit 48, for being set to terminal after the second acquisition unit 43 obtains the document entity
The standby document entity uploaded is parsed, and determines the first file identification information;First file identification information is terminal device
The corresponding file identification information of the document entity of upload;
Second resolution unit 49 parses for the attribute information to the preset application program, determines the second file
Identification information;Second file identification information is the file identification information carried in preset application program;
Second determination unit 410, first file identification information parsed for determining first resolution unit 48
It is whether consistent with second file identification information of second resolution unit 49 parsing;
The second acquisition unit 43 is also used to determine the first file identification letter when second determination unit 410
When breath is inconsistent with second file identification information, the document entity is reacquired;
The storage unit 44, be also used to when second determination unit 410 determine first file identification information with
When second file identification information is consistent, the document entity is saved.
Further, as shown in figure 5, described device further include:
Third determination unit 411, for confirming institute before the storage unit 44 is saved the document entity
Whether the updating device for stating file is locally stored with the document entity;
The storage unit 44 is also used to determine that the updating device of the file is local when the third determination unit 411
It is not stored when having the document entity, the document entity is saved.
Further, as shown in figure 5, described device further include:
Authentication unit 412, for using the file in document entity replacement terminal device in the replacement unit 45
Before entity, purview certification is carried out to the terminal device according to the equipment identification information of terminal device;
The replacement unit 45 is also used to make when purview certification of the terminal device by the authentication unit 412
With the document entity in document entity replacement terminal device.
The updating device of file provided in an embodiment of the present invention, server obtain each installing terminal equipment in local area network
The attribute information of preset application program, and determine the installation number of preset application program, wherein the attribute of preset application program is believed
Breath includes file identification information;If installation number is more than that default installation is preset, document entity is obtained according to file identification information,
And the document entity that will acquire is saved, when detecting in terminal device the corresponding file identification information of document entity and service
When file identification information in device is inconsistent, the document entity in document entity replacement terminal device is used;With in the prior art
The file that there is virus is being carried out to lead to the file corruption in the presence of virus in repair process, so that user can not continue to use
This document is compared, and installation rate is biggish preset using journey on terminal device in server local area network first in the embodiment of the present invention
The corresponding document entity of sequence is backed up, when server is when carrying out real-time protection to the file in terminal device, however, it is determined that
Document entity damage in terminal device, the then document entity that server is backed up replace the file damaged in terminal device
Entity, it is ensured that terminal user can normal operating, use this document entity.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment
" first ", " second " etc. be and not represent the superiority and inferiority of each embodiment for distinguishing each embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize the denomination of invention according to an embodiment of the present invention (as determined in website
The device of Hyperlink rank) in some or all components some or all functions.The present invention is also implemented as being used for
Some or all device or device programs of method as described herein are executed (for example, computer program and calculating
Machine program product).It is such to realize that program of the invention can store on a computer-readable medium, or can have one
Or the form of multiple signals.Such signal can be downloaded from an internet website to obtain, or be provided on the carrier signal,
Or it is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
Claims (12)
1. a kind of update method of file is applied to server characterized by comprising
The attribute information of the preset application program of each installing terminal equipment in local area network is obtained, and is determined described preset using journey
The installation number of sequence;Wherein, the attribute information of the preset application program includes: file identification information;The file identification letter
Breath is the unique identification information of document entity;
If the installation number is more than default installation threshold value, the document entity is obtained according to file identification information, and by institute
Document entity is stated to be saved;
When detecting the corresponding file identification information of document entity and file stored in the server in the terminal device
When identification information is inconsistent, the document entity in document entity stored in the server replacement terminal device is used;
It is wherein, described that the document entity is obtained according to file identification information, comprising:
According to the attribute information of the preset application program, determine that the occupancy of the corresponding document entity of the preset application program is empty
Between size;It further include the occupancy of the corresponding document entity of the preset application program in the attribute information of the preset application program
Space size;
Judge whether the occupied space size is more than preset occupied space threshold value;
If it is determined that the occupied space size is less than the preset occupied space threshold value, then any one into local area network pacifies
The terminal device for filling the preset application program issues the instruction information for uploading the corresponding document entity of the preset application program;
It wherein, include the corresponding file identification information of the preset application program in the instruction information;
Receive and obtain the corresponding document entity of the preset application program of terminal device upload.
2. the method according to claim 1, wherein being replaced using document entity stored in the server
Before document entity in terminal device, the method also includes:
Judge whether the security level of document entity stored in the server meets file replacement standard;Wherein, the text
Part replacement standard is used to limit after the document entity in terminal device damages, if permission in the server directly using depositing
The document entity damaged in the document entity replacement terminal device of storage;
Include: using the document entity in document entity stored in the server replacement terminal device
If it is determined that the security level of document entity stored in the server meets the file replacement standard, it then be used directly
Document entity in document entity replacement terminal device stored in the server;
If it is determined that the security level of document entity does not meet the file replacement standard, then confirmation replacement instruction is received, and be based on
The confirmation replacement instruction uses the document entity in document entity stored in the server replacement terminal device.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
If it is determined that the occupied space size is more than the preset occupied space threshold value, then it is corresponding to the preset application program
Document entity carries out fractionation number;
It is issued based on the fractionation number to the terminal devices of the different installation preset application programs and uploads the preset application
The instruction information of the corresponding document entity of program;
Receive the document entity segment that different terminal equipment uploads;
It is assembled according to the document entity segment numbered and will received that splits, and obtains the preset application program
Corresponding document entity.
4. method according to any one of claim 1-3, which is characterized in that after obtaining the document entity, institute
State method further include:
The document entity uploaded to terminal device parses, and determines the first file identification information;The first file identification letter
Breath is the corresponding file identification information of document entity that terminal device uploads;
The attribute information of the preset application program is parsed, determines the second file identification information;Second files-designated
Knowing information is the file identification information carried in preset application program;
Determine whether first file identification information and second file identification information are consistent;
If it is determined that first file identification information and second file identification information are inconsistent, then reacquire described preset
The corresponding document entity of application program;
It is described by the document entity carry out save include:
If it is determined that first file identification information is consistent with second file identification information, then the terminal device is uploaded
Document entity saved.
5. according to the method described in claim 4, it is characterized in that, being protected in the document entity for uploading the terminal device
Before depositing, the method also includes:
Whether confirmation server local is stored with the corresponding document entity of the preset application program;
The document entity save and includes:
If it is determined that server local is not stored the corresponding document entity of the preset application program, then it will be on the terminal device
The document entity of biography is saved.
6. according to the method described in claim 5, it is characterized in that, being replaced using document entity stored in the server
Before document entity in terminal device, the method also includes:
Purview certification is carried out to the terminal device according to the equipment identification information of terminal device;
Include: using the document entity in document entity stored in the server replacement terminal device
If the terminal device is by purview certification, using in document entity stored in the server replacement terminal device
Document entity.
7. a kind of updating device of file is applied to server characterized by comprising
First acquisition unit, for obtaining the attribute information of the preset application program of each installing terminal equipment in local area network;Its
In, the attribute information of the preset application program includes: file identification information;The file identification information is the document entity
Unique identification information;
First determination unit, for after the attribute information that the first acquisition unit obtains the preset application program, really
The installation number of the fixed preset application program;
Second acquisition unit, for when first determination unit determines that the installation number is more than default installation threshold value, root
The document entity is obtained according to file identification information;
Storage unit, the document entity for obtaining the second acquisition unit save;
Replacement unit detects that the corresponding file identification information of document entity and the preservation are single in the terminal device for working as
When the corresponding file identification information of document entity that member saves is inconsistent, the document entity that is saved using the storage unit
Replace the document entity in terminal device;
Wherein, the second acquisition unit includes:
Determining module determines the corresponding text of the preset application program for the attribute information according to the preset application program
The occupied space size of part entity;It further include that the preset application program is corresponding in the attribute information of the preset application program
The occupied space size of document entity;
Judgment module, whether the occupied space size for judging that the determining module determines is more than preset occupied space threshold
Value;
First issues module, for being less than described preset account for when the occupied space size for determining judgment module judgement
When with capacity-threshold, it is described pre- that the terminal device of any one installation preset application program into local area network issues upload
Set the instruction information of the corresponding document entity of application program;It wherein, include the preset application program in the instruction information
File identification information;
First receiving module, the corresponding document entity of the preset application program uploaded for receiving terminal apparatus;
First obtains module, for first receiving module receive the corresponding document entity of the preset application program it
Afterwards, the document entity that the terminal device uploads is obtained.
8. device according to claim 7, which is characterized in that described device further include:
Judging unit, in the document entity replacement terminal device that the replacement unit is saved using the storage unit
Before document entity, judge whether the security level for the document entity that the storage unit saves meets file replacement standard;Its
In, the file replacement standard is used to limit after the document entity in terminal device damages, if allows described in direct use
The document entity damaged in the document entity replacement terminal device that storage unit saves;
It is described to be also used to determine that the security level of the document entity of the judging unit judgement meets for the replacement unit
When file replaces standard, the document entity in terminal device is directly replaced using the document entity that the storage unit saves;
Receiving unit, for not meeting the file replacement when the security level for the document entity for determining the judging unit judgement
When standard, confirmation replacement instruction is received;
The replacement unit is also used to use the storage unit based on the received confirmation replacement instruction of the receiving unit
Document entity in the document entity replacement terminal device of preservation.
9. device according to claim 8, which is characterized in that the second acquisition unit further include:
Module is split, for being more than the preset occupied space when the occupied space size for determining the judgment module judgement
When threshold value, fractionation number is carried out to the corresponding document entity of the preset application program;
Second issues module, and the fractionation for being split based on the fractionation module is numbered to the different installation preset applications
The terminal device of program issues the instruction information for uploading the corresponding document entity of the preset application program;
Second receiving module, for receiving the document entity segment of different terminal equipment upload;
Assemble module, for according to it is described split the number document entity segment that receives second receiving module into
Row assembling;
Second obtains module, for obtaining described pre- after the assembling module assembles the document entity segment
Set the corresponding document entity of application program.
10. the device according to any one of claim 7-9, which is characterized in that described device further include:
First resolution unit, for being uploaded to terminal device after the second acquisition unit obtains the document entity
Document entity is parsed, and determines the first file identification information;First file identification information is the text that terminal device uploads
The corresponding file identification information of part entity;
Second resolution unit is parsed for the attribute information to the preset application program, determines that the second file identification is believed
Breath;Second file identification information is the file identification information carried in preset application program;
Second determination unit, for determining first file identification information and described second of the first resolution unit parsing
Whether second file identification information of resolution unit parsing is consistent;
The second acquisition unit is also used to determine first file identification information and described the when second determination unit
When two file identification informations are inconsistent, the corresponding document entity of the preset application program is reacquired;
The storage unit is also used to determine first file identification information and second text when second determination unit
When part identification information is consistent, the document entity that the terminal device uploads is saved.
11. device according to claim 10, which is characterized in that described device further include:
Third determination unit, for before the storage unit is saved the document entity that the terminal device uploads,
Confirm whether the updating device of the file is locally stored with the corresponding document entity of the preset application program;
The storage unit, be also used to when the third determination unit determine the updating device of the file locally it is not stored
When stating the corresponding document entity of preset application program, the document entity that the terminal device uploads is saved.
12. device according to claim 11, which is characterized in that described device further include:
Authentication unit, in the document entity replacement terminal device that the replacement unit is saved using the storage unit
Before document entity, purview certification is carried out to the terminal device according to the equipment identification information of terminal device;
The replacement unit is also used to use the guarantor when purview certification of the terminal device by the authentication unit
The document entity in document entity replacement terminal device that memory cell saves.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510960386.5A CN105354341B (en) | 2015-12-18 | 2015-12-18 | The update method and device of file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510960386.5A CN105354341B (en) | 2015-12-18 | 2015-12-18 | The update method and device of file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105354341A CN105354341A (en) | 2016-02-24 |
CN105354341B true CN105354341B (en) | 2019-03-01 |
Family
ID=55330313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510960386.5A Active CN105354341B (en) | 2015-12-18 | 2015-12-18 | The update method and device of file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105354341B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106919425A (en) * | 2017-02-28 | 2017-07-04 | 上海传英信息技术有限公司 | A kind of method that application program installs optimization |
CN110309106A (en) * | 2019-05-27 | 2019-10-08 | 深圳市好成绩网络科技有限公司 | Method, apparatus, electronic equipment and the computer storage medium that file updates |
CN111352904B (en) * | 2020-03-04 | 2023-05-05 | 海南金盘智能科技股份有限公司 | Method and device for replacing model file |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359353A (en) * | 2008-09-05 | 2009-02-04 | 成都市华为赛门铁克科技有限公司 | File protection method and device |
CN102810138A (en) * | 2012-06-19 | 2012-12-05 | 北京奇虎科技有限公司 | Method and system for restoring files of clients |
CN102902604A (en) * | 2012-09-28 | 2013-01-30 | 北京奇虎科技有限公司 | Method and device for repairing files |
CN102902922A (en) * | 2012-09-29 | 2013-01-30 | 北京奇虎科技有限公司 | File repair method and system |
CN104331660A (en) * | 2014-10-31 | 2015-02-04 | 北京奇虎科技有限公司 | Method, device and system for repairing system file |
CN104598817A (en) * | 2014-12-19 | 2015-05-06 | 北京奇虎科技有限公司 | Method, device and system for repairing file |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8918674B2 (en) * | 2010-01-28 | 2014-12-23 | Cleversafe, Inc. | Directory file system in a dispersed storage network |
-
2015
- 2015-12-18 CN CN201510960386.5A patent/CN105354341B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359353A (en) * | 2008-09-05 | 2009-02-04 | 成都市华为赛门铁克科技有限公司 | File protection method and device |
CN102810138A (en) * | 2012-06-19 | 2012-12-05 | 北京奇虎科技有限公司 | Method and system for restoring files of clients |
CN102902604A (en) * | 2012-09-28 | 2013-01-30 | 北京奇虎科技有限公司 | Method and device for repairing files |
CN102902922A (en) * | 2012-09-29 | 2013-01-30 | 北京奇虎科技有限公司 | File repair method and system |
CN104331660A (en) * | 2014-10-31 | 2015-02-04 | 北京奇虎科技有限公司 | Method, device and system for repairing system file |
CN104598817A (en) * | 2014-12-19 | 2015-05-06 | 北京奇虎科技有限公司 | Method, device and system for repairing file |
Also Published As
Publication number | Publication date |
---|---|
CN105354341A (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9516064B2 (en) | Method and system for dynamic and comprehensive vulnerability management | |
CN102982121B (en) | A kind of file scanning method, file scanning device and file detection system | |
US7308712B2 (en) | Automated computer vulnerability resolution system | |
CN103390130B (en) | Based on the method for the rogue program killing of cloud security, device and server | |
EP2870558B1 (en) | Methods and systems for use in identifying cyber-security threats in an aviation platform | |
EP3447669B1 (en) | Information leakage detection method and device, server, and computer-readable storage medium | |
CN102932370B (en) | A kind of security sweep method, equipment and system | |
US20180082061A1 (en) | Scanning device, cloud management device, method and system for checking and killing malicious programs | |
WO2013013012A2 (en) | Selective vulnerability and infection testing website | |
US10176317B2 (en) | Method and apparatus for managing super user password on smart mobile terminal | |
CN105354341B (en) | The update method and device of file | |
US9392011B2 (en) | Web vulnerability repair apparatus, web server, web vulnerability repair method, and program | |
CN104348578B (en) | The method and device of data processing | |
US10701087B2 (en) | Analysis apparatus, analysis method, and analysis program | |
CN109117628A (en) | A kind of white list control method and system | |
CN104486357A (en) | Method for achieving role-based access control (RBAC) based on SSH website | |
CN104484484B (en) | Clear up the method and device of cache file | |
CN202652255U (en) | SQL injection safety protection system | |
CN103646081B (en) | Method and device for logging in web page | |
US10185613B2 (en) | Error determination from logs | |
CN105426272A (en) | Backup method and device for application programs | |
CN109271772A (en) | A kind of multi-action computer network guard system | |
CN108920295A (en) | The processing method of system exception, apparatus and system | |
CN109446053A (en) | Test method, computer readable storage medium and the terminal of application program | |
CN116226865A (en) | Security detection method, device, server, medium and product of cloud native application |
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 | ||
CP01 | Change in the name or title of a patent holder |
Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Co-patentee after: Qianxin Technology Group Co., Ltd. Patentee after: Beijing Qihu Technology Co., Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Co-patentee before: BEIJING QI'ANXIN SCIENCE & TECHNOLOGY CO., LTD. Patentee before: Beijing Qihu Technology Co., Ltd. |
|
CP01 | Change in the name or title of a patent holder |