CN104092726A - Automatic replacing method and apparatus of same-name file - Google Patents

Automatic replacing method and apparatus of same-name file Download PDF

Info

Publication number
CN104092726A
CN104092726A CN201410253646.0A CN201410253646A CN104092726A CN 104092726 A CN104092726 A CN 104092726A CN 201410253646 A CN201410253646 A CN 201410253646A CN 104092726 A CN104092726 A CN 104092726A
Authority
CN
China
Prior art keywords
file
replaced
storage directory
alternate
alternate 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.)
Pending
Application number
CN201410253646.0A
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.)
LeTV Cloud Computing Co Ltd
Original Assignee
LeTV Information Technology Beijing 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201410253646.0A priority Critical patent/CN104092726A/en
Publication of CN104092726A publication Critical patent/CN104092726A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The invention discloses an automatic replacing method and apparatus of a same-name file. The method comprises: obtaining a replacing file and carrying out formatting on the storage directory and the file name of the replacing file; according the storage directory of the replacing file, obtained through the formatting, traversing the storage directory of a corresponding source file, finding out a source file which has the same file name as the replacing file therefrom, and taking the four file which has the same file name as a replaced file; and replacing the replaced file by the replacing file, and distributing and caching the replacing file to each CDN node. According to the invention, the storage directory and the file name of the replacing file are formatted, then the storage directory of the source file is traversed to find out the source file which has the same file name as the replacing file to be taken as the replaced file, and then the replacing file is distributed and cached to each CDN node, such that, during file replacement, one CDN node can be selected according to a "nearest" principle and the replacing file is obtained and used to update the replaced file from caching.

Description

