CN115865904A - System, method, device, electronic equipment and medium for data synchronization - Google Patents

System, method, device, electronic equipment and medium for data synchronization Download PDF

Info

Publication number
CN115865904A
CN115865904A CN202211559731.0A CN202211559731A CN115865904A CN 115865904 A CN115865904 A CN 115865904A CN 202211559731 A CN202211559731 A CN 202211559731A CN 115865904 A CN115865904 A CN 115865904A
Authority
CN
China
Prior art keywords
data
synchronization
target
file
directory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211559731.0A
Other languages
Chinese (zh)
Inventor
张劲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Hubei Topsec Network Security Technology Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Hubei Topsec Network Security Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd, Hubei Topsec Network Security Technology Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN202211559731.0A priority Critical patent/CN115865904A/en
Publication of CN115865904A publication Critical patent/CN115865904A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The application belongs to the technical field of communication, and discloses a system, a method, a device, electronic equipment and a medium for data synchronization, wherein the method comprises the steps of adopting a page configuration rule to generate a target synchronization file based on target data when the target data to be synchronized is determined to exist; and sending the target synchronization file to the second equipment. Therefore, the page configuration rule is adopted, the data to be synchronized is synchronized after being generated into the target synchronization file, the application range of data synchronization is expanded, and the timeliness of the data synchronization is improved.

Description

