CN111459718A - Multi-terminal system and data backup method and storage medium thereof - Google Patents

Multi-terminal system and data backup method and storage medium thereof Download PDF

Info

Publication number
CN111459718A
CN111459718A CN202010242359.5A CN202010242359A CN111459718A CN 111459718 A CN111459718 A CN 111459718A CN 202010242359 A CN202010242359 A CN 202010242359A CN 111459718 A CN111459718 A CN 111459718A
Authority
CN
China
Prior art keywords
data
backup
terminal
terminals
backed
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.)
Granted
Application number
CN202010242359.5A
Other languages
Chinese (zh)
Other versions
CN111459718B (en
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
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010242359.5A priority Critical patent/CN111459718B/en
Publication of CN111459718A publication Critical patent/CN111459718A/en
Application granted granted Critical
Publication of CN111459718B publication Critical patent/CN111459718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1461Backup scheduling policy

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a multi-terminal system and a data backup method and a storage medium thereof, wherein the multi-terminal system comprises: the data backup method comprises the following steps: the control equipment is used for issuing data backup instructions to the plurality of terminals according to a preset data backup strategy; the plurality of terminals are used for receiving the data backup instruction and determining the terminals to be source terminals or target terminals for data backup according to the data backup instruction; the data to be backed up of each source terminal is backed up to more than two target terminals; if the terminal is determined to be the source terminal, sending data backup to be backed up to a corresponding destination terminal; and if the terminal is determined to be the destination terminal, receiving the data to be backed up from the corresponding source terminal for data backup. The scheme provided by the invention can avoid the problem that the data cannot be effectively replied when the terminal or the control center fails, thereby protecting the data security.

Description

Multi-terminal system and data backup method and storage medium thereof
Technical Field
The present invention relates to the field of control, and in particular, to a multi-terminal system, a data backup method thereof, and a storage medium.
Background
The existing multi-terminal control system generally comprises a control center and a plurality of terminals, and terminal data can be selectively stored in a storage system of the control center or can be centrally stored in the control center. However, no matter the control center or the terminal is selected for data storage, the problem that data cannot be effectively recovered after the equipment is damaged is faced. Therefore, it is important to appropriately backup the terminal data.
Disclosure of Invention
The present invention is directed to overcome the above-mentioned drawbacks of the prior art, and provides a multi-terminal system, a data backup method thereof, and a storage medium thereof, so as to solve the problem that data cannot be effectively recovered after a terminal device is damaged in the prior art.
One aspect of the present invention provides a multi-terminal system, including: the data backup method comprises the following steps: the control equipment is used for issuing data backup instructions to the plurality of terminals according to a preset data backup strategy; the plurality of terminals are used for receiving the data backup instruction and determining the terminals to be source terminals or target terminals for data backup according to the data backup instruction; the data to be backed up of each source terminal is backed up to more than two target terminals; if the terminal is determined to be the source terminal, sending data backup to be backed up to a corresponding destination terminal; and if the terminal is determined to be the destination terminal, receiving the data to be backed up from the corresponding source terminal for data backup.
Optionally, the data backup instructions include: the IP address of the source terminal and the IP address of the destination terminal for data backup and/or a flag bit for marking the source terminal or the destination terminal; the plurality of terminals, which determine themselves as a source terminal or a destination terminal for data backup according to the data backup instruction, include: and determining the source terminal or the destination terminal according to the IP address of the source terminal and the IP address of the destination terminal, or determining the source terminal or the destination terminal according to the zone bit for marking the source terminal or the destination terminal.
Optionally, the preset data backup policy includes: the data to be backed up in each terminal of the plurality of terminals is backed up to other at least two terminals of the plurality of terminals in turn at preset time intervals; the data to be backed up comprises: data generated by each terminal within a preset time period.
Optionally, the method further comprises: if the source terminal is determined to be the source terminal, the source terminal is further configured to: after the data backup is completed, generating corresponding first backup related data, and sending the corresponding first backup related data to a corresponding target terminal for storage; and/or if the terminal is determined to be the destination terminal, the destination terminal is further configured to: after the data backup is completed, receiving and storing the first backup related data sent by the corresponding source terminal, and/or generating and storing corresponding second backup related data; uploading the received first backup related data and/or the generated second backup related data to the control device; the control device is further configured to: and generating corresponding backup data storage information according to the first backup related data and/or the second backup related data, and storing the corresponding backup data storage information to a backup data storage information list.
Optionally, the method further comprises: the plurality of terminals are further configured to: when data recovery is needed, sending a backup data storage information acquisition request to the control equipment; the control device is further configured to: after receiving the backup data storage information acquisition request sent by any terminal in the plurality of terminals, searching corresponding backup data storage information from a backup data storage information list, and feeding back the backup data storage information to the terminal sending the acquisition request; the plurality of terminals are further configured to: and acquiring corresponding backup data from a corresponding terminal according to the received backup data storage information fed back by the control equipment to perform data recovery.
Optionally, the method further comprises: a replacement control device for replacing the control device when the control device fails; the alternative control device is further configured to: requesting backup related data stored in the plurality of terminals in a broadcasting manner; and summarizing according to the acquired backup related data to generate a backup data storage information list.
Another aspect of the present invention provides a data backup method for a multi-terminal system, where the multi-terminal system includes: the data backup method comprises the following steps: the control equipment issues data backup instructions to the plurality of terminals according to a preset data backup strategy; the plurality of terminals receive the data backup instruction and determine that the terminals are source terminals or target terminals for data backup according to the data backup instruction; the data to be backed up of each source terminal is backed up to more than two target terminals; if the terminal is determined to be the source terminal, sending data backup to be backed up to a corresponding destination terminal; and if the terminal is determined to be the destination terminal, receiving the data to be backed up from the corresponding source terminal for data backup.
Optionally, the data backup instructions include: the IP address of the source terminal and the IP address of the destination terminal for data backup and/or a flag bit for marking the source terminal or the destination terminal; the plurality of terminals, which determine themselves as a source terminal or a destination terminal for data backup according to the data backup instruction, include: and determining the source terminal or the destination terminal according to the IP address of the source terminal and the IP address of the destination terminal, or determining the source terminal or the destination terminal according to the zone bit for marking the source terminal or the destination terminal.
Optionally, the preset data backup policy includes: the data to be backed up in each terminal of the plurality of terminals is backed up to other at least two terminals of the plurality of terminals in turn at preset time intervals; the data to be backed up comprises: data generated by each terminal within a preset time period.
Optionally, the method further comprises: if the source terminal is determined to be the source terminal, the source terminal generates corresponding first backup related data after finishing the data backup, and sends the corresponding first backup related data to a corresponding target terminal for storage; and/or, if the destination terminal is determined to be the destination terminal, the destination terminal receives and stores the first backup related data sent by the corresponding source terminal after completing the data backup, and/or generates and stores corresponding second backup related data; uploading the received first backup related data and/or the generated second backup related data to the control device; and the control equipment generates corresponding backup data storage information according to the first backup related data and/or the second backup related data, and stores the corresponding backup data storage information into a backup data storage information list.
Optionally, the method further comprises: when data recovery is needed, any terminal in the plurality of terminals sends a backup data storage information acquisition request to the control equipment; after receiving the backup data storage information acquisition request sent by any terminal in the plurality of terminals, the control device searches corresponding backup data storage information from a backup data storage information list and feeds the backup data storage information back to the terminal sending the acquisition request; and the terminal sending the acquisition request acquires corresponding backup data from the corresponding terminal according to the received backup data storage information fed back by the control equipment to perform data recovery.
Optionally, the multi-terminal system further includes: a replacement control device for replacing the control device when the control device fails; the method further comprises the following steps: the substitution control equipment requests backup related data stored in the plurality of terminals in a broadcasting mode; and summarizing according to the acquired backup related data to generate a backup data storage information list.
A further aspect of the invention provides a storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of any of the methods described above.
According to the technical scheme of the invention, when the multi-terminal system performs terminal data backup, the data to be backed up of each terminal is backed up to more than two other terminals, so that the problem that the data cannot be effectively recovered when the terminal or the control center fails is avoided, the data safety is protected, the dispersed storage of the backup data is realized, the operation time of a single backup data storage device can be shortened in the data recovery stage, the service life of the single backup data storage device is prolonged, and the service life shortening caused by the fact that the storage device of the backup data enters long-time high-load operation in the data recovery stage is avoided.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic structural diagram of an embodiment of a multi-terminal system provided by the present invention;
fig. 2 is a schematic diagram illustrating an execution flow of operations performed by a control device in the multi-terminal system according to the present invention;
fig. 3 is a schematic diagram illustrating an execution flow of operations executed by a terminal in the multi-terminal system according to the present invention;
FIG. 4 is a method diagram of an embodiment of a data backup method for a multi-terminal system according to the present invention;
fig. 5 is a schematic method diagram of another embodiment of a data backup method for a multi-terminal system according to the present invention;
fig. 6 is a method diagram of a data backup method of a multi-terminal system according to another embodiment of the present invention;
fig. 7 is a method diagram of a data backup method of a multi-terminal system according to still another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The existing multi-terminal control system can not effectively recover data after equipment is damaged no matter a control center or a terminal is selected for data storage. In addition, if the backup data is only stored in a single device, the device can enter into long-time high-load operation in the data recovery stage, so that the service life of the device is shortened.
The invention provides a multi-terminal system. Fig. 1 is a schematic structural diagram of an embodiment of a multi-terminal system provided in the present invention.
As shown in fig. 1, the multi-terminal system includes a control apparatus 10 and a plurality of terminals 20. The multi-terminal system shown in fig. 1 includes 5 terminals, i.e., a terminal 20A, a terminal 20B, a terminal 20C, a terminal 20D, and a terminal 20E. The control device 10 may communicate with the plurality of terminals, and any two terminals of the plurality of terminals may communicate with each other. For example, the multi-terminal system further includes a wireless router through which the control device 10 and the plurality of terminals 20 are wirelessly connected. For example, the plurality of terminals 20 have WiFi modules, and are connected to the control device through a WiFi network provided by a WiFi wireless router, and any two terminals of the plurality of terminals may communicate with each other.
The control device 10 is configured to issue a data backup instruction to the plurality of terminals 20 according to a preset data backup policy. The plurality of terminals are used for receiving the data backup instruction and determining the terminals to be source terminals or target terminals for data backup according to the data backup instruction; and backing up the data to be backed up of each source terminal to more than two target terminals. If the terminal is determined to be the source terminal, sending data backup to be backed up to a corresponding destination terminal; and if the terminal is determined to be the destination terminal, receiving the data to be backed up from the corresponding source terminal for data backup.
The preset data backup policy may specifically include a preset data backup trigger condition and a data backup rule. In one embodiment, the data backup triggering condition includes triggering every preset time (for example, triggering every day, that is, triggering every day when a preset time point is reached) and/or triggering an environmental parameter reaching a preset condition (for example, triggering when an environmental temperature reaches a preset temperature value and/or environmental humidity reaches a preset humidity value); the data backup rule specifically includes: and the data to be backed up in each terminal of the plurality of terminals is backed up to other at least two terminals of the plurality of terminals in turn. And the control equipment issues data backup instructions to the plurality of terminals according to the preset data backup triggering conditions and the data backup rules. The data to be backed up of each source terminal is backed up to more than two target terminals; that is, the data to be backed up in each terminal is backed up not only to one other terminal but also to at least more than two terminals, thereby realizing distributed backup and improving the security of data backup.
For example, when the data backup triggering condition is triggering at every preset time, the data backup strategy is that data to be backed up in each of the terminals 20 is backed up to the other at least two terminals in the terminals at every preset time in turn. The control device sends a data backup instruction for backing up data to be backed up to at least two other terminals to each of the plurality of terminals at preset intervals, or sends a data backup instruction for backing up data to be backed up to the other terminals to each of the plurality of terminals 20 at preset intervals. The at least two terminals are determined according to a preset terminal arrangement sequence.
For example, the time unit is day, the number of data backups is 2 (i.e. data backups to 2 destination terminals), the multi-terminal system includes 5 terminals numbered A, B, C, D, E, and the data backup rule is as follows: the data to be backed up in the terminal A is backed up by the terminal B, C on the first day, C, D on the second day, D, E on the third day, E, B on the fourth day, and so on, that is, the data of the terminal A is backed up and stored in other terminals in turn. The data to be backed up in the terminal B is backed up by the terminal C, D on the first day, D, E on the second day, E, A on the third day and A, C on the fourth day, that is, the data of the terminal B is backed up and stored in other terminals in turn. Similarly, the data to be backed up in the terminal B is backed up by the terminal C, D on the first day, D, E on the second day, E, A on the third day, A, C on the fourth day, and so on. The data to be backed up may specifically include data generated by each terminal within a preset time period. For example all data generated for each terminal on the day.
Optionally, the data backup instruction is only sent to a source terminal or a destination terminal in the source terminal and the corresponding destination terminal. That is, the data backup instruction is only sent to one of the source terminal and the corresponding destination terminal, that is, the data backup instruction is sent to the source terminal without being sent to the corresponding destination terminal, and the data backup instruction is sent to the destination terminal without being sent to the corresponding source terminal.
The data backup instruction may specifically include: the IP address of the source terminal and the IP address of the destination terminal for data backup, and/or a flag bit for marking the source terminal or the destination terminal. The plurality of terminals can determine that the terminals are the source terminals or the destination terminals according to the zone bits for marking the source terminals or the destination terminals.
After receiving the data backup instruction sent by the control device 10, any terminal of the plurality of terminals 20 sends data to be backed up to a corresponding destination terminal for data backup if it is determined that the terminal itself is a source terminal. Specifically, the source terminal may send data to be backed up to the corresponding destination terminal according to the IP address of the destination terminal to perform data backup. And the source terminal establishes communication connection with the corresponding target terminal according to the IP address of the target terminal and sends data to be backed up to the corresponding target terminal for data backup.
After receiving the data backup instruction sent by the control device 10, any terminal of the plurality of terminals 20 receives data to be backed up from a corresponding source terminal to perform data backup if it is determined that the terminal itself is a destination terminal. Specifically, the destination terminal may receive data to be backed up from the corresponding source terminal according to the IP address of the source terminal to perform data backup. And the destination terminal establishes communication connection with the corresponding source terminal according to the IP address of the source terminal, and receives data to be backed up from the corresponding source terminal to perform data backup.
Optionally, if any terminal in the plurality of terminals 20 is determined to be a source terminal, the source terminal is further configured to: after the data backup is completed, generating corresponding first backup related data, and sending the corresponding first backup related data to a corresponding target terminal for storage; and/or, if any terminal in the plurality of terminals determines itself to be a destination terminal, the destination terminal is further configured to: after the data backup is completed, receiving and storing the first backup related data sent by the corresponding source terminal, and/or generating and storing corresponding second backup related data; uploading the received first backup related data and/or the generated second backup related data to the control device 10. The backup related data is sent to the target terminal uniformly, the control device does not need to judge whether the data is sent by the source terminal device or the target terminal device, and the burden of the control device is reduced.
The first backup-related data comprising: a destination terminal for backing up data, backup time, data size and/or conditions for triggering backup operation; the second backup related data comprising: the source terminal of the backup data, the backup time, the data size, and/or the conditions that trigger the backup operation.
In a specific embodiment, if it is determined that any terminal in the plurality of terminals 20 is a source terminal, after the data backup is completed, corresponding first backup related data is generated and sent to a corresponding destination terminal for storage, and after the data backup is completed, the corresponding destination terminal receives and stores the first backup related data sent by the source terminal, and uploads the received first backup related data to the control device 10.
In another specific embodiment, if it is determined that any terminal in the plurality of terminals 20 is the destination terminal, after the data backup is completed, corresponding second backup related data is generated and stored, and the generated second backup related data is uploaded to the control device 10.
That is, not both the source terminal and the corresponding destination terminal need to generate backup-related data. Alternatively, the backup related data may be generated by the terminal that receives the data backup instruction from the source terminal and the corresponding destination terminal, that is, the source terminal generates the first backup related data if the source terminal receives the data backup instruction, and the destination terminal generates the second backup related data if the destination terminal receives the data backup instruction.
The control device 10 is also configured to: and generating corresponding backup data storage information according to the first backup related data and/or the second backup related data, and storing the corresponding backup data storage information to a backup data storage information list. Specifically, the first backup related data and/or the second backup related data generated when the plurality of terminals perform data backup are/is summarized by the control device, and a backup data storage information list is generated. And performing data recovery on any terminal, and quickly finding the backup terminal of the backup data according to the backup data storage information list. And, the recovery of the backup data storage information can be performed when the control device fails. The backup data storage information includes: a source terminal of the backup data, a destination terminal of the backup data, a backup time and/or a data size.
According to the embodiment of the invention, when the multi-terminal system performs terminal data backup, the data to be backed up of each terminal is backed up to more than two target terminals, so that the dispersed storage of the backup data is realized, and the problem that the data cannot be effectively recovered when the terminal or the control center fails is solved. The backup related data is sent to the target terminal uniformly, the control device does not need to judge whether the data is sent by the source terminal device or the target terminal device, and the burden of the control device is reduced.
Optionally, the plurality of terminals 20 are further configured to: when data recovery is needed, sending a backup data storage information acquisition request to the control equipment; the control device is further configured to: and after receiving the backup data storage information acquisition request sent by any terminal in the plurality of terminals, searching corresponding backup data storage information from the backup data storage information list and feeding back the corresponding backup data storage information to the corresponding terminal. And the plurality of terminals acquire corresponding backup data from corresponding terminals according to the received backup data storage information fed back by the control equipment to perform data recovery.
Specifically, when a data recovery is required after a failure recovery or after a device replacement of a certain terminal 20, the terminal may send a request for obtaining backup data storage information to the control device, obtain the backup data storage information, and perform data recovery by performing multiple short-time communication with the storage terminal device of the backup data according to the backup data storage information, for example, performing multiple short-time communication with the storage terminal device of the backup data according to the STFP transmission protocol. Multiple and short-time communication can avoid that a single terminal device is in an operating state of simultaneously performing normal data collection and data backup for a long time, and the operating load of the terminal device is reduced, so that the service life of the terminal device is prolonged. Optionally, the recovery of part or all of the data may be performed according to actual requirements.
According to the embodiment of the invention, the running time of a single backup data storage device can be shortened in the data recovery stage, so that the problem that the storage device for backing up data in the data recovery stage enters long-time high-load running to cause shortened service life is avoided.
Optionally, the multi-terminal system 100 further includes: a replacement control device (not shown) for performing a corresponding operation in place of the control device when the control device malfunctions; the alternative control device is further configured to: requesting backup related data stored in the plurality of terminals in a broadcasting manner; and summarizing according to the acquired backup related data to generate a backup data storage information list.
Specifically, when the original control device fails, the substitute control device may request all the terminals to acquire backup related data stored therein in a broadcast manner, and complete the quick reconstruction of the backup data storage information list by summarizing.
Fig. 2 is a schematic diagram illustrating an execution flow of operations executed by the control device in the multi-terminal system according to the present invention. The execution flow of the operations performed by the control device in the present invention is described below with reference to fig. 2.
As shown in fig. 2, determining whether the control device normally operates, if so, issuing a data backup instruction according to a preset backup strategy, and acquiring backup related data generated after the data backup is performed by the plurality of terminals; supplementing a backup data storage information list according to the backup related data; if the backup data storage information list is abnormally operated, adding new control equipment (substitute control equipment), sending out a broadcast request for backup related data stored in all terminals, summarizing and completing reconstruction of the backup data storage information list.
Fig. 3 is a schematic diagram illustrating an execution flow of operations executed by a terminal in the multi-terminal system according to the present invention. The execution flow of the operations executed by the plurality of terminals in the present invention is described below with reference to fig. 3.
And if the terminal is the source terminal, establishing communication connection with the target terminal to start backing up the data to be backed up to the target terminal, and generating backup related data to be stored after the backup is finished. If the terminal is abnormally operated, namely a fault occurs, after the fault is removed or a new terminal device is accessed, a backup data storage information acquisition request is sent to the control device, corresponding backup data storage information is acquired, and connection is established between the backup data storage information and the storage terminal for data recovery.
The invention also provides a data backup method of the multi-terminal system, which is used in the multi-terminal system in any of the embodiments. The multi-terminal system includes: a control device and a plurality of terminals.
Fig. 4 is a method schematic diagram of an embodiment of a data backup method of a multi-terminal system provided by the present invention.
As shown in fig. 4, according to an embodiment of the present invention, the data backup method of the multi-terminal system includes at least step S110, step S120, and step S130.
Step S110, the control device issues a data backup instruction to the plurality of terminals according to a preset data backup policy.
The preset data backup policy may specifically include a preset data backup trigger condition and a data backup rule. In one embodiment, the data backup triggering condition includes triggering every preset time (for example, triggering every day, that is, triggering every day when a preset time point is reached) and/or triggering an environmental parameter reaching a preset condition (for example, triggering when an environmental temperature reaches a preset temperature value and/or environmental humidity reaches a preset humidity value); the data backup rule specifically includes: and the data to be backed up in each terminal of the plurality of terminals is backed up to other at least two terminals of the plurality of terminals in turn. And the control equipment issues data backup instructions to the plurality of terminals according to the preset data backup triggering conditions and the data backup rules. The data to be backed up of each source terminal is backed up to more than two target terminals; that is, the data to be backed up in each terminal is backed up not only to one other terminal but also to at least more than two terminals, thereby realizing distributed backup and improving the security of data backup.
For example, when the data backup triggering condition is triggering at every preset time, the data backup strategy is that data to be backed up in each terminal of the plurality of terminals is backed up to other at least two terminals of the plurality of terminals at every preset time in turn. The control device sends a data backup instruction for backing up data to be backed up to at least two other terminals to each of the plurality of terminals at intervals of preset time, or sends a data backup instruction for backing up data to be backed up of other terminals to each of the plurality of terminals at intervals of preset time. The at least two terminals are determined according to a preset terminal arrangement sequence.
For example, the time unit is day, the number of data backups is 2 (i.e. data backups to 2 destination terminals), the multi-terminal system includes 5 terminals numbered A, B, C, D, E, and the data backup rule is as follows: the data to be backed up in the terminal A is backed up by the terminal B, C on the first day, C, D on the second day, D, E on the third day, E, B on the fourth day, and so on, that is, the data of the terminal A is backed up and stored in other terminals in turn. The data to be backed up in the terminal B is backed up by the terminal C, D on the first day, D, E on the second day, E, A on the third day and A, C on the fourth day, that is, the data of the terminal B is backed up and stored in other terminals in turn. Similarly, the data to be backed up in the terminal B is backed up by the terminal C, D on the first day, D, E on the second day, E, A on the third day, A, C on the fourth day, and so on. The data to be backed up may specifically include data generated by each terminal within a preset time period. For example all data generated for each terminal on the day.
Optionally, the data backup instruction is only sent to a source terminal or a destination terminal in the source terminal and the corresponding destination terminal. That is, the data backup instruction is only sent to one of the source terminal and the corresponding destination terminal, that is, the data backup instruction is sent to the source terminal without being sent to the corresponding destination terminal, and the data backup instruction is sent to the destination terminal without being sent to the corresponding source terminal.
And step S120, the plurality of terminals receive the data backup instruction and determine that the terminals are source terminals or target terminals for data backup according to the data backup instruction.
The data backup instruction may specifically include: the IP address of the source terminal and the IP address of the destination terminal for data backup, and/or a flag bit for marking the source terminal or the destination terminal. The plurality of terminals can determine that the terminals are the source terminals or the destination terminals according to the zone bits for marking the source terminals or the destination terminals.
Step S130, if the terminal is determined to be the source terminal, sending data backup to be backed up to a corresponding destination terminal; and if the terminal is determined to be the destination terminal, receiving the data to be backed up from the corresponding source terminal for data backup.
Specifically, after receiving the data backup instruction sent by the control device, any terminal in the plurality of terminals sends data to be backed up to a corresponding destination terminal for data backup if the terminal determines that the terminal is a source terminal. Specifically, the source terminal may send data to be backed up to the corresponding destination terminal according to the IP address of the destination terminal to perform data backup. And the source terminal establishes communication connection with the corresponding target terminal according to the IP address of the target terminal and sends data to be backed up to the corresponding target terminal for data backup.
And after receiving the data backup instruction sent by the control equipment, any terminal in the plurality of terminals receives data to be backed up from a corresponding source terminal for data backup if the terminal is determined to be a target terminal. Specifically, the destination terminal may receive data to be backed up from the corresponding source terminal according to the IP address of the source terminal to perform data backup. And the destination terminal establishes communication connection with the corresponding source terminal according to the IP address of the source terminal, and receives data to be backed up from the corresponding source terminal to perform data backup.
Optionally, if the source terminal is determined to be the source terminal, the source terminal generates corresponding first backup related data after completing the data backup, and sends the corresponding first backup related data to the corresponding destination terminal for storage; and/or, if the destination terminal is determined to be the destination terminal, the destination terminal receives and stores the first backup related data sent by the corresponding source terminal after completing the data backup, and/or generates and stores corresponding second backup related data; uploading the received first backup related data and/or the generated second backup related data to the control device; and the control equipment generates corresponding backup data storage information according to the first backup related data and/or the second backup related data, and stores the corresponding backup data storage information into a backup data storage information list.
The first backup-related data comprising: a destination terminal for backing up data, backup time, data size and/or conditions for triggering backup operation; the second backup related data comprising: the source terminal of the backup data, the backup time, the data size, and/or the conditions that trigger the backup operation.
The control device is further configured to: and generating corresponding backup data storage information according to the first backup related data and/or the second backup related data, and storing the corresponding backup data storage information to a backup data storage information list. Specifically, the first backup related data and/or the second backup related data generated when the plurality of terminals perform data backup are/is summarized by the control device, and a backup data storage information list is generated. And performing data recovery on any terminal, and quickly finding the backup terminal of the backup data according to the backup data storage information list. And, the recovery of the backup data storage information can be performed when the control device fails. The backup data storage information includes: a source terminal of the backup data, a destination terminal of the backup data, a backup time and/or a data size.
Fig. 5 is a schematic method diagram of another embodiment of a data backup method for a multi-terminal system according to the present invention.
As shown in fig. 5, according to another embodiment of the present invention, the data backup method of the multi-terminal system further includes step S140, step S142, and step S144.
Step S140, if any terminal of the plurality of terminals determines that the terminal itself is the source terminal, after the data backup is completed, corresponding first backup related data is generated and sent to a corresponding destination terminal for storage.
Step S142, after the corresponding destination terminal completes the data backup, receiving and storing the first backup related data sent by the source terminal, and uploading the received first backup related data to the control device.
Step S144, the control device generates corresponding backup data storage information according to the first backup related data, and stores the backup data storage information into a backup data storage information list.
Fig. 6 is a schematic method diagram of a data backup method of a multi-terminal system according to still another embodiment of the present invention.
As shown in fig. 6, according to an embodiment of the present invention, the data backup method of the multi-terminal system further includes step S150, step S152, and step S154.
And step S150, if any terminal in the plurality of terminals is determined to be the target terminal, generating corresponding second backup related data and storing the second backup related data after the data backup is completed.
Step S152, upload the generated second backup related data to the control device.
Step S154, the control device generates corresponding backup data storage information according to the second backup related data, and stores the backup data storage information into a backup data storage information list.
According to the embodiment of the invention, when the multi-terminal system performs terminal data backup, the data to be backed up of each terminal is backed up to more than two target terminals, so that the dispersed storage of the backup data is realized, and the problem that the data cannot be effectively recovered when the terminal or the control center fails is solved. The backup related data is sent to the target terminal uniformly, the control device does not need to judge whether the data is sent by the source terminal device or the target terminal device, and the burden of the control device is reduced.
Fig. 7 is a method diagram of a data backup method of a multi-terminal system according to still another embodiment of the present invention.
As shown in fig. 7 (only the schematic diagram of the embodiment based on fig. 5 is shown), based on the above-mentioned embodiment, according to still another embodiment of the present invention, the data backup method of the multi-terminal system further includes step S160, step S170, and step S180.
Step S160, when data recovery is required, any terminal in the plurality of terminals sends a backup data storage information acquisition request to the control device.
Step S170, after receiving the backup data storage information acquisition request sent by any terminal of the plurality of terminals, the control device searches for corresponding backup data storage information from the backup data storage information list, and feeds back the corresponding backup data storage information to the terminal that sent the acquisition request.
Step S180, the terminal sending the obtaining request obtains corresponding backup data from the corresponding terminal according to the received backup data storage information fed back by the control device to perform data recovery.
Specifically, when data recovery is required after a failure recovery or after a device replacement of a certain terminal 0, the terminal may send a request for obtaining backup data storage information to the control device, obtain the backup data storage information, and perform data recovery by performing multiple short-time communication with the storage terminal device of the backup data according to the backup data storage information, for example, performing multiple short-time communication with the storage terminal device of the backup data according to the STFP transmission protocol. Multiple and short-time communication can avoid that a single terminal device is in an operating state of simultaneously performing normal data collection and data backup for a long time, and the operating load of the terminal device is reduced, so that the service life of the terminal device is prolonged. Optionally, the recovery of part or all of the data may be performed according to actual requirements.
According to the embodiment of the invention, the running time of a single backup data storage device can be shortened in the data recovery stage, so that the problem that the storage device for backing up data in the data recovery stage enters long-time high-load running to cause shortened service life is avoided.
Optionally, the multi-terminal system 100 further includes: and a replacement control device (not shown) for performing a corresponding operation in place of the control device when the control device malfunctions. Correspondingly, the method further comprises the following steps: the substitution control equipment requests backup related data stored in the plurality of terminals in a broadcasting mode; and summarizing according to the acquired backup related data to generate a backup data storage information list.
Specifically, when the original control device fails, the substitute control device may request all the terminals to acquire backup related data stored therein in a broadcast manner, and complete the quick reconstruction of the backup data storage information list by summarizing.
The present invention also provides a storage medium corresponding to the data backup method, on which a computer program is stored, which when executed by a processor implements the steps of any of the methods described above.
Therefore, according to the scheme provided by the invention, when the multi-terminal system performs terminal data backup, the data to be backed up of each terminal is backed up to more than two target terminals, so that the problem that the data cannot be effectively recovered when the terminal or the control center fails is avoided, the data safety is protected, the dispersed storage of the backup data is realized, the operation time of a single backup data storage device can be shortened in the data recovery stage, the service life of the single backup data storage device is prolonged, and the service life of the single backup data storage device is prevented from being shortened due to the fact that the storage device of the backup data enters long-time high-load operation in the data recovery stage.
The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Other examples and implementations are within the scope and spirit of the invention and the following claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hardwired, or a combination of any of these. In addition, each functional unit may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and the parts serving as the control device may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (13)

1. A multi-terminal system, comprising: the data backup method comprises the following steps:
the control equipment is used for issuing data backup instructions to the plurality of terminals according to a preset data backup strategy;
the plurality of terminals are used for receiving the data backup instruction and determining the terminals to be source terminals or target terminals for data backup according to the data backup instruction; the data to be backed up of each source terminal is backed up to more than two target terminals;
if the terminal is determined to be the source terminal, sending data backup to be backed up to a corresponding destination terminal; and if the terminal is determined to be the destination terminal, receiving the data to be backed up from the corresponding source terminal for data backup.
2. The multi-terminal system according to claim 1,
the data backup instructions comprise: the IP address of the source terminal and the IP address of the destination terminal for data backup and/or a flag bit for marking the source terminal or the destination terminal;
the plurality of terminals, which determine themselves as a source terminal or a destination terminal for data backup according to the data backup instruction, include:
and determining the source terminal or the destination terminal according to the IP address of the source terminal and the IP address of the destination terminal, or determining the source terminal or the destination terminal according to the zone bit for marking the source terminal or the destination terminal.
3. The multi-terminal system according to claim 1 or 2, wherein the preset data backup strategy comprises:
the data to be backed up in each terminal of the plurality of terminals is backed up to other at least two terminals of the plurality of terminals in turn at preset time intervals;
the data to be backed up comprises: data generated by each terminal within a preset time period.
4. The multi-terminal system according to any one of claims 1 to 3, further comprising:
if the source terminal is determined to be the source terminal, the source terminal is further configured to: after the data backup is completed, generating corresponding first backup related data, and sending the corresponding first backup related data to a corresponding target terminal for storage; and/or the presence of a gas in the gas,
if the terminal is determined to be the destination terminal, the destination terminal is further configured to: after the data backup is completed, receiving and storing the first backup related data sent by the corresponding source terminal, and/or generating and storing corresponding second backup related data; uploading the received first backup related data and/or the generated second backup related data to the control device;
the control device is further configured to: and generating corresponding backup data storage information according to the first backup related data and/or the second backup related data, and storing the corresponding backup data storage information to a backup data storage information list.
5. The multi-terminal system according to any one of claims 1 to 4, further comprising:
the plurality of terminals are further configured to: when data recovery is needed, sending a backup data storage information acquisition request to the control equipment;
the control device is further configured to: after receiving the backup data storage information acquisition request sent by any terminal in the plurality of terminals, searching corresponding backup data storage information from a backup data storage information list, and feeding back the backup data storage information to the terminal sending the acquisition request;
the plurality of terminals are further configured to: and acquiring corresponding backup data from a corresponding terminal according to the received backup data storage information fed back by the control equipment to perform data recovery.
6. The multi-terminal system according to claim 5, further comprising: a replacement control device for replacing the control device when the control device fails;
the alternative control device is further configured to: requesting backup related data stored in the plurality of terminals in a broadcasting manner; and summarizing according to the acquired backup related data to generate a backup data storage information list.
7. A data backup method of a multi-terminal system is characterized in that the multi-terminal system comprises the following steps: the data backup method comprises the following steps:
the control equipment issues data backup instructions to the plurality of terminals according to a preset data backup strategy;
the plurality of terminals receive the data backup instruction and determine that the terminals are source terminals or target terminals for data backup according to the data backup instruction; the data to be backed up of each source terminal is backed up to more than two target terminals;
if the terminal is determined to be the source terminal, sending data backup to be backed up to a corresponding destination terminal; and if the terminal is determined to be the destination terminal, receiving the data to be backed up from the corresponding source terminal for data backup.
8. The data backup method according to claim 7,
the data backup instructions comprise: the IP address of the source terminal and the IP address of the destination terminal for data backup and/or a flag bit for marking the source terminal or the destination terminal;
the plurality of terminals, which determine themselves as a source terminal or a destination terminal for data backup according to the data backup instruction, include:
and determining the source terminal or the destination terminal according to the IP address of the source terminal and the IP address of the destination terminal, or determining the source terminal or the destination terminal according to the zone bit for marking the source terminal or the destination terminal.
9. The data backup method according to claim 7 or 8, wherein the preset data backup strategy comprises:
the data to be backed up in each terminal of the plurality of terminals is backed up to other at least two terminals of the plurality of terminals in turn at preset time intervals;
the data to be backed up comprises: data generated by each terminal within a preset time period.
10. The data backup method according to any one of claims 7 to 9, further comprising:
if the source terminal is determined to be the source terminal, the source terminal generates corresponding first backup related data after finishing the data backup, and sends the corresponding first backup related data to a corresponding target terminal for storage; and/or the presence of a gas in the gas,
if the target terminal is determined to be the target terminal, the target terminal receives and stores the first backup related data sent by the corresponding source terminal after finishing the data backup, and/or generates and stores corresponding second backup related data; uploading the received first backup related data and/or the generated second backup related data to the control device;
and the control equipment generates corresponding backup data storage information according to the first backup related data and/or the second backup related data, and stores the corresponding backup data storage information into a backup data storage information list.
11. The data backup method according to any one of claims 7 to 10, further comprising:
when data recovery is needed, any terminal in the plurality of terminals sends a backup data storage information acquisition request to the control equipment;
after receiving the backup data storage information acquisition request sent by any terminal in the plurality of terminals, the control device searches corresponding backup data storage information from a backup data storage information list and feeds the backup data storage information back to the terminal sending the acquisition request;
and the terminal sending the acquisition request acquires corresponding backup data from the corresponding terminal according to the received backup data storage information fed back by the control equipment to perform data recovery.
12. The data backup method according to claim 11, wherein the multi-terminal system further comprises: a replacement control device for replacing the control device when the control device fails;
the method further comprises the following steps: the substitution control equipment requests backup related data stored in the plurality of terminals in a broadcasting mode; and summarizing according to the acquired backup related data to generate a backup data storage information list.
13. A storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any one of claims 7 to 12.
CN202010242359.5A 2020-03-31 2020-03-31 Multi-terminal system and data backup method and storage medium thereof Active CN111459718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010242359.5A CN111459718B (en) 2020-03-31 2020-03-31 Multi-terminal system and data backup method and storage medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010242359.5A CN111459718B (en) 2020-03-31 2020-03-31 Multi-terminal system and data backup method and storage medium thereof

Publications (2)

Publication Number Publication Date
CN111459718A true CN111459718A (en) 2020-07-28
CN111459718B CN111459718B (en) 2024-02-09

Family

ID=71682338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010242359.5A Active CN111459718B (en) 2020-03-31 2020-03-31 Multi-terminal system and data backup method and storage medium thereof

Country Status (1)

Country Link
CN (1) CN111459718B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022100219A1 (en) * 2020-11-16 2022-05-19 Oppo广东移动通信有限公司 Data transfer method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050060356A1 (en) * 2003-09-12 2005-03-17 Hitachi, Ltd. Backup system and method based on data characteristics
WO2008026797A1 (en) * 2006-08-29 2008-03-06 Seung Woo Paek Data backup and recovery method for mobile communication terminals
JP2011053780A (en) * 2009-08-31 2011-03-17 Oki Networks Co Ltd Restoration system, restoration method and backup control system
CN105354108A (en) * 2014-08-22 2016-02-24 中兴通讯股份有限公司 Data backup method and node
CN106598775A (en) * 2016-11-10 2017-04-26 惠州Tcl移动通信有限公司 Terminal and automatic data backup method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050060356A1 (en) * 2003-09-12 2005-03-17 Hitachi, Ltd. Backup system and method based on data characteristics
WO2008026797A1 (en) * 2006-08-29 2008-03-06 Seung Woo Paek Data backup and recovery method for mobile communication terminals
JP2011053780A (en) * 2009-08-31 2011-03-17 Oki Networks Co Ltd Restoration system, restoration method and backup control system
CN105354108A (en) * 2014-08-22 2016-02-24 中兴通讯股份有限公司 Data backup method and node
CN106598775A (en) * 2016-11-10 2017-04-26 惠州Tcl移动通信有限公司 Terminal and automatic data backup method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022100219A1 (en) * 2020-11-16 2022-05-19 Oppo广东移动通信有限公司 Data transfer method and related device

Also Published As

Publication number Publication date
CN111459718B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
US20210286350A1 (en) Method And System For Monitoring Rail Vehicle
CN107547245B (en) Version upgrading method and device
CN111182531B (en) Associated information backfilling method, device, equipment and storage medium
CN111262822B (en) File storage method, device, block link point and system
CN109428740B (en) Method and device for recovering equipment failure
CN110995513A (en) Data sending and receiving method in Internet of things system, Internet of things equipment and platform
CN102243594A (en) Method for safely and remotely upgrading embedded Linux system software
CN103079203A (en) Terminal authentication method and smart card
CN109254956B (en) Data downloading method and device and electronic equipment
CN111459718A (en) Multi-terminal system and data backup method and storage medium thereof
CN110889143A (en) File verification method and device
CN106201772A (en) The backup of a kind of operating system based on data center, restoration methods and device
CN103065096B (en) A kind of data guard method, Apparatus and system
CN110958287B (en) Operation object data synchronization method, device and system
KR101694298B1 (en) Apparatus for electing a master in redundancy system
CN111010706B (en) Abnormality recovery method and device
CN110933775A (en) Method and device for establishing signal connection and electronic equipment
CN111143899A (en) Method and device for storing data, storage medium and electronic device
CN104639356A (en) Failure recovery method and device
CN114978296A (en) Equipment switching method, device, earth station and readable storage medium
CN106817239B (en) site switching method, related device and system
CN104967641B (en) A kind of method and device for realizing active and standby meta server data syn-chronization
CN114296827A (en) Data file processing method, device, equipment and storage medium
JP2010016597A (en) Node, and network system
CN112015592A (en) Data copying method and device

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
GR01 Patent grant
GR01 Patent grant