Automatic replacement method and the device thereof of file of the same name
Technical field
The application relates to content distribution techniques field, is specifically related to a kind of automatic replacement method and device thereof of file of the same name.
Background technology
In the time that website element is upgraded, the data of uploading are complete in automatic memory allocated catalogue of date, therefore, even if the data of same file name are owing to uploading the difference on date, be located in different storage directories, cannot realize of the same name the uploading being positioned under same storage directory by automatic batch.Such as, along with the continuous expansion of type of service, if replace the file such as picture, JS, CSS that the service application of part is used temporarily, need web editor manually new picture to be pushed in the buffer memory of each CDN node, by refreshing each CDN nodal cache, thereby replace old picture.After operation a period of time, if gain old picture, need equally above-mentioned similar operations, the old picture of rolling back.Such as in the time that a certain picture A in Website page need to be replaced with other pictures B temporarily, in prior art, need to picture A manually be replaced with to picture B by web editor, after a period of time, manually replace back again picture A.
But, manually replace file of the same name, inefficiency, and easily there is the risk of operate miss.Therefore, the technical scheme of a kind of automatic replacement file of the same name is urgently provided.
Summary of the invention
Technical problems to be solved in this application are to provide a kind of automatic replacement method and device thereof of file of the same name, in order to automatic replacement file of the same name, have improved replacement efficiency, avoid manual operation to cause the risk of error.
In order to address the above problem, the application has disclosed a kind of automatic replacement method of file of the same name, and it comprises:
Obtaining alternate file the storage directory to described alternate file and filename formats;
The storage directory of the described alternate file obtaining according to format, travels through the storage directory of corresponding source file, therefrom finds out the source file with described alternate file with same file name, as being replaced file;
Described in described alternate file is replaced, be replaced file, and described alternate file distributed and be cached to each CDN node.
Preferably, in the application's a embodiment, described storage directory and filename to described alternate file formats, and comprising:
Obtain domain name classifier in the storage directory of described alternate file;
According to domain name classifier, the storage directory of described alternate file is divided into two sections of front and back, formats with the storage directory to described alternate file and filename.
Preferably, in the application's a embodiment, be describedly replaced file described in described alternate file is replaced, and before described alternate file is distributed and being cached to each CDN node, comprise:
Described in renaming, be replaced file, and backup rename described in be replaced file.
Preferably, in the application's a embodiment, rename and be replaced file described in rear and be all stored under same source file catalogue with corresponding described alternate file.
Preferably, in the application's a embodiment, describedly described in being replaced, described alternate file is replaced file, and after described alternate file is distributed and being cached to each CDN node, also comprise: set up alternate file and record list, for selecting the file of rollback automatic replacement.
Preferably, in the application's a embodiment, be describedly replaced file described in described alternate file is replaced, and after described alternate file is distributed and being cached to each CDN node, comprise:
Receive and trigger the alternate file rollback request of recording list producing, and described rollback request is resolved, obtain need rollback described in be replaced the filename that file is corresponding;
Be replaced filename that file is corresponding and be replaced file described in obtaining according to described;
Described in deletion, be replaced the alternate file that file is corresponding;
By described get described in be replaced file reduction, and distribution is cached to each CDN node.
Preferably, in the application's a embodiment, described alternate file and described in be replaced file and comprise any static state or dynamic web page elements.
In order to address the above problem, the application has disclosed a kind of mouth substituting device of file of the same name, and it comprises:
Formatting unit, formats for obtaining alternate file the storage directory to described alternate file and filename;
Query unit, for the storage directory of the described alternate file that obtains according to format, travels through the storage directory of corresponding source file, therefrom finds out the source file with described alternate file with same file title, as being replaced file;
Dispatching Unit is replaced file described in described alternate file is replaced, and described alternate file is distributed and be cached to each CDN node.
Preferably, in the application's a embodiment, described formatting unit comprises:
Resolve subelement, for obtaining the storage directory domain name classifier of described alternate file;
Cut apart subelement, for according to domain name classifier, the storage directory of described alternate file being divided into two sections of front and back, format with the storage directory to described alternate file and filename.
Preferably, in the application's a embodiment, also comprise:
Rollback unit, records list for setting up alternate file, for selecting the file of rollback automatic replacement.
Compared with prior art, the application can obtain and comprise following technique effect:
In the application, format by the storage directory to alternate file and filename; Afterwards, then pass through the storage directory of ergodic source file, therefrom find out the source file that there is same file title with described alternate file as being replaced file; Owing to described alternate file being distributed and being cached to each CDN node; Therefore,, in the time of transaction file, can select a CDN node and from its buffer memory, obtain described alternate file and use it to be replaced file described in updating out according to " recently " principle.
If need to carry out rollback processing, the file being replaced described in backup, carry out described renaming described in rear of inquiring be replaced to file cache to each CDN node, and select a CDN node and from its buffer memory, obtain rename described in be replaced file to replace described alternate file.
As can be seen here, the replacement technology scheme of above-mentioned file of the same name, whole replacement process need not manually participate in realizing, and has improved replacement efficiency, has avoided manual operation to cause the risk of error.
Brief description of the drawings
Accompanying drawing described herein is used to provide further understanding of the present application, forms the application's a part, and the application's schematic description and description is used for explaining the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the flow chart of the automatic replacement method of the embodiment of the present application one file of the same name;
Fig. 2 is that the application is the schematic flow sheet that embodiment bis-formats the filename of described alternate file;
Fig. 3 is the schematic flow sheet of the automatic replacement method of the embodiment of the present application three files of the same name;
Fig. 4 is the embodiment of the present application four to the described schematic flow sheet that is replaced file and carries out rollback processing;
Fig. 5 is the block diagram of the mouth substituting device of the embodiment of the present application five files of the same name;
Fig. 6 is the structured flowchart of the embodiment of the present application hexformat unit;
Fig. 7 is the block diagram of the mouth substituting device of the embodiment of the present application seven files of the same name;
Fig. 8 is the block diagram of the mouth substituting device of the embodiment of the present application eight files of the same name;
Fig. 9 is the block diagram of the mouth substituting device of the embodiment of the present application nine files of the same name.
Embodiment
To coordinate drawings and Examples to describe the application's execution mode in detail below, by this application's implementation procedure how application technology means solve technical problem and reach technology effect can be fully understood and be implemented according to this.
Censure specific components as used some vocabulary in the middle of specification and claim.Those skilled in the art should understand, and hardware manufacturer may be called same assembly with different nouns.This specification and claims are not used as distinguishing the mode of assembly with the difference of title, but the difference in function is used as the criterion of distinguishing with assembly.If " comprising " mentioned in the middle of specification and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to "." roughly " refer to that in receivable error range, those skilled in the art can solve the technical problem within the scope of certain error, reach described technique effect substantially.In addition, " couple " word and comprise directly any and electric property coupling means indirectly at this.Therefore, be coupled to one second device if describe a first device in literary composition, represent that described first device can directly be electrically coupled to described the second device, or be indirectly electrically coupled to described the second device by other devices or the means that couple.Specification subsequent descriptions is to implement the application's preferred embodiments, and right described description is to illustrate that the application's rule is object, not in order to limit the application's scope.The application's protection range is when being as the criterion depending on the claims person of defining.
Also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make to comprise that the commodity of a series of key elements or system not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as this commodity or the intrinsic key element of system.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within and comprise in the commodity of described key element or system and also have other identical element.
one of core concept of the application
The automatic replacement method of the file of the same name providing in the following embodiment of the application, its core concept is, comprises the steps:
Obtaining alternate file the storage directory to described alternate file and filename formats;
The storage directory of the described alternate file obtaining according to format, travels through the storage directory of corresponding source file, therefrom finds out the source file with described alternate file with same file name, as being replaced file;
Described in described alternate file is replaced, be replaced file, and described alternate file distributed and be cached to each CDN node.
two of the application's core concept
The mouth substituting device of the file of the same name providing in the following embodiment of the application, its core concept is, comprises the steps:
Formatting unit, formats for obtaining alternate file the storage directory to described alternate file and filename;
Query unit, for the storage directory of the described alternate file that obtains according to format, travels through the storage directory of corresponding source file, therefrom finds out the source file with described alternate file with same file name, as being replaced file;
Dispatching Unit is replaced file described in described alternate file is replaced, and described alternate file is distributed and be cached to each CDN node.
It should be noted that, in following embodiment, with the example that replaces with of picture, the application's above-mentioned core concept is described, such as a certain picture A in Website page is replaced with to other pictures B temporarily, after a period of time, replace back picture A.
This area, according to the record of the following embodiment of the application, also can be applied to the application's above-mentioned core concept other dynamically or the replacement of static Web page element, such as jpg, jpeg, gif, png, swf, js, css, ico.
In the following embodiment of the application, by the filename of alternate file (picture B) is formatd, the storage directory that has therefrom obtained described alternate file (picture B) with and filename; Afterwards, then pass through the storage directory of ergodic source file, therefrom find out the source file (picture A) that there is same file name with described alternate file (picture B) as being replaced file; Owing to described alternate file being distributed and being cached to each CDN node; Therefore,, in the time of transaction file, can select a CDN node and from its buffer memory, obtain described alternate file and use it to be replaced file described in updating out according to " recently " principle.
After source file is replaced, need the file (as: picture A) being replaced described in backing up.If need to carry out rollback processing, carry out described renaming described in rear of inquiring be replaced to file cache to each CDN node, and select a CDN node and from its buffer memory, obtain rename described in be replaced file to replace described alternate file.
As can be seen here, the replacement technology scheme of above-mentioned file of the same name, whole replacement process need not manually participate in realizing, and has improved replacement efficiency, has avoided manual operation to cause the risk of error.
embodiment mono-
Fig. 1 is the schematic flow sheet of the automatic replacement method of the embodiment of the present application one file of the same name; As shown in Figure 1, it can specifically comprise:
S101, obtain replacement picture;
In the present embodiment, set up a document storage server on backstage, alternate file is stored on this document storage server, can directly obtain from it alternate file.
In the present embodiment, a specific data upload interface is set in the system of uploading at existing file, only allows web page element file to upload on document storage server.Particularly, can by http post mode by picture uploading to document storage server.
It should be noted that, if there are several to replace picture, can carry out batch process.Such as, the list that provides a http post mode to upload, by loading this list, replace picture thereby upload in batches described in several.
It should be noted that, if other specific web page elements can select other corresponding standards to upload mode, do not repeat them here.
S102, storage directory and filename to described replacement picture format;
In this enforcement, carry out self-defined to the storage directory of filename, such as must comprise domain name and under storing directory and concrete filename, the catalogue of depositing can create according to the date, such as, the storage directory of former alternate file is: http://i0.img.letv.com/dyw/2013/12/test.png, the alternate file storage directory while uploading is: i0^img^letv^com~dyw~2013~12~test.png.As can be seen here, in former alternate file storage directory and the alternate file storage directory while uploading, separator between character is completely different, therefore, for fear of parse error, need format processing to the storage directory of the described replacement picture of uploading and filename, the record of detailed flow process shown in Figure 2.
The storage directory of S103, the described replacement picture that obtains according to format, the storage directory of traversal respective sources picture, therefrom search the source picture with described replacement picture with same file name, if existed, perform step S104, using the source picture inquiring as being replaced picture, otherwise, execution step S105;
In fact this step determines whether to exist the picture that is replaced that need to upgrade with replacement picture.Particularly, the mode that can compare by filename is inquired about in the storage directory of source picture.Such as replacing the file test.png by name of picture, whether exist filename to be all the source picture of test.png in the storage directory inquiry of source picture.
S104, using the source picture inquiring as being replaced picture;
Be all test.png if existed, by this source picture for being replaced picture.
S105, by replace picture directly add in the storage directory of described source picture;
If there is no, show not exist to be replaced picture, replace the picture that picture virtually completely newly increases, directly add replacement picture to corresponding storage directory.
S106, described in being replaced, described replacement picture is replaced picture, and by described replacement picture distribution and be cached to each CDN node.
Can be according to the parsing of this domain name access request therefrom being selected to a nearest CDN node when described replacement image cache is to domain name request access to the object of each CDN node, the request of success response domain name access, provides corresponding picture.
It should be noted that, in the time distributing and be cached to each CDN node, can introduce strobe utility, such as certain restrictive condition is set, only have the picture that meets this restrictive condition could distribute and be cached to each CDN node, restrictive condition is such as comprising file size, file type, filename etc.
In the present embodiment, in the time being replaced file described in replacing, can select a CDN node and from its buffer memory, obtain described replacement picture according to nearest principle, and by described replacement picture-storage at the described storage directory that is replaced picture place, use described replacement picture to be replaced picture described in updating out.
In the present embodiment, described replacement picture-storage is actually described in described replacement picture covering and is replaced picture at the described storage directory that is replaced picture place, to replace.
It should be noted that, if there are several to replace picture, can carry out batch process.Such as, a list is provided, by loading this list, replace picture thereby obtain in batches described in several.
embodiment bis-
Fig. 2 is that the application is the schematic flow sheet that embodiment bis-formats the filename of described alternate file; As shown in Figure 2, it can comprise:
S112, obtain the domain name classifier that the storage directory of described replacement picture comprises;
If domain name classifier has COM, ORG, GOV, NET, EDU etc.Taking COM as example, if the file storage directory of uploading is: i0^img^letv^com~dyw~2013~12~test.png,, and the ^com that comprises according to storage directory~be domain name classifier.
S122, according to domain name classifier by the storage directory of described replacement picture be divided into before and after two sections;
Using ^ in storage directory as decollator, to split storage directory be first array as i0, img, letv, com, i.e. leading portion; This leading portion comprises the domain name addresses letv.com of filename;
Using in storage directory~as decollator, to split storage directory be second array as dyw, 2013,12, test.png, i.e. back segment;
It should be noted that, in the present embodiment, be actually with ^ ,~carry out the definition of filename form, but also can use other symbols, repeat no more in detail.As long as comprise domain name and store inventory information, filename.
S132, from leading portion, parse and obtain the domain name addresses that described storage directory comprises, from back segment, parse filename under domain name address.
Get all elements in first element and second array in first array, the storage directory that is combined as in order file is as i0/dyw/2013/12/test.png, wherein i0/dyw/2013/12/test.png is as storage directory, and test.png is the title of replacing picture.
embodiment tri-
Fig. 3 is the automatic replacement method of the embodiment of the present application three files of the same name; The present embodiment, for the scene that has rollback demand, recovers the picture being replaced.As shown in Figure 3, it can specifically comprise:
S301, from document storage server, obtain the file of the replacement picture of uploading, storage directory and filename to described alternate file format;
The storage directory of S302, the described replacement picture that obtains according to format, the storage directory of traversal respective sources file, therefrom finds out the source file with described replacement picture with same file title, as being replaced picture;
S303, be replaced file described in replacing from described replacement picture, and by described replacement picture distribution and be cached to each CDN node;
About step S301-step S303 can, referring to the Records of above-described embodiment one and two, repeat no more in detail.
S304, be replaced picture described in renaming, and backup rename described in be replaced picture.
In the present embodiment, so-called rollback is processed and is in fact recovered to be replaced file, with above-described embodiment one upgraded by alternate file that to be replaced file contrary, be with being replaced file replacement alternate file.
In order to realize replacement, will be replaced picture A described in renaming and described replacement picture B is stored under same storage directory, so that subsequent query complete replacement.Such as, be called test.png if replace the name of picture, the title that is replaced picture described in can rename as src.test.png, src represents the implication of source source file, thereby directly effectively distinguish backup described in be replaced picture.
About detailed rollback processing procedure can be referring to following embodiment tetra-.
embodiment tetra-
Fig. 4 is the embodiment of the present application four to the described schematic flow sheet that is replaced file and carries out rollback processing; As shown in Figure 4, it can comprise:
S315, receive and trigger the rollback request of replacing picture record list producing, and described rollback request is resolved, obtain need rollback described in be replaced the figure title that picture is corresponding;
In the present embodiment, alternate file records list and comprises the filename and the directory information that are replaced file.
In the present embodiment, rollback request can trigger in the query interface that WEB form presents, and such as a rollback request soft key is set in the query page of WEB form, after definite environment that meets rollback, carries out subsequent step S325, otherwise, directly finish.It should be noted that, what in rollback request, carry that concrete rollback request instruction and this instruction must carry out rollback processing is replaced figure title.
S325, according to described in be replaced figure title that picture is corresponding obtain backup rename described in be replaced picture;
In the present embodiment, by the storage directory of query source picture, obtain backup rename described in be replaced picture.Such as inquire src.test.png under the picture-storage catalogue of same source, be the picture that is replaced of backup by this picture.
Described in S335, deletion, be replaced the replacement picture that picture is corresponding;
S345, described renaming described in rear of inquiring is replaced to picture reduction, distribution is cached to each CDN node;
The described image cache that is replaced is to domain name request when access can be according to therefrom selecting a nearest CDN node to the parsing of this domain name access request to the object of each CDN node, and the request of success response domain name access, provides corresponding web data.
In an other embodiment, on the scheme basis of embodiment tetra-, can also comprise: the buffer memory of each CDN node is carried out to refresh process, with the corresponding website element of real-time cache responses domain name access request.
embodiment five
Fig. 5 is the block diagram of the mouth substituting device of the embodiment of the present application five files of the same name; As shown in Figure 5, it can comprise: the formatting unit 501, query unit 502, the Dispatching Unit 503 that mutually couple successively, wherein:
Formatting unit 501 formats for obtaining alternate file the storage directory to described alternate file and filename;
Query unit 502, for the storage directory of the described alternate file that obtains according to format, travels through the storage directory of corresponding source file, therefrom finds out the source file with described alternate file with same file name, as being replaced file;
Dispatching Unit 503 is replaced file described in described alternate file is replaced, and described alternate file is distributed and be cached to each CDN node.
embodiment six
Fig. 6 is the structured flowchart of the embodiment of the present application hexformat unit; As shown in Figure 6, it can comprise: the parsing subelement that mutually couples 511 and cut apart subelement 521, wherein:
Resolve the domain name classifier that subelement 511 comprises for obtaining the storage directory of described alternate file;
Cut apart subelement 521 for according to domain name classifier, the filename of described alternate file being divided into two sections of front and back, therefrom parse respectively the domain name addresses of obtaining described filename and comprising, storage directory and the filename under domain name address.
embodiment seven
Fig. 7 is the block diagram of the mouth substituting device of the embodiment of the present application seven files of the same name; As shown in Figure 7, from above-mentioned embodiment illustrated in fig. 5 five different be, in the present embodiment, increase the cache flush unit 504 coupling mutually with Dispatching Unit 503, this cache flush unit 504 is for the buffer memory of each CDN node is carried out to refresh process, with the corresponding website element of cache responses domain name access request.
embodiment eight
Fig. 8 is the block diagram of the mouth substituting device of the embodiment of the present application eight files of the same name; As shown in Figure 8, from above-mentioned embodiment illustrated in fig. 5 five different be, in the present embodiment, increase the rollback unit 505 coupling mutually with Dispatching Unit 503, this rollback unit 505 records list for setting up alternate file, record list by described, obtain rollback request instruction, for selecting the file of rollback automatic replacement.
embodiment nine
Fig. 9 is the block diagram of the mouth substituting device of the embodiment of the present application nine files of the same name; As shown in Figure 9, from above-mentioned embodiment illustrated in fig. 5 five different, in the present embodiment, the cache flush unit 504 and the rollback unit 505 that couple mutually with Dispatching Unit 503 have been increased respectively.
This cache flush unit 504 is for the buffer memory of each CDN node is carried out to refresh process, with the corresponding website element of cache responses domain name access request;
This rollback unit 505 is for recording list for setting up alternate file, for selecting the file of rollback automatic replacement.
Above-mentioned explanation illustrates and has described some preferred embodiments of the application, but as previously mentioned, be to be understood that the application is not limited to disclosed form herein, should not regard the eliminating to other embodiment as, and can be used for various other combinations, amendment and environment, and can, in invention contemplated scope described herein, change by technology or the knowledge of above-mentioned instruction or association area.And the spirit and scope that the change that those skilled in the art carry out and variation do not depart from the application, all should be in the protection range of the application's claims.