System, method, device, electronic equipment and medium for data synchronization
Technical Field
The present application relates to the field of communications technologies, and in particular, to a system, a method, an apparatus, an electronic device, and a medium for data synchronization.
Background
With the development of internet technology, data synchronization between different devices is generally required for data backup to improve data security. In the prior art, data synchronization between different devices is usually realized based on a distributed database.
However, in this way, data of the database can only be synchronized, and data other than the database cannot be synchronized, so that the application range is small, and the timeliness of data synchronization is sometimes poor.
Disclosure of Invention
An embodiment of the present application provides a system, a method, an apparatus, an electronic device, and a medium for data synchronization, so as to expand an application range of data synchronization and improve timeliness of data synchronization when data synchronization is performed.
In one aspect, a system for data synchronization is provided, which includes a first device and a second device, where the first device is configured to: when the target data to be synchronized is determined to exist, generating a target synchronization file based on the target data by adopting a page configuration rule, and sending the target synchronization file to the second equipment; the second device is for: and when the target synchronous file sent by the first equipment is determined to be received, analyzing the target synchronous file to obtain analyzed data.
In one embodiment, the first device is further configured to:
performing synchronous communication configuration based on the network address information of the second equipment, and setting a page configuration rule according to a user instruction;
the second device is further configured to: and carrying out synchronous communication configuration based on the network address information of the first equipment.
In one embodiment, the first device is configured to:
screening out screening data meeting the synchronization condition from the target data;
according to the data processing rule, performing data processing on the screened data to obtain processed data;
and generating a target synchronous file containing the processing data according to the processing data.
In one embodiment, the first device is configured to:
monitoring a first synchronization directory through a first synchronization process, wherein the first synchronization directory is used for storing a target synchronization file;
if the target synchronization file to be synchronized exists in the first synchronization directory according to the monitoring result, calling a file transmission interface, and sending the target synchronization file to a second synchronization directory of the second equipment according to the network address information of the second equipment.
In one embodiment, the second device is configured to:
monitoring a second synchronous directory through a second synchronous process;
and if the target synchronous file exists in the second synchronous directory according to the monitoring result, calling a data synchronous interface, analyzing the target synchronous file and obtaining analyzed data.
In one aspect, a method for data synchronization is provided, and applied to a first device, the method includes:
when the target data to be synchronized is determined to exist, generating a target synchronization file based on the target data by adopting a page configuration rule;
and sending the target synchronization file to the second equipment.
In one embodiment, before sending the target synchronization file to the second device, the method further comprises:
performing synchronous communication configuration based on the network address information of the second device;
establishing communication connection with the second device according to the network address information of the second device
And setting a page configuration rule according to the user instruction.
In one embodiment, generating a target synchronization file based on target data using page configuration rules includes:
screening out screening data meeting the synchronization condition from the target data;
according to the data processing rule, performing data processing on the screened data to obtain processed data;
and generating a target synchronous file containing the processing data according to the processing data.
In one embodiment, sending the target synchronization file to the second device includes:
monitoring a first synchronization directory through a first synchronization process, wherein the first synchronization directory is used for storing a target synchronization file;
if the target synchronization file to be synchronized exists in the first synchronization directory according to the monitoring result, calling a file transmission interface, and sending the target synchronization file to a second synchronization directory of the second equipment according to the network address information of the second equipment.
In one aspect, an apparatus for data synchronization is provided, including:
the generating unit is used for generating a target synchronization file based on the target data by adopting a page configuration rule when the target data to be synchronized is determined to exist;
and the sending unit is used for sending the target synchronization file to the second equipment.
In one embodiment, the generating unit is further configured to:
and carrying out synchronous communication configuration based on the network address information of the second equipment, and setting a page configuration rule according to a user instruction.
In one embodiment, the generating unit is configured to:
screening out screening data meeting the synchronization condition from the target data;
according to the data processing rule, performing data processing on the screened data to obtain processed data;
and generating a target synchronous file containing the processing data according to the processing data.
In one embodiment, the sending unit is configured to:
monitoring a first synchronization directory through a first synchronization process, wherein the first synchronization directory is used for storing a target synchronization file;
if the target synchronization file to be synchronized exists in the first synchronization directory according to the monitoring result, calling a file transmission interface, and sending the target synchronization file to a second synchronization directory of the second equipment according to the network address information of the second equipment.
In one aspect, an electronic device is provided, comprising a processor and a memory, the memory storing computer readable instructions which, when executed by the processor, perform the steps of the method provided in any of the various alternative implementations of data synchronization described above.
In one aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, performs the steps of the method as provided in any of the various alternative implementations of data synchronization described above.
In one aspect, a computer program product is provided, which when run on a computer causes the computer to perform the steps of the method as provided in any of the various alternative implementations of data synchronization described above.
In the system, the method, the device, the electronic equipment and the medium for data synchronization, when target data to be synchronized is determined to exist, a target synchronization file is generated based on the target data by adopting a page configuration rule; and sending the target synchronization file to the second equipment. Therefore, the page configuration rule is adopted, the data to be synchronized is synchronized after being generated into the target synchronization file, the application range of data synchronization is expanded, and the timeliness of the data synchronization is improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic diagram of a system architecture for data synchronization according to an embodiment of the present application;
fig. 2 is a flowchart of a method for data synchronization according to an embodiment of the present application;
fig. 3 is a detailed flowchart of a method for data synchronization according to an embodiment of the present application;
fig. 4 is a block diagram illustrating a structure of a data synchronization apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
First, some terms referred to in the embodiments of the present application will be described to facilitate understanding by those skilled in the art.
The terminal equipment: may be a mobile terminal, a fixed terminal, or a portable terminal such as a mobile handset, station, unit, device, multimedia computer, multimedia tablet, internet node, communicator, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, personal communication system device, personal navigation device, personal digital assistant, audio/video player, digital camera/camcorder, positioning device, television receiver, radio broadcast receiver, electronic book device, gaming device, or any combination thereof, including the accessories and peripherals of these devices, or any combination thereof. It is also contemplated that the first and second components, the terminal device can support any type of interface to the user (e.g., wearable device), etc.
A server: the cloud server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, big data and artificial intelligence platforms and the like.
In order to expand the application range of data synchronization and improve the timeliness of data synchronization when performing data synchronization, embodiments of the present application provide a system, a method, an apparatus, an electronic device, and a medium for data synchronization.
Fig. 1 is a schematic diagram of a system architecture for data synchronization according to an embodiment of the present disclosure. The system includes a first device and a second device. The first device and the second device are both electronic devices, and the electronic devices can be servers or terminal devices.
In the embodiment of the present application, a first device is taken as a main device (e.g., a main data management server), and a second device is taken as a standby device (e.g., a standby data management server). First device for: when the target data to be synchronized is determined to exist, generating a target synchronization file based on the target data by adopting a page configuration rule, and sending the target synchronization file to a second synchronization directory of the second equipment; the second device is for: and when the target synchronous file sent by the first equipment is determined to be received, analyzing the target synchronous file to obtain analyzed data.
Furthermore, before data synchronization, data synchronization configuration can be performed, and a data synchronization function can be started.
In one embodiment, the data synchronization configuration may be as follows:
the first device is further configured to: performing synchronous communication configuration based on the network address information of the second equipment, and setting a page configuration rule according to a user instruction; the second device is further configured to: and carrying out synchronous communication configuration based on the network address information of the first equipment.
In order to ensure the accuracy and security of the synchronization data, in one embodiment, when generating the target synchronization file, the following steps may be adopted:
screening out screening data meeting the synchronization condition from the target data; according to the data processing rule, performing data processing on the screened data to obtain processed data; and generating a target synchronous file containing the processing data according to the processing data.
In order to implement real-time synchronization of data, in an embodiment, when sending a target synchronization file, the following steps may be adopted:
monitoring a first synchronization directory through a first synchronization process, wherein the first synchronization directory is used for storing a target synchronization file; if the target synchronization file to be synchronized exists in the first synchronization directory according to the monitoring result, calling a file transmission interface, and sending the target synchronization file to a second synchronization directory of the second equipment according to the network address information of the second equipment.
In order to improve timeliness of data synchronization, in one embodiment, when the second device obtains the analysis data, the following steps may be adopted:
monitoring a second synchronous directory through a second synchronous process; and if the target synchronous file exists in the second synchronous directory according to the monitoring result, calling a data synchronous interface, analyzing the target synchronous file and obtaining analyzed data.
Furthermore, in order to facilitate real-time viewing of the synchronization result, the second device may display the acquired analysis data in real time.
In the embodiment of the application, various data can be synchronized, including but not limited to database data, configuration data, received data and system parameters and the like, the application range of data synchronization is enlarged, and the complex operation of data synchronization operation is simplified, data synchronization can be realized only by carrying out simple synchronization configuration, and the method has strong operation usability, can synchronize in real time and display the synchronized data, can meet the timeliness requirement of real-time synchronization, and ensures the integrity and safety of data synchronization.
Referring to fig. 2, a flowchart of a data synchronization method provided in an embodiment of the present application is applied to the first device in fig. 1, and the method for data synchronization in the data synchronization system in fig. 1 is described with reference to fig. 2, where the method is implemented in the following steps:
step 200: when the target data to be synchronized is determined to exist, generating a target synchronization file based on the target data by adopting a page configuration rule; step 201: and sending the target synchronization file to the second equipment.
In order to ensure the accuracy and security of the synchronized data, in one embodiment, the following steps may be adopted when step 200 is executed:
s2000: and monitoring local data and judging whether target data to be synchronized exist.
The native data may include: data received from other devices, system parameters generated during operation of the first device, database storage data, and intermediate data and final result data generated during operation of the data.
For personalized data synchronization, in one embodiment, when data monitoring is performed, a designated object may be monitored, and if it is determined that the designated object generates new data or there is data update, it is determined that target data to be synchronized exists.
Optionally, a certain application program may be monitored, a certain parameter may be monitored, a certain device in communication may be monitored, data stored in the database may be monitored, and a certain directory or file may be monitored.
S2001: and screening the screening data meeting the synchronization condition from the target data when the target data to be synchronized is determined to exist.
As an example, screening out the screened data meeting the synchronization condition may adopt any one of the following manners:
mode 1: data received from the designated device is removed from the target synchronization data.
Mode 2: and screening the specified keywords and the corresponding data from the target synchronous data.
Therefore, the data synchronization amount can be reduced, and the data synchronization efficiency and the data effectiveness of synchronization can be improved.
S2002: and according to the data processing rule, performing data processing on the screening data to obtain processed data.
As an example, according to the data processing rule, the screening data is subjected to data processing, and any one of the following manners may be adopted:
mode 1: desensitizing the target synchronization data.
Therefore, data processing can be carried out on the target synchronous data to ensure data security.
Mode 2: and carrying out format standardization on the target synchronous data to obtain the target synchronous data after the unified standard.
Mode 3: and screening out matched data in the target synchronous data by adopting a regular expression.
The page configuration rule comprises the following steps: synchronization conditions for data screening, and data processing rules for data processing.
In practical application, the page configuration rule may be set according to a practical application scenario, which is not limited herein.
S2003: and generating a target synchronous file containing the processing data according to the processing data.
Further, after the target synchronization file is generated, the target synchronization file is stored in the first synchronization directory for subsequent file synchronization.
Further, before step 201 is executed, data synchronization configuration may be performed to start a data synchronization function. In one embodiment, the data synchronization configuration may be as follows:
the first device is further configured to: performing synchronous communication configuration based on the network address information of the second equipment, and setting a page configuration rule according to a user instruction; the second device is further configured to: and carrying out synchronous communication configuration based on the network address information of the first equipment. The first device and the second device establish communication connection through respective synchronous communication configuration, and after the synchronous function is started and the network address configuration is correct, subsequent data synchronization can be performed through the successfully established communication connection. Otherwise, the synchronization flow ends.
For example, the network address information may be: internet Protocol (IP) and port.
For another example, in some local area network application scenarios, the network address information may be: management port IP address/mask, virtual local area network (VLAN Identification, VID), virtual IP/mask, opposite end IP and monitoring interface.
In practical application, the network address information may be set according to a practical application scenario, which is not limited herein.
In this way, after the configuration of the network address information is performed, data communication between the first device and the second device can be realized.
To implement real-time synchronization of data, in one embodiment, when step 201 is executed, the following steps may be adopted:
s2011: monitoring a first synchronization directory through a first synchronization process, wherein the first synchronization directory is used for storing a target synchronization file.
As an example, the first device monitors in real time a directory (i.e., a first synchronization directory) that holds files to be synchronized through a background running hasntrans (i.e., a first synchronization process).
S2012: if the target synchronization file to be synchronized exists in the first synchronization directory according to the monitoring result, calling a file transmission interface, and sending the target synchronization file to a second synchronization directory of the second equipment according to the network address information of the second equipment.
Wherein the second synchronization directory is used for storing the target synchronization file synchronized from the first device.
In one embodiment, the file is deleted after it is determined that the file in the first synchronization directory is synchronized, and thus, when it is determined that the file exists in the first synchronization target, the file is determined to be the file to be synchronized.
As an example, when it is determined that a new target synchronization file exists in the first synchronization directory, a file synchronization request is initiated to the second device, a file transfer interface of the second device is called, and the target synchronization file is synchronized to the second synchronization directory of the second device.
In one embodiment, the file state of the file in the first synchronization directory is obtained, if the file state is determined to be the file to be synchronized, the file is determined to be the file to be synchronized, and after the file is determined to be synchronized, the file state of the file is updated to be synchronized.
In one embodiment, a file name of a file in a first synchronization directory is obtained, if it is determined that a file containing a specified character (e.g., a to-be-synchronized identifier) exists in the file name, the file is determined to be a to-be-synchronized file, and after it is determined that the file is synchronized, the specified character in the file name of the file is removed.
In practical application, the mode of detecting whether the file to be synchronized exists may be set according to a practical application scenario, which is not limited herein.
Further, the second device analyzes the received target synchronization file to obtain analysis data.
In order to improve timeliness of data synchronization, in one embodiment, when the second device obtains the analysis data, the following steps may be adopted:
monitoring a second synchronous directory through a second synchronous process; and if the target synchronous file exists in the second synchronous directory according to the monitoring result, calling a data synchronous interface, analyzing the target synchronous file and obtaining analyzed data.
As an example, the second synchronization process is a HaSyncSvr process for monitoring the second synchronization directory.
Furthermore, in order to facilitate real-time viewing of the synchronization result, the second device may display the acquired analysis data in real time.
The analysis data is the target synchronization data for generating the target synchronization file.
In the embodiment of the application, various data can be synchronized, including but not limited to database data, configuration data, received data and system parameters and the like, the application range of data synchronization is enlarged, and the complex operation of data synchronization operation is simplified, data synchronization can be realized only by carrying out simple synchronization configuration, and the method has strong operation usability, can synchronize in real time and display the synchronized data, can meet the timeliness requirement of real-time synchronization, and ensures the integrity and safety of data synchronization.
Referring to fig. 3, a detailed flowchart of a method for data synchronization is shown, and the method for data synchronization in fig. 2 is illustrated in conjunction with fig. 3.
Step 300: and the first equipment and the second equipment respectively carry out synchronous configuration, establish communication connection and start a synchronous function.
The synchronous configuration comprises synchronous communication configuration, synchronous function starting and page configuration rule configuration.
Step 301: and when the first equipment determines that the target data to be synchronized exists, generating a target synchronization file based on the target data by adopting a page configuration rule, and storing the target synchronization file to the first synchronization directory.
Step 302: the first equipment monitors the first synchronization directory through a HaSyncTrans process, and calls a file transmission interface to send the target synchronization file to a second synchronization directory of the second equipment when capturing that the first synchronization directory has a new target synchronization file.
In one embodiment, the first device determines whether the synchronization function is enabled, and if so, sends the target synchronization file to the second synchronization directory of the second device, otherwise, ends the data synchronization process.
Step 303: the second device stores the received target synchronization file to a second synchronization directory.
Step 304: and the second equipment monitors the second synchronous directory through HaSyncTrans, and calls the data synchronization interface to analyze the target synchronous file to obtain analysis data when capturing that the second synchronous directory has a new target synchronous file.
Step 305: and the second equipment displays the analysis data.
In the embodiment of the application, the database synchronization is not needed, and various data can be synchronized, including but not limited to database data, configuration data, received data and system parameters, etc., the application range of data synchronization is enlarged, and the complex operation of data synchronization operation is simplified, data synchronization can be realized only by carrying out simple synchronization configuration, the operation usability is very strong, and the data after synchronization can be synchronized in real time and displayed, the timeliness requirement of real-time synchronization can be met, and the integrity and the safety of data synchronization are ensured.
Based on the same inventive concept, the embodiment of the present application further provides a data synchronization apparatus, and as the principle of the apparatus and the device for solving the problem is similar to that of a data synchronization method, the implementation of the apparatus can refer to the implementation of the method, and repeated details are omitted.
As shown in fig. 4, it is a block diagram of a data synchronization apparatus provided in this embodiment, including:
a generating unit 401, configured to generate a target synchronization file based on target data by using a page configuration rule when it is determined that the target data to be synchronized exists;
a sending unit 402, configured to send the target synchronization file to the second device.
In one embodiment, the generating unit 401 is further configured to:
and carrying out synchronous communication configuration based on the network address information of the second equipment, and setting a page configuration rule according to a user instruction.
In one embodiment, the generating unit 401 is configured to:
screening out screening data meeting the synchronization condition from the target data;
according to the data processing rule, performing data processing on the screened data to obtain processed data;
and generating a target synchronous file containing the processing data according to the processing data.
In one embodiment, the sending unit 402 is configured to:
monitoring a first synchronization directory through a first synchronization process, wherein the first synchronization directory is used for storing a target synchronization file;
if the target synchronization file to be synchronized exists in the first synchronization directory according to the monitoring result, calling a file transmission interface, and sending the target synchronization file to a second synchronization directory of the second equipment according to the network address information of the second equipment.
In the system, the method, the device, the electronic equipment and the medium for data synchronization, when target data to be synchronized is determined to exist, a target synchronization file is generated based on the target data by adopting a page configuration rule; and sending the target synchronization file to the second equipment. Therefore, the page configuration rule is adopted, the data to be synchronized is synchronized after being generated into the target synchronization file, the application range of data synchronization is expanded, and the timeliness of the data synchronization is improved.
Fig. 5 shows a schematic structural diagram of an electronic device 5000. Referring to fig. 5, the electronic device 5000 includes: the processor 5010 and the memory 5020 can optionally include a power supply 5030, a display unit 5040, and an input unit 5050.
The processor 5010 is a control center of the electronic apparatus 5000, connects various components using various interfaces and lines, and performs various functions of the electronic apparatus 5000 by running or executing software programs and/or data stored in the memory 5020, thereby monitoring the electronic apparatus 5000 as a whole.
In the embodiment of the present application, the processor 5010 executes each step in the above embodiments when calling a computer program stored in the memory 5020.
Optionally, the processor 5010 can include one or more processing units; preferably, the processor 5010 can integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the above-described, the modem processor described above may not be integrated into processor 5010. In some embodiments, the processor, memory, and/or memory may be implemented on a single chip, or in some embodiments, they may be implemented separately on separate chips.
The memory 5020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, various applications, and the like; the storage data area may store data created according to the use of the electronic device 5000, and the like. Further, the memory 5020 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The electronic device 5000 also includes a power supply 5030 (e.g., a battery) that provides power to the various components and that may be logically connected to the processor 5010 via a power management system to provide management of charging, discharging, and power consumption via the power management system.
The display unit 5040 may be configured to display information input by a user or information provided to the user, and various menus of the electronic device 5000, and in the embodiment of the present invention, the display unit is mainly configured to display a display interface of each application in the electronic device 5000 and objects such as texts and pictures displayed in the display interface. The display unit 5040 may include a display panel 5041. The Display panel 5041 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The input unit 5050 may be used to receive information such as numbers or characters input by a user. Input units 5050 may include touch panel 5051 as well as other input devices 5052. Among other things, the touch panel 5051, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 5051 (e.g., operations by a user on or near the touch panel 5051 using a finger, a stylus, or any other suitable object or attachment).
Specifically, the touch panel 5051 can detect a touch operation by a user, detect signals resulting from the touch operation, convert the signals into touch point coordinates, transmit the touch point coordinates to the processor 5010, and receive and execute a command transmitted from the processor 5010. In addition, the touch panel 5051 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. Other input devices 5052 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power on/off keys, etc.), a trackball, a mouse, a joystick, and the like.
Of course, the touch panel 5051 may cover the display panel 5041, and when the touch panel 5051 detects a touch operation thereon or thereabout, it is transmitted to the processor 5010 to determine the type of touch event, and then the processor 5010 provides a corresponding visual output on the display panel 5041 according to the type of touch event. Although in fig. 5, touch panel 5051 and display panel 5041 are provided as two separate components to implement input and output functions of electronic device 5000, in some embodiments, touch panel 5051 may be integrated with display panel 5041 to implement input and output functions of electronic device 5000.
The electronic device 5000 may also include one or more sensors, such as pressure sensors, gravitational acceleration sensors, proximity light sensors, and the like. Of course, the electronic device 5000 may further include other components such as a camera according to requirements of specific applications, and since these components are not components used in this embodiment as an important component, they are not shown in fig. 5 and are not described in detail.
Those skilled in the art will appreciate that fig. 5 is merely an example of an electronic device and is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or different components.
In an embodiment of the present application, a computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the communication device may perform the steps in the above embodiments.
For convenience of description, the above parts are separately described as modules (or units) according to functional division. Of course, the functionality of the various modules (or units) may be implemented in the same one or more pieces of software or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and and combinations of flows and/or blocks in the flowcharts and/or block diagrams. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (15)

