WO2017113694A1 - 文件同步方法、装置及系统 - Google Patents
文件同步方法、装置及系统 Download PDFInfo
- Publication number
- WO2017113694A1 WO2017113694A1 PCT/CN2016/088701 CN2016088701W WO2017113694A1 WO 2017113694 A1 WO2017113694 A1 WO 2017113694A1 CN 2016088701 W CN2016088701 W CN 2016088701W WO 2017113694 A1 WO2017113694 A1 WO 2017113694A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file
- synchronization
- synchronized
- database
- path
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a file synchronization method, apparatus, and system.
- the traditional implementation method is to scan the disk and synchronize the files to the cluster machine one by one.
- the files can only be synchronized to a single machine, and synchronization operations cannot be performed to multiple cluster machines at the same time, resulting in too long synchronization time when there are many files.
- the batch synchronization is not supported, and synchronization operations cannot be performed to multiple cluster machines at the same time, so that the synchronization time difference occurs, resulting in content omission.
- the present invention has been made in order to provide a file synchronization method, a file synchronization apparatus, and a corresponding file synchronization system that overcome the above problems or at least partially solve the above problems.
- a file synchronization method comprising:
- the file information is sent in parallel to the distributed cluster machine to synchronize the files to be synchronized to the distributed cluster machine.
- a file synchronization apparatus comprising:
- a receiving module configured to receive a file synchronization message that is sent by the publishing device and that carries a file path of the file to be synchronized
- Database suitable for storing file paths
- An obtaining module configured to obtain a file path from a database, and obtain file information of the file to be synchronized according to the file path;
- the sending module is adapted to send the file information to the distributed cluster machine in parallel to synchronize the files to be synchronized to the distributed cluster machine.
- a file synchronization system comprising the above file synchronization device, distribution device, and distributed cluster machine.
- the present invention utilizes the database to have the characteristics of high efficiency, stability, security, etc., and stores the file path to the database, which can realize the synchronization before the power failure of the equipment room or the restart of the machine, without re-synchronization.
- Synchronize files, save synchronization time, avoid unnecessary repetitive synchronization, database can store file paths of all updated files, thus enabling batch synchronization, and storing the file path of files to be synchronized to the database can avoid some files to be synchronized
- the defect that is not synchronized to the distributed cluster machine; the parallel synchronization of the files to be synchronized can simultaneously synchronize the files to be synchronized to multiple cluster machines, thereby avoiding the defect that some files to be synchronized are missed due to the difference of synchronization time.
- the files to be synchronized are synchronized in parallel, so that the synchronous operation between the machine and the machine does not affect each other.
- FIG. 1 shows a flow chart of a file synchronization method in accordance with one embodiment of the present invention
- FIG. 2 is a flow chart showing a file synchronization method according to another embodiment of the present invention.
- FIG. 3 is a block diagram showing the structure of a file synchronization apparatus according to an embodiment of the present invention.
- FIG. 4 is a block diagram showing the structure of a file synchronization apparatus according to another embodiment of the present invention.
- FIG. 5 is a block diagram showing the structure of a file synchronization system according to an embodiment of the present invention.
- Figure 6 is a schematic block diagram of a computing device for performing a file synchronization method in accordance with an embodiment of the present invention
- Fig. 7 schematically shows a storage unit for holding or carrying program code implementing a file synchronization method according to an embodiment of the present invention.
- FIG. 1 shows a flow chart of a file synchronization method in accordance with one embodiment of the present invention. As shown in Figure 1, the method includes the following steps:
- Step S100 Receive a file synchronization message sent by the publishing device that carries the file path of the file to be synchronized, and store the file path to the database.
- the file synchronization message is used to indicate that the file on the publishing device is updated, and the updated file needs to be synchronized to the distributed cluster machine, where the updated file is the file to be synchronized, where File updates include adding file content, modifying file content, or deleting file content.
- the database is highly efficient, stable, and secure, providing a guarantee for data storage.
- the database can store the file path of all the updated files, thereby enabling batch synchronization, and storing the file path of the file to be synchronized to the database can prevent the partially updated file from being synchronized to the distributed cluster. Defects in the machine.
- the synchronization can be continued after the power failure of the equipment room or the machine is restarted, without re-synchronizing the files to be synchronized, saving synchronization time and avoiding unnecessary repeated synchronization.
- Step S101 Obtain a file path from the database, and obtain file information of the file to be synchronized according to the file path.
- the step S101 is executed, the file path is obtained from the database, and the file information of the file to be synchronized is obtained according to the file path.
- the file information includes: file content and file attributes. .
- step S102 the file information is sent to the distributed cluster machine in parallel to synchronize the files to be synchronized to the distributed cluster machine.
- the synchronization of the files to be synchronized in a parallel manner can simultaneously synchronize the files to be synchronized to multiple cluster machines, thereby avoiding the defect that some files to be synchronized are missed due to the difference in synchronization time, and adopting parallelism.
- the mode synchronizes the files to be synchronized, so that the synchronization operation between the machine and the machine does not affect each other.
- the present invention utilizes the database to have the characteristics of high efficiency, stability, security, etc., and stores the file path to the database, which can realize the synchronization before the power failure of the equipment room or the restart of the machine, without restarting. All the files to be synchronized are synchronized, saving synchronization time and avoiding unnecessary repeated synchronization.
- the database can store the file path of all the updated files, so that batch synchronization can be realized, and the file path of the file to be synchronized can be stored in the database to avoid the part.
- the file to be synchronized is not synchronized to the distributed cluster machine.
- Synchronizing the files to be synchronized in parallel can realize simultaneous synchronization of the files to be synchronized to multiple cluster machines, thereby avoiding partial synchronization of files to be synchronized due to differences in synchronization time. Missing defects, while parallelizing the files to be synchronized, so that the synchronization between the machine and the machine does not affect each other, saving synchronization time.
- FIG. 2 shows a flow chart of a file synchronization method in accordance with one embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
- Step S200 Receive a file synchronization message that is sent by the publishing device and that carries a file path of the file to be synchronized, and store the file path to the database.
- the file synchronization message is used to indicate that the file on the publishing device has been updated, and the updated file needs to be synchronized to the distributed cluster machine.
- the file update includes adding the file content, modifying the file content, or deleting the file content
- the user updating the file is performed on the publishing device. Therefore, after the file is updated, the publishing device can learn The file path of the file, the publishing device encapsulates the file path into the synchronization message, and the publishing device sends a file synchronization message carrying the file path of the file to be synchronized, wherein the file to be synchronized refers to an update file that needs to be synchronized to the distributed cluster machine.
- the database is highly efficient, stable, and secure, providing a guarantee for data storage.
- the database can store the file path of all the updated files, thereby enabling batch synchronization, and storing the file path of the file to be synchronized to the database can prevent the partially updated file from being synchronized to the distributed cluster. Defects in the machine.
- the synchronization can be continued after the power failure of the equipment room or the machine is restarted, without re-synchronizing the files to be synchronized, saving synchronization time and avoiding unnecessary repeated synchronization.
- step S201 the storage time of the file path is recorded in the database.
- the storage time of the file path needs to be recorded in the database.
- the storage time of the file path can be used in the subsequent method steps to determine whether the file to be synchronized is synchronized to the distributed cluster machine in time.
- Step S202 Obtain a file path from the database, and obtain file information of the file to be synchronized according to the file path.
- the file information includes: a file content and a file attribute, where the file attribute includes: a file size, a file modification time, a file type, a file permission, a file password, and the file permission refers to reading the file, Write operation.
- the file content and file attributes of the file to be synchronized are obtained according to the file path.
- not only the file content is synchronized to the distributed cluster machine, but also Synchronize the file attributes to the distributed cluster machine to reproduce the files to be synchronized on the distributed cluster machine, so that the files on the distributed cluster machine are identical to the files on the publishing device, thereby ensuring that the distributed cluster machine is used to display the files to the user.
- the files are identical in all respects to the published device.
- step S203 the file information is sent to the distributed cluster machine in parallel to synchronize the files to be synchronized to the distributed cluster machine.
- file information can be sent to the distributed cluster machine in parallel through a TCP connection, for example, using a TCP long connection.
- TCP long connection refers to establishing a connection with a distributed cluster machine. After the connection is established, it does not disconnect, and then sends file information. Specifically, the connection request is sent to the distributed cluster machine, and after receiving the connection response message sent by the distributed cluster machine, a TCP long connection is established, and the file content and the file attribute are sent to the distributed cluster machine in parallel, and the distributed cluster machine receives The file contents and file attributes to be stored are stored, and the synchronization of the files to be synchronized is completed.
- the synchronization of the files to be synchronized in a parallel manner can simultaneously synchronize the files to be synchronized to multiple cluster machines, thereby avoiding the defect that some files to be synchronized are missed due to the difference in synchronization time, and adopting parallelism.
- the mode synchronizes the files to be synchronized, so that the synchronization operation between the machine and the machine does not affect each other.
- Step S204 Receive a synchronization completion message that is sent by the distributed cluster machine and carries a synchronization time.
- the synchronous clustering machine After the synchronous clustering machine synchronizes the file to be synchronized, it sends a synchronization completion message carrying the synchronization time. According to the synchronization completion message, the synchronization is completed.
- the synchronization time can be used to determine whether the file to be synchronized is used in the following method step. Is it timely to synchronize to the distributed cluster machine, whether there is a delay.
- Step S205 deleting the file path stored in the database according to the synchronization completion message.
- the synchronization completion message After receiving the synchronization completion message, it may be determined that the synchronization operation of the file to be synchronized is completed. After confirming that the synchronization is completed, deleting the file path stored in the database can avoid missing the file to be synchronized and repeating the synchronization operation on the same file to be synchronized. And you can save database space.
- step S206 it is detected whether the storage time matches the synchronization time. If the storage time does not match the synchronization time, step S207 is performed; if the storage time matches the synchronization time, the method ends.
- whether the storage time and the synchronization time are matched is mainly to detect whether the file to be synchronized is synchronized to the distributed cluster machine in time, and the storage time does not match the synchronization time, indicating that an abnormality may occur during the synchronization process, for example, Network jitter or network disconnection.
- step S207 a synchronization abnormality report is sent.
- the synchronization abnormality report may occur, and the operation and maintenance personnel perform troubleshooting according to the synchronization abnormality report to ensure that the subsequent synchronization operation can be performed in time.
- the present invention utilizes the database to have the characteristics of high efficiency, stability, security, etc., and stores the file path to the database, which can realize the synchronization before the power failure of the equipment room or the restart of the machine, without restarting. All the files to be synchronized are synchronized, saving synchronization time and avoiding unnecessary repeated synchronization.
- the database can store the file path of all the updated files, so that batch synchronization can be realized, and the file path of the file to be synchronized can be stored in the database to avoid the part.
- the file to be synchronized is not synchronized to the distributed cluster machine.
- Synchronizing the files to be synchronized in parallel can realize simultaneous synchronization of the files to be synchronized to multiple cluster machines, thereby avoiding partial synchronization of files to be synchronized due to differences in synchronization time. Missing defects, simultaneous synchronization of files to be synchronized in parallel, so that the synchronization operation between the machine and the machine does not affect each other; after receiving the synchronization completion message, according to the synchronization completion message, deleting the file path stored in the database, can avoid omission Waiting The file and the synchronous operation of the same file to be synchronized are repeated, and the database space can be saved.
- the storage time and the synchronization time match By detecting whether the storage time and the synchronization time match, it can be determined whether the file to be synchronized is synchronized in time, and the storage time does not match the synchronization time, indicating that the synchronization is in synchronization. An abnormality may occur during the process, and a synchronization exception report is sent. The operation and maintenance personnel perform troubleshooting according to the synchronization exception report to ensure that the subsequent synchronization operation can be performed in time.
- FIG. 3 is a block diagram showing the structure of a file synchronizing apparatus according to an embodiment of the present invention.
- the apparatus 300 includes a receiving module 310, a database 320, an obtaining module 330, and a sending module 340.
- the receiving module 310 is adapted to receive a file synchronization message that is sent by the publishing device and that carries a file path of the file to be synchronized.
- the database 320 is adapted to store a file path.
- the obtaining module 330 is adapted to obtain a file path from the database, and obtain file information of the file to be synchronized according to the file path.
- the sending module 340 is adapted to send the file information in parallel to the distributed cluster machine to synchronize the files to be synchronized to the distributed cluster machine.
- the present invention utilizes the database to have the characteristics of high efficiency, stability, security, etc., and stores the file path to the database, which can realize the synchronization before the power failure of the equipment room or the restart of the machine, without restarting. All the files to be synchronized are synchronized, saving synchronization time and avoiding unnecessary repeated synchronization.
- the database can store the file path of all the updated files, so that batch synchronization can be realized, and the file path of the file to be synchronized can be stored in the database to avoid the part.
- the file to be synchronized is not synchronized to the distributed cluster machine.
- Synchronizing the files to be synchronized in parallel can realize simultaneous synchronization of the files to be synchronized to multiple cluster machines, thereby avoiding partial synchronization of files to be synchronized due to differences in synchronization time. Missing defects, while parallelizing the files to be synchronized, so that the synchronization between the machine and the machine does not affect each other, saving synchronization time.
- FIG. 4 is a block diagram showing the structure of a file synchronizing apparatus according to another embodiment of the present invention.
- the apparatus 400 includes a receiving module 410, a database 420, an obtaining module 430, and a sending module 440.
- the receiving module 410 is adapted to receive a file synchronization message that is sent by the publishing device and that carries a file path of the file to be synchronized.
- the file synchronization message is used to indicate that the file on the publishing device has been updated, and the updated file needs to be synchronized to the distributed cluster machine.
- the database 420 is adapted to store a file path.
- the database is highly efficient, stable, and secure, providing a guarantee for data storage.
- the database can store the file path of all the updated files, thereby enabling batch synchronization, and storing the file path of the file to be synchronized to the database can avoid partial synchronization of files to be synchronized to the distributed cluster. Defects in the machine.
- the synchronization can be continued after the power failure of the equipment room or the machine is restarted, without re-synchronizing the files to be synchronized, saving synchronization time and avoiding unnecessary repeated synchronization.
- the obtaining module 430 is adapted to obtain a file path from the database, and obtain file information of the file to be synchronized according to the file path.
- the file information includes: a file content and a file attribute; wherein the file attributes include: a file size, a file modification time, a file type, a file permission, and a file password.
- the sending module 440 is adapted to send the file information to the distributed cluster machine in parallel to synchronize the files to be synchronized to the distributed cluster machine.
- file information can be sent to the distributed cluster machine in parallel through a TCP connection, for example, using a TCP long connection.
- the synchronization of the files to be synchronized in a parallel manner can simultaneously synchronize the files to be synchronized to multiple cluster machines, thereby avoiding the defect that some files to be synchronized are missed due to the difference in synchronization time, and adopting parallelism.
- the mode synchronizes the files to be synchronized, so that the synchronization operation between the machine and the machine does not affect each other.
- the receiving module 410 is further adapted to: receive a synchronization completion message that is sent by the distributed cluster machine and carries a synchronization time.
- the apparatus further includes a deletion module 450 adapted to delete a file path of the file to be synchronized stored in the database according to the synchronization completion message.
- the database 420 also records the storage time of the file path.
- the apparatus also includes a detection module 460 adapted to detect whether the storage time matches the synchronization time.
- the sending module 440 is further adapted to: send a synchronization exception report if the detection module detects that the storage time does not match the synchronization time.
- the present invention utilizes the database to have the characteristics of high efficiency, stability, security, etc., and stores the file path to the database, which can realize the synchronization before the power failure of the equipment room or the restart of the machine, without restarting. All the files to be synchronized are synchronized, saving synchronization time and avoiding unnecessary repeated synchronization.
- the database can store the file path of all the updated files, so that batch synchronization can be realized, and the file path of the file to be synchronized can be stored in the database to avoid the part.
- the file to be synchronized is not synchronized to the distributed cluster machine.
- Synchronizing the files to be synchronized in parallel can realize simultaneous synchronization of the files to be synchronized to multiple cluster machines, thereby avoiding partial synchronization of files to be synchronized due to differences in synchronization time. Missing defects while using parallel Synchronize the files to be synchronized, so that the synchronization operation between the machine and the machine does not affect each other; after receiving the synchronization completion message, delete the file path stored in the database according to the synchronization completion message, thereby avoiding missing the file to be synchronized and waiting for the same
- the synchronization file repeatedly performs the synchronization operation, and can save the database space.
- the storage time and the synchronization time match By detecting whether the storage time and the synchronization time match, it can be determined whether the file to be synchronized is synchronized in time, and the storage time does not match the synchronization time, indicating that an abnormality may occur during the synchronization process.
- the synchronization exception report is sent, and the operation and maintenance personnel perform troubleshooting according to the synchronization abnormality report to ensure that the subsequent synchronization operation can be performed in time.
- FIG. 5 is a block diagram showing the structure of a file synchronization system according to an embodiment of the present invention.
- the system 500 includes a file synchronization device 400, a distribution device 510, and a distributed cluster machine 520.
- the files to be synchronized are synchronized in a parallel manner, so that the files to be synchronized are simultaneously synchronized to the plurality of cluster machines, thereby avoiding the defect that some files to be synchronized are missed due to the difference in synchronization time.
- the files to be synchronized are synchronized in a parallel manner, so that the synchronization operation between the machine and the machine does not affect each other, the synchronization performance is good, and the synchronization speed is fast.
- modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
- the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
- any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
- Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
- the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
- a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components in accordance with embodiments of the present invention.
- the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
- a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals.
- Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
- Figure 6 illustrates a computing device that can implement a file synchronization method in accordance with the present invention.
- the computing device traditionally includes a processor 610 and a computer program product or computer readable medium in the form of a storage device 620.
- Storage device 620 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
- Storage device 620 has a storage space 630 that stores program code 631 for performing any of the method steps described above.
- storage space 630 storing program code may include separate implementations for Each of the various steps in the method is code 631.
- the program code can be read from or written to one or more computer program products.
- These computer program products include program code carriers such as a hard disk, a compact disk (CD), a memory card, or a floppy disk.
- a computer program product is typically a portable or fixed storage unit such as that shown in FIG.
- the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to storage device 620 in the computing device of FIG.
- the program code can be compressed, for example, in an appropriate form.
- the storage unit comprises computer readable code 631' for performing the steps of the method according to the invention, ie code that can be read by a processor such as 610, which when executed by the computing device causes the computing device Perform the various steps in the method described above.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Hardware Redundancy (AREA)
Abstract
一种文件同步方法、装置及系统。其中,方法包括:接收发布设备发送的携带有待同步文件的文件路径的文件同步消息,将文件路径存储至数据库(S100);从数据库获取文件路径,根据文件路径获取待同步文件的文件信息(S101);将文件信息并行发送至分布式集群机器,以将待同步文件同步至分布式集群机器(S102)。
Description
相关申请的交叉参考
本申请要求于2015年12月28日提交中国专利局、申请号为2015110010485、发明名称为“文件同步方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及通信技术领域,具体涉及一种文件同步方法、装置及系统。
随着互联网用户越来越多,互联网内容也越来越丰富,每个互联网应用经过长期积累都累计了很多内容资源,比如图片、静态文件等,单台机器已经远远不够装得下这些文件,这就需要分布式集群方式,使用N多台机器去承载。互联网内容每分每秒都在发生变动,最新的内容才更具有价值意义。但目前互联网发展迅速用户众多,早已过了一台机器就能满足需要的时代,一个访问量较大的网站往往需要很多台机器组成的集群来提供服务,内容一旦有变更就需要将这些内容快速同步到所有集群机器,以便用户及时获取最新信息。故服务器集群快速及时的同步和更新内容成为提升网站时效性和用户体验不可缺少的一环。
传统实现方式是通过扫描磁盘,逐个将文件同步给集群机器,此时,只能将文件同步至单个机器,并不能同时向多个集群机器执行同步操作,从而造成文件较多时,同步时间太长,且不支持批量同步,不能同时向多个集群机器执行同步操作,从而出现同步时间差,造成内容遗漏。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的文件同步方法、文件同步装置及相应的文件同步系统。
根据本发明的一个方面,提供了一种文件同步方法,该方法包括:
接收发布设备发送的携带有待同步文件的文件路径的文件同步消息,将文件路径存储至数据库;
从数据库获取文件路径,根据文件路径获取待同步文件的文件信息;
将文件信息并行发送至分布式集群机器,以将待同步文件同步至分布式集群机器。
根据本发明的另一方面,提供了一种文件同步装置,该装置包括:
接收模块,适于接收发布设备发送的携带有待同步文件的文件路径的文件同步消息;
数据库,适于存储文件路径;
获取模块,适于从数据库获取文件路径,根据文件路径获取待同步文件的文件信息;
发送模块,适于将文件信息并行发送至分布式集群机器,以将待同步文件同步至分布式集群机器。
根据本发明的另一方面,提供了一种文件同步系统,该系统包括上述文件同步装置、发布设备和分布式集群机器。
根据本发明提供的方案,本发明利用数据库具有高效稳定、安全等特性,将文件路径存储至数据库,可以实现在机房掉电、或机器宕机重启后继续之前的同步,而无需重新全部同步待同步文件,节省同步时间,避免不必要的重复同步,数据库可以存储已更新的全部文件的文件路径,从而能够实现批量同步,而且将待同步文件的文件路径存储至数据库能够避免发生部分待同步文件未被同步至分布式集群机器的缺陷;采用并行方式同步待同步文件可以实现同时将待同步文件同步至多个集群机器,从而避免了由于同步时间的差异,而造成部分待同步文件被遗漏的缺陷,同时采用并行方式同步待同步文件,使得机器与机器之间的同步操作互不影响。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图概述
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了根据本发明一个实施例的文件同步方法的流程图;
图2示出了根据本发明另一个实施例的文件同步方法的流程图;
图3示出了根据本发明一个实施例的文件同步装置的结构框图;
图4示出了根据本发明另一个实施例的文件同步装置的结构框图;
图5示出了根据本发明一个实施例的文件同步系统的结构框图;
图6示意性地示出了用于执行根据本发明实施例的文件同步方法的计算设备的框图;
图7示意性地示出了用于保持或者携带实现根据本发明实施例的文件同步方法的程序代码的存储单元。
本发明的较佳实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
图1示出了根据本发明一个实施例的文件同步方法的流程图。如图1所示,该方法包括以下步骤:
步骤S100,接收发布设备发送的携带有待同步文件的文件路径的文件同步消息,将文件路径存储至数据库。
其中,文件同步消息用于指示发布设备上的文件发生了更新,需要将更新的文件同步给分布式集群机器,这里更新的文件即为待同步的文件,其中,
文件更新包括增加文件内容、修改文件内容或删除文件内容等。
数据库具有高效稳定、安全等特性,为数据存储提供了保障。在本发明实施例中,数据库可以存储已更新的全部文件的文件路径,从而能够实现批量同步,而且将待同步文件的文件路径存储至数据库能够避免发生部分更新的文件未被同步至分布式集群机器的缺陷。此外,由于利用数据库存储文件路径,可以实现在机房掉电、或机器宕机重启后继续之前的同步,而无需重新全部同步待同步文件,节省同步时间,避免不必要的重复同步。
步骤S101,从数据库获取文件路径,根据文件路径获取待同步文件的文件信息。
在利用步骤S100将待同步文件的文件路径存储至数据库后,执行步骤S101,从数据库获取文件路径,根据文件路径获取待同步文件的文件信息,可选地,文件信息包括:文件内容和文件属性。
步骤S102,将文件信息并行发送至分布式集群机器,以将待同步文件同步至分布式集群机器。
在本发明实施例中,采用并行方式同步待同步文件可以实现同时将待同步文件同步至多个集群机器,从而避免了由于同步时间的差异,而造成部分待同步文件被遗漏的缺陷,同时采用并行方式同步待同步文件,使得机器与机器之间的同步操作互不影响。
根据本发明上述实施例提供的方法,本发明利用数据库具有高效稳定、安全等特性,将文件路径存储至数据库,可以实现在机房掉电、或机器宕机重启后继续之前的同步,而无需重新全部同步待同步文件,节省同步时间,避免不必要的重复同步,数据库可以存储已更新的全部文件的文件路径,从而能够实现批量同步,而且将待同步文件的文件路径存储至数据库能够避免发生部分待同步文件未被同步至分布式集群机器的缺陷;采用并行方式同步待同步文件可以实现同时将待同步文件同步至多个集群机器,从而避免了由于同步时间的差异,而造成部分待同步文件被遗漏的缺陷,同时采用并行方式同步待同步文件,使得机器与机器之间的同步操作互不影响,节省了同步时间。
图2示出了根据本发明一个实施例的文件同步方法的流程图。如图2所示,该方法包括以下步骤:
步骤S200,接收发布设备发送的携带有待同步文件的文件路径的文件同步消息,将文件路径存储至数据库。
其中,文件同步消息用于指示发布设备上的文件发生了更新,需要将更新的文件同步给分布式集群机器。
在本发明的实施例中,文件更新包括增加文件内容、修改文件内容或删除文件内容等,用户对文件更新的操作是在发布设备上进行的,因此,在文件发生更新后,发布设备可以获知文件的文件路径,发布设备将文件路径封装到同步消息中,发布设备发送携带有待同步文件的文件路径的文件同步消息,其中,待同步文件指需要同步至分布式集群机器的更新文件。
数据库具有高效稳定、安全等特性,为数据存储提供了保障。在本发明实施例中,数据库可以存储已更新的全部文件的文件路径,从而能够实现批量同步,而且将待同步文件的文件路径存储至数据库能够避免发生部分更新的文件未被同步至分布式集群机器的缺陷。此外,由于利用数据库存储文件路径,可以实现在机房掉电、或机器宕机重启后继续之前的同步,而无需重新全部同步待同步文件,节省同步时间,避免不必要的重复同步。
步骤S201,将文件路径的存储时间记录在数据库中。
在将文件路径存储至数据库后,还需要在数据库中记录文件路径的存储时间,文件路径的存储时间可在之后的方法步骤中用于判断待同步文件是否被及时同步至分布式集群机器。
步骤S202,从数据库获取文件路径,根据文件路径获取待同步文件的文件信息。
在本发明实施例中,文件信息包括:文件内容和文件属性,其中,文件属性包括:文件大小、文件修改时间、文件类型、文件的权限、文件的密码,文件的权限指对文件的读、写操作。具体地,根据文件路径获取待同步文件的文件内容和文件属性。
在本发明的实施例中,并不是仅将文件内容同步至分布式集群机器,还
将文件属性同步至分布式集群机器,以实现在分布式集群机器上再现待同步文件,使分布式集群机器上的文件与发布设备上的文件完全相同,从而保证利用分布式集群机器向用户展示的文件在各方面都与发布设备的相同。
步骤S203,将文件信息并行发送至分布式集群机器,以将待同步文件同步至分布式集群机器。
在本发明实施例中,可以通过TCP连接方式将文件信息并行发送至分布式集群机器,例如采用TCP长连接。
TCP长连接指与分布式集群机器先建立连接,连接建立后不断开,然后再发送文件信息。具体地,向分布式集群机器发送连接请求,在接收到分布式集群机器发送连接响应消息后,建立TCP长连接,将文件内容和文件属性并行发送至分布式集群机器,分布式集群机器将接收到的文件内容和文件属性进行存储,完成待同步文件的同步。
在本发明实施例中,采用并行方式同步待同步文件可以实现同时将待同步文件同步至多个集群机器,从而避免了由于同步时间的差异,而造成部分待同步文件被遗漏的缺陷,同时采用并行方式同步待同步文件,使得机器与机器之间的同步操作互不影响。
步骤S204,接收分布式集群机器发送的携带有同步时间的同步完成消息。
分布式集群机器在同步完待同步文件后,发送一携带有同步时间的同步完成消息,根据该同步完成消息可以获知同步已完成,同步时间可以在之后的方法步骤中用于判断待同步文件是否被及时同步至分布式集群机器,是否有延时。
步骤S205,根据同步完成消息删除数据库中存储的文件路径。
在接收到同步完成消息后,可以确定对待同步文件的同步操作已完成,在确认同步完成后,删除数据库中存储的文件路径,能够避免遗漏待同步文件以及对同一待同步文件重复执行同步操作,而且可以节省数据库空间。
步骤S206,检测存储时间与同步时间是否匹配,若存储时间与同步时间不匹配,则执行步骤S207;若存储时间与同步时间匹配,则方法结束。
在本步骤中,检测存储时间与同步时间是否匹配主要是为了检测待同步文件是否被及时同步至分布式集群机器,存储时间与同步时间不匹配,则说明在同步过程中可能出现异常,例如,网络抖动或者断网等。
步骤S207,发送同步异常报告。
在检测到存储时间与同步时间不匹配的情况下,可以发生同步异常报告,运维人员根据该同步异常报告进行问题排查,以保证之后的同步操作可以及时进行。
根据本发明上述实施例提供的方法,本发明利用数据库具有高效稳定、安全等特性,将文件路径存储至数据库,可以实现在机房掉电、或机器宕机重启后继续之前的同步,而无需重新全部同步待同步文件,节省同步时间,避免不必要的重复同步,数据库可以存储已更新的全部文件的文件路径,从而能够实现批量同步,而且将待同步文件的文件路径存储至数据库能够避免发生部分待同步文件未被同步至分布式集群机器的缺陷;采用并行方式同步待同步文件可以实现同时将待同步文件同步至多个集群机器,从而避免了由于同步时间的差异,而造成部分待同步文件被遗漏的缺陷,同时采用并行方式同步待同步文件,使得机器与机器之间的同步操作互不影响;在接收到同步完成消息后,根据同步完成消息,删除数据库中存储的文件路径,能够避免遗漏待同步文件以及对同一待同步文件重复执行同步操作,而且可以节省数据库空间;通过检测存储时间与同步时间是否匹配,可以判断待同步文件是否被及时同步,在存储时间与同步时间不匹配,说明在同步过程中可能出现异常,发送同步异常报告,运维人员根据该同步异常报告进行问题排查,以保证之后的同步操作可以及时进行。
图3示出了根据本发明一个实施例的文件同步装置的结构框图。如图3所示,该装置300包括:接收模块310、数据库320、获取模块330和发送模块340。
接收模块310,适于接收发布设备发送的携带有待同步文件的文件路径的文件同步消息。
数据库320,适于存储文件路径。
获取模块330,适于从数据库获取文件路径,根据文件路径获取待同步文件的文件信息。
发送模块340,适于将文件信息并行发送至分布式集群机器,以将待同步文件同步至分布式集群机器。
根据本发明上述实施例提供的装置,本发明利用数据库具有高效稳定、安全等特性,将文件路径存储至数据库,可以实现在机房掉电、或机器宕机重启后继续之前的同步,而无需重新全部同步待同步文件,节省同步时间,避免不必要的重复同步,数据库可以存储已更新的全部文件的文件路径,从而能够实现批量同步,而且将待同步文件的文件路径存储至数据库能够避免发生部分待同步文件未被同步至分布式集群机器的缺陷;采用并行方式同步待同步文件可以实现同时将待同步文件同步至多个集群机器,从而避免了由于同步时间的差异,而造成部分待同步文件被遗漏的缺陷,同时采用并行方式同步待同步文件,使得机器与机器之间的同步操作互不影响,节省了同步时间。
图4示出了根据本发明另一个实施例的文件同步装置的结构框图。如图4所示,该装置400包括:接收模块410、数据库420、获取模块430和发送模块440。
接收模块410,适于接收发布设备发送的携带有待同步文件的文件路径的文件同步消息。
其中,文件同步消息用于指示发布设备上的文件发生了更新,需要将更新的文件同步给分布式集群机器。
数据库420,适于存储文件路径。
数据库具有高效稳定、安全等特性,为数据存储提供了保障。在本发明实施例中,数据库可以存储已更新的全部文件的文件路径,从而能够实现批量同步,而且将待同步文件的文件路径存储至数据库能够避免发生部分待同步文件未被同步至分布式集群机器的缺陷。此外,由于利用数据库存储文件路径,可以实现在机房掉电、或机器宕机重启后继续之前的同步,而无需重新全部同步待同步文件,节省同步时间,避免不必要的重复同步。
获取模块430,适于从数据库获取文件路径,根据文件路径获取待同步文件的文件信息。
可选地,文件信息包括:文件内容和文件属性;其中,文件属性包括:文件大小、文件修改时间、文件类型、文件的权限、文件的密码。
发送模块440,适于将文件信息并行发送至分布式集群机器,以将待同步文件同步至分布式集群机器。
在本发明实施例中,可以通过TCP连接方式将文件信息并行发送至分布式集群机器,例如采用TCP长连接。
在本发明实施例中,采用并行方式同步待同步文件可以实现同时将待同步文件同步至多个集群机器,从而避免了由于同步时间的差异,而造成部分待同步文件被遗漏的缺陷,同时采用并行方式同步待同步文件,使得机器与机器之间的同步操作互不影响。
可选地,接收模块410进一步适于:接收分布式集群机器发送的携带有同步时间的同步完成消息。
该装置还包括:删除模块450,适于根据同步完成消息删除数据库中存储的待同步文件的文件路径。
可选地,数据库420还记录有文件路径的存储时间。
该装置还包括:检测模块460,适于检测存储时间与同步时间是否匹配。
发送模块440进一步适于:在检测模块检测到存储时间与同步时间不匹配的情况下,发送同步异常报告。
根据本发明上述实施例提供的装置,本发明利用数据库具有高效稳定、安全等特性,将文件路径存储至数据库,可以实现在机房掉电、或机器宕机重启后继续之前的同步,而无需重新全部同步待同步文件,节省同步时间,避免不必要的重复同步,数据库可以存储已更新的全部文件的文件路径,从而能够实现批量同步,而且将待同步文件的文件路径存储至数据库能够避免发生部分待同步文件未被同步至分布式集群机器的缺陷;采用并行方式同步待同步文件可以实现同时将待同步文件同步至多个集群机器,从而避免了由于同步时间的差异,而造成部分待同步文件被遗漏的缺陷,同时采用并行方
式同步待同步文件,使得机器与机器之间的同步操作互不影响;在接收到同步完成消息后,根据同步完成消息,删除数据库中存储的文件路径,能够避免遗漏待同步文件以及对同一待同步文件重复执行同步操作,而且可以节省数据库空间;通过检测存储时间与同步时间是否匹配,可以判断待同步文件是否被及时同步,在存储时间与同步时间不匹配,说明在同步过程中可能出现异常,发送同步异常报告,运维人员根据该同步异常报告进行问题排查,以保证之后的同步操作可以及时进行。
图5示出了根据本发明一个实施例的文件同步系统的结构框图。如图5所示,该系统500包括:文件同步装置400、发布设备510和分布式集群机器520。
根据本发明上述实施例提供的系统,采用并行方式同步待同步文件可以实现同时将待同步文件同步至多个集群机器,从而避免了由于同步时间的差异,而造成部分待同步文件被遗漏的缺陷,同时采用并行方式同步待同步文件,使得机器与机器之间的同步操作互不影响,同步性能好,同步速度快。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利
要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图6示出了可以实现根据本发明的文件同步方法的计算设备。该计算设备传统上包括处理器610和以存储设备620形式的计算机程序产品或者计算机可读介质。存储设备620可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储设备620具有存储用于执行上述方法中的任何方法步骤的程序代码631的存储空间630。例如,存储程序代码的存储空间630可以包括分别用于实现上面
的方法中的各种步骤的各个程序代码631。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘、紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为例如图7所示的便携式或者固定存储单元。该存储单元可以具有与图6的计算设备中的存储设备620类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行根据本发明的方法步骤的计算机可读代码631',即可以由诸如610之类的处理器读取的代码,当这些代码由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
Claims (9)
- 一种文件同步方法,其特征在于,所述方法包括:接收发布设备发送的携带有待同步文件的文件路径的文件同步消息,将所述文件路径存储至数据库;从所述数据库获取所述文件路径,根据所述文件路径获取所述待同步文件的文件信息;将所述文件信息并行发送至分布式集群机器,以将待同步文件同步至分布式集群机器。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:接收分布式集群机器发送的携带有同步时间的同步完成消息;根据所述同步完成消息删除所述数据库中存储的所述文件路径。
- 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:将所述文件路径的存储时间记录在所述数据库中;检测所述存储时间与所述同步时间是否匹配,若所述存储时间与所述同步时间不匹配,则发送同步异常报告。
- 根据权利要求1或2所述的方法,其特征在于,所述文件信息包括:文件内容和文件属性;其中,所述文件属性包括:文件大小、文件修改时间、文件类型、文件的权限、文件的密码。
- 一种文件同步装置,其特征在于,所述装置包括:接收模块,适于接收发布设备发送的携带有待同步文件的文件路径的文件同步消息;数据库,适于存储所述文件路径;获取模块,适于从所述数据库获取所述文件路径,根据所述文件路径获取所述待同步文件的文件信息;发送模块,适于将所述文件信息并行发送至分布式集群机器,以将待同步文件同步至分布式集群机器。
- 根据权利要求5所述的装置,其特征在于,所述接收模块进一步适于:接收分布式集群机器发送的携带有同步时间的同步完成消息;所述装置还包括:删除模块,适于根据所述同步完成消息删除所述数据库中存储的所述待同步文件的文件路径。
- 根据权利要求5或6所述的装置,其特征在于,所述数据库还记录有所述文件路径的存储时间;所述装置还包括:检测模块,适于检测所述存储时间与所述同步时间是否匹配;所述发送模块进一步适于:在所述检测模块检测到所述存储时间与所述同步时间不匹配的情况下,发送同步异常报告。
- 根据权利要求5或6所述的方法,其特征在于,所述文件信息包括:文件内容和文件属性;其中,所述文件属性包括:文件大小、文件修改时间、文件类型、文件的权限、文件的密码。
- 一种文件同步系统,其特征在于,所述系统包括权利要求5-8任一项所述文件同步装置、发布设备和分布式集群机器。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US15/244,145 US20170187800A1 (en) | 2015-12-28 | 2016-08-23 | File synchronization method, electronic device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511001048.5 | 2015-12-28 | ||
CN201511001048.5A CN105893447A (zh) | 2015-12-28 | 2015-12-28 | 文件同步方法、装置及系统 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US15/244,145 Continuation US20170187800A1 (en) | 2015-12-28 | 2016-08-23 | File synchronization method, electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017113694A1 true WO2017113694A1 (zh) | 2017-07-06 |
Family
ID=57002538
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/088701 WO2017113694A1 (zh) | 2015-12-28 | 2016-07-05 | 文件同步方法、装置及系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105893447A (zh) |
WO (1) | WO2017113694A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112187889A (zh) * | 2020-09-15 | 2021-01-05 | 中信银行股份有限公司 | 一种数据同步方法、装置及存储介质 |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109471901B (zh) * | 2017-08-18 | 2021-12-07 | 北京国双科技有限公司 | 一种数据同步方法及装置 |
CN109299116B (zh) * | 2018-12-05 | 2022-03-22 | 浪潮电子信息产业股份有限公司 | 一种数据同步方法、装置、设备及可读存储介质 |
CN111435342B (zh) * | 2019-01-14 | 2023-12-05 | 深圳市茁壮网络股份有限公司 | 海报的更新方法、更新系统以及管理系统 |
CN111352994B (zh) * | 2020-02-04 | 2023-04-18 | 浙江大华技术股份有限公司 | 数据同步方法以及相关设备、装置 |
CN113301101B (zh) * | 2021-02-01 | 2022-08-16 | 淘宝(中国)软件有限公司 | 分布式文件系统的数据传输方法以及装置 |
CN113127436B (zh) * | 2021-04-28 | 2023-07-25 | 北京奇艺世纪科技有限公司 | 一种数据同步方法、装置、服务器及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110307444A1 (en) * | 2010-06-11 | 2011-12-15 | Microsoft Corporation | Replicating server configuration data in distributed server environments |
CN103037005A (zh) * | 2012-12-21 | 2013-04-10 | 天闻数媒科技(北京)有限公司 | 在线存储服务的文件同步方法和装置 |
CN103679403A (zh) * | 2014-01-03 | 2014-03-26 | 北京神舟航天软件技术有限公司 | 一种分布式项目管理系统自动并行同步数据的方法 |
CN103970834A (zh) * | 2014-04-02 | 2014-08-06 | 浙江大学 | 一种异构数据库同步系统中增量数据同步故障的恢复方法 |
-
2015
- 2015-12-28 CN CN201511001048.5A patent/CN105893447A/zh active Pending
-
2016
- 2016-07-05 WO PCT/CN2016/088701 patent/WO2017113694A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110307444A1 (en) * | 2010-06-11 | 2011-12-15 | Microsoft Corporation | Replicating server configuration data in distributed server environments |
CN103037005A (zh) * | 2012-12-21 | 2013-04-10 | 天闻数媒科技(北京)有限公司 | 在线存储服务的文件同步方法和装置 |
CN103679403A (zh) * | 2014-01-03 | 2014-03-26 | 北京神舟航天软件技术有限公司 | 一种分布式项目管理系统自动并行同步数据的方法 |
CN103970834A (zh) * | 2014-04-02 | 2014-08-06 | 浙江大学 | 一种异构数据库同步系统中增量数据同步故障的恢复方法 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112187889A (zh) * | 2020-09-15 | 2021-01-05 | 中信银行股份有限公司 | 一种数据同步方法、装置及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN105893447A (zh) | 2016-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017113694A1 (zh) | 文件同步方法、装置及系统 | |
WO2016101752A1 (zh) | 数据同步方法及装置 | |
CN106815218B (zh) | 数据库访问方法、装置和数据库系统 | |
TWI512491B (zh) | 通訊系統及其相關資料同步方法 | |
JP6273927B2 (ja) | 情報処理システム,監視装置,監視プログラム,監視方法 | |
WO2018049983A1 (zh) | 数据同步方法、系统、同步获取方法及装置 | |
CN103379159B (zh) | 一种分布式Web站点数据同步的方法 | |
CN105824846B (zh) | 数据迁移方法及装置 | |
CN103761165B (zh) | 日志备份方法及装置 | |
CN104202375A (zh) | 同步数据的方法及系统 | |
JP5686034B2 (ja) | クラスタシステム、同期制御方法、サーバ装置および同期制御プログラム | |
WO2020224238A1 (zh) | 区块链节点的部署方法、装置、设备及存储介质 | |
CN105205154B (zh) | 数据迁移方法以及装置 | |
WO2019041930A1 (zh) | 巡检方法、装置、系统、计算机设备和存储介质 | |
WO2018233630A1 (zh) | 故障发现 | |
WO2011072552A1 (zh) | 一种访问文件资源的方法及装置 | |
CN110532123A (zh) | HBase系统的故障转移方法及装置 | |
CN110673941A (zh) | 多机房中微服务的迁移方法、电子设备及存储介质 | |
CN107580032B (zh) | 数据处理方法、装置及设备 | |
WO2019237574A1 (zh) | 一种数据库差异的识别方法及装置 | |
US8806159B2 (en) | Data storage resource management systems and methods | |
TW201335779A (zh) | 檔案同步系統及方法 | |
WO2019001021A1 (zh) | 数据处理方法、装置、系统、服务器及计算机存储介质 | |
CN109299116B (zh) | 一种数据同步方法、装置、设备及可读存储介质 | |
WO2015196844A1 (zh) | 任务分配方法、装置、系统和服务器 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16880495 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16880495 Country of ref document: EP Kind code of ref document: A1 |