CN104679782A - File version control system and method - Google Patents
File version control system and method Download PDFInfo
- Publication number
- CN104679782A CN104679782A CN201310633676.XA CN201310633676A CN104679782A CN 104679782 A CN104679782 A CN 104679782A CN 201310633676 A CN201310633676 A CN 201310633676A CN 104679782 A CN104679782 A CN 104679782A
- Authority
- CN
- China
- Prior art keywords
- file
- version
- basic
- folder
- pointer
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种虚拟机控制系统及方法,尤其是关于一种文件版本控制系统及方法。The present invention relates to a virtual machine control system and method, in particular to a file version control system and method.
背景技术Background technique
云存储服务提供用户一种随时可在Web上存取文件之机制。当用户将文件上传至云存储空间后,云存储系统将对该文件产生URL,透过URL,用户可随时随地下载或检索该文件的内容。此外,有些厂商还会提供额外加值服务,诸如:加密、存取权限、大数据修改或版本控制等,让用户对文件有更大的操作弹性。Cloud storage service provides users with a mechanism to access files on the Web at any time. After the user uploads the file to the cloud storage space, the cloud storage system will generate a URL for the file, and through the URL, the user can download or retrieve the content of the file anytime and anywhere. In addition, some manufacturers will also provide additional value-added services, such as: encryption, access permissions, large data modification or version control, etc., so that users have greater flexibility in operating files.
在云存储服务的功能中,版本控制提供用户不同以往的备援机制。在相同文件下,每一个对文件的修改动作都视为一个新的版本,例如,修改时间对版本进行区隔。如图1所示,版本控制架构以树状结构为主,根节点为文件名称,子节点为版本,以修改时间区别。用户可以对特定的版本进行下载,达到文件保护的机制。Among the functions of cloud storage services, version control provides users with a backup mechanism that is different from the past. Under the same file, every modification action to the file is regarded as a new version, for example, the modification time separates the versions. As shown in Figure 1, the version control architecture is based on a tree structure, the root node is the file name, and the child nodes are versions, which are distinguished by modification time. Users can download specific versions to achieve file protection mechanism.
尽管云存储服务中的版本控制功能提供相当方便的文件保护机制,但只能针对单一文件之修改进行版本控制,如果用户想对整个资料夹进行版本控制,在目前的架构下可能无法达到。举例而言,用户欲执行MadReduce的云存储服务,输入与输出数据皆存在云存储空间,以资料夹作区别,如图2所示,当用户想更新输入数据,但又想保留原有的文件夹Input_folder,则势必要重新上传整个文件夹Inpute_folder中的文件。若用户只想更新文件夹Inpute_folder底下的input_file1数据,为了保持现有版本,在现行架构下只能重新上传整个文件夹,如此一来造成文件inpute_file2及input_file3的冗余。Although the version control function in the cloud storage service provides a very convenient file protection mechanism, it can only perform version control for the modification of a single file. If the user wants to perform version control on the entire folder, it may not be possible under the current architecture. For example, if a user wants to execute the cloud storage service of MadReduce, both the input and output data are stored in the cloud storage space, and are distinguished by folders, as shown in Figure 2. When the user wants to update the input data, but wants to keep the original file Folder Input_folder, it is necessary to re-upload the files in the entire folder Input_folder. If the user only wants to update the input_file1 data under the folder Input_folder, in order to maintain the current version, the entire folder can only be re-uploaded under the current architecture, thus causing redundancy of the files input_file2 and input_file3.
发明内容Contents of the invention
鉴于以上内容,有必要提供一种文件版本控制系统,其可以让版本与版本之间产生关联,从而达到避免冗余数据的情况。In view of the above, it is necessary to provide a file version control system, which can associate versions with each other, so as to avoid redundant data.
鉴于以上内容,还有必要提供一种文件版本控制方法,其可以让版本与版本之间产生关联,从而达到避免冗余数据的情况。In view of the above, it is also necessary to provide a file version control method, which can associate versions with each other, so as to avoid redundant data.
一种文件版本控制系统,该系统运行于数据中心中,该系统包括:创建模块,用于创建基础文件,所述基础文件由文件夹与该文件夹底下的文件组成;操作模块,用于对基础文件进行操作;所述创建模块,还用于当用户对基础文件操作完成时,进行版本文件的创建,所述版本文件是对基础文件操作而产生,具有顺序关系及递归架构,对每一个版本文件操作都会产生下一个版本文件,对下一个版本文件而言上一个版本文件即是基础文件,其中,版本文件中与基础文件中重复的部分以指针的方式保存。A file version control system, the system runs in a data center, the system includes: a creation module, used to create a basic file, the basic file is composed of a folder and the files under the folder; an operation module, used to The base file is operated; the creation module is also used to create a version file when the user completes the base file operation. The version file is generated by the base file operation and has a sequence relationship and a recursive structure. For each The operation of the version file will generate the next version file. For the next version file, the previous version file is the base file, and the duplicated parts of the version file and the base file are saved in the form of pointers.
一种文件版本控制方法,该方法包括:创建基础文件,所述基础文件由文件夹与该文件夹底下的文件组成;对基础文件进行操作;当用户对基础文件操作完成时,进行版本文件的创建,所述版本文件是对基础文件操作而产生,具有顺序关系及递归架构,对每一个版本文件操作都会产生下一个版本文件,对下一个版本文件而言上一个版本文件即是基础文件,其中,版本文件中与基础文件中重复的部分以指针的方式保存。A file version control method, the method includes: creating a basic file, the basic file is composed of a folder and the files under the folder; operating the basic file; when the user completes the basic file operation, the version file Create, the version file is generated by the operation of the basic file, has a sequential relationship and a recursive structure, and the operation of each version file will generate the next version file, and the previous version file is the basic file for the next version file. Among them, the duplicated parts in the version file and the basic file are saved in the form of pointers.
相较于现有技术,本发明提供的文件版本控制系统及方法,其可以让版本与版本之间产生关联,从而避免冗余数据的情况。Compared with the prior art, the file version control system and method provided by the present invention can associate versions with each other, thereby avoiding redundant data.
附图说明Description of drawings
图1是现有技术中文件的示意图。Fig. 1 is a schematic diagram of a file in the prior art.
图2是现有技术中文件夹的示意图。Fig. 2 is a schematic diagram of folders in the prior art.
图3是本发明文件版本控制系统较佳实施例的应用环境图。Fig. 3 is an application environment diagram of a preferred embodiment of the file version control system of the present invention.
图4是本发明数据中心较佳实施例的结构示意图。Fig. 4 is a schematic structural diagram of a preferred embodiment of the data center of the present invention.
图5是本发明文件版本控制方法较佳实施例的流程图。Fig. 5 is a flowchart of a preferred embodiment of the file version control method of the present invention.
图6是本发明基础文件与版本文件关系的示意图。Fig. 6 is a schematic diagram of the relationship between the basic file and the version file in the present invention.
图7是本发明基础文件与版本文件递归过程的示意图。Fig. 7 is a schematic diagram of the recursive process of the basic file and the version file in the present invention.
图8是本发明基础文件的结构示意图。Fig. 8 is a schematic diagram of the structure of the basic file of the present invention.
图9是本发明修改基础文件后的结构示意图。Fig. 9 is a schematic diagram of the modified basic file of the present invention.
图10是本发明新增基础文件后的结构示意图。Fig. 10 is a schematic diagram of the structure of the new basic file in the present invention.
图11是本发明另一种新增基础文件后的结构示意图。Fig. 11 is a schematic structural diagram of another new basic file of the present invention.
图12是本发明删除基础文件的结构示意图。Fig. 12 is a schematic diagram of the structure of deleting basic files in the present invention.
图13是本发明版本控制的操作界面的示意图。Fig. 13 is a schematic diagram of the operation interface of the version control of the present invention.
图14是本发明用户在版本控制的操作界面进行操作后的示意图。Fig. 14 is a schematic diagram of the user operating on the version control interface of the present invention.
主要元件符号说明Description of main component symbols
如下具体实施方式将结合上述附图进一步说明本发明。The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings.
具体实施方式Detailed ways
参阅图3所示,是本发明文件版本控制系统500较佳实施例的应用环境图。该文件版本控制系统500应用于数据中心50中。所述数据中心50是由多个服务器组成的计算机集群,该数据中心50用于提供云存储及云计算功能,并对文件进行版本控制。Referring to FIG. 3 , it is an application environment diagram of a preferred embodiment of the file version control system 500 of the present invention. The file version control system 500 is applied in the data center 50 . The data center 50 is a computer cluster composed of multiple servers. The data center 50 is used to provide cloud storage and cloud computing functions, and to perform version control on files.
所述客户端20与数据中心(Data Center)50通过网络40进行通信连接。客户端20用于提供一个互动式界面给用户,便于用户登陆到数据中心50并对数据中心50进行操作。该客户端20可以是个人计算机、笔记本电脑、手机、平板电脑以及其它任意能与数据中心50连接的设备。The client 20 communicates with the data center (Data Center) 50 through the network 40. The client 20 is used to provide an interactive interface to the user, so that the user can log in to the data center 50 and operate the data center 50 . The client 20 may be a personal computer, a notebook computer, a mobile phone, a tablet computer and any other device that can be connected to the data center 50 .
所述网络40可以是互联网、局域网或者其它通讯网络。The network 40 may be the Internet, a local area network or other communication networks.
所述数据中心50还通过一个数据库连接与数据库30连接。其中,所述数据库连接可为一开放式数据库连接(Open Database Connectivity,ODBC),或Java数据库连接(Java Database Connectivity,JDBC)。The data center 50 is also connected to the database 30 via a database connection. Wherein, the database connection may be an open database connection (Open Database Connectivity, ODBC), or a Java database connection (Java Database Connectivity, JDBC).
所述数据库30存储有文件表及版本表,所述版本表由文件的ID与文件的版本名称组成,所述文件表由文件的ID、文件的名称、文件的版本ID及文件的URL所组成。用户上传的文件透过下面两种模式进行管理:第一种是以基础文件的方式进行管理,所述基础文件是指用户修改前的文件,对基础文件的修改会产生新的版本文件,而基础文件会保留,透过此机制可保护用户的文件且达到避免文件的冗余。第二种是以版本文件的方式进行管理,所述版本文件是指对基础文件进行修改后得到的文件,如果版本文件的内容与基础文件中的内容相同,则该版本文件的URL指向基础文件的URL,如此一来,避免再次上传相同的文件。The database 30 stores a file table and a version table, the version table is composed of the ID of the file and the version name of the file, and the file table is composed of the ID of the file, the name of the file, the version ID of the file and the URL of the file . The files uploaded by users are managed in the following two modes: the first one is managed in the form of basic files, the basic files refer to the files before the user modifies them, and the modification of the basic files will generate new version files, while The basic files will be kept. Through this mechanism, users' files can be protected and file redundancy can be avoided. The second is to manage in the form of a version file, the version file refers to the file obtained after modifying the base file, if the content of the version file is the same as that in the base file, then the URL of the version file points to the base file URL, in this way, to avoid uploading the same file again.
基础文件与版本文件之间的关系与架构,以图6为例进行说明。由图6可看出版本文件是对基础文件操作而产生,具有顺序关系。接着将此关系延伸则如图7所示,对每一个版本文件操作都会产生下一个版本文件,对下一个版本文件而言上一个版本文件即是基础文件。透过此种递归架构,让版本与版本之间产生关联,从而达到避免冗余数据的情况。The relationship and structure between the basic file and the version file are illustrated by taking Figure 6 as an example. It can be seen from Figure 6 that the version file is generated by operating on the basic file and has a sequence relationship. Then extend this relationship as shown in Figure 7, the next version file will be generated for each version file operation, and the previous version file is the basic file for the next version file. Through this recursive architecture, the versions are associated with each other, so as to avoid redundant data.
参阅图4所示,是本发明数据中心50较佳实施例的结构示意图。该数据中心50包括文件版本控制系统500。需要说明的是,由于所述数据中心50包括多台服务器,因此,文件版本控制系统500可以安装于数据中心50中的某一台特定服务器,也可以安装于每台服务器,在本较佳实施例中,所述文件版本控制系统500安装于数据中心的某一台特定服务器。该文件版本控制系统500包括创建模块510及操作模块520。本发明所称的模块是完成一特定功能的计算机程序段,比程序更适合于描述软件在计算机中的执行过程,因此在本发明以下对软件描述中都以模块描述。Referring to FIG. 4 , it is a schematic structural diagram of a preferred embodiment of the data center 50 of the present invention. The data center 50 includes a file version control system 500 . It should be noted that since the data center 50 includes multiple servers, the file version control system 500 can be installed on a specific server in the data center 50, or can be installed on each server. In this preferred implementation In an example, the file version control system 500 is installed on a specific server in the data center. The file version control system 500 includes a creation module 510 and an operation module 520 . The module referred to in the present invention is a computer program segment that completes a specific function, which is more suitable than a program to describe the execution process of software in a computer, so the following description of software in the present invention is described as a module.
所述创建模块510用于创建基础文件,所述基础文件由文件夹与该文件夹底下的文件组成。所述创建模块510还会将文件夹底下的文件保存到数据库30。假设文件夹名称为FolderV1.0,其底下包含文件名称为file1与file2等两个文件。文件属性包含ID、文件名、URL、修改日期与指向ID(即指针)等,如图8所示。The creation module 510 is used to create a basic file, and the basic file is composed of a folder and files under the folder. The creation module 510 also saves the files under the folder to the database 30 . Suppose the folder name is FolderV1.0, and there are two files named file1 and file2 under it. File attributes include ID, file name, URL, modification date, and pointing ID (pointer), etc., as shown in Figure 8.
所述操作模块520用于对基础文件进行操作。所述操作包括新增、删除及修改。The operation module 520 is used to operate on basic files. The operations include addition, deletion and modification.
所述创建模块510还用于当用户对基础文件操作完成,并进行存储时,所述创建模块510进行版本文件的创建。首先,创建模块510根据文件夹名称的创建规则产生一新的文件夹,如可以根据版本号,每次创建新版本时则版本号加一,例如,{FolderV1.0,FolderV2.0,FolderV3.0,…,FolderVn.0}。当版本文件的文件夹创建成功后,产生版本文件的文件夹底下的文件。具体而言,先取得基础文件底下所有的文件,以进行下一步骤的比对。以图8为例,取得FolderV1.0底下的file1与file2两笔记录。The creating module 510 is also configured to create a version file when the user completes the operation on the basic file and stores it. First, the creation module 510 generates a new folder according to the creation rules of the folder name. For example, according to the version number, the version number is increased by one each time a new version is created, for example, {FolderV1.0, FolderV2.0, FolderV3. 0,...,FolderVn.0}. When the version file folder is successfully created, the files under the version file folder will be generated. Specifically, all the files under the basic file are first obtained for the comparison in the next step. Taking Figure 8 as an example, two records of file1 and file2 under FolderV1.0 are obtained.
所述操作为修改时,将基础文件中没有被修改的部分以指针的形式保存至版本文件中,及将基础文件中已经被修改的部分以文件记录的形式保存至版本文件中。具体而言,当用户对基础文件进行修改,则根据文件夹命名规则创建一版本文件的文件夹。假设对file2进行修改,则系统将产生版本文件的文件夹如FolderV2.0,如图9所示。FolderV2.0底下依然包含两个文件,file1是没有被修改的文件,因此新增一笔指针(pointer),即在图9中的FolderV2.0中存储有file1的指针0001(并不存储其内容,从而避免数据冗余),其指向ID(即指针)为0001,代表其属性与FolderV1.0底下的file1完全相同。而file2是被修改过的文件,因此直接新增一笔全新的文件记录到FolderV2.0底下,即在图9中的FolderV2.0中存储有file2的文件名称、ID、URL及修改日期等信息。When the operation is modification, the unmodified part of the basic file is saved in the version file in the form of a pointer, and the modified part of the basic file is saved in the version file in the form of a file record. Specifically, when the user modifies the basic file, a folder of a version file is created according to the folder naming rules. Assuming that file2 is modified, the system will generate a version file folder such as FolderV2.0, as shown in Figure 9. There are still two files under FolderV2.0, file1 is a file that has not been modified, so a new pointer (pointer) is added, that is, the pointer 0001 of file1 is stored in FolderV2.0 in Figure 9 (it does not store its content , so as to avoid data redundancy), its pointing ID (that is, pointer) is 0001, which means that its attributes are exactly the same as those of file1 under FolderV1.0. And file2 is a modified file, so directly add a new file record to FolderV2.0, that is, the file name, ID, URL and modification date of file2 are stored in FolderV2.0 in Figure 9 .
所述操作为新增时,所述版本文件中包含基础文件的指针及新增的文件记录。具体而言,当用户对基础文件进行新增,则新增与修改类似,用户在FolderV2.0底下上传file3,则创建一个FolderV3.0文件夹,并直接新增一笔file3的文件记录,而原本的file1与file2_V2.0改为指针,如图10所示。此外,尚存在另一种情况,当用户想将文件file3上传到FolderV1.0文件夹内,而非FolderV2.0底下,只要新增指针即可,如图11所示。当用户想要知道FolderV3.0由哪个数据修改而来,只要查询其基础文件即可。When the operation is adding, the version file includes the pointer of the basic file and the newly added file record. Specifically, when the user adds a basic file, the addition is similar to the modification. When the user uploads file3 under FolderV2.0, a FolderV3.0 folder is created and a file record of file3 is directly added, while The original file1 and file2_V2.0 are changed to pointers, as shown in Figure 10. In addition, there is another situation, when the user wants to upload the file file3 to the FolderV1.0 folder instead of FolderV2.0, just add a pointer, as shown in Figure 11. When users want to know which data is modified from Folder V3.0, they only need to query its basic files.
所述操作为删除时,所述版本文件中包含基础文件的指针。当用户对基础文件进行删除,删除操作并非将基础文件移除,而是会另外建立一个新的文件夹。如图12所示,用户从FolderV3.0删除file1后,产生新的版本文件FolderV4.0,其中,FolderV4.0里的file1指针被移除而file3改为指针。When the operation is deletion, the version file contains a pointer to the base file. When the user deletes the base file, the delete operation does not remove the base file, but creates a new folder. As shown in Figure 12, after the user deletes file1 from FolderV3.0, a new version file FolderV4.0 is generated, wherein the file1 pointer in FolderV4.0 is removed and file3 is changed to a pointer.
如图5所示,是本发明文件版本控制方法较佳实施例的流程图。As shown in FIG. 5 , it is a flow chart of a preferred embodiment of the file version control method of the present invention.
步骤S10,创建模块510创建基础文件,所述基础文件由文件夹与该文件夹底下的文件组成。所述创建模块510还会将文件夹底下的文件保存到数据库30。假设文件夹名称为FolderV1.0,其底下包含文件名称为file1与file2等两个文件。文件属性包含ID、文件名、URL、修改日期与指向ID(即指针)等,如图8所示。In step S10, the creation module 510 creates a basic file, and the basic file is composed of a folder and files under the folder. The creation module 510 also saves the files under the folder to the database 30 . Suppose the folder name is FolderV1.0, and there are two files named file1 and file2 under it. File attributes include ID, file name, URL, modification date, and pointing ID (pointer), etc., as shown in Figure 8.
步骤S20,操作模块520用于对基础文件进行操作。所述操作包括新增、删除及修改。In step S20, the operation module 520 is used to operate on the basic file. The operations include addition, deletion and modification.
步骤S30,当用户对基础文件操作完成,并进行存储时,所述创建模块510进行版本文件的创建。首先,创建模块510根据文件夹名称的创建规则产生一新的文件夹,如可以根据版本号,每次创建新版本时则版本号加一,例如,{FolderV1.0,FolderV2.0,FolderV3.0,…,FolderVn.0}。当版本文件的文件夹创建成功后,产生版本文件的文件夹底下的文件。具体而言,先取得基础文件底下所有的文件,以进行下一步骤的比对。以图8为例,取得FolderV1.0底下的file1与file2两笔记录。Step S30, when the user completes the operation on the basic file and stores it, the creation module 510 creates a version file. First, the creation module 510 generates a new folder according to the creation rules of the folder name. For example, according to the version number, the version number is increased by one each time a new version is created, for example, {FolderV1.0, FolderV2.0, FolderV3. 0,...,FolderVn.0}. When the version file folder is successfully created, the files under the version file folder will be generated. Specifically, all the files under the basic file are first obtained for the comparison in the next step. Taking Figure 8 as an example, two records of file1 and file2 under FolderV1.0 are obtained.
所述操作为修改时,将基础文件中没有被修改的部分以指针的形式保存至版本文件中,及将基础文件中已经被修改的部分以文件记录的形式保存至版本文件中。具体而言,当用户对基础文件进行修改,则根据文件夹命名规则创建一版本文件的文件夹。假设对file2进行修改,则系统将产生版本文件的文件夹如FolderV2.0,如图9所示。FolderV2.0底下依然包含两个文件,file1是没有被修改的文件,因此新增一笔指针(pointer),即在图9中的FolderV2.0中存储有file1的指针0001(并不存储其内容,从而避免数据冗余),其指向ID(即指针)为0001代表其属性与FolderV1.0底下的file1完全相同。而file2是被修改过的文件,因此直接新增一笔全新的文件记录到FolderV2.0底下,即在图9中的FolderV2.0中存储有file2的文件名称、ID、URL及修改日期等信息。When the operation is modification, the unmodified part of the basic file is saved in the version file in the form of a pointer, and the modified part of the basic file is saved in the version file in the form of a file record. Specifically, when the user modifies the basic file, a folder of a version file is created according to the folder naming rules. Assuming that file2 is modified, the system will generate a version file folder such as FolderV2.0, as shown in Figure 9. There are still two files under FolderV2.0, file1 is a file that has not been modified, so a new pointer (pointer) is added, that is, the pointer 0001 of file1 is stored in FolderV2.0 in Figure 9 (it does not store its content , so as to avoid data redundancy), its pointing ID (that is, pointer) is 0001, which means that its attributes are exactly the same as those of file1 under FolderV1.0. And file2 is a modified file, so directly add a new file record to FolderV2.0, that is, the file name, ID, URL and modification date of file2 are stored in FolderV2.0 in Figure 9 .
所述操作为新增时,所述版本文件中包含基础文件的指针及新增的文件记录。具体而言,当用户对基础文件进行新增,则新增与修改类似,用户在FolderV2.0底下上传file3,则创建一个FolderV3.0文件夹,并直接新增一笔file3的文件记录,而原本的file1与file2_V2.0改为指针,如图10所示。此外,尚存在另一种情况,当用户想将文件file3上传到FolderV1.0文件夹内,而非FolderV2.0底下,只要新增指针即可,如图11所示。当用户想要知道FolderV3.0由哪个数据修改而来,只要查询其基础文件即可。When the operation is adding, the version file includes the pointer of the basic file and the newly added file record. Specifically, when the user adds a basic file, the addition is similar to the modification. When the user uploads file3 under FolderV2.0, a FolderV3.0 folder is created and a file record of file3 is directly added, while The original file1 and file2_V2.0 are changed to pointers, as shown in Figure 10. In addition, there is another situation, when the user wants to upload the file file3 to the FolderV1.0 folder instead of FolderV2.0, just add a pointer, as shown in Figure 11. When users want to know which data is modified from Folder V3.0, they only need to query its basic files.
所述操作为删除时,所述版本文件中包含基础文件的指针。当用户对基础文件进行删除,删除操作并非将基础文件移除,而是会另外建立一个新的文件夹。如图12所示,用户从FolderV3.0删除file1后,产生新的版本文件FolderV4.0,其中,FolderV4.0里的file1指针被移除而file3改为指针。When the operation is deletion, the version file contains a pointer to the base file. When the user deletes the base file, the delete operation does not remove the base file, but creates a new folder. As shown in Figure 12, after the user deletes file1 from FolderV3.0, a new version file FolderV4.0 is generated, wherein the file1 pointer in FolderV4.0 is removed and file3 is changed to a pointer.
本方法透过一种类似递归概念达到版本控制的机制,利用文件夹进行版本的区别,文件夹内包含数个文件来完成多文件版本控制的目的。此外,结合指针让相同文件无需存储两份甚至两份以上到云存储空间,也可确保文件是未被修改过的状态,节省了厂商的存储空间。同时,在以存储空间计费的服务下,本架构也可节省用户的存储成本。This method achieves the version control mechanism through a similar recursive concept, and uses folders to distinguish versions. The folder contains several files to achieve the purpose of multi-file version control. In addition, the combination of pointers eliminates the need to store two or more copies of the same file in the cloud storage space, and also ensures that the file has not been modified, saving storage space for the manufacturer. At the same time, under the service charged by storage space, this architecture can also save users' storage costs.
参阅图13所示,为一用户的操作界面,上方区块为文件操作区,包含上传、开启与删除等按钮,右方有一启用版本控制功能选项,为启用状态(也可针对单一文件夹设定版本启动)。中间区块列出用户所拥有的文件列表,其包含文件夹名称与该文件夹底下的文件等。此外,文件列表还包含相关属性,如文件夹名称、文件名称、ID、URL与修改日期等。假设,用户目前数据中心50的存储两个文件夹,分别为Input_folder与Output_folder。其中,Input_folder底下包含两个文件,分别为file1.txt与file2.txt,而Output_folder为空。本系统从Input_folder读取file1.txt与file2.txt并取出数据进行处理,处理完成后将在文件夹Output_folder产生一output.txt文件,并将处理结果印在上面,如图13所示。As shown in Figure 13, it is a user's operation interface. The upper block is the file operation area, including buttons such as upload, open, and delete. specific version starts). The middle block lists the files owned by the user, including the folder name and the files under the folder. In addition, the file list also contains related properties, such as folder name, file name, ID, URL and modification date, etc. Assume that the user currently stores two folders in the data center 50, namely Input_folder and Output_folder. Among them, the Input_folder contains two files, namely file1.txt and file2.txt, and the Output_folder is empty. The system reads file1.txt and file2.txt from Input_folder and takes out the data for processing. After the processing is completed, an output.txt file will be generated in the folder Output_folder, and the processing results will be printed on it, as shown in Figure 13.
在上述的应用场景中,假设用户更新输入数据,即在Input_folder底下新增file3.txt并修改file2.txt内容。在本方法架构下将产生一新版本的Input_folderV2.0且保留原始的Input_folder,如图14所示。透过此机制,用户可保留不同的处理结果进行分析比对。In the above application scenario, suppose the user updates the input data, that is, add file3.txt under the Input_folder and modify the content of file2.txt. Under the framework of this method, a new version of Input_folder V2.0 will be generated and the original Input_folder will be retained, as shown in FIG. 14 . Through this mechanism, users can retain different processing results for analysis and comparison.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310633676.XA CN104679782A (en) | 2013-11-30 | 2013-11-30 | File version control system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310633676.XA CN104679782A (en) | 2013-11-30 | 2013-11-30 | File version control system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104679782A true CN104679782A (en) | 2015-06-03 |
Family
ID=53314837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310633676.XA Pending CN104679782A (en) | 2013-11-30 | 2013-11-30 | File version control system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104679782A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108573009A (en) * | 2017-07-03 | 2018-09-25 | 北京金山云网络技术有限公司 | A file search method and device |
CN111427614A (en) * | 2020-03-20 | 2020-07-17 | 中国银行股份有限公司 | File version management method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050076066A1 (en) * | 2003-10-07 | 2005-04-07 | International Business Machines Corporation | Method, system, and program for retaining versions of files |
CN1648857A (en) * | 2004-01-28 | 2005-08-03 | 三星电子株式会社 | Automatic version management system and method for software |
CN1881903A (en) * | 2005-06-17 | 2006-12-20 | 日本电气株式会社 | File edition management device and method and program |
CN101334870A (en) * | 2007-06-26 | 2008-12-31 | 佳能株式会社 | Document management method and apparatus |
-
2013
- 2013-11-30 CN CN201310633676.XA patent/CN104679782A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050076066A1 (en) * | 2003-10-07 | 2005-04-07 | International Business Machines Corporation | Method, system, and program for retaining versions of files |
CN1648857A (en) * | 2004-01-28 | 2005-08-03 | 三星电子株式会社 | Automatic version management system and method for software |
CN1881903A (en) * | 2005-06-17 | 2006-12-20 | 日本电气株式会社 | File edition management device and method and program |
CN101334870A (en) * | 2007-06-26 | 2008-12-31 | 佳能株式会社 | Document management method and apparatus |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108573009A (en) * | 2017-07-03 | 2018-09-25 | 北京金山云网络技术有限公司 | A file search method and device |
CN111427614A (en) * | 2020-03-20 | 2020-07-17 | 中国银行股份有限公司 | File version management method and device |
CN111427614B (en) * | 2020-03-20 | 2023-08-22 | 中国银行股份有限公司 | File version management method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12135733B2 (en) | File journal interface for synchronizing content | |
JP6419319B2 (en) | Synchronize shared folders and files | |
CN107861686B (en) | File storage method, server and computer readable storage medium | |
CN101064630B (en) | A data synchronization method and system | |
US8997041B2 (en) | Method of managing script, server performing the same and storage media storing the same | |
CN105900093B (en) | A method for updating a data table of a KeyValue database and a device for updating table data | |
CN103873290A (en) | Evaluating distributed application performance in a new environment | |
US11726967B2 (en) | Systems and methods for restoring an interface to a global file system | |
WO2016187452A1 (en) | Topology aware distributed storage system | |
CN104636437B (en) | A kind of processing method and processing device of event notification method, monitor | |
CN108563440A (en) | The automatic adding method of List Controller code, device and readable storage medium storing program for executing | |
CN103475721A (en) | System for updating digital assets and method thereof | |
US20210117276A1 (en) | Garbage collection of unreferenced data objects in a protection store | |
JP7355964B2 (en) | External location synchronization | |
CN103220336B (en) | The implementation method of vector clock and system in a kind of file synchronization | |
CN104679782A (en) | File version control system and method | |
TWI571754B (en) | Method for performing file synchronization control, and associated apparatus | |
CN117724741A (en) | Mapper configuration file update method, device and storage medium | |
CN105847306A (en) | Cloud storage system and method | |
CN117290298A (en) | Data processing method and related device | |
CN116915420A (en) | Synchronization method, device, equipment and storage medium of configuration information | |
US20210117274A1 (en) | Data structure of a protection store for storing snapshots | |
TW201527997A (en) | System and method for controlling versions of files | |
CN117251898B (en) | Revit linking method and system based on cloud storage | |
JP7355959B2 (en) | External location synchronization |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150603 |