1. A system for data synchronization comprising a first device and a second device, wherein,
the first device is to: when the target data to be synchronized is determined to exist, generating a target synchronization file based on the target data by adopting a page configuration rule, and sending the target synchronization file to the second equipment;
the second device is to: and when the target synchronous file sent by the first equipment is determined to be received, analyzing the target synchronous file to obtain analyzed data.
2. The system of claim 1, wherein the first device is further to:
performing synchronous communication configuration based on the network address information of the second device, and setting the page configuration rule according to a user instruction;
the second device is further to: and carrying out synchronous communication configuration based on the network address information of the first equipment.
3. The system of claim 1, wherein the first device is to:
screening out screening data meeting the synchronization condition from the target data;
according to a data processing rule, performing data processing on the screening data to obtain processed data;
and generating the target synchronization file containing the processing data according to the processing data.
4. The system of claim 2, wherein the first device is to:
monitoring a first synchronization directory through a first synchronization process, wherein the first synchronization directory is used for storing the target synchronization file;
if the target synchronization file to be synchronized exists in the first synchronization directory according to the monitoring result, calling a file transmission interface, and sending the target synchronization file to a second synchronization directory of the second equipment according to the network address information of the second equipment.
5. The system of any of claims 1-4, wherein the second device is to:
monitoring a second synchronous directory through a second synchronous process;
and if the target synchronous file exists in the second synchronous directory according to the monitoring result, calling a data synchronous interface, analyzing the target synchronous file and obtaining the analyzed data.
6. A method for data synchronization, applied to a first device, includes:
when the target data to be synchronized is determined to exist, generating a target synchronization file based on the target data by adopting a page configuration rule;
and sending the target synchronization file to the second equipment.
7. The method of claim 6, wherein prior to sending the target synchronization file to the second device, the method further comprises:
performing synchronous communication configuration based on the network address information of the second device;
establishing communication connection with the second equipment according to the network address information of the second equipment
And setting the page configuration rule according to a user instruction.
8. The method of claim 6, wherein generating a target synchronization file based on the target data using page configuration rules comprises:
screening data meeting the synchronization condition from the target data;
according to a data processing rule, performing data processing on the screening data to obtain processed data;
and generating the target synchronization file containing the processing data according to the processing data.
9. The method of claim 7, wherein the sending the target synchronization file to the second device comprises:
monitoring a first synchronization directory through a first synchronization process, wherein the first synchronization directory is used for storing the target synchronization file;
if the target synchronization file to be synchronized exists in the first synchronization directory according to the monitoring result, calling a file transmission interface, and sending the target synchronization file to a second synchronization directory of the second equipment according to the network address information of the second equipment.
10. An apparatus for data synchronization, comprising:
the device comprises a generating unit, a synchronizing unit and a synchronizing unit, wherein the generating unit is used for generating a target synchronizing file based on target data by adopting a page configuration rule when the target data to be synchronized exists;
and the sending unit is used for sending the target synchronization file to the second equipment.
11. The apparatus of claim 10, wherein the generating unit is further to:
and carrying out synchronous communication configuration based on the network address information of the second equipment, and setting the page configuration rule according to a user instruction.
12. The apparatus of claim 10, wherein the generating unit is to:
screening out screening data meeting the synchronization condition from the target data;
according to a data processing rule, performing data processing on the screening data to obtain processed data;
and generating the target synchronization file containing the processing data according to the processing data.
13. The apparatus as set forth in claim 11, wherein, wherein the sending unit is configured to:
monitoring a first synchronization directory through a first synchronization process, wherein the first synchronization directory is used for storing the target synchronization file;
if the target synchronization file to be synchronized exists in the first synchronization directory according to the monitoring result, calling a file transmission interface, and sending the target synchronization file to a second synchronization directory of the second device according to the network address information of the second device.
14. An electronic device comprising a processor and a memory, the memory storing computer readable instructions that, when executed by the processor, perform the method of any of claims 6-9.
15. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 6-9.
CN202211559731.0A 2022-12-06 2022-12-06 System, method, device, electronic equipment and medium for data synchronization Pending CN115865904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211559731.0A CN115865904A (en) 2022-12-06 2022-12-06 System, method, device, electronic equipment and medium for data synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211559731.0A CN115865904A (en) 2022-12-06 2022-12-06 System, method, device, electronic equipment and medium for data synchronization

