CN115567372A - Data backup method and device, storage medium and electronic equipment - Google Patents

Data backup method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115567372A
CN115567372A CN202210995886.2A CN202210995886A CN115567372A CN 115567372 A CN115567372 A CN 115567372A CN 202210995886 A CN202210995886 A CN 202210995886A CN 115567372 A CN115567372 A CN 115567372A
Authority
CN
China
Prior art keywords
data
network
equipment
synchronized
target
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
CN202210995886.2A
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202210995886.2A priority Critical patent/CN115567372A/en
Publication of CN115567372A publication Critical patent/CN115567372A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present application relates to the field of intelligent internet of things technology, and in particular, to a data backup method and apparatus, a computer-readable storage medium, and an electronic device. The method comprises the following steps: under the condition that the network abnormality is detected, data which are sent by connected equipment and are not synchronized to a target server are stored; and under the condition that the network is detected to be recovered to normal, sending the data which is not synchronized to the target server. Compared with the traditional intelligent internet of things gateway, the technical scheme of the application only needs to simply configure corresponding equipment or a server, saves the data collected by the equipment blocked due to network interruption after the network interruption condition is identified, and automatically transmits the blocked data continuously under the condition of network recovery. The method and the system can not only automatically identify the abnormality of the local area network of the system, but also early warn a user of equipment with network faults, thereby ensuring the integrity of data collected by the equipment to the maximum extent.

Description