Claims (10)

1. an automatic replacement method for file of the same name, is characterized in that, comprising:
Obtaining alternate file the storage directory to described alternate file and filename formats;
The storage directory of the described alternate file obtaining according to format, travels through the storage directory of corresponding source file, therefrom finds out the source file with described alternate file with same file name, as being replaced file;
Described in described alternate file is replaced, be replaced file, and described alternate file distributed and be cached to each CDN node.
2. method according to claim 1, is characterized in that, described storage directory and filename to described alternate file formats, and comprising:
Obtain domain name classifier in the storage directory of described alternate file;
According to domain name classifier, the storage directory of described alternate file is divided into two sections of front and back, formats with the storage directory to described alternate file and filename.
3. method according to claim 1, is characterized in that, is describedly replaced file described in described alternate file is replaced, and before described alternate file is distributed and being cached to each CDN node, comprising:
Described in renaming, be replaced file, and backup rename described in be replaced file.
4. method according to claim 3, is characterized in that, is replaced file described in after renaming to be all stored under same source file catalogue with corresponding described alternate file.
5. method according to claim 1, it is characterized in that, be describedly replaced file described in described alternate file is replaced, and after described alternate file is distributed and being cached to each CDN node, also comprise: set up alternate file and record list, for selecting the file of rollback automatic replacement.
6. method according to claim 5, is characterized in that, is describedly replaced file described in described alternate file is replaced, and after described alternate file is distributed and being cached to each CDN node, comprising:
Receive and trigger the alternate file rollback request of recording list producing, and described rollback request is resolved, obtain need rollback described in be replaced the filename that file is corresponding;
Be replaced filename that file is corresponding and be replaced file described in obtaining according to described;
Described in deletion, be replaced the alternate file that file is corresponding;
By described get described in be replaced the reduction of file, and distribution is cached to each CDN node.
7. according to the method described in any one in claim 1-6, it is characterized in that, described alternate file and described in be replaced file and comprise any static state or dynamic web page elements.
8. a mouth substituting device for file of the same name, is characterized in that, comprising:
Formatting unit, formats for obtaining alternate file the storage directory to described alternate file and filename;
Query unit, for the storage directory of the described alternate file that obtains according to format, travels through the storage directory of corresponding source file, therefrom finds out the source file with described alternate file with same file title, as being replaced file;
Dispatching Unit is replaced file described in described alternate file is replaced, and described alternate file is distributed and be cached to each CDN node.
9. device according to claim 8, is characterized in that, described formatting unit comprises:
Resolve subelement, for obtaining the storage directory domain name classifier of described alternate file;
Cut apart subelement, for according to domain name classifier, the storage directory of described alternate file being divided into two sections of front and back, format with the storage directory to described alternate file and filename.
10. device according to claim 8, is characterized in that, also comprises:
Rollback unit, records list for setting up alternate file, for selecting the file of rollback automatic replacement.
CN201410253646.0A 2014-06-09 2014-06-09 Automatic replacing method and apparatus of same-name file Pending CN104092726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410253646.0A CN104092726A (en) 2014-06-09 2014-06-09 Automatic replacing method and apparatus of same-name file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410253646.0A CN104092726A (en) 2014-06-09 2014-06-09 Automatic replacing method and apparatus of same-name file

