[go: up one dir, main page]

CN1249597C - Synchronous system in distributed files and method - Google Patents

Synchronous system in distributed files and method Download PDF

Info

Publication number
CN1249597C
CN1249597C CN 02134670 CN02134670A CN1249597C CN 1249597 C CN1249597 C CN 1249597C CN 02134670 CN02134670 CN 02134670 CN 02134670 A CN02134670 A CN 02134670A CN 1249597 C CN1249597 C CN 1249597C
Authority
CN
China
Prior art keywords
branch
server
file
node
main
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.)
Expired - Fee Related
Application number
CN 02134670
Other languages
Chinese (zh)
Other versions
CN1480859A (en
Inventor
李忠一
林海洪
樊晓迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN 02134670 priority Critical patent/CN1249597C/en
Publication of CN1480859A publication Critical patent/CN1480859A/en
Application granted granted Critical
Publication of CN1249597C publication Critical patent/CN1249597C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The present invention relates to a synchronous system in distributed files and a method. The system comprises a main node, a plurality of branch nodes and a network which leads the main node and the branch nodes to be connected, wherein the main node is a control center of synchronous operation, and the main node comprises a main data base server, a main FTP server and an application server. The application server comprises a synchronous control module used for controlling the data transmission between the main FTP server of the main node and a branch FTP server of the branch node and updating file summary information in a data base server of the main node. The branch node of the system at least comprises a branch data base sever and the branch FTP server. The present invention runs a synchronous program through the application server of the main node. The file synchronous operation and the branch node are separated. Therefore, the expansion of the branch node is easy.

Description

分布式文件同步系统及方法Distributed file synchronization system and method

【技术领域】【Technical field】

本发明涉及一种文件同步系统及方法,特别涉及一种分布式文件同步系统及方法。The invention relates to a file synchronization system and method, in particular to a distributed file synchronization system and method.

【背景技术】【Background technique】

随着经济全球化的发展趋势,出现了一大批跨地区、跨国界的大型企业集团。这些企业集团的分支机构分布于世界各地,而各地分支机构需要共享信息以联合工作。因此,如何对其数据进行管控,以实现企业信息资源共享,已成为该类企业营运的一个重要组成部分。而信息技术的发展,使得跨机构、跨地域的数据访问与协作成为可能。目前,为了提高数据访问的效率以及减小故障的损失,企业一般采用分布式数据管理系统。With the development trend of economic globalization, a large number of large enterprise groups that cross regions and borders have emerged. The branches of these enterprise groups are distributed all over the world, and the branches need to share information to work together. Therefore, how to manage and control its data to realize the sharing of enterprise information resources has become an important part of the operation of this type of enterprise. The development of information technology has made cross-institutional and cross-regional data access and collaboration possible. At present, in order to improve the efficiency of data access and reduce the loss of failures, enterprises generally use distributed data management systems.

分布式数据管理系统指物理空间分散、逻辑上通过网络连接在一起的数据存储、管理系统,在该系统中,用户能像访问本地存储区的数据一样使用远程存储区中的数据。如2002年6月12日公开的公开号为CN1353836的名为“分布式环境中的文件管理方法和系统”的中国专利,该专利在客户端设置文件控制器,管理本地文件及控制网络信息交换,并生成包含文件存储位置的元索引以标志网络信息。在用户在某客户端进行文件访问时,通过元索引获得文件存储位置,并将文件复制到本地终端,同时修改元索引信息。该专利解决了特定终端负载集中及文件更新同步的问题,但该系统却存在着客户端数据重复存储、同步过程通讯量较大、系统不易扩充等问题。A distributed data management system refers to a data storage and management system that is physically dispersed and logically connected through a network. In this system, users can use the data in the remote storage area just like accessing the data in the local storage area. For example, the Chinese patent titled "File Management Method and System in Distributed Environment" published on June 12, 2002 with the publication number CN1353836, sets a file controller on the client side to manage local files and control network information exchange , and generate a meta index containing file storage locations to identify network information. When a user accesses a file on a certain client, the file storage location is obtained through the meta index, the file is copied to the local terminal, and the meta index information is modified at the same time. This patent solves the problems of specific terminal load concentration and file update synchronization, but the system has problems such as repeated storage of client data, large communication volume during synchronization, and difficult expansion of the system.

【发明内容】【Content of invention】

本发明提供一种分布式文件同步系统及方法,通过主节点的应用程序服务器运行同步程序,使文件同步操作与分支节点分离,以解决系统不易扩充的问题。The invention provides a distributed file synchronization system and method. The synchronization program is run by the application server of the main node, so that the file synchronization operation is separated from the branch nodes, so as to solve the problem that the system is not easy to expand.

该系统包括一主节点、若干分支节点以及将主节点和上述分支节点相连的网络。分支节点包括一分支数据库服务器及一分支FTP服务器,其中分支数据库服务器用于存储文件摘要信息,其与主节点的主数据库服务器中的文件摘要信息保持同步;分支FTP服务器用于存储文件,并可与主节点的主FTP服务器进行文件的传输。主节点是同步操作控制中心,该主节点包括一主数据库服务器、一主FTP服务器及一应用程序服务器,其中主数据库服务器,用于存储文件摘要信息,并控制上述摘要信息与各分支数据库服务器同步;主FTP服务器,用于存储文件,并可上传文件至分支FTP服务器及自分支FTP服务器下载文件;应用程序服务器,用于控制同步操作进行,该服务器包括一同步控制模块,用于控制主FTP服务器自分支FTP服务器下载文件及上传文件至分支FTP服务器,并更新主数据库服务器中的文件的摘要信息。The system includes a main node, several branch nodes and a network connecting the main node and the above-mentioned branch nodes. The branch node includes a branch database server and a branch FTP server, wherein the branch database server is used to store file summary information, which keeps synchronization with the file summary information in the main database server of the master node; the branch FTP server is used to store files and can Transfer files with the master FTP server of the master node. The master node is a synchronous operation control center. The master node includes a master database server, a master FTP server and an application program server, wherein the master database server is used to store file summary information and control the synchronization of the above summary information with each branch database server ; The main FTP server is used to store files, and can upload files to the branch FTP server and download files from the branch FTP server; the application server is used to control the synchronization operation, and the server includes a synchronization control module for controlling the main FTP The server downloads files from the branch FTP server and uploads files to the branch FTP server, and updates the summary information of the files in the main database server.

本发明还提供一分布式文件同步方法。该方法包含以下步骤:(a)将若干分支节点的分支数据库服务器中文件摘要信息与主节点的主数据库服务器中的文件摘要信息同步;(b)第一分支节点发送文件同步请求讯息至主节点;(c)主节点接收该同步请求讯息,判断所请求的文件的具体位置,并获取该文件;(d)主节点将该文件上传至第一分支节点;(e)主节点在主数据库服务器中更新文件摘要信息。The invention also provides a distributed file synchronization method. The method comprises the following steps: (a) synchronizing the file abstract information in the branch database servers of several branch nodes with the file abstract information in the master database server of the master node; (b) the first branch node sending a file synchronization request message to the master node ; (c) the master node receives the synchronization request message, judges the specific location of the requested file, and obtains the file; (d) the master node uploads the file to the first branch node; (e) the master node is on the master database server Update file summary information in .

通过本发明,可使存储于不同地域的文件在相对较小通讯量的情形下能够准确同步,并且使得系统的分支节点易于扩充。Through the invention, the files stored in different regions can be accurately synchronized under the condition of relatively small communication volume, and the branch nodes of the system are easy to expand.

【附图说明】【Description of drawings】

图1是本发明分布式文件同步系统及方法的实施环境图。FIG. 1 is an implementation environment diagram of the distributed file synchronization system and method of the present invention.

图2是本发明分布式文件同步系统及方法的分支节点结构图。FIG. 2 is a structural diagram of branch nodes of the distributed file synchronization system and method of the present invention.

图3是本发明分布式文件同步系统及方法的主节点结构图。FIG. 3 is a structural diagram of a master node of the distributed file synchronization system and method of the present invention.

图4是本发明分布式文件同步系统及方法的数据库服务器中文件摘要信息表。Fig. 4 is a file summary information table in the database server of the distributed file synchronization system and method of the present invention.

图5是本发明分布式文件同步系统及方法的客户端读取文件流程图。FIG. 5 is a flow chart of the client reading files in the distributed file synchronization system and method of the present invention.

图6是本发明分布式文件同步系统及方法的文件复制流程图。FIG. 6 is a flow chart of file copying in the distributed file synchronization system and method of the present invention.

【具体实施方式】【Detailed ways】

如图1所示,是本发明分布式文件同步系统及方法的实施环境图。该系统由分散在不同地理位置的企业信息系统节点组成,其具体包括一主节点110及若干个分支节点120、130(图中只画出二个)。这些节点通过企业内部网140相连,且都采用三层(或多层)结构:一数据库服务器(113、123或133),一系列的应用服务器系统(112、122或132),以及分散的客户端(111、121或131)。以下将以主节点110为例,介绍各节点的组成。As shown in FIG. 1 , it is an implementation environment diagram of the distributed file synchronization system and method of the present invention. The system is composed of enterprise information system nodes scattered in different geographical locations, which specifically includes a master node 110 and several branch nodes 120, 130 (only two are shown in the figure). These nodes are connected by intranet 140, and all adopt three-layer (or multi-layer) structure: a database server (113, 123 or 133), a series of application server systems (112, 122 or 132), and scattered clients end (111, 121 or 131). The composition of each node will be introduced below by taking the master node 110 as an example.

主节点110包括一主数据库服务器113,一主应用服务器系统112及若干客户端111(图中仅画出一个)。主数据库服务器113用于存储企业相关的所有数据,并负责管理对数据库的读写和维护,能够迅速执行大量数据的更新和检索。主应用服务器系统112包括了企业信息系统中核心的和易变的企业逻辑(规划、运作方法、管理模式等),它的功能是接收输入,处理并返回结果。客户端111为系统应用的用户接口,负责接收用户输入及向用户展示系统处理结果。分支节点120、130的组成结构与主节点110相同。The master node 110 includes a master database server 113, a master application server system 112 and several clients 111 (only one is shown in the figure). The master database server 113 is used to store all data related to the enterprise, and is responsible for managing the reading, writing and maintenance of the database, and can quickly update and retrieve a large amount of data. The main application server system 112 includes the core and changeable business logic (planning, operation method, management mode, etc.) in the enterprise information system, and its function is to receive input, process and return the result. The client 111 is the user interface of the system application, responsible for receiving user input and displaying system processing results to the user. The composition structure of the branch nodes 120 and 130 is the same as that of the master node 110 .

图2是本发明分布式文件同步系统及方法的分支节点120的结构图。分支节点120的客户端121包括一客户端代理程序201,用于将系统操作封装,使系统操作与用户操作分离,简化了用户操作。该客户端代理程序201包括一用户操作模块202、一数据库操作模块203及一文件操作模块205。分支节点120的分支应用服务器系统122包括一分支FTP(File TransferProtoco1)服务器207及一分支应用程序服务器209。FIG. 2 is a structural diagram of the branch node 120 of the distributed file synchronization system and method of the present invention. The client 121 of the branch node 120 includes a client agent program 201 for encapsulating system operations, separating system operations from user operations, and simplifying user operations. The client agent program 201 includes a user operation module 202 , a database operation module 203 and a file operation module 205 . The branch application server system 122 of the branch node 120 includes a branch FTP (File Transfer Protocol 1) server 207 and a branch application server 209.

用户操作模块202为用户提供一图形用户接口(Graphical UserInterface,GUI),方便用户输入。该用户操作模块202与数据库操作模块203及文件操作模块205相连,将系统对分支FTP服务器207及分支数据库服务器123的操作结果展示给用户。文件操作模块205与分支FTP服务器207连接,用于向分支FTP服务器207发送对文件的操作命令,该命令包括文件打开、关闭、编辑、上传、下载、删除、变更及增加或删除目录夹等操作。文件操作模块205还与数据库操作模块203相连,用于处理数据库操作模块203传送的数据。数据库操作模块203与分支应用程序服务器209相连,用于生成对分支数据库服务器123中的数据进行查询、更新及删除等操作命令。数据库操作模块203还负责将分支数据库服务器123的操作结果传送至文件操作模块205。The user operation module 202 provides a graphical user interface (Graphical User Interface, GUI) for the user to facilitate user input. The user operation module 202 is connected with the database operation module 203 and the file operation module 205, and displays the operation results of the system on the branch FTP server 207 and the branch database server 123 to the user. The file operation module 205 is connected with the branch FTP server 207, and is used to send operation commands to the file to the branch FTP server 207. This command includes operations such as file opening, closing, editing, uploading, downloading, deleting, changing and adding or deleting folders . The file operation module 205 is also connected to the database operation module 203 for processing the data transmitted by the database operation module 203 . The database operation module 203 is connected to the branch application server 209 and is used to generate operation commands such as query, update and delete on the data in the branch database server 123 . The database operation module 203 is also responsible for transmitting the operation result of the branch database server 123 to the file operation module 205 .

分支FTP服务器207用于存储文件,如文档、图像、声音及影像文件等。该分支FTP服务器207与企业内部网140相连,可通过企业内部网140与其它分支节点或主节点的FTP服务器进行文件传输操作。分支应用程序服务器209用于连接客户端121与分支数据库服务器123,将客户端121的数据库操作模块203对数据库操作的命令传递至分支数据库服务器123执行,并将分支数据库服务器123执行结果传送给数据库操作模块203。The branch FTP server 207 is used to store files, such as documents, images, audio and video files, and the like. The branch FTP server 207 is connected to the intranet 140 of the enterprise, and can perform file transfer operations with FTP servers of other branch nodes or master nodes through the intranet 140 . The branch application server 209 is used to connect the client 121 and the branch database server 123, and the database operation module 203 of the client 121 passes the command of the database operation to the branch database server 123 for execution, and the execution result of the branch database server 123 is transmitted to the database Operation module 203 .

分支数据库服务器123存储了企业文件(如声音、图像、文档及影像等文件)的摘要信息,该摘要信息包括文件编号、存储位置及目录、更新日期等信息。该分支数据库服务器123中的文件摘要信息定时与主节点110的主数据库服务器113中的文件摘要信息同步。Branch database server 123 stores summary information of enterprise files (such as files such as sound, image, document, and video), and the summary information includes information such as file number, storage location and directory, and update date. The file summary information in the branch database server 123 is synchronized with the file summary information in the master database server 113 of the master node 110 at regular intervals.

图3是本发明分布式文件同步系统及方法的主节点110的结构图。主节点110的客户端111及主数据库服务器113的功能、组成与结构与分支节点120相同(见图2)。FIG. 3 is a structural diagram of the master node 110 of the distributed file synchronization system and method of the present invention. The function, composition and structure of the client 111 and the master database server 113 of the master node 110 are the same as those of the branch node 120 (see FIG. 2 ).

主节点110的主应用服务器系统112包括一主FTP服务器309及一主应用程序服务器310。主FTP服务器309用于存储文件,包括文档、图像、声音及影像等。该主FTP服务器309与企业内部网140相连,可通过企业内部网140与其它节点的FTP服务器进行文件传输操作。主应用程序服务器310是该文件同步系统的控制中心,其包括一同步控制模块313、一文件传输控制模块311及一数据库连接模块315。同步控制模块313用于控制同步操作的执行,其与文件传输控制模块311及数据库连接模块315相连。该同步控制模块313可根据同步请求生成若干个同步操作命令,这些同步操作命令包括数据传输命令及更新数据库命令,然后同步控制模块313发送命令至文件传输控制模块311及数据库连接模块315执行。文件传输控制模块311可接收主FTP服务器309的同步请求并将该请求发送至同步控制模块313以生成同步控制命令。同时,文件传输控制模块311还负责解读同步控制模块313的同步命令,并将该同步命令编译为主FTP服务器309可执行的指令。数据库连接模块315与主数据库服务器113连接,可将同步控制模块313的数据库更新命令传送至主数据库服务器113,主数据库服务器113执行该数据库更新命令,将数据同步信息如位置变更、时间更新等信息进行更新。The main application server system 112 of the main node 110 includes a main FTP server 309 and a main application server 310 . The main FTP server 309 is used to store files, including documents, images, audio and video. The main FTP server 309 is connected to the intranet 140 of the enterprise, and can perform file transfer operations with FTP servers of other nodes through the intranet 140 of the enterprise. The main application server 310 is the control center of the file synchronization system, which includes a synchronization control module 313 , a file transfer control module 311 and a database connection module 315 . The synchronization control module 313 is used to control the execution of the synchronization operation, and it is connected with the file transfer control module 311 and the database connection module 315 . The synchronization control module 313 can generate several synchronization operation commands according to the synchronization request. These synchronization operation commands include data transmission commands and database update commands, and then the synchronization control module 313 sends commands to the file transmission control module 311 and the database connection module 315 for execution. The file transfer control module 311 can receive a synchronization request from the main FTP server 309 and send the request to the synchronization control module 313 to generate a synchronization control command. At the same time, the file transfer control module 311 is also responsible for interpreting the synchronization command of the synchronization control module 313 and compiling the synchronization command into an executable command of the main FTP server 309 . The database connection module 315 is connected with the main database server 113, and the database update command of the synchronization control module 313 can be sent to the main database server 113, and the main database server 113 executes the database update order, and the data synchronization information such as information such as location change and time update to update.

图4是本发明分布式文件同步系统及方法的主数据库服务器113(或分支数据库服务器123、133)中文件摘要信息表400。该摘要信息表400包括文件编号401、文件标题403、文件位置405、文件目录407及更新时间409。其中,文件编号401是对应文件在企业信息系统中的统一编号,每一文件有且仅有一唯一的编号。文件标题403是文件的标题,其可简要描述该文件的内容。文件位置405是存储文件所在的FTP服务器的IP地址,如10.153.24.126。文件目录407是文件在FTP服务器中的目录。更新时间409是上一次对文件操作的具体时间。分支节点120(或130)的分支数据库服务器123(或133)中的摘要信息表400定时与主节点110的主数据库服务器113中的摘要信息表400同步。例如,可在主节点110的主数据库服务器113中设定每三分钟执行一次摘要信息表400同步步骤。FIG. 4 is a file summary information table 400 in the main database server 113 (or branch database servers 123, 133) of the distributed file synchronization system and method of the present invention. The abstract information table 400 includes a file number 401 , a file title 403 , a file location 405 , a file directory 407 and an update time 409 . Wherein, the file number 401 is the uniform number of the corresponding file in the enterprise information system, and each file has and only has one unique number. The file title 403 is the title of the file, which can briefly describe the contents of the file. The file location 405 is the IP address of the FTP server where the file is stored, such as 10.153.24.126. The file directory 407 is a directory of files in the FTP server. Update time 409 is the specific time of the last file operation. The summary information table 400 in the branch database server 123 (or 133 ) of the branch node 120 (or 130 ) is regularly synchronized with the summary information table 400 in the master database server 113 of the master node 110 . For example, the master database server 113 of the master node 110 can be set to execute the synchronizing step of the summary information table 400 every three minutes.

图5是本发明分布式文件同步系统及方法的客户端121读取文件流程图。首先,用户通过用户操作模块202的GUI向系统发送对一文件的操作请求(步骤S501),该操作可以为阅读或编辑该文件,该文件对应一唯一编号。数据库操作模块203将该请求编译为数据库查询语句,并经由分支应用程序服务器209传送至分支数据库服务器123。分支数据库服务器123执行该查询语句,在分支数据库服务器123的文件摘要信息表400的文件编号401栏中查询符合条件的表项(步骤S503)。然后,分支数据库服务器123将编号符合条件的表列发送至文件操作模块205。FIG. 5 is a flow chart of reading files by the client 121 of the distributed file synchronization system and method of the present invention. First, the user sends an operation request for a file to the system through the GUI of the user operation module 202 (step S501). The operation can be reading or editing the file, and the file corresponds to a unique number. The database operation module 203 compiles the request into a database query statement, and sends it to the branch database server 123 via the branch application server 209 . The branch database server 123 executes the query statement, and searches for eligible entries in the file number 401 column of the file summary information table 400 of the branch database server 123 (step S503 ). Then, the branch database server 123 sends the table columns whose numbers meet the conditions to the file operation module 205 .

文件操作模块205读取表列讯息,并搜索摘要信息表400表列的文件位置405栏(步骤S505)。若在该栏中无本节点200的分支FTP服务器207的IP地址,则表示该文件不在该节点,则文件操作模块205经由分支FTP服务器207向主节点110同步控制模块313发出数据复制请求,该数据复制请求仅含数据编号(步骤S507),该步骤将在图6详细描述。若本地有该数据,即文件位置405栏有本节点200的分支FTP服务器207的IP地址,则文件操作模块205进一步比较摘要信息表400表列的更新日期栏(步骤S501)。若对应分支FTP服务器207的IP地址的表列的更新日期早于其余任一表列的更新日期,即该数据最新版本不在本节点200,则执行步骤S507。若数据最新版本在本节点200的分支FTP服务器207,则文件操作模块205将该文件直接显示给用户。The file operation module 205 reads the listing information, and searches the column of the file location 405 listed in the summary information table 400 (step S505 ). If do not have the IP address of the branch FTP server 207 of this node 200 in this column, then represent that this file is not in this node, then file operation module 205 sends data copy request to main node 110 synchronous control module 313 via branch FTP server 207, this The data copy request only contains the data number (step S507), which will be described in detail in FIG. 6 . If there is this data locally, that is, the file location 405 column has the IP address of the branch FTP server 207 of this node 200, then the file operation module 205 further compares the update date column (step S501) listed in the summary information table 400. If the update date of the list corresponding to the IP address of the branch FTP server 207 is earlier than the update date of any other list, that is, the latest version of the data is not in the local node 200, then step S507 is executed. If the latest version of the data is in the branch FTP server 207 of the node 200, the file operation module 205 will directly display the file to the user.

图6是本发明分布式文件同步系统及方法的文件复制流程图。下文例举分支节点120与主节点110的同步进行说明。首先,主节点110的主FTP服务器309接收分支节点120的分支FTP服务器207发送的文件同步请求(步骤S601)。该文件同步请求经由文件传输控制模块311传送至同步控制模块313。同步控制模块313通过数据库连接模块315在主数据库服务器113的摘要信息表400中查询数据复制请求中数据编号,并将查询结果表列传送回同步控制模块313(步骤S603)。FIG. 6 is a flow chart of file copying in the distributed file synchronization system and method of the present invention. Synchronization between the branch node 120 and the master node 110 is described below as an example. First, the master FTP server 309 of the master node 110 receives a file synchronization request sent by the branch FTP server 207 of the branch node 120 (step S601 ). The file synchronization request is sent to the synchronization control module 313 via the file transmission control module 311 . The synchronization control module 313 queries the data number in the data copy request in the summary information table 400 of the main database server 113 through the database connection module 315, and sends the query result list back to the synchronization control module 313 (step S603).

同步控制模块313根据摘要信息表400中的文件位置405栏及更新日期409栏判断该文件最新版本位置(步骤S605)。若数据最新版本不在主节点110的主FTP服务器309中,则同步控制模块313发送数据下载命令至文件传输控制模块311,该数据下载命令包括数据编号、位置及目录,文件传输控制模块311将该下载命令编译成主FTP服务器309可直接执行的下载指令,并发送至主FTP服务器309,主FTP服务器309执行下载指令,从文件最新版本所在节点(如分支节点130)的分支FTP服务器下载文件最新版本(步骤S607),判断文件下载是否成功,若文件下载失败,则返回步骤S603;若文件成功下载至主节点110的主FTP服务器309上,则生成一响应讯息,通知同步控制模块313文件已下载(步骤S608)。同步控制模块313收到响应讯息后,生成一文件上传命令,并将该命令发送至文件传输控制模块311,经文件传输控制模块311编译数据上传指令被主FTP服务器309执行,相应数据被传送至原请求节点120的分支FTP服务器207(步骤S609)。判断文件上传是否成功,若文件上传成功,主FTP服务器309将一上传成功讯息经由文件传输控制模块311返回同步控制模块313;若文件上传失败,则返回步骤S601(步骤S611)。同步控制模块313收到上传成功讯息后,将修改主数据库服务器113中的摘要讯息表400(步骤S613)。The synchronization control module 313 determines the location of the latest version of the file according to the file location 405 column and the update date 409 column in the summary information table 400 (step S605 ). If the latest version of the data is not in the main FTP server 309 of the main node 110, then the synchronization control module 313 sends a data download command to the file transfer control module 311, the data download command includes data number, position and directory, and the file transfer control module 311 sends the The download command is compiled into a download instruction that the main FTP server 309 can directly execute, and sends to the main FTP server 309, and the main FTP server 309 executes the download instruction, and downloads the latest file from the branch FTP server of the node (such as branch node 130) where the latest version of the file is located version (step S607), determine whether the file download is successful, if the file download fails, then return to step S603; if the file is successfully downloaded to the master FTP server 309 of the master node 110, a response message is generated to notify the synchronization control module 313 that the file has been Download (step S608). After the synchronization control module 313 receives the response message, it generates a file upload command, and sends the command to the file transfer control module 311, and the compiled data upload command of the file transfer control module 311 is executed by the main FTP server 309, and the corresponding data is sent to The branch FTP server 207 of the original requesting node 120 (step S609). Judging whether the file upload is successful, if the file upload is successful, the main FTP server 309 returns an upload success message to the synchronization control module 313 via the file transfer control module 311; if the file upload fails, then return to step S601 (step S611). After the synchronization control module 313 receives the upload success message, it will modify the summary message table 400 in the main database server 113 (step S613).

Claims (9)

1. synchronous system in distributed files, this system comprises a host node, some branch nodes and with host node and the network that above-mentioned branch node links to each other, it is characterized in that:
This host node comprises a main database server, a main ftp server and a primary application program server; This branch node comprises a branch data storehouse server, branch's ftp server and a drop applications procedure service device, wherein:
Main database server is used for the storage file summary info, and controls the document information synchronization in above-mentioned summary info and each the branch data storehouse server;
Main ftp server is used for storage file, and upload file is to branch's ftp server and from branch's ftp server file in download;
The primary application program server, be connected with main ftp server and main database server, the synchronous operation that is used for control documents and document information is carried out, this primary application program server comprises a synchronous control module, be used to control main ftp server from branch's ftp server file in download and upload file to each branch's ftp server, and upgrade the summary info of the file in the main database server;
Branch data storehouse server is used for the storage file summary info, and the document information in the main database server of itself and host node keeps synchronously;
Branch's ftp server is used for the file of stores branch node, and carries out the transmission of file with the main ftp server of host node;
Drop applications procedure service device links to each other with branch data storehouse server, is used for the order of branch node is sent to branch data storehouse server, and the execution result of branch data storehouse server is sent back branch node.
2. synchronous system in distributed files as claimed in claim 1, it is characterized in that, wherein main database server and branch data storehouse server comprise a document information table, and this summary info table comprises reference number of a document, file storage location, file update time.
3. synchronous system in distributed files as claimed in claim 1 is characterized in that, the file of storing in wherein main ftp server and the branch's ftp server comprises document, sound, image and image file.
4. synchronous system in distributed files as claimed in claim 1 is characterized in that, wherein the summary info between main database server and branch data storehouse server is synchronously for regularly carrying out.
5. synchronous system in distributed files as claimed in claim 1, it is characterized in that, wherein the host node apps server comprises a database link block, be used for the database update order of synchronization control module is sent to main database server, to the data in the main database server inquire about, renewal and deletion action.
6. synchronous system in distributed files as claimed in claim 1, it is characterized in that, wherein the host node apps server comprises a file transfer control module, be used to understand the order that synchronization control module sends and be compiled as the executable instruction of branch's ftp server, also can be used for receiving the synchronization request of branch's ftp server and this request is sent to synchronization control module to generate synchronous control command.
7. distributed document method for synchronous is characterized in that this method may further comprise the steps:
(a) with the document information synchronization in the main database server of document information in the branch data storehouse server of some branch nodes and host node;
(b) client of first branch node is searched for one and is treated the operation file summary info in the server of the branch data storehouse of this first branch node;
(i) if treat the branch ftp server of operation file latest edition at this first branch node
In, then open this and treat operation file, EO;
(ii) if treat that the operation file latest edition is not at branch's ftp server of first branch node
On, then send the synchronization control module of a file synchronization request message to host node;
(c) summary info in the main database server of synchronization control module search host node obtains to treat operation file latest edition position;
(i) if treat the main ftp server of operation file latest edition at host node, then host node
File is uploaded to first branch node;
(ii) if treat the branch ftp server of operation file latest edition at one second branch node
In, then host node is at first downloaded from second branch node and is treated operation file to host node, then will
This treats that operation file is uploaded to first branch node;
(d) host node updating file summary info in main database server.
8. distributed document method for synchronous as claimed in claim 7 is characterized in that, wherein document information comprises reference number of a document, file storage location, file update time.
9. distributed document method for synchronous as claimed in claim 7 is characterized in that, wherein carrying out for timing synchronously in the step (a).
CN 02134670 2002-09-03 2002-09-03 Synchronous system in distributed files and method Expired - Fee Related CN1249597C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02134670 CN1249597C (en) 2002-09-03 2002-09-03 Synchronous system in distributed files and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02134670 CN1249597C (en) 2002-09-03 2002-09-03 Synchronous system in distributed files and method

Publications (2)

Publication Number Publication Date
CN1480859A CN1480859A (en) 2004-03-10
CN1249597C true CN1249597C (en) 2006-04-05

Family

ID=34145902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02134670 Expired - Fee Related CN1249597C (en) 2002-09-03 2002-09-03 Synchronous system in distributed files and method

Country Status (1)

Country Link
CN (1) CN1249597C (en)

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7567967B2 (en) * 2004-01-16 2009-07-28 Microsoft Corporation Business application entity subscriptions synch operation management
US7890544B2 (en) 2004-01-16 2011-02-15 Microsoft Corporation Metadata driven customization of a software-implemented business process
KR100604585B1 (en) * 2004-12-15 2006-07-25 주식회사 팬택앤큐리텔 Multimedia data management method and mobile communication terminal using the same
CN1997067B (en) * 2006-06-26 2010-05-12 华为技术有限公司 Method and system for playing color ring tone
CN101188569B (en) * 2006-11-16 2011-05-04 饶大平 Method for constructing data quanta space in network and distributed file storage system
GB0623933D0 (en) * 2006-11-29 2007-01-10 Ibm Apparatus and method for synchronizing controller firmware download
US8239479B2 (en) * 2007-06-22 2012-08-07 Microsoft Corporation Server-assisted and peer-to-peer synchronization
CN101567858B (en) * 2008-04-21 2011-04-27 联想(北京)有限公司 Method and system for synchronizing data
CN100592298C (en) * 2008-05-13 2010-02-24 华为技术有限公司 File synchronization method and device
CN101534480B (en) * 2009-04-14 2010-12-08 南京大学 A Cross-Network File Synchronization Method Based on Mobile Software Agent
CN102750279B (en) * 2011-04-18 2015-11-25 北京圣涛平试验工程技术研究院有限责任公司 The classification associated networking service system method and system of electronic document
CN102355497A (en) * 2011-09-28 2012-02-15 中国铁道科学研究院电子计算技术研究所 Data synchronization method
CA2769773C (en) * 2011-11-04 2018-01-09 Gemcom Software International Inc. System and method for data communication over a network
CN103457979B (en) * 2012-06-05 2017-04-26 中山市云创知识产权服务有限公司 Distribution type file storage system and method
CN103020180A (en) * 2012-11-28 2013-04-03 北京奇虎科技有限公司 Control node-based program deploying method and device
CN103117883B (en) * 2013-03-20 2015-09-16 烽火通信科技股份有限公司 A kind of packet equipment running status synchronous method
CN104036157A (en) * 2014-06-05 2014-09-10 蓝盾信息安全技术有限公司 Method based on comprehensive characteristic value for detecting tampering of file
CN104519138B (en) * 2014-12-31 2017-12-26 北京东土科技股份有限公司 A kind of data transmission method and system based on distributed FTP
CN104778214B (en) * 2015-03-20 2018-02-06 四川长虹电器股份有限公司 The distributed file system and its method of data synchronization redirected based on resource localizer
CN105791436A (en) * 2016-04-28 2016-07-20 杭州亿方云网络科技有限公司 File synchronization system and synchronization method thereof
CN106599195B (en) * 2016-12-14 2020-07-31 北京邮电大学 A metadata synchronization method and system in a massive network data environment
CN106777321A (en) * 2017-01-07 2017-05-31 郑州云海信息技术有限公司 Using the method and device of KV database realizing data consistencies
CN107707616B (en) * 2017-08-21 2019-02-12 贵州白山云科技股份有限公司 A kind of data transmission method and system
CN107911434A (en) * 2017-11-10 2018-04-13 浪潮软件集团有限公司 A tobacco data synchronization system and method
CN108337303A (en) * 2018-01-24 2018-07-27 中国银联股份有限公司 A kind of method of data synchronization and distributed system
CN108650320B (en) * 2018-05-15 2021-05-11 北京中创腾锐技术有限公司 Method for synchronizing configuration files of isomorphic cascading equipment in cluster environment

Also Published As

Publication number Publication date
CN1480859A (en) 2004-03-10

Similar Documents

Publication Publication Date Title
CN1249597C (en) Synchronous system in distributed files and method
CN1129083C (en) System and method for updating remote database in network
TWI220713B (en) System and method for synchronizing documents between multi-nodes
US7899917B2 (en) Synchronization framework for occasionally connected applications
CN100407650C (en) System and method for upgrading software version in distributed business system
CN1261877C (en) Multi-node file synchronization system and method
EP2021937B1 (en) Techniques to perform gradual upgrades
US6922761B2 (en) Method and system for migrating data
EP1300757A1 (en) Shareable installation hierarchies
US20050216524A1 (en) Smart and selective synchronization between databases in a document management system
JPH09171501A (en) Resources controller
US20070156774A1 (en) Multi-Tier Document Management System
EP1332432A4 (en) METHOD AND SYSTEM FOR TRANSMITTING SOFTWARE APPLICATIONS TO A CUSTOMER
CN103457979A (en) Distribution type file storage system and method
CN1249596C (en) Non Structured data synchronous system and method
US7590618B2 (en) System and method for providing location profile data for network nodes
US6976030B2 (en) System and method for synchronizing distributed stored documents
EP1902394B1 (en) Moving data from file on storage volume to alternate location to free space
US6952699B2 (en) Method and system for migrating data while maintaining access to data with use of the same pathname
US7313603B2 (en) System and method for synchronizing unstructured documents
CN101415029B (en) File distribution method and device
CN1617139A (en) Electronic delivery file synchronization system and method
JP2010287036A (en) Storage server device and computer program
JP4265728B2 (en) Method for continuously updating data in a data server system
JP2006004024A (en) Program to be executed by the directory server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060405

Termination date: 20150903

EXPY Termination of patent right or utility model