Data backup method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of intelligent internet of things technologies, and in particular, to a data backup method and apparatus, a storage medium, and an electronic device.
Background
With the development of economy and the rising cost of human resources, manufacturing enterprises are increasingly inclined to replace or reduce human efforts with automated, intelligent devices or systems.
However, in order to truly realize the less humanization and the unmanned production process, the production process management and control system needs to have the functions of cooperative control of production links such as processing, carrying, ensuring and detecting in a production field, real-time monitoring of a field state, timely response and elimination of field abnormality and the like.
Although, the industrial field intelligent internet of things gateway in the prior art can realize real-time acquisition of field data, intelligent sensing and real-time optimization control of a process, and can provide basic support for realizing an intelligent management and control function of a production process. However, there is a serious problem in using a gateway as an intermediary between a server and various devices: at present, the reliability of the network cannot be completely guaranteed in the related art, and when an upper layer network or a lower layer network of a gateway is disconnected, a large amount of data which is being transmitted in the network is lost, and the lost data includes data acquired by equipment. The data of the production and manufacturing process is very important for enterprises, and directly influences various decisions of the enterprises. Meanwhile, the data loss behavior is also unaware, because both the server and the equipment do not know when the other party sends data to the server and the equipment; it is also difficult to trace back lost data, which costs a lot of labor and time.
Disclosure of Invention
In order to solve the problems, the application provides a data backup method, a data backup device, a storage medium and electronic equipment, which can be connected with equipment of various communication protocols through simple configuration, and solve the problem that the acquired data of the equipment is lost due to network disconnection of an intelligent internet of things gateway.
In a first aspect of the present application, a data backup method is provided, where the method includes:
under the condition that the network abnormality is detected, data which are sent by connected equipment and are not synchronized to a target server are stored;
and under the condition that the network is detected to be recovered to normal, sending the data which is not synchronized to the target server.
In some embodiments, before the saving data sent by the connected device and not synchronized to the target server in the case of detecting the network anomaly, the method further includes:
and under the condition that the network is detected to be normal, transmitting the data transmitted by the connected equipment to the target server.
In some embodiments, the saving data sent by the connected device and not synchronized to the target server includes: storing data which are sent by connected equipment and are not synchronized to a target server to a preset data table;
after the sending the data not synchronized to the target server, further comprising: and emptying the preset data table.
In some embodiments, in the event that a network anomaly is detected, the method further comprises:
if the network abnormity is determined to be local area network abnormity, sending a network abnormity prompt, wherein the network abnormity prompt comprises equipment information of the first type of equipment and/or a network connection mode modification prompt aiming at the first type of equipment, and the first type of equipment comprises equipment connected in a local area network mode.
In some embodiments, before the saving data sent by the connected device and not synchronized to the target server in the case of detecting the network anomaly, the method further includes:
and when detecting an adding device instruction, adding target devices and connection configuration information corresponding to the target devices to connect the target devices.
In some embodiments, after adding the target device and the connection configuration information corresponding to the target device, the method further includes:
and debugging the target equipment according to the connection configuration information corresponding to the target equipment.
In some embodiments, further comprising:
and under the condition that the target equipment is debugged successfully, when an adding server instruction is detected, adding a target server so that the target server receives the data synchronized by the target equipment.
In some embodiments, the data sent by the connected device is parsed via a predetermined parsing protocol before being synchronized to a target server or stored.
In a second aspect of the present application, there is provided a data backup apparatus, including:
the storage module is used for storing data which is sent by the connected equipment and is not synchronized to the target server under the condition that the network abnormality is detected;
and the synchronization module is used for sending the data which are not sent to the target server under the condition that the network is detected to be recovered to normal.
In a third aspect of the application, a computer-readable storage medium is provided, storing a computer program, executable by one or more processors, for implementing a method as described above.
In a fourth aspect of the present application, an electronic device is provided, comprising a memory and one or more processors, the memory having stored thereon a computer program, the memory and the one or more processors being communicatively connected to each other, the computer program, when executed by the one or more processors, implementing the method as described above.
Compared with the prior art, the technical scheme of the application has the following advantages or beneficial effects:
compared with the traditional intelligent internet of things gateway, the technical scheme of the application only needs to simply configure the corresponding equipment or the server, and realizes that the data collected by the equipment blocked due to the network interruption is stored after the network interruption condition is identified, and the blocked data is automatically continuously transmitted under the condition that the network recovery is identified. The method not only can automatically identify the abnormality of the system local area network, but also can early warn a user about the equipment with network faults, thereby ensuring the integrity of data collected by the equipment to the maximum extent.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a data backup method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data backup according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a data backup device according to an embodiment of the present application;
fig. 4 is a connection block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following detailed description will be provided with reference to the accompanying drawings and embodiments, so that how to apply the technical means to solve the technical problems and achieve the corresponding technical effects can be fully understood and implemented. The embodiments and various features in the embodiments of the present application can be combined with each other on the premise of no conflict, and the formed technical solutions are all within the protection scope of the present application.
Example one
Fig. 1 is a flowchart of a data backup method provided in an embodiment of the present application, and as shown in fig. 1, the method of the present embodiment includes:
and S110, under the condition that the network abnormality is detected, storing data which is sent by the connected equipment and is not synchronized to the target server.
In some cases, under a normal network condition, before adding a device, it is necessary to determine whether there is locally unsynchronized data that has not been sent to the target server due to a network outage, and when there is unsynchronized data, it is necessary to send the unsynchronized data to the target server first, and delete the unsynchronized data after the synchronization is successful.
In some embodiments, before the saving data sent by the connected device and not synchronized to the target server in the case of detecting the network anomaly, the method further includes:
and when detecting an adding device instruction, adding target devices and connection configuration information corresponding to the target devices to connect the target devices.
Optionally, when adding the device, first add basic information (including asset information, manufacturer information, usage units, production lines, posts, etc.) of the device, and then add connection configuration and debugging information (including connection mode, resolution protocol, etc.) of the device.
In some embodiments, after adding the target device and the connection configuration information corresponding to the target device, the method further includes:
and debugging the target equipment according to the connection configuration information corresponding to the target equipment.
Optionally, after the device is added, the device needs to be debugged according to the connection configuration and the debugging information corresponding to the device. For example, the corresponding resolution protocol of the device is selected to start debugging the device, to check whether the data of the device can be normally received, and/or to check whether the device can normally receive and execute the instructions sent by other systems. If the resolution protocol has problems, the debugging process is abnormal, and at the moment, the equipment needs to be debugged again until the debugging is successful. The user can be reminded when an abnormality occurs in the debugging process, and the user can select to replace the analysis protocol to continue debugging or stop debugging.
Optionally, after the device is successfully debugged, the step of adding the device may be further performed.
In some embodiments, further comprising:
and under the condition that the target equipment is debugged successfully, when an adding server instruction is detected, adding a target server so that the target server receives the data synchronized by the target equipment.
Optionally, when a server is added, basic information (including a system name, an IP, a port number, an account number, and a password) of the server needs to be set.
Optionally, when an instruction to add a server is detected, other systems, message middleware, etc. may also be added.
For example, the message middleware may be a RabbitMQ (as will be understood by those skilled in the art, a RabbitMQ is an open source message agent software that implements an advanced message queuing protocol, also referred to as message-oriented middleware); other systems may include a first system and a second system, for example, the first system may include a detection system that may receive detection data for the device; the second system may include a Glink device management system, and the connected devices may communicate with each other through RabbitMQ, for example, sending a firmware update instruction to the connected devices in the form of a RabbitMQ message to enable the corresponding devices to perform a firmware update operation, and also sending other instructions to be able to update related information of the devices managed by the Glink device management system.
It should be noted that basic information of the server must be set first, and then the connected device can communicate with the server according to a certain rule (for example, send data to be synchronized to the server).
In some embodiments, the data sent by the connected device is parsed via a preset parsing protocol before being synchronized to a target server or stored.
Optionally, the preset parsing protocol may be a mainstream parsing protocol, or may be a user-defined parsing protocol, and only the relevant basic information and the parsing protocol need to be simply configured when the device is connected.
Optionally, before the storing the data that is sent by the connected device and is not synchronized to the target server under the condition that the network anomaly is detected, the method further includes:
under the condition that the network is normal, analyzing data sent by connected equipment to obtain analyzed data;
and storing the analysis data into a preset data table of a local database, and simultaneously sending the analysis data to a server.
In some cases, the time when the connected device sends data may be saved in a preset time data table of the local database at the same time as the parsing data is saved in a preset data table of the local database. When synchronizing data to the server, the time data stored in the preset time data table of the local database and the analysis data stored in the preset data table of the local database may be transmitted to the server together.
Optionally, the preset data table may be a data backup table in the local database, and may be specifically set according to the actual requirement of the user.
Optionally, after the storing the analysis data in a preset data table and sending the analysis data to a server, the method further includes:
and clearing the preset data table.
Optionally, under a normal network condition, the data sent by the connected device is firstly analyzed to obtain analyzed data (data that is not sent to the target server), the analyzed data is stored in a preset data table in the local database, then the time for the connected device to send the unsynchronized data is also stored in the preset data table in the local database, finally the analyzed data is synchronized to the server, and the data stored in the preset data table in the local database is deleted after the synchronization is successful.
Optionally, the data may be processed when the data sent by another system is received, if the data needs to be communicated with a connected device, the device to be communicated may be found according to the corresponding rule, and the instruction may be forwarded to the device, and if the instruction fails to be sent, the error type may be identified and a warning message may be sent to the user; after receiving data sent by connected equipment, analyzing the data to obtain analyzed data, storing the analyzed data into a local database, and then sending the analyzed data to a server according to a certain rule.
It should be noted that, when there are multiple connected devices, the data that needs to be backed up by each device may be stored in the same table in the local database, or may be separately stored in a table corresponding to each device, and the data may be specifically set according to actual requirements.
In some embodiments, before the saving data sent by the connected device and not synchronized to the target server in the case of detecting the network anomaly, the method further includes:
and under the condition that the network is detected to be normal, transmitting the data transmitted by the connected equipment to the target server.
Optionally, a heartbeat detection mechanism (regularly sending a request) is used to determine whether the network is abnormal, for example, the request is abnormal or the data reception is abnormal, and the client is considered to be disconnected.
It should be noted that, the connected device and the server can communicate through the message middleware RabbitMQ, which ensures that data arriving at the RabbitMQ cannot be lost even if the network is disconnected.
In some cases, the server and the user terminal can be connected with the user terminal, the server and the user terminal can publish and subscribe RabbitMQ messages, the client needs to perform corresponding verification when receiving the messages, and the messages are processed after the verification is passed, so that the security of the data of the Internet of things is enhanced. Subscribers who subscribe to a certain type of message receive the corresponding message and then do corresponding actions according to the message content.
In some embodiments, the saving data sent by the connected device and not synchronized to the target server includes: storing data which are sent by connected equipment and are not synchronized to a target server to a preset data table;
after the sending the data not synchronized to the target server, further comprising: and emptying the preset data table.
Optionally, after synchronizing the data sent by the connected device to the server, the data stored locally in the preset data table of the database needs to be cleared.
In some embodiments, in the event that a network anomaly is detected, the method further comprises:
if the network abnormity is determined to be local area network abnormity, sending a network abnormity prompt, wherein the network abnormity prompt comprises equipment information of the first type of equipment and/or a network connection mode modification prompt aiming at the first type of equipment, and the first type of equipment comprises equipment connected in a local area network mode.
For example, if there are devices accessing through the lan, when a network disconnection occurs, it will be prompted to "how is the lan disconnected, there are 2 devices (device 1, device 2) connected through the lan and whether to modify the access mode? If no, the user knows that the two devices are not the devices in use and does not need to modify the connection mode; if the equipment is selected to be debugged, the equipment needs to be correspondingly modified, a modification button is clicked to an equipment entry page of 103, corresponding equipment is found according to equipment information, connection is carried out through wires such as a serial port, then equipment connection mode information is modified on the page, and the equipment is debugged continuously 104.
It should be noted that the method disclosed in this embodiment may be applied to a server, an industrial PC (Personal computer), a device, and the like in a manufacturing enterprise to implement mutual communication, and on the premise of ensuring data integrity, an industrial manufacturing internet of things is implemented, and the connection mode of the device may include wired access (for example, a USB interface, a serial port, an ethernet interface, and the like) and wireless access (for example, bluetooth, NFC, and the like), and supports multiple access modes when connecting the device, and meanwhile, facilitates quick switching of the connection mode when the network is disconnected.
And S120, sending the data which is not synchronized to the target server under the condition that the network is detected to be recovered to be normal.
Optionally, when it is detected that the network is recovered to normal, the data in the preset data table of the local database is sent to the target server (for example, the corresponding unsynchronized data is pushed to a delay queue of the server), so that a situation that data being propagated in the network is lost due to network outage is avoided, and the integrity of the data is ensured.
It should be noted that, in order to further improve the efficiency of data synchronization, in some cases, the step of frequently executing "determining whether there is unsynchronized data in the preset data table of the local database" may be instantiated as a tool class, the result of "determining whether there is unsynchronized data" is used as a value in the tool class, only the cache value needs to be updated each time the unsynchronized data is added and emptied, and database query is not needed when determining whether there is unsynchronized data locally, which improves the efficiency.
Meanwhile, to facilitate understanding of the technical solution of the present application, reference may also be made to fig. 2, and fig. 2 is a schematic flow chart of data backup provided in the embodiment of the present application.
Compared with the traditional intelligent internet of things gateway, the data backup method provided by the embodiment only needs to simply configure the corresponding equipment or server, stores the data collected by the equipment blocked due to the network interruption after the network interruption condition is identified, and automatically continues to transmit the blocked data when the network restoration condition is identified. Specifically, the method comprises the following steps: under the condition that the network abnormality is detected, data which are sent by connected equipment and are not synchronized to a target server are stored; and under the condition that the network is detected to be recovered to normal, sending the data which is not synchronized to the target server. According to the technical scheme, system LAN abnormity can be automatically identified, early warning can be carried out on equipment with network faults to a user, and the integrity of data collected by the equipment is guaranteed to the maximum extent.
Example two
The present embodiment provides a data backup device, which can be used to execute the method embodiment of the present application, and for details not disclosed in the embodiment of the present application, please refer to the method embodiment of the present application. Fig. 3 is a schematic structural diagram of a data backup apparatus according to an embodiment of the present application, and as shown in fig. 3, an apparatus 300 according to the embodiment includes:
a saving module 301, configured to save, when a network anomaly is detected, data that is sent by a connected device and is not synchronized to a target server;
and a synchronization module 302, configured to send the data that is not synchronized to the target server when it is detected that the network is recovered to normal.
In some embodiments, further comprising: and the second synchronization module is used for sending the data sent by the connected equipment to the target server under the condition of detecting that the network is normal before the data which is sent by the connected equipment and is not synchronized to the target server is stored under the condition of detecting that the network is abnormal.
In some embodiments, the saving module 301 comprises: a saving unit, an emptying unit; wherein the content of the first and second substances,
the storage unit is used for storing data which are sent by the connected equipment and are not synchronized to the target server into a preset data table;
and the emptying unit is used for emptying the preset data table after the data which are not sent to the target server are sent to the target server.
In some embodiments, further comprising: the system comprises an abnormality reminding module and a processing module, wherein the abnormality reminding module is used for sending out a network abnormality reminding if the network abnormality is determined to be a local area network abnormality under the condition that the network abnormality is detected, the network abnormality reminding comprises equipment information of first-class equipment and/or a network connection mode modification prompt aiming at the first-class equipment, and the first-class equipment comprises equipment connected in a local area network mode.
In some embodiments, the system further includes a device adding module, configured to add, when an add device instruction is detected, connection configuration information corresponding to a target device and the target device to connect the target device, before storing data that is sent by a connected device and is not synchronized to a target server under the condition that the network anomaly is detected.
In some embodiments, the apparatus further includes an apparatus debugging module, configured to debug the apparatus according to the connection configuration information corresponding to the apparatus after the apparatus is added and the connection configuration information corresponding to the apparatus.
In some embodiments, the server adding module is further configured to, in a case that the target device is successfully debugged, add a target server when an add server instruction is detected, so that the target server receives data synchronized by the target device.
In some embodiments, the data sent by the connected device is parsed via a predetermined parsing protocol before being synchronized to a target server or stored.
Those skilled in the art will appreciate that the configuration shown in fig. 3 is not intended to be limiting of the devices of embodiments of the present application and may include more or fewer modules/units than those shown, or some modules/units may be combined, or a different arrangement of modules/units.
It should be noted that the above modules/units may be functional modules or program modules, and may be implemented by software or hardware. For the modules/units implemented by hardware, the above modules/units may be located in the same processor; or the modules/units can be respectively positioned in different processors in any combination.
The device provided by the embodiment comprises: a saving module 301, configured to save, when a network anomaly is detected, data that is sent by a connected device and is not synchronized to a target server; a synchronization module 302, configured to send the data that is not synchronized to the target server when it is detected that the network is recovered to normal. Compared with the traditional intelligent internet of things gateway, the technical scheme of the application only needs to simply configure corresponding equipment or a server, saves the data collected by the equipment due to network interruption blockage after the network interruption condition is identified, and automatically transmits the blocked data continuously under the condition that the network is recovered. The method and the system can not only automatically identify the abnormality of the local area network of the system, but also early warn a user of equipment with network faults, thereby ensuring the integrity of data collected by the equipment to the maximum extent.
EXAMPLE III
The present embodiment further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method steps in the foregoing method embodiments may be implemented, and the details of the present embodiment are not repeated herein.
The computer-readable storage medium may also include, among other things, a computer program, a data file, a data structure, etc., alone or in combination. The computer-readable storage medium or computer program may be specifically designed and understood by those skilled in the art of computer software, or the computer-readable storage medium may be known and available to those skilled in the art of computer software. Examples of computer-readable storage media include: magnetic media such as hard disks, floppy disks, and magnetic tape; optical media, such as CDROM disks and DVDs; magneto-optical media, e.g., optical disks; and hardware devices, particularly configured to store and execute computer programs, such as Read Only Memory (ROM), random Access Memory (RAM), flash memory; or a server, app application mall, etc. Examples of computer programs include both machine code, such as produced by a compiler, and files containing higher level code that may be executed by the computer using an interpreter. The described hardware devices may be configured to act as one or more software modules to perform the operations and methods described above, and vice versa. In addition, the computer-readable storage medium can be distributed over network-coupled computer systems and can store and execute program code or computer programs in a distributed fashion.
Example four
Fig. 4 is a connection block diagram of an electronic device according to an embodiment of the present disclosure, and as shown in fig. 4, the electronic device 400 may include: one or more processors 401, memory 402, multimedia components 403, input/output (I/O) interfaces 404, and communication components 405.
Wherein the one or more processors 401 are adapted to perform all or a portion of the steps of the method embodiments as described above. The memory 402 is used to store various types of data, which may include, for example, instructions for any application or method in the electronic device, as well as application-related data.
The one or more processors 401 may be implemented as Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components configured to perform the methods as in the method embodiments described above.
The Memory 402 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
The multimedia component 403 may include a screen, which may be a touch screen, and an audio component for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in a memory or transmitted through a communication component. The audio assembly further comprises at least one speaker for outputting audio signals.
The I/O interface 404 provides an interface between the one or more processors 401 and other interface modules, which may be a keyboard, mouse, buttons, and the like. These buttons may be virtual buttons or physical buttons.
The communication component 405 is used for wired or wireless communication between the electronic device 400 and other devices. The wired communication includes communication through a network port, a serial port and the like; the wireless communication includes: wi-Fi, bluetooth, near Field Communication (NFC for short), 2G, 3G, 4G, 5G, or a combination of one or more of them. The corresponding communication component 405 may therefore include: wi-Fi module, bluetooth module, NFC module.
In summary, compared with the conventional intelligent internet of things gateway, the data backup method, the apparatus, the computer-readable storage medium, and the electronic device provided by the present application only need to simply configure the corresponding device or server, store the data collected by the device due to network outage blockage when the network outage situation is identified, and automatically continue to transmit the blocked data when the network restoration situation is identified. Specifically, the method comprises the following steps: under the condition that the network abnormality is detected, storing data which is sent by the connected equipment and is not synchronized to the target server; and under the condition that the network is detected to be recovered to normal, sending the data which is not synchronized to the target server. According to the technical scheme, system local area network abnormity can be automatically identified, early warning can be carried out on equipment with network faults to a user, and the integrity of data collected by the equipment is guaranteed to the maximum extent.
It should be further understood that the method or system disclosed in the embodiments provided in the present application may be implemented in other ways. The method or system embodiments described above are merely illustrative, for example, and the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and apparatus according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, a segment, or a portion of a computer program, which comprises one or more computer programs for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures, or indeed, may be executed substantially concurrently, or in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer programs.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230a of 8230, a" does not exclude the presence of additional identical elements in the process, method, apparatus or device in which the element is comprised; if the description to "first", "second", etc. is used for descriptive purposes only, it is not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated; in the description of the present application, the terms "plurality" and "plurality" mean at least two unless otherwise indicated; if a server is described, it should be noted that the server may be an independent physical server or terminal, or may be a server cluster formed by a plurality of physical servers, or may be a cloud server capable of providing basic cloud computing services such as a cloud server, a cloud database, a cloud storage, a CDN, and the like; if an intelligent terminal or a mobile device is described in the present application, it should be noted that the intelligent terminal or the mobile device may be a mobile phone, a tablet Computer, an intelligent watch, a netbook, a wearable electronic device, a Personal Digital Assistant (PDA), an Augmented Reality device (AR), a Virtual Reality device (VR), a smart television, a smart audio, a Personal Computer (PC), and the like, but is not limited thereto.
Finally, it should be noted that in the description of the present specification, reference to the description of "one embodiment," "some embodiments," "an example," "one example" or "some examples" or the like is intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present application have been illustrated and described above, it is to be understood that the above embodiments are exemplary, and the description is only for the purpose of facilitating understanding of the present application and is not intended to limit the present application. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims.

