CN1249597C - Synchronous system in distributed files and method - Google Patents
Synchronous system in distributed files and method Download PDFInfo
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
【技术领域】【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
主节点110包括一主数据库服务器113,一主应用服务器系统112及若干客户端111(图中仅画出一个)。主数据库服务器113用于存储企业相关的所有数据,并负责管理对数据库的读写和维护,能够迅速执行大量数据的更新和检索。主应用服务器系统112包括了企业信息系统中核心的和易变的企业逻辑(规划、运作方法、管理模式等),它的功能是接收输入,处理并返回结果。客户端111为系统应用的用户接口,负责接收用户输入及向用户展示系统处理结果。分支节点120、130的组成结构与主节点110相同。The
图2是本发明分布式文件同步系统及方法的分支节点120的结构图。分支节点120的客户端121包括一客户端代理程序201,用于将系统操作封装,使系统操作与用户操作分离,简化了用户操作。该客户端代理程序201包括一用户操作模块202、一数据库操作模块203及一文件操作模块205。分支节点120的分支应用服务器系统122包括一分支FTP(File TransferProtoco1)服务器207及一分支应用程序服务器209。FIG. 2 is a structural diagram of the
用户操作模块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
分支FTP服务器207用于存储文件,如文档、图像、声音及影像文件等。该分支FTP服务器207与企业内部网140相连,可通过企业内部网140与其它分支节点或主节点的FTP服务器进行文件传输操作。分支应用程序服务器209用于连接客户端121与分支数据库服务器123,将客户端121的数据库操作模块203对数据库操作的命令传递至分支数据库服务器123执行,并将分支数据库服务器123执行结果传送给数据库操作模块203。The
分支数据库服务器123存储了企业文件(如声音、图像、文档及影像等文件)的摘要信息,该摘要信息包括文件编号、存储位置及目录、更新日期等信息。该分支数据库服务器123中的文件摘要信息定时与主节点110的主数据库服务器113中的文件摘要信息同步。
图3是本发明分布式文件同步系统及方法的主节点110的结构图。主节点110的客户端111及主数据库服务器113的功能、组成与结构与分支节点120相同(见图2)。FIG. 3 is a structural diagram of the
主节点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
图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
图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
文件操作模块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
图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
同步控制模块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
Claims (9)
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)
| 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 |
-
2002
- 2002-09-03 CN CN 02134670 patent/CN1249597C/en not_active Expired - Fee Related
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 |