Publications (1)

Publication Number Publication Date
CN104092726A true CN104092726A (en) 2014-10-08

Family

ID=51640406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410253646.0A Pending CN104092726A (en) 2014-06-09 2014-06-09 Automatic replacing method and apparatus of same-name file

Country Status (1)

Country Link
CN (1) CN104092726A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649395A (en) * 2015-11-03 2017-05-10 腾讯科技(深圳)有限公司 Webpage updating method and apparatus
CN107133357A (en) * 2017-05-26 2017-09-05 维沃移动通信有限公司 A kind of picture storage method and mobile terminal
CN108132990A (en) * 2017-12-19 2018-06-08 五八有限公司 The replacement method of picture, device and storage medium built in a kind of APP
CN108376072A (en) * 2016-11-14 2018-08-07 平安科技(深圳)有限公司 Class name changes method and apparatus
CN109542988A (en) * 2018-10-19 2019-03-29 深圳点猫科技有限公司 A kind of update method and electronic equipment of big data
CN109815058A (en) * 2019-01-28 2019-05-28 网宿科技股份有限公司 The method and device of file backup under a kind of Linux server
CN111382379A (en) * 2018-12-27 2020-07-07 福建天晴数码有限公司 Method and terminal for importing configuration data with pictures

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649395A (en) * 2015-11-03 2017-05-10 腾讯科技(深圳)有限公司 Webpage updating method and apparatus
CN108376072A (en) * 2016-11-14 2018-08-07 平安科技(深圳)有限公司 Class name changes method and apparatus
CN107133357A (en) * 2017-05-26 2017-09-05 维沃移动通信有限公司 A kind of picture storage method and mobile terminal
CN108132990A (en) * 2017-12-19 2018-06-08 五八有限公司 The replacement method of picture, device and storage medium built in a kind of APP
CN108132990B (en) * 2017-12-19 2022-05-31 五八有限公司 Method and device for replacing APP built-in picture and storage medium
CN109542988A (en) * 2018-10-19 2019-03-29 深圳点猫科技有限公司 A kind of update method and electronic equipment of big data
CN111382379A (en) * 2018-12-27 2020-07-07 福建天晴数码有限公司 Method and terminal for importing configuration data with pictures
CN109815058A (en) * 2019-01-28 2019-05-28 网宿科技股份有限公司 The method and device of file backup under a kind of Linux server