Claims (11)

1. A method for backing up data, the method comprising:
under the condition that the network abnormality is detected, data which are sent by connected equipment and are not synchronized to a target server are stored;
and under the condition that the network is detected to be recovered to normal, sending the data which is not synchronized to the target server.
2. The method according to claim 1, wherein before said saving data sent by the connected device and not synchronized to the target server in case of detecting the network anomaly, further comprising:
and under the condition that the network is detected to be normal, transmitting the data transmitted by the connected equipment to the target server.
3. The method of claim 2, wherein saving data sent by the connected device that is not synchronized to the target server comprises: storing data which are sent by connected equipment and are not synchronized to a target server to a preset data table;
after the sending the data not synchronized to the target server, further comprising: and emptying the preset data table.
4. The method of claim 1, wherein in the event that a network anomaly is detected, the method further comprises:
if the network abnormity is determined to be local area network abnormity, sending a network abnormity prompt, wherein the network abnormity prompt comprises equipment information of the first type of equipment and/or a network connection mode modification prompt aiming at the first type of equipment, and the first type of equipment comprises equipment connected in a local area network mode.
5. The method of claim 1, wherein before saving data sent by the connected device and not synchronized to the target server in the case of detecting the network anomaly, further comprising:
and when detecting an adding device instruction, adding target devices and connection configuration information corresponding to the target devices to connect the target devices.
6. The method according to claim 5, further comprising, after the adding the target device and the connection configuration information corresponding to the target device, the step of:
and debugging the target equipment according to the connection configuration information corresponding to the target equipment.
7. The method of claim 6, further comprising:
and under the condition that the target equipment is debugged successfully, when an adding server instruction is detected, adding a target server so that the target server receives the data synchronized by the target equipment.
8. The method of claim 2, wherein the data sent by the connected device is parsed via a predetermined parsing protocol before being synchronized to a target server or stored.
9. A data backup apparatus, comprising:
the storage module is used for storing data which is sent by the connected equipment and is not synchronized to the target server under the condition that the network abnormality is detected;
and the synchronization module is used for sending the data which is not synchronized to the target server under the condition that the network is detected to be recovered to be normal.
10. A computer-readable storage medium storing a computer program which, when executed by one or more processors, implements the method of any one of claims 1-8.
11. An electronic device comprising a memory and one or more processors, the memory having stored thereon a computer program, the memory and the one or more processors being communicatively connected to each other, the computer program, when executed by the one or more processors, performing the method of any of claims 1-8.
CN202210995886.2A 2022-08-18 2022-08-18 Data backup method and device, storage medium and electronic equipment Pending CN115567372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210995886.2A CN115567372A (en) 2022-08-18 2022-08-18 Data backup method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210995886.2A CN115567372A (en) 2022-08-18 2022-08-18 Data backup method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115567372A true CN115567372A (en) 2023-01-03

