技术领域technical field
本发明涉及通信技术领域,特别涉及一种数据同步方法、装置、服务器及存储介质。The present invention relates to the field of communication technology, in particular to a data synchronization method, device, server and storage medium.
背景技术Background technique
近年来,随着通信技术的发展以及数字设备硬件性能的快速更新,越来越多的用户拥有多台数字设备。例如,同一用户可以拥有一台办公PC、一台家庭娱乐PC以及一部智能手机,甚至还有一台平板电脑。In recent years, with the development of communication technology and the rapid update of hardware performance of digital devices, more and more users have multiple digital devices. For example, the same user can have a work PC, a home entertainment PC, a smartphone, and even a tablet.
另一方面,用户在多个不同设备上使用同一文件的需求日益增长。例如,用户需要在不同设备上实现对同一文件的编辑操作。为了提高多个用户设备之间对同一文件进行操作的安全性,将不同设备上对同一文件的操作同步到服务器上显得必要。On the other hand, there is an increasing need for users to use the same file on multiple different devices. For example, users need to implement editing operations on the same file on different devices. In order to improve the security of operations on the same file between multiple user devices, it is necessary to synchronize the operations on the same file on different devices to the server.
发明内容Contents of the invention
本发明实施例提供一种数据同步方法、装置、服务器及存储介质,可以提高数据同步的及时性。Embodiments of the present invention provide a data synchronization method, device, server and storage medium, which can improve the timeliness of data synchronization.
本发明实施例提供一种数据同步方法,包括:An embodiment of the present invention provides a data synchronization method, including:
当接收到数据同步请求时,获取当前账户下多个用户设备的待同步数据的数据版本标识,该多个用户设备为与该服务器建立数据同步机制的设备;When a data synchronization request is received, the data version identifiers of the data to be synchronized of multiple user equipments under the current account are obtained, and the multiple user equipments are equipments that have established a data synchronization mechanism with the server;
从获取到的多个数据版本标识中确定出最新的数据版本标识;Determining the latest data version identifier from the obtained multiple data version identifiers;
从当前账户下与该最新的数据版本标识对应的源设备获取该待同步数据;Obtain the data to be synchronized from the source device corresponding to the latest data version identifier under the current account;
将该服务器上的该待同步数据进行更新。The data to be synchronized on the server is updated.
相应的,本发明实施例还提供一种数据同步装置,包括:Correspondingly, the embodiment of the present invention also provides a data synchronization device, including:
第一获取模块,用于当接收到数据同步请求时,获取当前账户下多个用户设备的待同步数据的数据版本标识,该多个用户设备为与该服务器建立数据同步机制的设备;The first acquisition module is configured to acquire, when a data synchronization request is received, the data version identifiers of the data to be synchronized of multiple user equipments under the current account, where the multiple user equipments are equipments that have established a data synchronization mechanism with the server;
第一确定模块,用于从获取到的多个数据版本标识中确定出最新的数据版本标识;The first determination module is used to determine the latest data version identification from the obtained multiple data version identifications;
第二获取模块,用于从当前账户下与该最新的数据版本标识对应的源设备获取该待同步数据;The second obtaining module is used to obtain the data to be synchronized from the source device corresponding to the latest data version identifier under the current account;
同步模块,用于将该服务器上的该待同步数据进行更新。The synchronization module is used to update the data to be synchronized on the server.
相应的,本发明实施例还提供一种服务器,包括:Correspondingly, the embodiment of the present invention also provides a server, including:
存储有可执行程序代码的存储器;a memory storing executable program code;
与该存储器耦合的处理器;a processor coupled to the memory;
该处理器调用该存储器中存储的该可执行程序代码,执行上述数据同步方法。The processor invokes the executable program code stored in the memory to execute the above data synchronization method.
相应的,本发明实施例还提供一种存储介质,该存储介质中存储有多条指令,该指令适于由处理器加载以执行上述数据同步方法。Correspondingly, an embodiment of the present invention also provides a storage medium, in which a plurality of instructions are stored, and the instructions are suitable for being loaded by a processor to execute the above data synchronization method.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to these drawings without creative work.
图1是本发明实施例提供的数据同步方法的流程示意图。FIG. 1 is a schematic flowchart of a data synchronization method provided by an embodiment of the present invention.
图2是本发明实施例提供的数据同步方法的另一流程示意图。FIG. 2 is another schematic flowchart of a data synchronization method provided by an embodiment of the present invention.
图3是本发明实施例提供的数据同步方法的又一流程示意图。Fig. 3 is another schematic flowchart of a data synchronization method provided by an embodiment of the present invention.
图4是本发明实施例提供的数据同步方法的应用场景示意图。Fig. 4 is a schematic diagram of an application scenario of a data synchronization method provided by an embodiment of the present invention.
图5是本发明实施例提供的数据同步方法的另一应用场景示意图。Fig. 5 is a schematic diagram of another application scenario of the data synchronization method provided by the embodiment of the present invention.
图6是本发明实施例提供的数据同步方法的又一应用场景示意图。Fig. 6 is a schematic diagram of another application scenario of the data synchronization method provided by the embodiment of the present invention.
图7是本发明实施例提供的数据同步装置的结构示意图。Fig. 7 is a schematic structural diagram of a data synchronization device provided by an embodiment of the present invention.
图8是本发明实施例提供的数据同步装置的另一结构示意图。Fig. 8 is another schematic structural diagram of a data synchronization device provided by an embodiment of the present invention.
图9是本发明实施例提供的数据同步装置的又一结构示意图。FIG. 9 is another schematic structural diagram of a data synchronization device provided by an embodiment of the present invention.
图10是本发明实施例提供的数据同步装置的再一结构示意图。Fig. 10 is another schematic structural diagram of the data synchronization device provided by the embodiment of the present invention.
图11是本发明实施例提供的服务器的结构示意图。FIG. 11 is a schematic structural diagram of a server provided by an embodiment of the present invention.
图12是本发明实施例提供的服务器的另一结构示意图。Fig. 12 is another schematic structural diagram of a server provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
本发明的说明书和权利要求书以及上述附图中的术语“第一”、“第二”、“第三”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应当理解,这样描述的对象在适当情况下可以互换。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤的过程、方法或包含了一系列模块或单元的装置、计算机设备、系统不必限于清楚地列出的那些步骤或模块或单元,还可以包括没有清楚地列出的步骤或模块或单元,也可以包括对于这些过程、方法、装置、计算机设备或系统固有的其它步骤或模块或单元。The terms "first", "second", "third", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects and not necessarily to describe a specific order or sequentially. It should be understood that the items so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, a method comprising a series of steps, or an apparatus comprising a series of modules or units, a computer device, a system are not necessarily limited to those steps or modules or units clearly listed, and may also include steps not clearly listed or modules or units, may also include other steps or modules or units inherent to these processes, methods, apparatuses, computer equipment or systems.
一种数据同步方法,该方法可以应用于服务器中。如图1所示,该数据同步方法,可以包括以下步骤:A data synchronization method, which can be applied to a server. As shown in Figure 1, the data synchronization method may include the following steps:
S110,当接收到数据同步请求时,获取当前账户下多个用户设备的待同步数据的数据版本标识,该多个用户设备为与服务器建立数据同步机制的设备。S110. When a data synchronization request is received, obtain data version identifiers of data to be synchronized of multiple user equipments under the current account, where the multiple user equipments are equipments that have established a data synchronization mechanism with the server.
在一些实施例中,当服务器接收到数据同步请求时,从当前用户已经登录的账户下与该服务器建立数据同步机制的多个用户设备获取该多个用户设备的待同步数据的数据版本标识。该多个用户设备包括但不限于智能手机、平板电脑、个人PC等电子设备。In some embodiments, when the server receives the data synchronization request, it obtains the data version identifiers of the data to be synchronized of the multiple user devices from the multiple user devices that have established a data synchronization mechanism with the server under the account that the current user has logged in. The multiple user devices include but are not limited to smart phones, tablet computers, personal PCs and other electronic devices.
其中,待同步数据可以包括相册、通讯录、通话记录、短信、浏览器记录、便签等数据中的一种或多种。Wherein, the data to be synchronized may include one or more of data such as photo albums, address books, call records, short messages, browser records, and memos.
其中,该数据同步请求用于完成服务器与当前用户的多个用户设备之间的数据同步。可以理解的,当前用户为当前在该服务器上登录的账户所属的用户。该数据同步请求可以是该多个用户设备中的某个设备发送给服务器的,也可以是该服务器自行发起的。例如,每当该多个用户设备中的某个设备上的数据发生更改时,该设备自动向服务器发送数据同步请求。再例如,每当时间到达预设定时时,服务器自行发起数据同步请求,并对该数据同步请求进行处理。Wherein, the data synchronization request is used to complete data synchronization between the server and multiple user equipments of the current user. It can be understood that the current user is the user who belongs to the account currently logged in on the server. The data synchronization request may be sent to the server by one of the multiple user devices, or initiated by the server itself. For example, whenever data on a certain device among the plurality of user devices changes, the device automatically sends a data synchronization request to the server. For another example, whenever the time reaches the preset timing, the server initiates a data synchronization request by itself, and processes the data synchronization request.
数据同步机制用于在该多个用户设备与服务器之间建立数据同步关系。即每当该多个用户设备中的某个设备上的数据发生更改时,也在服务器上进行对应的修改;或者每当服务器上的数据发生更改时,也在该多个用户设备上进行对应的修改。The data synchronization mechanism is used to establish a data synchronization relationship between the multiple user equipments and the server. That is, whenever the data on one of the multiple user devices changes, the corresponding modification is also performed on the server; or whenever the data on the server changes, the corresponding modification is also performed on the multiple user devices Modifications.
该多个用户设备中的每个设备以及服务器上都预先设置有数据版本标识。数据版本标识用于记录设备上的数据版本,以通过该数据版本标识对比该设备上的数据与服务器上的数据之间的差异。例如,数据版本标识可以包括数据的版本号。数据的版本号越高,表示数据最后更新的时间距离当前时间越短。其中,数据的版本号可以与该数据发生更改时的时刻相关联。同一个设备上的数据在不同时刻发生更改时,数据版本号是不同的。不同设备上的同一类数据在不同时刻发生更改时,数据版本号也是不同的。每当某个设备与服务器进行过数据同步后,即对该设备与服务器上的数据版本标识进行更新。Each of the plurality of user equipments and the server is pre-set with a data version identifier. The data version identifier is used to record the data version on the device, so as to compare the difference between the data on the device and the data on the server through the data version identifier. For example, the data version identification may include a version number of the data. The higher the version number of the data, the shorter the time since the last update of the data is from the current time. Wherein, the version number of the data may be associated with the moment when the data is changed. When the data on the same device changes at different times, the data version number is different. When the same type of data on different devices changes at different times, the data version numbers are also different. Whenever a certain device has synchronized data with the server, the data version identifiers on the device and the server are updated.
其中,可以对每个设备上的所有数据设置一个统一的数据版本标识,也即一个设备只有一个数据版本标识。也可以对每个设备上不同类型的数据分别设置数据版本标识。例如,对通讯数据设置一个数据版本标识,对相册数据设置一个数据版本标识,对其他数据设置一个数据版本标识。此时,每当在服务器上进行数据同步时,只对发生更改的类型数据进行同步。Wherein, a unified data version identifier can be set for all data on each device, that is, a device has only one data version identifier. Data version identifiers may also be set for different types of data on each device. For example, a data version identifier is set for communication data, a data version identifier is set for album data, and a data version identifier is set for other data. At this point, whenever data is synchronized on the server, only the changed type data is synchronized.
参考图4,服务器与多个电子设备A、B、C、D之间组成数据同步系统。设备A、B、C、D都与服务器之间建立通讯。每个设备以及服务器上都设置有数据版本标识,该数据版本标识可以包括时间戳。该时间戳可以是某个设备最近一次与服务器进行数据同步的时间。Referring to FIG. 4 , a data synchronization system is formed between the server and multiple electronic devices A, B, C, and D. Devices A, B, C, and D all establish communication with the server. Each device and server is provided with a data version identifier, and the data version identifier may include a time stamp. The timestamp may be the last time a device synchronized data with the server.
需要注意的是,在上述数据同步系统中,用户可以对设备A、B、C、D中任一设备上的数据进行操作,但不能对服务器上的数据直接进行操作。该操作包括但不限于添加、删除、修改、访问文件等操作。It should be noted that, in the above data synchronization system, the user can operate on the data on any of the devices A, B, C, and D, but cannot directly operate on the data on the server. This operation includes, but is not limited to, operations such as adding, deleting, modifying, and accessing files.
在一些实施例中,用户可以通过个人PC(或者其他设备)登录到服务器中的个人账户,并对个人账户中的文件进行操作。该操作视为用户对个人PC(或者其他设备)的操作,而不是对服务器的操作,该个人PC(或者其他设备)理解为数据同步系统中的设备。In some embodiments, the user can log in to a personal account in the server through a personal PC (or other devices), and operate files in the personal account. This operation is regarded as the user's operation on the personal PC (or other device), rather than the operation on the server, and the personal PC (or other device) is understood as a device in the data synchronization system.
在一些实施例中,如图2所示,当接收到数据同步请求时,获取多个用户设备的数据版本标识可以包括以下步骤:In some embodiments, as shown in FIG. 2, when a data synchronization request is received, acquiring data version identifiers of multiple user equipments may include the following steps:
S111,每间隔预设周期时,生成数据同步请求;S111, generating a data synchronization request every preset period;
S112,根据该数据同步请求获取多个用户设备的数据版本标识。S112. Acquire data version identifiers of multiple user equipments according to the data synchronization request.
在一些实施例中,可以在服务器上设置定时,每当时间到达该定时,服务器即自动触发数据同步操作。例如,用户可以设置服务器每天上午8时自动进行数据同步操作。则服务器在运行过程中,定时系统持续判断当前时间是否为该预设时间。若是预设时间,则服务器的定时系统自动生成数据同步请求。服务器的处理器接收该数据同步请求,并根据该数据同步请求获取上述多个用户设备的数据版本标识。In some embodiments, a timing can be set on the server, and whenever the timing reaches the timing, the server automatically triggers a data synchronization operation. For example, the user can set the server to automatically perform data synchronization at 8 am every day. Then, during the running of the server, the timing system continues to judge whether the current time is the preset time. If it is the preset time, the timing system of the server will automatically generate a data synchronization request. The processor of the server receives the data synchronization request, and obtains the data version identifiers of the plurality of user equipments according to the data synchronization request.
需要说明的是,上述定时同步操作仅为举例。在一些实施例中,用户可以在服务器上设置一个预设周期。每间隔该预设周期时,服务器即自动生成数据同步请求,随后根据该数据同步请求获取上述多个用户设备的数据版本标识。例如,该预设周期可以为10分钟。则服务器每间隔10分钟即自动生成数据同步请求,并进行数据同步操作。It should be noted that the above timing synchronization operation is only an example. In some embodiments, the user can set a preset period on the server. At each interval of the preset period, the server automatically generates a data synchronization request, and then obtains the data version identifiers of the plurality of user equipments according to the data synchronization request. For example, the preset period may be 10 minutes. Then the server automatically generates a data synchronization request every 10 minutes and performs data synchronization operations.
S120,从获取到的多个数据版本标识中确定出最新的数据版本标识。S120. Determine the latest data version identifier from the acquired multiple data version identifiers.
在一些实施例中,服务器获取到多个用户设备的数据版本标识后,从该多个数据版本标识中确定出最新的数据版本标识。该最新的数据版本标识表示在上述数据同步系统中,与该最新的数据版本标识对应的设备上的数据是最新的。In some embodiments, after the server acquires the data version identifiers of the multiple user equipments, it determines the latest data version identifier from the multiple data version identifiers. The latest data version identifier indicates that in the above data synchronization system, the data on the device corresponding to the latest data version identifier is the latest.
例如,用户对设备A上的数据进行过操作,随后又对设备B上的数据进行过操作,最后对设备C上的数据进行过操作,此后未对设备A、B、C、D中的任一设备进行过操作,则设备C上的数据是最新的数据,设备C对应的数据版本标识为最新的数据版本标识。For example, the user has operated on the data on device A, then operated on the data on device B, and finally operated on the data on device C, and has not operated on any of devices A, B, C, or D since then. If a device has been operated, the data on device C is the latest data, and the data version identifier corresponding to device C is the latest data version identifier.
在一些实施例中,如图2所示,数据版本标识可以包括时间戳,从获取到的多个数据版本标识中确定出最新的数据版本标识可以包括以下步骤:In some embodiments, as shown in FIG. 2, the data version identifier may include a time stamp, and determining the latest data version identifier from the acquired multiple data version identifiers may include the following steps:
S121,从多个数据版本标识中提取各自的时间戳;S121. Extract respective time stamps from multiple data version identifiers;
S122,从提取到的多个时间戳中确定出距离当前时间最近的时间戳;S122. Determine the timestamp closest to the current time from the extracted multiple timestamps;
S123,将该距离当前时间最近的时间戳对应的数据版本标识确定为最新的数据版本标识。S123. Determine the data version identifier corresponding to the timestamp closest to the current time as the latest data version identifier.
其中,数据版本标识中可以包括时间戳,该时间戳可以是某个设备最近一次与服务器进行数据同步的时间。例如,设备A最近一次与服务器进行数据同步的时间为2017年2月10日上午8时,则设备A的数据版本标识中的时间戳可以是201702100800。Wherein, the data version identifier may include a time stamp, and the time stamp may be the last time when a certain device performs data synchronization with the server. For example, the latest data synchronization time between device A and the server is 8 am on February 10, 2017, then the time stamp in the data version identifier of device A may be 201702100800.
服务器获取到多个用户设备的数据版本标识后,从多个数据版本标识中提取各个数据版本标识的时间戳。随后,将提取到的时间戳所表示的时间与当前时间进行比较,从而确定出距离当前时间最近的时间戳,并将该时间戳对应的数据版本标识确定为最新的数据版本标识。After acquiring the data version identifiers of the multiple user equipments, the server extracts the time stamps of each data version identifier from the multiple data version identifiers. Subsequently, the time represented by the extracted timestamp is compared with the current time, thereby determining the timestamp closest to the current time, and determining the data version identifier corresponding to the timestamp as the latest data version identifier.
例如,设备D的数据版本标识中的时间戳201702140800所表示的时间距离当前时间最近,则可以确定出该时间戳为距离当前时间最近的时间戳。随后,将设备D的数据版本标识确定为最新的数据版本标识。For example, if the time represented by the timestamp 201702140800 in the data version identifier of device D is the closest to the current time, it can be determined that the timestamp is the closest to the current time. Subsequently, the data version identifier of device D is determined as the latest data version identifier.
在一些实施例中,服务器可以对提取到的多个时间戳进行校验,以从提取到的多个时间戳中确定出符合预设条件的时间戳。其中,预设条件可以是预先针对时间戳设置的格式等条件。In some embodiments, the server may verify the multiple extracted timestamps, so as to determine a timestamp that meets a preset condition from the multiple extracted timestamps. Wherein, the preset condition may be a condition such as a format set in advance for the timestamp.
例如,预设条件可以限定时间戳的长度为12位数。由于服务器或多个用户设备在对时间戳进行更新和管理的过程中可能会出现错误,又或者在服务器与用户设备之间的数据传输过程中出现错误,会导致服务器提取到的时间戳格式不符合条件,例如,提取到的时间戳不是12位数。For example, the preset condition may limit the length of the time stamp to 12 digits. Because errors may occur in the process of updating and managing the time stamp by the server or multiple user devices, or errors may occur in the data transmission process between the server and the user device, the format of the time stamp extracted by the server may be incorrect. The conditions are met, for example, the extracted timestamp is not 12 digits.
服务器对提取到的多个时间戳进行校验后,根据符合预设条件的时间戳来确定最新的数据版本标识。例如,从符合预设条件的时间戳中确定出与当前时间最近的时间戳,然后将该时间戳对应的数据版本标识确定为最新的数据版本标识。After the server verifies the multiple extracted time stamps, it determines the latest data version identifier according to the time stamps that meet the preset conditions. For example, the timestamp that is the latest to the current time is determined from the timestamps meeting the preset conditions, and then the data version identifier corresponding to the timestamp is determined as the latest data version identifier.
S130,从该最新的数据版本标识对应的源设备获取该待同步数据;S130. Obtain the data to be synchronized from the source device corresponding to the latest data version identifier;
S140,将该服务器上的该待同步数据进行更新。S140. Update the data to be synchronized on the server.
在一些实施例中,服务器确定出最新的数据版本标识后,即可从该最新的数据版本标识对应的源设备获取待同步数据,并将服务器上的该待同步数据进行更新。In some embodiments, after the server determines the latest data version identifier, it can obtain the data to be synchronized from the source device corresponding to the latest data version identifier, and update the data to be synchronized on the server.
其中,源设备为该多个用户设备中与该最新的数据版本标识对应的设备。当一个设备只有一个数据版本标识时,待同步数据为源设备上的所有数据。当一个设备上不同类型的数据具有不同的数据版本标识时,待同步数据为源设备上发生更改的类型数据。Wherein, the source device is the device corresponding to the latest data version identifier among the plurality of user devices. When a device has only one data version identifier, the data to be synchronized is all data on the source device. When different types of data on a device have different data version identifiers, the data to be synchronized is the type of data that has changed on the source device.
其中,服务器上的用户账户可以保持登录状态。服务器获取到待同步数据后,将该待同步数据存储到当前用户账户下的文件目录,此时即可完成服务器与源设备之间的数据同步。Wherein, the user account on the server may remain logged in. After the server obtains the data to be synchronized, it stores the data to be synchronized in the file directory under the current user account, and at this time, the data synchronization between the server and the source device can be completed.
在一些实施例中,如图3所示,将该待同步数据存储到服务器后,该数据同步方法还可以包括以下步骤:In some embodiments, as shown in FIG. 3, after the data to be synchronized is stored in the server, the data synchronization method may further include the following steps:
S150,获取该服务器上的该待同步数据的时间戳;S150, acquiring the time stamp of the data to be synchronized on the server;
S160,将该服务器上的该待同步数据的时间戳修改为当前时间。S160. Modify the time stamp of the data to be synchronized on the server to the current time.
在一些实施例中,服务器完成数据同步后,可以对服务器上的待同步数据的时间戳进行更新。In some embodiments, after the server completes the data synchronization, the time stamp of the data to be synchronized on the server may be updated.
其中,当多个用户设备中的某个设备上的数据发生更改时,该设备可以向服务器发送数据同步请求。服务器完成与该设备之间的数据同步后,将服务器自身的数据版本标识中的时间戳修改为当前时间。同时,服务器还可以向该设备发送时间戳修改指令。该设备接收到该时间戳修改指令后,根据该指令将自身数据版本标识中的时间戳修改为当前时间。此时,即可完成服务器和源设备的数据版本标识中的时间戳更新。Wherein, when data on a certain device among the plurality of user devices changes, the device may send a data synchronization request to the server. After the server completes data synchronization with the device, the time stamp in the server's own data version identifier is modified to the current time. At the same time, the server can also send a time stamp modification instruction to the device. After receiving the timestamp modification instruction, the device modifies the timestamp in its own data version identifier to the current time according to the instruction. At this point, the timestamp update in the data version identification of the server and the source device can be completed.
在一些实施例中,如图3所示,将该待同步数据存储到服务器后,该数据同步方法还可以包括以下步骤:In some embodiments, as shown in FIG. 3, after the data to be synchronized is stored in the server, the data synchronization method may further include the following steps:
S170,确定目标设备,该目标设备为该多个用户设备中数据版本标识不同于该源设备的数据版本标识的设备;S170. Determine a target device, where the target device is a device whose data version identifier is different from the data version identifier of the source device among the plurality of user devices;
S180,向目标设备推送数据更新信息。S180. Push data update information to the target device.
在一些实施例中,服务器完成与源设备之间的数据同步后,可以进一步完成与剩余设备之间的数据同步。In some embodiments, after the server completes the data synchronization with the source device, it can further complete the data synchronization with the remaining devices.
其中,服务器完成数据同步后,可以确定目标设备。目标设备即为该多个用户设备中数据版本标识不同于该源设备的数据版本标识的设备。例如,设备A、B、C、D中,设备D为源设备,设备A、B、C的数据版本标识都与设备D的数据版本标识不同,则可以确定出目标设备包括设备A、B、C。Wherein, after the server completes the data synchronization, the target device can be determined. The target device is the device whose data version identifier is different from the data version identifier of the source device among the plurality of user devices. For example, among devices A, B, C, and D, if device D is the source device, and the data version identifiers of devices A, B, and C are all different from those of device D, it can be determined that the target devices include devices A, B, c.
其中,服务器可以通过数据版本标识中的时间戳来确定目标设备。例如,设备D为源设备,设备A、B、C的数据版本标识中的时间戳都与设备D的数据版本标识中的时间戳不同,则可以将设备A、B、C确定为目标设备。Wherein, the server may determine the target device through the time stamp in the data version identifier. For example, if device D is the source device, and the time stamps in the data version identifiers of devices A, B, and C are all different from those in the data version identifier of device D, then devices A, B, and C can be determined as target devices.
服务器确定目标设备后,向该目标设备推送数据更新信息。该数据更新信息用于使该目标设备从该服务器获取上述待同步数据。目标设备接收到服务器推送的数据更新信息后,从服务器获取待同步数据,以完成目标设备上的数据同步。进一步的,目标设备完成数据同步后,可以更新数据版本标识中的时间戳,将该时间戳修改为服务器的数据版本标识中的时间戳。After the server determines the target device, it pushes data update information to the target device. The data update information is used to enable the target device to obtain the data to be synchronized from the server. After the target device receives the data update information pushed by the server, it obtains the data to be synchronized from the server, so as to complete the data synchronization on the target device. Further, after the target device completes the data synchronization, it may update the timestamp in the data version identifier, and modify the timestamp to the timestamp in the data version identifier of the server.
参考图5,数据同步系统中的数据同步过程可以分为服务器数据同步与目标设备数据同步两个阶段。服务器数据同步阶段,服务器接收源设备发送的数据同步请求,或者接收服务器自身生成的数据同步请求,然后从源设备获取待同步数据,随后进行服务器上的数据更新。Referring to FIG. 5 , the data synchronization process in the data synchronization system can be divided into two stages: server data synchronization and target device data synchronization. In the server data synchronization stage, the server receives the data synchronization request sent by the source device, or receives the data synchronization request generated by the server itself, and then obtains the data to be synchronized from the source device, and then updates the data on the server.
目标设备数据同步阶段,目标设备接收服务器推送的数据更新信息,然后目标设备从服务器获取待同步数据,随后进行目标设备上的数据更新。In the data synchronization stage of the target device, the target device receives the data update information pushed by the server, and then the target device obtains the data to be synchronized from the server, and then updates the data on the target device.
参考图6,服务器与目标设备都完成数据同步后,服务器、源设备、目标设备上的数据都保持一致,并且服务器、源设备、目标设备上的数据版本标识也都保持一致。其中,可以使服务器、源设备、目标设备上的数据版本标识中的时间戳都保持一致。Referring to FIG. 6, after the server and the target device complete data synchronization, the data on the server, the source device, and the target device are consistent, and the data version identifiers on the server, source device, and target device are also consistent. Wherein, the time stamps in the data version identifiers on the server, the source device, and the target device can be kept consistent.
具体实施时,本发明不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present invention is not limited by the execution order of the described steps, and some steps may be performed in other orders or simultaneously if no conflict arises.
例如,当服务器接收到用户手机端发送的相册同步请求时,则从手机、平板电脑、个人计算机分别获取各个设备上的相册版本标识。随后,从获取到的多个相册版本标识中确定出最新的版本标识。例如,手机端的相册版本标识为最新的版本标识,则从手机端获取待同步的照片,随后将待同步的照片存储到服务器。进一步的,服务器可以在完成服务器端的同步后,将该待同步的照片分别发送到平板电脑、个人计算机。随后,平板电脑、个人计算机分别将接收到的照片进行存储。For example, when the server receives the photo album synchronization request sent by the user's mobile phone, it obtains the photo album version identification on each device from the mobile phone, tablet computer, and personal computer respectively. Subsequently, the latest version identifier is determined from the acquired plurality of album version identifiers. For example, if the album version identification of the mobile phone is the latest version identification, the photo to be synchronized is obtained from the mobile phone, and then the photo to be synchronized is stored in the server. Further, after the server-side synchronization is completed, the server can send the photos to be synchronized to the tablet computer and the personal computer respectively. Subsequently, the tablet computer and the personal computer store the received photos respectively.
再例如,当服务器接收到用户手机端发送的通讯录同步请求时,则从手机、平板电脑、个人计算机分别获取各个设备上的通讯录版本标识。随后,从获取到的多个通讯录版本标识中确定出最新的版本标识。例如,手机端的通讯录版本标识为最新的版本标识,则从手机端获取待同步的通讯录信息,随后将待同步的通讯录信息存储到服务器。进一步的,服务器可以在完成服务器端的同步后,将该待同步的通讯录信息分别发送到平板电脑、个人计算机。随后,平板电脑、个人计算机分别将接收到的通讯录信息进行存储。For another example, when the server receives the address book synchronization request sent by the user's mobile phone, it obtains the address book version identifiers on each device from the mobile phone, tablet computer, and personal computer respectively. Subsequently, the latest version identifier is determined from the obtained plurality of address book version identifiers. For example, if the version identification of the address book on the mobile phone is the latest version identification, the address book information to be synchronized is obtained from the mobile phone, and then the address book information to be synchronized is stored in the server. Further, the server can send the address book information to be synchronized to the tablet computer and the personal computer respectively after completing the server-side synchronization. Subsequently, the tablet computer and the personal computer respectively store the received address book information.
由上可知,本发明实施例提供的数据同步方法,当接收到数据同步请求时,获取当前账户下多个用户设备的待同步数据的数据版本标识;从获取到的多个数据版本标识中确定出最新的数据版本标识;从当前账户下与该最新的数据版本标识对应的源设备获取该待同步数据;将该服务器上的该待同步数据进行更新。该方案在接收到数据同步请求时,获取多个用户设备的数据版本标识,并确定出最新的数据版本标识,随后从该最新的数据版本标识对应的源设备获取待同步数据并进行数据更新,能够及时将多个用户设备中的数据更新同步到服务器中,从而能够提高服务器数据同步的及时性。As can be seen from the above, the data synchronization method provided by the embodiment of the present invention, when receiving a data synchronization request, obtains the data version identifiers of the data to be synchronized for multiple user devices under the current account; determines from the obtained multiple data version identifiers Obtain the latest data version identifier; obtain the data to be synchronized from the source device corresponding to the latest data version identifier under the current account; update the data to be synchronized on the server. In this solution, when a data synchronization request is received, the data version identifiers of multiple user devices are obtained, and the latest data version identifier is determined, and then the data to be synchronized is obtained from the source device corresponding to the latest data version identifier and the data is updated. The data updates in multiple user equipments can be synchronized to the server in time, thereby improving the timeliness of server data synchronization.
本发明实施例还提供一种数据同步装置,该装置可以应用于服务器中。如图7所示,数据同步装置200包括:第一获取模块201、第一确定模块202、第二获取模块203、同步模块204。The embodiment of the present invention also provides a data synchronization device, which can be applied to a server. As shown in FIG. 7 , the data synchronization device 200 includes: a first acquisition module 201 , a first determination module 202 , a second acquisition module 203 , and a synchronization module 204 .
该第一获取模块201,用于当接收到数据同步请求时,获取当前账户下多个用户设备的待同步数据的数据版本标识,该多个用户设备为与服务器建立数据同步机制的设备。The first acquiring module 201 is configured to acquire, when a data synchronization request is received, data version identifications of data to be synchronized of multiple user equipments under the current account, where the multiple user equipments are equipments that have established a data synchronization mechanism with the server.
在一些实施例中,当第一获取模块201接收到数据同步请求时,从当前用户已经登录的账户下与该服务器建立数据同步机制的多个用户设备获取该多个用户设备的待同步数据的数据版本标识。该多个用户设备包括但不限于智能手机、平板电脑、个人PC等电子设备。In some embodiments, when the first obtaining module 201 receives the data synchronization request, it obtains the data to be synchronized of the multiple user devices from the multiple user devices that have established a data synchronization mechanism with the server under the account that the current user has logged in. Data version identifier. The multiple user devices include but are not limited to smart phones, tablet computers, personal PCs and other electronic devices.
其中,待同步数据可以包括相册、通讯录、通话记录、短信、浏览器记录、便签等数据中的一种或多种。Wherein, the data to be synchronized may include one or more of data such as photo albums, address books, call records, short messages, browser records, and memos.
其中,该数据同步请求用于完成服务器与当前用户的多个用户设备之间的数据同步。可以理解的,当前用户为当前在该服务器上登录的账户所属的用户。该数据同步请求可以是该多个用户设备中的某个设备发送给服务器的,也可以是该服务器自行发起的。例如,每当该多个用户设备中的某个设备上的数据发生更改时,该设备自动向服务器发送数据同步请求。再例如,每当时间到达预设定时时,服务器自行发起数据同步请求,并对该数据同步请求进行处理。Wherein, the data synchronization request is used to complete data synchronization between the server and multiple user equipments of the current user. It can be understood that the current user is the user who belongs to the account currently logged in on the server. The data synchronization request may be sent to the server by one of the multiple user devices, or initiated by the server itself. For example, whenever data on a certain device among the plurality of user devices changes, the device automatically sends a data synchronization request to the server. For another example, whenever the time reaches the preset timing, the server initiates a data synchronization request by itself, and processes the data synchronization request.
数据同步机制用于在该多个用户设备与服务器之间建立数据同步关系。即每当该多个用户设备中的某个设备上的数据发生更改时,也在服务器上进行对应的修改;或者每当服务器上的数据发生更改时,也在该多个用户设备上进行对应的修改。The data synchronization mechanism is used to establish a data synchronization relationship between the multiple user equipments and the server. That is, whenever the data on one of the multiple user devices changes, the corresponding modification is also performed on the server; or whenever the data on the server changes, the corresponding modification is also performed on the multiple user devices Modifications.
该多个用户设备中的每个设备以及服务器上都预先设置有数据版本标识。数据版本标识用于记录设备上的数据版本,以通过该数据版本标识对比该设备上的数据与服务器上的数据之间的差异。例如,数据版本标识可以包括数据的版本号。数据的版本号越高,表示数据最后更新的时间距离当前时间越短。其中,数据的版本号可以与该数据发生更改时的时刻相关联。同一个设备上的数据在不同时刻发生更改时,数据版本号是不同的。不同设备上的同一类数据在不同时刻发生更改时,数据版本号也是不同的。每当某个设备与服务器进行过数据同步后,即对该设备与服务器上的数据版本标识进行更新。Each of the plurality of user equipments and the server is pre-set with a data version identifier. The data version identifier is used to record the data version on the device, so as to compare the difference between the data on the device and the data on the server through the data version identifier. For example, the data version identification may include a version number of the data. The higher the version number of the data, the shorter the time since the last update of the data is from the current time. Wherein, the version number of the data may be associated with the moment when the data is changed. When the data on the same device changes at different times, the data version number is different. When the same type of data on different devices changes at different times, the data version numbers are also different. Whenever a certain device has synchronized data with the server, the data version identifiers on the device and the server are updated.
其中,可以对每个设备上的所有数据设置一个统一的数据版本标识,也即一个设备只有一个数据版本标识。也可以对每个设备上不同类型的数据分别设置数据版本标识。例如,对通讯数据设置一个数据版本标识,对相册数据设置一个数据版本标识,对其他数据设置一个数据版本标识。此时,每当在服务器上进行数据同步时,只对发生更改的类型数据进行同步。Wherein, a unified data version identifier can be set for all data on each device, that is, a device has only one data version identifier. Data version identifiers may also be set for different types of data on each device. For example, a data version identifier is set for communication data, a data version identifier is set for album data, and a data version identifier is set for other data. At this point, whenever data is synchronized on the server, only the changed type data is synchronized.
在一些实施例中,用户可以通过个人PC(或者其他设备)登录到服务器中的个人账户,并对个人账户中的文件进行操作。该操作视为用户对个人PC(或者其他设备)的操作,而不是对服务器的操作,该个人PC(或者其他设备)理解为数据同步系统中的设备。In some embodiments, the user can log in to a personal account in the server through a personal PC (or other devices), and operate files in the personal account. This operation is regarded as the user's operation on the personal PC (or other device), rather than the operation on the server, and the personal PC (or other device) is understood as a device in the data synchronization system.
在一些实施例中,第一获取模块201用于:In some embodiments, the first obtaining module 201 is used for:
每间隔预设周期时,生成数据同步请求;Generate a data synchronization request every preset period;
根据该数据同步请求获取多个用户设备的数据版本标识。The data version identifications of multiple user equipments are acquired according to the data synchronization request.
在一些实施例中,可以在服务器上设置定时,每当时间到达该定时,服务器即自动触发数据同步操作。例如,用户可以设置服务器每天上午8时自动进行数据同步操作。则服务器在运行过程中,第一获取模块201持续判断当前时间是否为该预设时间。若是预设时间,则第一获取模块201自动生成数据同步请求,并根据该数据同步请求获取上述多个用户设备的数据版本标识。In some embodiments, a timing can be set on the server, and whenever the timing reaches the timing, the server automatically triggers a data synchronization operation. For example, the user can set the server to automatically perform data synchronization at 8 am every day. Then, when the server is running, the first acquisition module 201 continuously judges whether the current time is the preset time. If it is the preset time, the first obtaining module 201 automatically generates a data synchronization request, and obtains the data version identifiers of the above-mentioned multiple user equipments according to the data synchronization request.
需要说明的是,上述定时同步操作仅为举例。在一些实施例中,用户可以在服务器上设置一个预设周期。每间隔该预设周期时,第一获取模块201即自动生成数据同步请求,随后根据该数据同步请求获取上述多个用户设备的数据版本标识。例如,该预设周期可以为10分钟。则第一获取模块201每间隔10分钟即自动生成数据同步请求,并进行数据同步操作。It should be noted that the above timing synchronization operation is only an example. In some embodiments, the user can set a preset period on the server. At intervals of the preset period, the first acquiring module 201 automatically generates a data synchronization request, and then acquires the data version identifiers of the plurality of user equipments according to the data synchronization request. For example, the preset period may be 10 minutes. Then the first acquisition module 201 automatically generates a data synchronization request every 10 minutes, and performs a data synchronization operation.
第一确定模块202,用于从获取到的多个数据版本标识中确定出最新的数据版本标识。The first determining module 202 is configured to determine the latest data version identifier from the acquired multiple data version identifiers.
在一些实施例中,第一获取模块201获取到多个用户设备的数据版本标识后,第一确定模块202从该多个数据版本标识中确定出最新的数据版本标识。该最新的数据版本标识表示在上述数据同步系统中,与该最新的数据版本标识对应的设备上的数据是最新的。In some embodiments, after the first acquiring module 201 acquires multiple data version identifiers of user equipments, the first determining module 202 determines the latest data version identifier from the multiple data version identifiers. The latest data version identifier indicates that in the above data synchronization system, the data on the device corresponding to the latest data version identifier is the latest.
例如,数据同步系统由服务器、设备A、B、C、D组成,用户对设备A上的数据进行过操作,随后又对设备B上的数据进行过操作,最后对设备C上的数据进行过操作,此后未对设备A、B、C、D中的任一设备进行过操作,则设备C上的数据是最新的数据,设备C对应的数据版本标识为最新的数据版本标识。For example, the data synchronization system consists of servers, devices A, B, C, and D. The user has operated on the data on device A, then operated on the data on device B, and finally operated on the data on device C. If no operation has been performed on any of devices A, B, C, and D since then, the data on device C is the latest data, and the data version ID corresponding to device C is the latest data version ID.
在一些实施例中,如图8所示,数据版本标识可以包括时间戳,第一确定模块202包括:提取子模块2021、校验子模块2022、确定子模块2023。In some embodiments, as shown in FIG. 8 , the data version identifier may include a time stamp, and the first determination module 202 includes: an extraction submodule 2021 , a verification submodule 2022 , and a determination submodule 2023 .
该提取子模块2021,用于从多个数据版本标识中提取各自的时间戳;The extracting submodule 2021 is used to extract respective time stamps from multiple data version identifiers;
该校验子模块2022,用于对提取到的多个时间戳进行校验,以确定出符合预设条件的时间戳;The verification sub-module 2022 is configured to verify the extracted multiple time stamps, so as to determine the time stamps that meet the preset conditions;
该确定子模块2023,用于根据符合预设条件的时间戳确定最新数据版本标识。The determination sub-module 2023 is configured to determine the latest data version identifier according to the time stamp meeting the preset condition.
其中,数据版本标识中可以包括时间戳,该时间戳可以是某个设备最近一次与服务器进行数据同步的时间。例如,设备A最近一次与服务器进行数据同步的时间为2017年2月10日上午8时,则设备A的数据版本标识中的时间戳可以是201702100800。Wherein, the data version identifier may include a time stamp, and the time stamp may be the last time when a certain device performs data synchronization with the server. For example, the latest data synchronization time between device A and the server is 8 am on February 10, 2017, then the time stamp in the data version identifier of device A may be 201702100800.
第一获取模块201获取到多个用户设备的数据版本标识后,可以从多个数据版本标识中提取各个数据版本标识的时间戳。随后,校验子模块2021对提取到的多个时间戳进行校验,以确定出符合预设条件的时间戳。确定子模块2023根据符合预设条件的时间戳来确定最新的数据版本标识。After the first acquiring module 201 acquires the data version identifiers of multiple user equipments, it may extract the time stamp of each data version identifier from the multiple data version identifiers. Subsequently, the checking submodule 2021 checks the multiple extracted time stamps to determine the time stamps meeting the preset conditions. The determination sub-module 2023 determines the latest data version identifier according to the time stamp meeting the preset condition.
例如,设备D的数据版本标识中的时间戳201702140800所表示的时间距离当前时间最近,则可以确定出该时间戳为距离当前时间最近的时间戳。随后,将设备D的数据版本标识确定为最新的数据版本标识。For example, if the time represented by the timestamp 201702140800 in the data version identifier of device D is the closest to the current time, it can be determined that the timestamp is the closest to the current time. Subsequently, the data version identifier of device D is determined as the latest data version identifier.
校验子模块2022可以对提取到的多个时间戳进行校验,以从提取到的多个时间戳中确定出符合预设条件的时间戳。其中,预设条件可以是预先针对时间戳设置的格式等条件。The verification submodule 2022 may verify the multiple extracted time stamps, so as to determine a time stamp that meets a preset condition from the multiple extracted time stamps. Wherein, the preset condition may be a condition such as a format set in advance for the timestamp.
例如,预设条件可以限定时间戳的长度为12位数。由于服务器或多个用户设备在对时间戳进行更新和管理的过程中可能会出现错误,又或者在服务器与用户设备之间的数据传输过程中出现错误,会导致服务器提取到的时间戳格式不符合条件,例如,提取到的时间戳不是12位数。For example, the preset condition may limit the length of the time stamp to 12 digits. Because errors may occur in the process of updating and managing the time stamp by the server or multiple user devices, or errors may occur in the data transmission process between the server and the user device, the format of the time stamp extracted by the server may be incorrect. The conditions are met, for example, the extracted timestamp is not 12 digits.
校验子模块2022对提取到的多个时间戳进行校验后,确定子模块2023根据符合预设条件的时间戳来确定最新的数据版本标识。例如,从符合预设条件的时间戳中确定出与当前时间最近的时间戳,然后将该时间戳对应的数据版本标识确定为最新的数据版本标识。After the verifying sub-module 2022 verifies the multiple extracted time stamps, the determining sub-module 2023 determines the latest data version identifier according to the time stamps meeting the preset conditions. For example, the timestamp that is the latest to the current time is determined from the timestamps meeting the preset conditions, and then the data version identifier corresponding to the timestamp is determined as the latest data version identifier.
第二获取模块203,用于从该最新的数据版本标识对应的源设备获取该待同步数据;The second acquiring module 203 is configured to acquire the data to be synchronized from the source device corresponding to the latest data version identifier;
同步模块204,用于将该服务器上的该待同步数据进行更新。The synchronization module 204 is configured to update the data to be synchronized on the server.
在一些实施例中,第一确定模块202确定出最新的数据版本标识后,第二获取模块203即可从该最新的数据版本标识对应的源设备获取待同步数据,同步模块204将服务器上的该待同步数据进行更新。In some embodiments, after the first determination module 202 determines the latest data version identifier, the second acquisition module 203 can obtain the data to be synchronized from the source device corresponding to the latest data version identifier, and the synchronization module 204 will The data to be synchronized is updated.
其中,源设备为该多个用户设备中与该最新的数据版本标识对应的设备。当一个设备只有一个数据版本标识时,待同步数据为源设备上的所有数据。当一个设备上不同类型的数据具有不同的数据版本标识时,待同步数据为源设备上发生更改的类型数据。Wherein, the source device is the device corresponding to the latest data version identifier among the plurality of user devices. When a device has only one data version identifier, the data to be synchronized is all data on the source device. When different types of data on a device have different data version identifiers, the data to be synchronized is the type of data that has changed on the source device.
其中,服务器上的用户账户可以保持登录状态。第二获取模块203获取到待同步数据后,同步模块204将该待同步数据存储到当前用户账户下的文件目录,此时即可完成服务器与源设备之间的数据同步。Wherein, the user account on the server may remain logged in. After the second acquisition module 203 acquires the data to be synchronized, the synchronization module 204 stores the data to be synchronized in the file directory under the current user account, and at this time, the data synchronization between the server and the source device can be completed.
在一些实施例中,如图9所示,数据同步装置200还包括:第三获取模块205、修改模块206。In some embodiments, as shown in FIG. 9 , the data synchronization device 200 further includes: a third acquiring module 205 and a modifying module 206 .
该第三获取模块205,用于获取该服务器上的该待同步数据的时间戳;The third acquiring module 205 is configured to acquire the timestamp of the data to be synchronized on the server;
该修改模块206,用于将该服务器上的该待同步数据的时间戳修改为当前时间。The modification module 206 is configured to modify the time stamp of the data to be synchronized on the server to the current time.
在一些实施例中,同步模块204完成数据同步后,第三获取模块205获取服务器上的该待同步数据的时间戳,修改模块206可以对服务器上的该待同步数据的时间戳进行更新。In some embodiments, after the synchronization module 204 completes the data synchronization, the third obtaining module 205 obtains the time stamp of the data to be synchronized on the server, and the modifying module 206 can update the time stamp of the data to be synchronized on the server.
其中,当多个用户设备中的某个设备上的数据发生更改时,该设备可以向服务器发送数据同步请求。同步模块204完成与该设备之间的数据同步后,修改模块206将服务器自身的数据版本标识中的时间戳修改为当前时间。同时,修改模块206还可以向该设备发送时间戳修改指令。该设备接收到该时间戳修改指令后,根据该指令将自身数据版本标识中的时间戳修改为当前时间。此时,即可完成服务器和源设备的数据版本标识中的时间戳更新。Wherein, when data on a certain device among the plurality of user devices changes, the device may send a data synchronization request to the server. After the synchronization module 204 completes the data synchronization with the device, the modification module 206 modifies the timestamp in the server's own data version identifier to the current time. At the same time, the modification module 206 may also send a time stamp modification instruction to the device. After receiving the timestamp modification instruction, the device modifies the timestamp in its own data version identifier to the current time according to the instruction. At this point, the timestamp update in the data version identification of the server and the source device can be completed.
在一些实施例中,如图10所示,数据同步装置200还包括:第二确定模块207、推送模块208。In some embodiments, as shown in FIG. 10 , the data synchronization device 200 further includes: a second determining module 207 and a pushing module 208 .
该第二确定模块207,用于确定目标设备,该目标设备为该多个用户设备中数据版本标识不同于该源设备的数据版本标识的设备;The second determining module 207 is configured to determine a target device, where the target device is a device whose data version identifier is different from the data version identifier of the source device among the plurality of user devices;
该推送模块208,用于向目标设备推送数据更新信息。The push module 208 is configured to push data update information to the target device.
在一些实施例中,服务器完成与源设备之间的数据同步后,可以进一步完成与剩余设备之间的数据同步。In some embodiments, after the server completes the data synchronization with the source device, it can further complete the data synchronization with the remaining devices.
其中,同步模块204完成数据同步后,第二确定模块207可以确定目标设备。目标设备即为该多个用户设备中数据版本标识不同于该源设备的数据版本标识的设备。例如,设备A、B、C、D中,设备D为源设备,设备A、B、C的数据版本标识都与设备D的数据版本标识不同,则可以确定出目标设备包括设备A、B、C。Wherein, after the synchronization module 204 completes the data synchronization, the second determination module 207 may determine the target device. The target device is the device whose data version identifier is different from the data version identifier of the source device among the plurality of user devices. For example, among devices A, B, C, and D, if device D is the source device, and the data version identifiers of devices A, B, and C are all different from those of device D, it can be determined that the target devices include devices A, B, c.
其中,第二确定模块207可以通过数据版本标识中的时间戳来确定目标设备。例如,设备D为源设备,设备A、B、C的数据版本标识中的时间戳都与设备D的数据版本标识中的时间戳不同,则可以将设备A、B、C确定为目标设备。Wherein, the second determining module 207 may determine the target device through the time stamp in the data version identifier. For example, if device D is the source device, and the time stamps in the data version identifiers of devices A, B, and C are all different from those in the data version identifier of device D, then devices A, B, and C can be determined as target devices.
第二确定模块207确定目标设备后,推送模块208向该目标设备推送数据更新信息。该数据更新信息用于使该目标设备从该服务器获取上述待同步数据。目标设备接收到服务器推送的数据更新信息后,从服务器获取待同步数据,以完成目标设备上的数据同步。进一步的,目标设备完成数据同步后,可以更新数据版本标识中的时间戳,将该时间戳修改为服务器的数据版本标识中的时间戳。After the second determining module 207 determines the target device, the pushing module 208 pushes the data update information to the target device. The data update information is used to enable the target device to obtain the data to be synchronized from the server. After the target device receives the data update information pushed by the server, it obtains the data to be synchronized from the server, so as to complete the data synchronization on the target device. Further, after the target device completes the data synchronization, it may update the timestamp in the data version identifier, and modify the timestamp to the timestamp in the data version identifier of the server.
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现。During specific implementation, each of the above modules may be implemented as an independent entity, or may be combined arbitrarily to be implemented as the same or several entities.
例如,当服务器接收到用户手机端发送的相册同步请求时,第一获取模块201从手机、平板电脑、个人计算机分别获取各个设备上的相册版本标识。随后,第一确定模块202从获取到的多个相册版本标识中确定出最新的版本标识。例如,手机端的相册版本标识为最新的版本标识,则第二获取模块203从手机端获取待同步的照片,随后同步模块204将待同步的照片存储到服务器。进一步的,服务器可以在完成服务器端的同步后,将该待同步的照片分别发送到平板电脑、个人计算机。随后,平板电脑、个人计算机分别将接收到的照片进行存储。For example, when the server receives the photo album synchronization request sent by the user's mobile phone, the first obtaining module 201 obtains the photo album version identification on each device from the mobile phone, tablet computer, and personal computer respectively. Subsequently, the first determining module 202 determines the latest version identifier from the acquired plurality of album version identifiers. For example, if the album version identification of the mobile phone is the latest version identification, the second obtaining module 203 obtains the photos to be synchronized from the mobile phone, and then the synchronization module 204 stores the photos to be synchronized to the server. Further, after the server-side synchronization is completed, the server can send the photos to be synchronized to the tablet computer and the personal computer respectively. Subsequently, the tablet computer and the personal computer store the received photos respectively.
再例如,当服务器接收到用户手机端发送的通讯录同步请求时,第一获取模块201从手机、平板电脑、个人计算机分别获取各个设备上的通讯录版本标识。随后,第一确定模块202从获取到的多个通讯录版本标识中确定出最新的版本标识。例如,手机端的通讯录版本标识为最新的版本标识,则第二获取模块203从手机端获取待同步的通讯录信息,随后同步模块204将待同步的通讯录信息存储到服务器。进一步的,服务器可以在完成服务器端的同步后,将该待同步的通讯录信息分别发送到平板电脑、个人计算机。随后,平板电脑、个人计算机分别将接收到的通讯录信息进行存储。For another example, when the server receives an address book synchronization request sent by the user's mobile phone, the first acquisition module 201 acquires the address book version identifiers on each device from the mobile phone, tablet computer, and personal computer. Subsequently, the first determining module 202 determines the latest version identifier from the acquired plurality of address book version identifiers. For example, if the version identification of the address book on the mobile phone is the latest version identification, the second acquisition module 203 acquires the address book information to be synchronized from the mobile phone terminal, and then the synchronization module 204 stores the address book information to be synchronized to the server. Further, after the server-side synchronization is completed, the server can send the address book information to be synchronized to the tablet computer and the personal computer respectively. Subsequently, the tablet computer and the personal computer respectively store the received address book information.
由上可知,本发明实施例提供的数据同步装置200,通过第一获取模块201当接收到数据同步请求时,获取当前账户下多个用户设备的待同步数据的数据版本标识;第一确定模块202从获取到的多个数据版本标识中确定出最新的数据版本标识;第二获取模块203从当前账户下与该最新的数据版本标识对应的源设备获取该待同步数据;同步模块204将该服务器上的该待同步数据进行更新。该方案在接收到数据同步请求时,获取多个用户设备的数据版本标识,并确定出最新的数据版本标识,随后从该最新的数据版本标识对应的源设备获取待同步数据并进行数据更新,能够及时将多个用户设备中的数据更新同步到服务器中,从而能够提高服务器数据同步的及时性。As can be seen from the above, the data synchronization device 200 provided by the embodiment of the present invention, when receiving a data synchronization request through the first acquisition module 201, acquires the data version identifiers of the data to be synchronized for multiple user devices under the current account; the first determination module 202 determines the latest data version identifier from the obtained multiple data version identifiers; the second acquisition module 203 obtains the data to be synchronized from the source device corresponding to the latest data version identifier under the current account; the synchronization module 204 The data to be synchronized on the server is updated. In this solution, when a data synchronization request is received, the data version identifiers of multiple user devices are obtained, and the latest data version identifier is determined, and then the data to be synchronized is obtained from the source device corresponding to the latest data version identifier and the data is updated. The data updates in multiple user equipments can be synchronized to the server in time, thereby improving the timeliness of server data synchronization.
本发明实施例还涉及一种服务器,该服务器可以是位于网络上的服务器,也可以是个人PC等计算机设备。The embodiment of the present invention also relates to a server, and the server may be a server located on a network, or a computer device such as a personal PC.
如图11所示,服务器300包括存储器301和处理器302。存储器301与处理器302连接。As shown in FIG. 11 , the server 300 includes a memory 301 and a processor 302 . The memory 301 is connected to the processor 302 .
其中,存储器301具有一个或一个以上的计算机可读存储介质。存储器301可用于存储应用程序和数据。存储器301存储的应用程序中包含有可执行程序代码。应用程序可以组成各种功能模块。处理器302通过运行存储在存储器301的应用程序,从而执行各种功能应用以及数据处理。存储器301可主要包括存储程序区和存储数据区。其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等,存储数据区可存储服务器300创建的或者与其他电子设备交换的数据。Wherein, the memory 301 has one or more computer-readable storage media. The memory 301 can be used to store applications and data. The application programs stored in the memory 301 include executable program codes. Applications can be composed of various functional modules. The processor 302 executes various functional applications and data processing by running the application programs stored in the memory 301 . The memory 301 may mainly include an area for storing programs and an area for storing data. Wherein, the storage program area may store an operating system, an application program required by at least one function, etc., and the storage data area may store data created by the server 300 or exchanged with other electronic devices.
处理器302是服务器300的控制中心,利用各种接口和线路连接整个服务器300的各个部分,通过运行或执行存储在存储器301内的应用程序,以及调用存储在存储器301内的数据,执行服务器300的各种功能和处理数据,从而对服务器300进行整体监控。其中,处理器302可以包括一个或一个以上的处理核心。The processor 302 is the control center of the server 300. It uses various interfaces and lines to connect various parts of the entire server 300. By running or executing the application program stored in the memory 301 and calling the data stored in the memory 301, the server 300 is executed. Various functions and processing data, so as to monitor the server 300 as a whole. Wherein, the processor 302 may include one or more processing cores.
在本实施例中,服务器300中的处理器302可以按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行程序代码加载到存储器301中,并由处理器302来运行存储在存储器301中的应用程序,从而实现各种功能:In this embodiment, the processor 302 in the server 300 can load the executable program code corresponding to the process of one or more application programs into the memory 301 according to the following instructions, and the processor 302 runs the executable program code stored in the The application program in memory 301, thereby realizes various functions:
当接收到数据同步请求时,获取当前账户下多个用户设备的待同步数据的数据版本标识,该多个用户设备为与服务器建立数据同步机制的设备;When a data synchronization request is received, the data version identifiers of the data to be synchronized of multiple user devices under the current account are obtained, and the multiple user devices are devices that have established a data synchronization mechanism with the server;
从获取到的多个数据版本标识中确定出最新的数据版本标识;Determining the latest data version identifier from the obtained multiple data version identifiers;
从当前账户下与该最新的数据版本标识对应的源设备获取该待同步数据;Obtain the data to be synchronized from the source device corresponding to the latest data version identifier under the current account;
将该服务器上的该待同步数据进行更新。The data to be synchronized on the server is updated.
在一些实施例中,该数据版本标识包括时间戳,从获取到的多个数据版本标识中确定出最新的数据版本标识时,处理器302用于执行以下步骤:对获取到的多个时间戳进行校验,以确定出符合预设条件的时间戳;根据符合预设条件的时间戳确定最新数据版本标识。In some embodiments, the data version identifier includes a time stamp, and when the latest data version identifier is determined from the acquired multiple data version identifiers, the processor 302 is configured to perform the following steps: Checking is performed to determine the time stamp meeting the preset condition; and the latest data version identifier is determined according to the time stamp meeting the preset condition.
在一些实施例中,将待同步数据存储到服务器后,处理器302还用于执行以下步骤:获取该服务器上的该待同步数据的时间戳;将该服务器上的该待同步数据的时间戳修改为当前时间。In some embodiments, after the data to be synchronized is stored in the server, the processor 302 is further configured to perform the following steps: acquire the timestamp of the data to be synchronized on the server; obtain the timestamp of the data to be synchronized on the server Change to current time.
在一些实施例中,将待同步数据存储到服务器后,处理器302还用于执行以下步骤:确定目标设备,该目标设备为该多个用户设备中数据版本标识不同于该源设备的数据版本标识的设备;向该目标设备推送数据更新信息。In some embodiments, after storing the data to be synchronized in the server, the processor 302 is further configured to perform the following steps: determine a target device, and the target device identifies a data version different from the data version of the source device for the data versions in the plurality of user devices The identified device; push data update information to the target device.
在一些实施例中,当接收到数据同步请求时,获取多个用户设备的数据版本标识,处理器302用于执行以下步骤:每间隔预设周期时,生成数据同步请求;根据该数据同步请求获取多个用户设备的数据版本标识。In some embodiments, when a data synchronization request is received, the data version identifiers of multiple user equipments are obtained, and the processor 302 is configured to perform the following steps: generating a data synchronization request every preset period; generating a data synchronization request according to the data synchronization request Obtain data version identifiers of multiple user devices.
在一些实施例中,如图12所示,服务器300还包括通信单元303。通信单元303与处理器302连接。其中,通信单元303可以通过网络与网络设备或者其他电子设备通信,以完成服务器300与网络设备或者其他电子设备之间的信息收发。例如,通信单元303可以通过网络与其他服务器或者诸如智能手机、平板电脑等电子设备进行通信。In some embodiments, as shown in FIG. 12 , the server 300 further includes a communication unit 303 . The communication unit 303 is connected to the processor 302 . Wherein, the communication unit 303 can communicate with the network device or other electronic devices through the network, so as to complete the information sending and receiving between the server 300 and the network device or other electronic devices. For example, the communication unit 303 can communicate with other servers or electronic devices such as smart phones and tablet computers through a network.
上述实施例中,对各个实施例的描述都各有侧重,某些实施例中没有详细描述的部分,可以参见前面对数据同步方法的详细描述,在此不再赘述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases. For the parts that are not described in detail in some embodiments, please refer to the detailed description of the data synchronization method above, which will not be repeated here.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. The medium may include: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.
以上对本发明实施例提供的数据同步方法、装置、服务器及存储介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The data synchronization method, device, server, and storage medium provided by the embodiments of the present invention are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The descriptions of the above embodiments are only used to help understanding The method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be construed as limiting the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710392634.XACN107172169A (en) | 2017-05-27 | 2017-05-27 | Data synchronization method, device, server and storage medium |
| PCT/CN2018/087867WO2018219178A1 (en) | 2017-05-27 | 2018-05-22 | Data synchronization method and apparatus, server, and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710392634.XACN107172169A (en) | 2017-05-27 | 2017-05-27 | Data synchronization method, device, server and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN107172169Atrue CN107172169A (en) | 2017-09-15 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710392634.XAPendingCN107172169A (en) | 2017-05-27 | 2017-05-27 | Data synchronization method, device, server and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN107172169A (en) |
| WO (1) | WO2018219178A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107819870A (en)* | 2017-11-21 | 2018-03-20 | 广州视睿电子科技有限公司 | Incremental data pulling method and device, storage medium, terminal equipment and server |
| CN107888656A (en)* | 2017-10-09 | 2018-04-06 | 北京京东尚科信息技术有限公司 | Service the call method and calling device of end interface |
| CN108038127A (en)* | 2017-11-08 | 2018-05-15 | 中国平安人寿保险股份有限公司 | A kind of method, apparatus, terminal device and the storage medium of data synchronization |
| CN108588666A (en)* | 2018-05-31 | 2018-09-28 | 北京铂阳顶荣光伏科技有限公司 | The parameter amending method and device of filming equipment |
| WO2018219178A1 (en)* | 2017-05-27 | 2018-12-06 | Oppo广东移动通信有限公司 | Data synchronization method and apparatus, server, and storage medium |
| CN109766386A (en)* | 2018-12-11 | 2019-05-17 | 畅捷通信息技术股份有限公司 | A kind of method and system of synchronous service end off-line data |
| CN109933596A (en)* | 2019-02-27 | 2019-06-25 | 深圳市轱辘汽车维修技术有限公司 | A kind of method of data synchronization, device and terminal device |
| CN110038299A (en)* | 2019-04-17 | 2019-07-23 | 北京奇艺世纪科技有限公司 | A kind of method of data synchronization and device |
| CN110113412A (en)* | 2019-04-30 | 2019-08-09 | 北京奇艺世纪科技有限公司 | A kind of method of data synchronization and device |
| CN110113187A (en)* | 2019-04-19 | 2019-08-09 | 北京奇艺世纪科技有限公司 | A kind of configuration update method, device, configuration server and configuration system |
| CN110798444A (en)* | 2019-09-12 | 2020-02-14 | 腾讯科技(深圳)有限公司 | Data synchronization method and device based on Internet of things |
| CN111309747A (en)* | 2020-02-18 | 2020-06-19 | 京东数字科技控股有限公司 | Data synchronization method, system and device |
| CN111723062A (en)* | 2020-06-28 | 2020-09-29 | 天津联想协同科技有限公司 | File synchronization method, device and storage medium |
| CN111726375A (en)* | 2019-03-19 | 2020-09-29 | 北京数聚鑫云信息技术有限公司 | Data synchronization method and device and computer equipment |
| CN111953715A (en)* | 2019-05-14 | 2020-11-17 | 天津五八到家科技有限公司 | Service data processing system, method and device |
| CN112245906A (en)* | 2020-11-18 | 2021-01-22 | 腾讯科技(深圳)有限公司 | Data synchronization method and device, electronic equipment and storage medium |
| CN113434174A (en)* | 2021-06-28 | 2021-09-24 | 广联达科技股份有限公司 | Configuration method and device of collaborative project and electronic equipment |
| CN114327760A (en)* | 2021-12-20 | 2022-04-12 | 杭州云备姆科技有限公司 | Method and system for confirming latest data based on double-active architecture, electronic equipment and storage medium |
| CN114615327A (en)* | 2022-02-25 | 2022-06-10 | 上海金仕达软件科技有限公司 | Method, device and system for optimizing market data and storage medium |
| CN114706923A (en)* | 2021-11-09 | 2022-07-05 | 中国建设银行股份有限公司 | Data synchronization method and device, electronic equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10552125B1 (en)* | 2018-09-18 | 2020-02-04 | Inductive Automation, LLC | Messaging between components in graphical user interfaces for industrial control systems |
| CN110008269B (en)* | 2019-03-26 | 2023-08-01 | 创新先进技术有限公司 | Data reflow method, device, equipment and system |
| CN110333997B (en)* | 2019-07-15 | 2023-11-10 | 秒针信息技术有限公司 | Method and device for fusing equipment use information |
| CN110909006B (en)* | 2019-10-15 | 2024-06-11 | 中国平安人寿保险股份有限公司 | Method, device, computer equipment and storage medium for data synchronization |
| CN111245548B (en)* | 2020-01-14 | 2024-08-20 | 平安国际智慧城市科技股份有限公司 | Data synchronization method and device based on time stamp and computer equipment |
| CN112527628B (en)* | 2020-11-11 | 2025-03-07 | 贝壳技术有限公司 | Configuration data synchronization method, device and electronic device |
| CN113485973B (en)* | 2021-07-02 | 2023-05-16 | 中国联合网络通信集团有限公司 | Data synchronization method and device |
| CN113742426B (en)* | 2021-09-08 | 2024-08-23 | 深圳市云鼠科技开发有限公司 | Data synchronization method, device, equipment, server and storage medium |
| CN113918648A (en)* | 2021-09-24 | 2022-01-11 | 杭州数梦工场科技有限公司 | Data synchronization method, device, electronic device and storage medium |
| CN114416647A (en)* | 2022-01-21 | 2022-04-29 | 京东方科技集团股份有限公司 | Picture processing method, electronic device and computer readable medium |
| CN115171004A (en)* | 2022-06-08 | 2022-10-11 | 东软睿驰汽车技术(沈阳)有限公司 | System, method, apparatus and storage medium for determining key frame |
| CN116016491B (en)* | 2022-12-26 | 2023-09-05 | 山东华方智联科技股份有限公司 | Intelligent building design system and design method |
| CN117675842B (en)* | 2023-12-07 | 2024-05-07 | 上海钛翮信息科技有限公司 | Incremental synchronization method and system based on multi-device data |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103327037A (en)* | 2012-03-20 | 2013-09-25 | 中兴通讯股份有限公司 | Data synchronizing method and device |
| US20130325807A1 (en)* | 2012-06-04 | 2013-12-05 | Microsoft Corporation | Shared playlist synchronization |
| CN103716370A (en)* | 2013-10-13 | 2014-04-09 | 北界创想(北京)软件有限公司 | Method and device for data synchronization between multiple clients |
| CN104272649A (en)* | 2011-11-04 | 2015-01-07 | 达索系统加拿大软件股份有限公司 | System and method for data communication over a network |
| CN105975614A (en)* | 2016-05-18 | 2016-09-28 | 华为技术有限公司 | Cluster configuration device and data updating method and device |
| CN106210006A (en)* | 2016-06-30 | 2016-12-07 | 维沃移动通信有限公司 | A kind of configuration information sharing method, mobile terminal and Cloud Server |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7949702B2 (en)* | 2002-01-09 | 2011-05-24 | International Business Machines Corporation | Method and apparatus for synchronizing cookies across multiple client machines |
| CN102638581B (en)* | 2012-03-31 | 2015-11-25 | 北京奇虎科技有限公司 | A kind of cookie information storage means and system |
| CN103220358B (en)* | 2013-04-19 | 2016-12-28 | 深圳如果技术有限公司 | The online file synchronisation method in a kind of multiple terminals, system, server and terminal unit |
| CN107172169A (en)* | 2017-05-27 | 2017-09-15 | 广东欧珀移动通信有限公司 | Data synchronization method, device, server and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104272649A (en)* | 2011-11-04 | 2015-01-07 | 达索系统加拿大软件股份有限公司 | System and method for data communication over a network |
| CN103327037A (en)* | 2012-03-20 | 2013-09-25 | 中兴通讯股份有限公司 | Data synchronizing method and device |
| US20130325807A1 (en)* | 2012-06-04 | 2013-12-05 | Microsoft Corporation | Shared playlist synchronization |
| CN103716370A (en)* | 2013-10-13 | 2014-04-09 | 北界创想(北京)软件有限公司 | Method and device for data synchronization between multiple clients |
| CN105975614A (en)* | 2016-05-18 | 2016-09-28 | 华为技术有限公司 | Cluster configuration device and data updating method and device |
| CN106210006A (en)* | 2016-06-30 | 2016-12-07 | 维沃移动通信有限公司 | A kind of configuration information sharing method, mobile terminal and Cloud Server |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018219178A1 (en)* | 2017-05-27 | 2018-12-06 | Oppo广东移动通信有限公司 | Data synchronization method and apparatus, server, and storage medium |
| CN107888656A (en)* | 2017-10-09 | 2018-04-06 | 北京京东尚科信息技术有限公司 | Service the call method and calling device of end interface |
| CN108038127B (en)* | 2017-11-08 | 2020-03-20 | 中国平安人寿保险股份有限公司 | Data synchronization method, device, terminal equipment and storage medium |
| CN108038127A (en)* | 2017-11-08 | 2018-05-15 | 中国平安人寿保险股份有限公司 | A kind of method, apparatus, terminal device and the storage medium of data synchronization |
| CN107819870A (en)* | 2017-11-21 | 2018-03-20 | 广州视睿电子科技有限公司 | Incremental data pulling method and device, storage medium, terminal equipment and server |
| CN108588666A (en)* | 2018-05-31 | 2018-09-28 | 北京铂阳顶荣光伏科技有限公司 | The parameter amending method and device of filming equipment |
| CN109766386A (en)* | 2018-12-11 | 2019-05-17 | 畅捷通信息技术股份有限公司 | A kind of method and system of synchronous service end off-line data |
| CN109933596A (en)* | 2019-02-27 | 2019-06-25 | 深圳市轱辘汽车维修技术有限公司 | A kind of method of data synchronization, device and terminal device |
| CN111726375A (en)* | 2019-03-19 | 2020-09-29 | 北京数聚鑫云信息技术有限公司 | Data synchronization method and device and computer equipment |
| CN110038299A (en)* | 2019-04-17 | 2019-07-23 | 北京奇艺世纪科技有限公司 | A kind of method of data synchronization and device |
| CN110113187B (en)* | 2019-04-19 | 2022-03-04 | 北京奇艺世纪科技有限公司 | Configuration updating method and device, configuration server and configuration system |
| CN110113187A (en)* | 2019-04-19 | 2019-08-09 | 北京奇艺世纪科技有限公司 | A kind of configuration update method, device, configuration server and configuration system |
| CN110113412A (en)* | 2019-04-30 | 2019-08-09 | 北京奇艺世纪科技有限公司 | A kind of method of data synchronization and device |
| CN111953715B (en)* | 2019-05-14 | 2023-05-26 | 天津五八到家科技有限公司 | Service data processing system, method and device |
| CN111953715A (en)* | 2019-05-14 | 2020-11-17 | 天津五八到家科技有限公司 | Service data processing system, method and device |
| CN110798444A (en)* | 2019-09-12 | 2020-02-14 | 腾讯科技(深圳)有限公司 | Data synchronization method and device based on Internet of things |
| CN111309747A (en)* | 2020-02-18 | 2020-06-19 | 京东数字科技控股有限公司 | Data synchronization method, system and device |
| CN111723062A (en)* | 2020-06-28 | 2020-09-29 | 天津联想协同科技有限公司 | File synchronization method, device and storage medium |
| CN112245906A (en)* | 2020-11-18 | 2021-01-22 | 腾讯科技(深圳)有限公司 | Data synchronization method and device, electronic equipment and storage medium |
| CN112245906B (en)* | 2020-11-18 | 2023-08-25 | 腾讯科技(深圳)有限公司 | Data synchronization method, device, electronic equipment and storage medium |
| CN113434174A (en)* | 2021-06-28 | 2021-09-24 | 广联达科技股份有限公司 | Configuration method and device of collaborative project and electronic equipment |
| CN114706923A (en)* | 2021-11-09 | 2022-07-05 | 中国建设银行股份有限公司 | Data synchronization method and device, electronic equipment and storage medium |
| CN114327760A (en)* | 2021-12-20 | 2022-04-12 | 杭州云备姆科技有限公司 | Method and system for confirming latest data based on double-active architecture, electronic equipment and storage medium |
| CN114615327A (en)* | 2022-02-25 | 2022-06-10 | 上海金仕达软件科技有限公司 | Method, device and system for optimizing market data and storage medium |
| Publication number | Publication date |
|---|---|
| WO2018219178A1 (en) | 2018-12-06 |
| Publication | Publication Date | Title |
|---|---|---|
| CN107172169A (en) | Data synchronization method, device, server and storage medium | |
| CN106874389B (en) | Data migration method and device | |
| AU2019461393B2 (en) | Screen sharing processing method, apparatus and device, and storage medium | |
| CN104883404B (en) | Network based file cloud synchronization method | |
| CN112364049B (en) | Data synchronization script generation method, system, terminal and storage medium | |
| US10826817B2 (en) | Routing table synchronization method, apparatus, and system | |
| WO2019201039A1 (en) | Method and system for updating application and application server | |
| MX2014011988A (en) | Telemetry system for a cloud synchronization system. | |
| CN1988535A (en) | Synchronous method, system for file storage and customer terminal | |
| WO2015101320A1 (en) | Account number generation method, terminal and background server | |
| WO2014012449A1 (en) | Method, device, processing center and system for desktop synchronization | |
| CN108093026B (en) | Method and device for processing multi-tenant request | |
| CN113676528A (en) | Synchronization method, device, equipment and medium for login account | |
| CN110798358B (en) | Distributed service identification method and device, computer readable medium and electronic equipment | |
| CN112579877B (en) | Control method, device, storage medium and equipment of information source system | |
| CN114661523B (en) | Data backup method, device, program product, medium and electronic device | |
| US10503430B2 (en) | Method and device for clearing data and electronic device | |
| US9244668B1 (en) | Systems and methods for synchronizing mobile computing platforms | |
| CN111327680B (en) | Authentication data synchronization method, device, system, computer equipment and storage medium | |
| CN113486025A (en) | Data storage method, data query method and device | |
| US11442892B2 (en) | File and data migration to storage system | |
| CN111596953A (en) | Version management system, development data transmission control method and related device | |
| CN104917819B (en) | A kind of method and system for realizing that data are synchronous | |
| CN114491653B (en) | Data content tamper-proof system, method and device | |
| CN112835866B (en) | Database implementation method and device, electronic equipment and storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20170915 |