Similar Documents

Publication Publication Date Title
CN104092726A (en) Automatic replacing method and apparatus of same-name file
US8621375B2 (en) Associating an object with a relevant data source
US8682903B2 (en) System and method for synchronized content directories on cluster devices
US20170124111A1 (en) System And Method For Synchronizing File Systems With Large Namespaces
US20090282203A1 (en) Managing storage and migration of backup data
US10089338B2 (en) Method and apparatus for object storage
US20190347167A1 (en) Primary Node-Standby Node Data Transmission Method, Control Node, and Database System
US9690796B2 (en) Non-transitory computer-readable media storing file management program, file management apparatus, and file management method
JP2014503086A (en) File system and data processing method
CN103164525B (en) WEB application dissemination method and device
US20130332418A1 (en) Method of managing data in asymmetric cluster file system
CN106874281B (en) Method and device for realizing database read-write separation
US20140136496A1 (en) System, method and non-transitory computer readable storage medium for supporting network file accessing and versioning with multiple protocols in a cloud storage server
CN101741830A (en) Method, system, client and server for realizing multi-client data synchronization
AU2013210018A1 (en) Location independent files
US20150006485A1 (en) High Scalability Data Management Techniques for Representing, Editing, and Accessing Data
CN109299352B (en) Method and device for updating website data in search engine and search engine
CN112069127A (en) Backup method and system for CephFS file system
MXPA04007146A (en) Method and apparatus for late-binding/dynamic pathname resolution.
US20060265431A1 (en) Information processing system, replication method, difference information holding apparatus and program
JPWO2007099636A1 (en) File system migration method, file system migration program, and file system migration apparatus
US8612717B2 (en) Storage system
US10311026B2 (en) Compressed data layout for optimizing data transactions
CN102203725B (en) User profiles synchronizes
CN116049142A (en) Data processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20151231

Address after: Room six, building 19, building 68, No. 100089 South Road, Haidian District, Beijing

Applicant after: LETV CLOUD COMPUTING CO., LTD.

Address before: Room six, building 19, building 68, No. 100089 South Road, Haidian District, Beijing

Applicant before: LeTV Information Technology (Beijing) Co., Ltd.

WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141008