Publications (1)

Publication Number Publication Date
CN115865904A true CN115865904A (en) 2023-03-28

Family

ID=85670496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211559731.0A Pending CN115865904A (en) 2022-12-06 2022-12-06 System, method, device, electronic equipment and medium for data synchronization

Country Status (1)

Country Link
CN (1) CN115865904A (en)

Similar Documents

Publication Publication Date Title
US7401337B2 (en) Managing application interactions using distributed modality components
CN111930521A (en) Method and device for deploying application, electronic equipment and readable storage medium
CN105550252A (en) File positioning method and device and electronic equipment
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN112231144A (en) Data processing method and device and electronic equipment
CN115658348A (en) Micro-service calling method, related device and storage medium
US20240089223A1 (en) Information display method and apparatus, and electronic device
CN113609107A (en) Database management method and device, electronic equipment and storage medium
CN111817944A (en) Picture sharing method and device and electronic equipment
US20220382599A1 (en) Method and apparatus for processing resource, electronic device and storage medium
CN110196662A (en) A kind of method, apparatus, terminal and storage medium showing synchronous regime
CN115865904A (en) System, method, device, electronic equipment and medium for data synchronization
CN114443164A (en) Task processing method and device, electronic equipment and storage medium
CN113922998A (en) Vulnerability risk assessment method and device, electronic equipment and readable storage medium
CN113824627A (en) Group chat message display method and device, electronic equipment and storage medium
CN113037871A (en) Conference call recovery method, device, system, electronic equipment and readable storage medium
CN112698879A (en) Method and device for loading source file
CN113726612B (en) Method and device for acquiring test data, electronic equipment and storage medium
CN115150167B (en) Method and device for synchronous control, electronic equipment and computer readable storage medium
CN113705722A (en) Method, device, equipment and medium for identifying version of operating system
CN113726612A (en) Method and device for acquiring test data, electronic equipment and storage medium
CN114090123A (en) Method and device for configuring equipment parameters, electronic equipment and storage medium
CN115346217A (en) Method and device for detecting character line, electronic equipment and storage medium
CN114911691A (en) Application debugging method and device, electronic equipment and storage medium
CN114159797A (en) Text processing method and device, computer equipment and storage medium

Legal Events

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