Family

ID=84739355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210995886.2A Pending CN115567372A (en) 2022-08-18 2022-08-18 Data backup method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115567372A (en)

Similar Documents

Publication Publication Date Title
CN110971655B (en) Offline client playback and synchronization
WO2021121370A1 (en) Message loss detection method and apparatus for message queue
US10454789B2 (en) Automated service-oriented performance management
US20060117091A1 (en) Data logging to a database
WO2021203979A1 (en) Operation and maintenance processing method and apparatus, and computer device
CN111338893A (en) Process log processing method and device, computer equipment and storage medium
US20200036613A1 (en) Diagnostic and recovery signals for disconnected applications in hosted service environment
CN103067230A (en) Method for achieving hyper text transport protocol (http) service monitoring through embedding monitoring code
US10007562B2 (en) Business transaction context for call graph
US20230161738A1 (en) Building collaborative data processing flows
CN110650164A (en) File uploading method and device, terminal and computer storage medium
CN114363144B (en) Fault information association reporting method and related equipment for distributed system
CN113557499A (en) Dynamically monitoring cloud-based application services
CN117643015A (en) Snapshot-based client-side key modification of log records manages keys across a series of nodes
CN110324384B (en) Data pushing method and device
CN111245917B (en) Katalon-based work order entry device and implementation method thereof
WO2023240995A1 (en) Data recovery method and apparatus for dual-machine hot standby system, and medium
CN115567372A (en) Data backup method and device, storage medium and electronic equipment
CN115220992A (en) Interface change monitoring method and device, computer equipment and storage medium
JP2023547830A (en) Delivery of event notifications from distributed file systems
US10963331B2 (en) Collecting repeated diagnostics data from across users participating in a document collaboration session
CN110768855B (en) Method and device for testing linkmzation performance
US11953995B1 (en) Centralized data backup platform supporting multiple data environments
CN113381887B (en) Method and device for processing faults of computing nodes
US11777833B2 (en) Non-intrusive disaster recovery and resilience

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