Data backup method, system and device, electronic equipment and storage medium
By acquiring and storing data on the robot control side and allocating backup tasks between robot nodes, the problem of abnormal data backup loss on the robot control side is solved, business stability and resource utilization are improved, and cost is reduced.
Patent Information
- Application Number
- CN202411248739.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-06
AI Technical Summary
In the warehousing and logistics scenario, there is a risk of abnormal loss of data backup on the robot control side, resulting in low business stability. The existing technology relies on server cluster backup. If the server cluster is abnormal, data will be lost, affecting business continuity.
By obtaining the data to be backed up on the robot control side and determining the storage node from the robot with enough storage space remaining, sending data backup notifications to the node so that it stores data locally and recovering data from the node when needed, avoiding Data is lost.
Data backup and recovery on the robot control side are realized, data loss caused by exceptions is avoided, business stability is improved, and storage resources on the robot control side are fully utilized, the demand for additional storage resources is reduced, and costs are reduced.
Smart Images

Figure CN119088622A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of robotics technology, and in particular to a data backup method, system, device, electronic device and storage medium. Background Art
[0002] With the development of technology, robots are often used to replace manual processing tasks in warehousing and logistics scenarios. For example, robots in the warehouse can be scheduled through the robot control terminal to perform material handling tasks.
[0003] In the related art, the robot control end can be a server cluster. In order to ensure the stability of the business, the data is often backed up through the local server cluster. For example, the data to be backed up can be divided into multiple copies, and the obtained multiple copies of data are respectively stored in different servers in the server cluster. However, when an abnormality occurs in the local server cluster, the data stored in the server cluster may be lost, making the business unstable. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a data backup method, system, device, electronic device and storage medium to avoid data loss on the robot control end due to abnormalities and improve the stability of the business. The specific technical solution is as follows:
[0005] In a first aspect of the present application, a data backup method is provided, which is applied to a robot control terminal, wherein the robot control terminal is used to control at least one robot, and the method comprises:
[0006] Get the data to be backed up;
[0007] Determining a robot for storing the data to be backed up from the at least one robot; wherein the total current remaining storage space of the determined robot is not less than the storage space occupied by the data to be backed up;
[0008] A data backup notification is sent to the determined robot, so that the determined robot obtains the data to be backed up from the robot control terminal and stores it locally.
[0009] Optionally, obtaining the data to be backed up includes:
[0010] Acquire original data to be backed up as the data to be backed up; wherein the storage space occupied by the original data is not greater than a first preset threshold; the first preset threshold is determined according to the total storage space of a robot;
[0011] Determining a robot for storing the data to be backed up from the at least one robot includes:
[0012] A robot whose current remaining storage space is not less than the storage space occupied by the data to be backed up is determined from the at least one robot as the robot for storing the data to be backed up.
[0013] Optionally, obtaining the data to be backed up includes:
[0014] Obtain the original data to be backed up;
[0015] In the case where the storage space occupied by the original data is greater than a second preset threshold, the original data is divided into multiple copies of data to obtain multiple copies of data to be backed up; wherein the second preset threshold is determined according to the total storage space of a robot; and the storage space occupied by each copy of data to be backed up is not greater than the second preset threshold;
[0016] Determining a robot for storing the data to be backed up from the at least one robot includes:
[0017] For each data to be backed up, a robot whose current remaining storage space is not less than the storage space occupied by the data to be backed up is determined from the at least one robot as a robot for storing the data to be backed up; wherein, for any two data to be backed up, the determined robots are different;
[0018] The sending of a data backup notification to the determined robot so that the determined robot obtains the data to be backed up from the robot control terminal and stores the data locally includes:
[0019] A data backup notification for the data to be backed up that needs to be stored by the robot is sent to each determined robot, so that the robot obtains and stores the data to be backed up that needs to be stored from the robot control terminal.
[0020] Optionally, the determined current remaining storage space of the robot is not less than the storage space occupied by the data to be backed up, and the data of the robot control terminal has not been backed up;
[0021] or,
[0022] Among the robots whose current remaining storage space is not less than the storage space occupied by the data to be backed up, the time when the robot that was determined last backed up the data of the robot control terminal was the earliest.
[0023] Optionally, after sending the data backup notification to the determined robot, the method further includes:
[0024] When reaching a time point extending backward by a preset time period from the time point of sending the data backup notification, determining whether there is a determined robot that has not obtained the data to be backed up;
[0025] If there is a determined robot that has not obtained the data to be backed up, the process returns to the step of determining a robot from the at least one robot for storing the data to be backed up.
[0026] Optionally, after sending a data backup notification to the determined robot so that the determined robot obtains the data to be backed up from the robot control terminal and stores it locally, the method further includes:
[0027] When the data to be backed up needs to be restored, the data to be backed up is obtained from the robot that locally stores the data to be backed up.
[0028] Optionally, after obtaining the data to be backed up, the method further includes:
[0029] According to a preset aging time, storing the data to be backed up in a preset distributed storage system;
[0030] Within the preset aging time, when the data to be backed up needs to be restored, the data to be backed up is obtained from the preset distributed storage system, and / or the data to be backed up is obtained from a robot that locally stores the data to be backed up;
[0031] After the preset aging time is reached, when the data to be backed up needs to be restored, the data to be backed up is obtained from the robot that locally stores the data to be backed up.
[0032] In a second aspect of the present application, a data backup method is provided, which is applied to any robot controlled by a robot control terminal, and the method comprises:
[0033] receiving a data backup notification sent by the robot control end; wherein the data backup notification is sent by the robot control end to the robot when the robot determined to store the data to be backed up includes the robot; and the total remaining storage space of the determined robot is not less than the storage space occupied by the data to be backed up;
[0034] The data to be backed up is obtained from the robot control terminal and stored locally.
[0035] Optionally, the method further includes:
[0036] Determining whether the remaining local storage space is greater than a third preset threshold;
[0037] If the remaining local storage space is not greater than the third preset threshold, the data with the earliest backup time among the backed-up data of the robot control end is deleted from the local.
[0038] In a third aspect of the implementation of the present application, there is also provided a data backup system, the system comprising a robot control terminal and at least one robot controlled by the robot control terminal; wherein:
[0039] The robot control terminal is used to execute any data backup method described in the first aspect above;
[0040] Each robot is used to execute any data backup method described in the second aspect above.
[0041] In a fourth aspect of the implementation of the present application, there is also provided a data backup device, which is applied to a robot control terminal, the robot control terminal being used to control at least one robot, the device comprising:
[0042] A data acquisition module, used to acquire data to be backed up;
[0043] A robot determination module, used to determine a robot for storing the data to be backed up from the at least one robot; wherein the total current remaining storage space of the determined robot is not less than the storage space occupied by the data to be backed up;
[0044] The notification sending module is used to send a data backup notification to the determined robot, so that the determined robot obtains the data to be backed up from the robot control terminal and stores it locally.
[0045] Optionally, the data acquisition module is specifically used to acquire original data to be backed up as the data to be backed up; wherein the storage space occupied by the original data is not greater than a first preset threshold; the first preset threshold is determined according to the total storage space of a robot;
[0046] The robot determination module is specifically used to determine a robot whose current remaining storage space is not less than the storage space occupied by the data to be backed up from the at least one robot as the robot used to store the data to be backed up.
[0047] Optionally, the data acquisition module is specifically used to acquire original data to be backed up;
[0048] In the case where the storage space occupied by the original data is greater than a second preset threshold, the original data is divided into multiple copies of data to obtain multiple copies of data to be backed up; wherein the second preset threshold is determined according to the total storage space of a robot; and the storage space occupied by each copy of data to be backed up is not greater than the second preset threshold;
[0049] The robot determination module is specifically used to determine, for each data to be backed up, a robot whose current remaining storage space is not less than the storage space occupied by the data to be backed up from the at least one robot as a robot for storing the data to be backed up; wherein, for any two data to be backed up, the determined robots are different;
[0050] The notification sending module is specifically used to send a data backup notification for the backup data that needs to be stored by the robot to each determined robot, so that the robot obtains and stores the backup data that needs to be stored from the robot control terminal.
[0051] Optionally, the determined current remaining storage space of the robot is not less than the storage space occupied by the data to be backed up, and the data of the robot control terminal has not been backed up;
[0052] or,
[0053] Among the robots whose current remaining storage space is not less than the storage space occupied by the data to be backed up, the time when the robot that was determined last backed up the data of the robot control terminal was the earliest.
[0054] Optionally, the device further comprises:
[0055] The backup judgment module is used to judge whether there is a determined robot that has not obtained the data to be backed up after the data backup notification is sent to the determined robot, when the moment of extending back by a preset time from the moment of sending the data backup notification is reached; if there is a determined robot that has not obtained the data to be backed up, the robot determination module is triggered.
[0056] Optionally, the device further comprises:
[0057] A data recovery module is used to send a data backup notification to the determined robot so that the determined robot obtains the data to be backed up from the robot control terminal and stores it locally. When the data to be backed up needs to be restored, the data to be backed up is obtained from the robot that locally stores the data to be backed up.
[0058] Optionally, the device further comprises:
[0059] A data storage module, configured to store the data to be backed up in a preset distributed storage system according to a preset aging time after the data to be backed up is acquired;
[0060] A first acquisition module is used to acquire the data to be backed up from the preset distributed storage system when the data to be backed up needs to be restored within the preset aging time, and / or acquire the data to be backed up from a robot that locally stores the data to be backed up;
[0061] The second acquisition module is used to acquire the data to be backed up from the robot that locally stores the data to be backed up when the data to be backed up needs to be restored after the preset aging time is reached.
[0062] In another aspect of the present application, a data backup device is provided, which is applied to any robot controlled by a robot control terminal, and the device includes:
[0063] a notification receiving module, configured to receive a data backup notification sent by the robot control end; wherein the data backup notification is sent by the robot control end to the robot when the robot determined to store the data to be backed up includes the robot; and the total remaining storage space of the determined robot is not less than the storage space occupied by the data to be backed up;
[0064] The module for acquiring data to be backed up is used to acquire the data to be backed up from the robot control terminal and store it locally.
[0065] Optionally, the device further comprises:
[0066] A storage space determination module, used to determine whether the remaining local storage space is greater than a third preset threshold;
[0067] The data deletion module is used to delete the data with the earliest backup time from the locally backed up data of the robot control end if the local remaining storage space is not greater than the third preset threshold.
[0068] Another aspect of the present application provides an electronic device, including:
[0069] Memory, used to store computer programs;
[0070] The processor is used to implement the data backup method described in any one of the first aspect or the second aspect when executing the program stored in the memory.
[0071] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data backup method described in any one of the first aspect or the second aspect is implemented.
[0072] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the data backup method described in any one of the first aspect or the second aspect.
[0073] A data backup method provided in an embodiment of the present application is applied to a robot control end, which is used to control at least one robot. The method may include: obtaining data to be backed up; determining a robot for storing the data to be backed up from at least one robot; wherein the current total remaining storage space of the determined robot is not less than the storage space occupied by the data to be backed up; and sending a data backup notification to the determined robot, so that the determined robot obtains the data to be backed up from the robot control end and stores it locally.
[0074] Based on the above processing, the robot controlled by the robot control end can store the data to be backed up, so as to realize the backup of the data of the robot control end. In this way, even if the robot control end is abnormal and causes data loss, the backed-up data can be obtained from the robot, which can avoid the situation where the robot control end loses data due to abnormality and improve the stability of the business. In addition, the storage resources in the scene where the robot control end is located can be fully utilized, and there is no need to add additional storage resources for storing the data of the robot control end, which can reduce costs.
[0075] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0077] Figure 1 A first flow chart of a data backup method applied to a robot control terminal provided in an embodiment of the present application;
[0078] Figure 2 A second flow chart of a data backup method applied to a robot control terminal provided in an embodiment of the present application;
[0079] Figure 3 A third flow chart of the data backup method applied to the robot control terminal provided in the embodiment of the present application;
[0080] Figure 4 A flowchart of a data backup method applied to a robot provided in an embodiment of the present application;
[0081] Figure 5 A flowchart of updating the backup data stored in the robot in the data backup method provided by the embodiment of the present application;
[0082] Figure 6 A schematic diagram of the structure of a data backup device applied to a robot control terminal provided in an embodiment of the present application;
[0083] Figure 7 A schematic diagram of the structure of a data backup device applied to a robot provided in an embodiment of the present application;
[0084] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0085] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.
[0086] With the development of technology, robots are often used to replace manual processing tasks in warehousing and logistics scenarios. For example, robots in the warehouse can be scheduled through the robot control terminal to perform material handling tasks.
[0087] In the related art, the server cluster is used as the robot control end. In order to ensure the stability of the business, the data is often backed up through the local server cluster (this method can be called the server cluster data reliability guarantee solution). For example, the data to be backed up can be divided into multiple copies, and the obtained multiple copies of data are stored in different servers in the server cluster. However, when the local server cluster is abnormal, the data stored in the server cluster may be lost, making the business stability low.
[0088] In order to improve the stability of the business and avoid data loss on the robot control end due to abnormalities, the present application embodiment provides a data backup method, see Figure 1 , Figure 1 The first flow chart of the data backup method applied to the robot control terminal provided in the embodiment of the present application, the robot control terminal is used to control at least one robot. The robot can be various forms of mobile intelligent machine equipment, for example, the robot can be an AMR (Autonomous Mobile Robot) or an AGV (Automated Guided Vehicle).
[0089] The robot control end can be a server in the scene where the robot is located (such as the above-mentioned server cluster). For example, the server can be deployed with RCMS (Robots Control Management System). For example, for a factory scene, the robot can be located in the factory warehouse, and the server can be located in the factory computer room. The robot and the server can communicate through a wireless network. The robot control end can control the robot based on RCMS. For example, the robot can be controlled based on RCMS to move materials in the warehouse.
[0090] The data backup method applied to the robot control terminal may include the following steps:
[0091] Step S101: Acquire data to be backed up.
[0092] Step S102: determining a robot for storing data to be backed up from at least one robot.
[0093] The determined total current remaining storage space of the robot is not less than the storage space occupied by the data to be backed up.
[0094] Step S103: Sending a data backup notification to the determined robot, so that the determined robot obtains the data to be backed up from the robot control terminal and stores it locally.
[0095] Based on the above processing, the robot controlled by the robot control end can store the data to be backed up, so as to realize the backup of the data of the robot control end. In this way, even if the robot control end is abnormal and causes data loss, the backed-up data can be obtained from the robot, which can avoid the situation where the robot control end loses data due to abnormality and improve the stability of the business. In addition, the storage resources in the scene where the robot control end is located can be fully utilized, and there is no need to add additional storage resources for storing the data of the robot control end, which can reduce costs.
[0096] In the warehousing and logistics scenario, other services for implementing business functions can also be deployed on the robot control end, for example, other services may include equipment access services and warehouse management services. The robot controlled by the robot control end stores the data to be backed up. In the worst case, if the robot control end fails and all the data in the local server is lost, data can be restored through the data stored in the robot, thus ensuring the data security of the production environment.
[0097] For step S101, the data to be backed up is the data that currently needs to be backed up. The data to be backed up may be the key data of the robot scheduling system, and accordingly, the robot control end may obtain the key data of the robot scheduling system. For example, for a factory scenario, the key data of the robot scheduling system may be the map information of the warehouse where the robot is located, various configuration-related data in the database, and a system configuration file. For example, the various configuration-related data in the database may include the robot type and the shelf type, and the system configuration file may include the configuration file of the system middleware and the configuration file of the database connection. The system middleware is a general middleware that supports the operation of the robot scheduling system, such as a database, a message middleware, etc.
[0098] Alternatively, the data to be backed up may also be data that other services need to back up. The robot control terminal may obtain the data that other services need to back up through an interface reserved by other services for obtaining data that needs to be backed up (which may be referred to as an interface for obtaining backup files).
[0099] In this way, unlike the server cluster data reliability assurance solutions commonly used in related technologies, the present application can realize the backing up of the key production data of each service running in the robot control terminal to the robot used for production work, that is, data backup can be achieved by utilizing on-site resources (also known as data migration backup). Therefore, there is no need to back up the data through additional storage resources. This can increase the backup redundancy of the data, improve the security and reliability of the data, while reducing the consumption of additional storage resources and reducing the cost required for data backup.
[0100] In addition, compared with the server cluster data reliability assurance solutions commonly used in related technologies, redundant backup can be achieved through robots in the present application, so there is no need to perform redundant backup of large amounts of data through server clusters. Therefore, the storage resources of the server cluster can be saved, and the backup data can be avoided from occupying more storage resources of the server cluster and affecting the operation of various services in the server. The normal operation of various services in the server cluster can be ensured, and the stability of the business can be guaranteed.
[0101] Since the key data of the robot control end or the data that needs to be backed up by other services may be updated, that is, the data to be backed up may change, it is necessary to ensure that the latest data to be backed up can be stored. In one implementation, the data to be backed up can be obtained according to the backup cycle to achieve the storage of the data to be backed up. For example, the backup cycle can be one day or one week.
[0102] In another implementation, the robot control end can obtain the latest data to be backed up when its own key data or the data that other services need to back up change. For example, the robot control end and other services can both determine whether the data that they need to back up has changed. For any other service, when the service determines that the data that it needs to back up has changed, it can send a backup request to the robot control end indicating the change of the data that it needs to back up. Accordingly, when it determines that the data that it needs to back up has changed, or receives a backup request sent by other services, the robot control end can obtain the latest data to be backed up.
[0103] With respect to step S102 and step S103, after obtaining the data to be backed up, the robot control end may determine a robot for storing the data to be backed up from at least one robot under control. The determined robot may be one or more. For a specific method of determining the robot for storing the data to be backed up, reference may be made to the description in the subsequent embodiments.
[0104] If there is only one robot determined, the current remaining storage space of the robot is not less than the storage space occupied by the data to be backed up. If there are multiple robots determined, the sum of the current remaining storage spaces of the multiple robots is not less than the storage space occupied by the data to be backed up.
[0105] The current data to be backed up may also be one or more. For each data to be backed up, the robot control end may store the data to be backed up in one robot; or, the robot control end may store the data to be backed up in multiple robots. In this way, it is possible to avoid the situation where a robot storing the data to be backed up fails and causes data loss, further improving the stability of the business. In the case where there are multiple data to be backed up, if only one copy of the data to be backed up is stored, the data to be backed up stored in any two robots may be different.
[0106] The robot control end may send a data backup notification to the determined robot. When receiving the data backup notification, the robot may obtain the data to be backed up from the robot control end and store the data to be backed up locally. For example, the robot control end may assign a file identifier to the data to be backed up. For each determined robot, the data backup notification sent by the robot control end to the robot may carry the file identifier of the data to be backed up that the robot needs to obtain. Correspondingly, the robot may obtain the data to be backed up corresponding to the file identifier from the robot control end according to the file identifier carried in the data backup notification. For example, the robot may download the data to be backed up through the REST (Representational State Transfer) interface provided by the robot control end.
[0107] The robot control terminal may record the correspondence between the robot storing the data to be backed up locally and the data to be backed up. For example, the correspondence between the identifier of the robot storing the data to be backed up locally and the file identifier of the data to be backed up may be recorded.
[0108] In one embodiment, after step S103, the method further includes: when the data to be backed up needs to be restored, acquiring the data to be backed up from a robot that locally stores the data to be backed up.
[0109] In the embodiment of the present application, when it is necessary to restore the data to be backed up, the robot control end can determine the robot that has the data to be backed up that needs to be restored locally based on the recorded corresponding relationship, and obtain the data to be backed up from the determined robot to restore the data to be backed up. For example, the robot control end can send a data restoration notification to the determined robot. When receiving the data restoration notification, the robot can send the locally stored data to be backed up to the robot control end.
[0110] Based on the above processing, even if the robot control end is abnormal and causes data loss, the backed-up data can be obtained from the robot to achieve data recovery, thus avoiding the situation where data loss on the robot control end due to abnormalities and improving business stability.
[0111] In one implementation, the robot control end may also record the time when the robot acquires the data to be backed up, and the file information of the data to be backed up. For example, the file information of the data to be backed up may include the file identifier of the data to be backed up and the generation time of the data to be backed up. When the data to be backed up needs to be restored, the robot control end may determine the data to be backed up with the most recent generation time, and the robot storing the data to be backed up, based on the recorded time when the robot acquires the data to be backed up, and the file information of the data to be backed up.
[0112] The robot can also store the generation time of the data to be backed up. If an abnormality occurs in the robot control end, resulting in the loss of all data stored locally in the robot control end, the robot control end can send a data recovery notification to the robots it controls. When receiving the data recovery notification, each robot can send the generation time of the most recently stored data to be backed up to the robot control end. Accordingly, the robot control end can determine the most recent generation time from the received generation times, that is, it can determine the data to be backed up with the most recent generation time, and can determine the robot storing the data to be backed up.
[0113] Based on the above processing, the robot control end can determine the robot where the data to be backed up with the most recent generation time is located, and can send a data acquisition notification to the robot to obtain the data to be backed up with the most recent generation time from the robot. For example, the data acquisition notification can carry the file identifier of the data to be backed up with the most recent generation time. After receiving the data acquisition notification, the robot can send the data to be backed up represented by the file identifier carried in the data acquisition notification to the robot control end. In this way, the robot control end can obtain the data to be backed up with the most recent generation time to achieve data recovery and ensure the effectiveness of data recovery.
[0114] In one embodiment, Figure 1 Based on Figure 2 , Figure 2 The second flow chart of the data backup method applied to the robot control terminal provided in the embodiment of the present application, after step S103, the method further includes:
[0115] Step S104: When the time for sending the data backup notification is extended backward by a preset time period, it is determined whether there is any robot that has not obtained the data to be backed up.
[0116] Step S105: If there is a robot that has not obtained the data to be backed up, return to step S102.
[0117] In an embodiment of the present application, the robot control end may record the time when the data backup notification is sent to the determined robot (i.e., the time when the data backup notification is sent). When the time when the data backup notification is sent is extended backward by a preset time, the robot control end may determine whether there is a determined robot that has not obtained the data to be backed up. For example, the preset time may be 15 minutes or 30 minutes.
[0118] If there is no determined robot that has not obtained the data to be backed up, it means that the determined robots have all obtained the data to be backed up, that is, the data currently required to be backed up has all been backed up.
[0119] Since the robot may malfunction or be processing a task, the robot may not be able to obtain and store the data to be backed up when receiving a data backup notification. If a determined robot does not obtain the data to be backed up, it means that the data to be backed up is not stored by the determined robot, that is, there is a faulty robot or a robot occupied by a task (which may be referred to as a target robot) among the determined robots. In this case, the robot control end can determine the target robot and the data to be backed up that the target robot needs to store, and can re-determine the robot used to store the data to be backed up that the target robot needs to store from other robots except the target robot.
[0120] Based on the above processing, after sending the data backup notification, the robot control end can periodically determine whether the determined robot has obtained the data to be backed up, and can re-determine the robot used to store the data to be backed up that has not been stored by the robot. In this way, it can be ensured that all the data to be backed up can be stored in the robot. Even if the robot control end is abnormal and causes data loss, the backed up data can be obtained from the robot, avoiding the situation where the robot control end causes data loss due to abnormalities, and further improving the stability of the business.
[0121] In one embodiment, after step S101, the data backup method further includes:
[0122] According to the preset aging time, the data to be backed up is stored in the preset distributed storage system;
[0123] Within the preset aging time, when the data to be backed up needs to be restored, the data to be backed up is obtained from the preset distributed storage system, and / or the data to be backed up is obtained from the robot that locally stores the data to be backed up;
[0124] After the preset aging time is reached, when the data to be backed up needs to be restored, the data to be backed up is obtained from the robot that locally stores the data to be backed up.
[0125] In the embodiment of the present application, a preset distributed storage system may also be deployed on the robot control end. The robot control end may store the data to be backed up in the preset distributed storage system according to the preset aging time. The preset time may be greater than the backup cycle in the above embodiment. For example, if the backup cycle is one day, the preset aging time may be one week; if the backup cycle is one week, the preset aging time may be one month.
[0126] In each data backup process, each data to be backed up is set with a preset aging time. Within the preset aging time of a data to be backed up, the preset distributed storage system can store the data to be backed up. Accordingly, when the data to be backed up needs to be restored, the robot control end can obtain the data to be backed up from the preset distributed storage system. In this case, the robot control end can also obtain the data to be backed up from the robot that locally stores the data to be backed up.
[0127] After reaching a preset aging time of the data to be backed up, the data to be backed up stored in the preset distributed storage system becomes invalid and cannot be obtained from the preset distributed storage system. When the data to be backed up needs to be restored, the data to be backed up can be obtained from the robot that locally stores the data to be backed up to achieve data recovery.
[0128] Based on the above processing, the data to be backed up can be stored in the preset distributed storage system. When the robot scheduling system or other services have an abnormality that causes the loss of their own data, the robot control end can obtain the data to be backed up from the robot that stores the data to be backed up locally to achieve data recovery. If the data to be backed up is within the preset aging time of the data to be restored, the robot control end can also obtain the data to be backed up from the preset distributed storage system to achieve data recovery. In this way, the normal operation of the robot scheduling system or other services can be guaranteed, and the stability of the business can be further guaranteed.
[0129] In one embodiment, step S101 includes:
[0130] Step 1: Obtain the original data to be backed up as the data to be backed up.
[0131] The storage space occupied by the original data is not greater than a first preset threshold; the first preset threshold is determined based on the total storage space of a robot.
[0132] Step S102 includes:
[0133] Step 2: Determine a robot from at least one robot whose current remaining storage space is not less than the storage space occupied by the data to be backed up, as the robot for storing the data to be backed up.
[0134] In an embodiment of the present application, the first preset threshold value may be determined in advance according to the total storage space of a robot. The first preset threshold value is positively correlated with the total storage space of a robot. For example, the first preset threshold value may be one tenth or one eighth of the total storage space of a robot. For example, the total storage space of a robot may be 500 MB (megabytes), and the first preset threshold value may be 50 MB.
[0135] When the data currently required to be backed up is obtained, the robot control end can determine whether the storage space occupied by the data currently required to be backed up is greater than a first preset threshold. If the storage space occupied by the data currently required to be backed up is not greater than the first preset threshold, the data currently required to be backed up is the original data to be backed up, that is, the data to be backed up. Alternatively, after the data currently required to be backed up is obtained, the data currently required to be backed up can also be packaged and compressed to obtain a file. If the storage space occupied by the obtained file is not greater than the first preset threshold, the file is the original data to be backed up, that is, the data to be backed up.
[0136] Correspondingly, the robot control end may select a robot whose current remaining storage space is not less than the storage space occupied by the data to be backed up from the controlled robots as the robot for storing the data to be backed up.
[0137] Since the storage space of the robot is limited, if most of the storage space is occupied by the data that currently needs to be backed up, it will affect the performance of the robot in processing tasks. Therefore, if the storage space occupied by the data that currently needs to be backed up is greater than the first preset threshold, it means that the storage space occupied by the data that currently needs to be backed up is large, and the data that currently needs to be backed up may not be stored in the robot to avoid storing the data to be backed up and affecting the performance of the robot in processing tasks. For example, the data that currently needs to be backed up may be stored only in the preset distributed storage system in the above embodiment.
[0138] Alternatively, if the storage space occupied by the data currently to be backed up is greater than the first preset threshold, the data currently to be backed up can be divided to obtain multiple data to be backed up that are not greater than the first preset threshold. For each data to be backed up, the robot control end can determine a robot for storing the data to be backed up to achieve storage of the data currently to be backed up. For specific implementation methods, please refer to the relevant introduction to backing up when the storage space occupied by the original data is greater than the second preset threshold in steps 1-4 of the subsequent embodiments.
[0139] Based on the above processing, it can be ensured that the storage space occupied by the data to be backed up in a robot for storing the data to be backed up is not greater than the first preset threshold value, which can also prevent the storage space occupied by the data to be backed up stored in the robot from being too large and affecting the performance of the robot in processing tasks. That is, while the robot stores the data to be backed up, it can ensure that the robot can process tasks normally. In this way, the stability of the business can be further guaranteed.
[0140] In one embodiment, step S101 includes:
[0141] Step 1: Get the original data to be backed up.
[0142] Step 2: When the storage space occupied by the original data is greater than a second preset threshold, the original data is divided into a plurality of copies of data to obtain a plurality of copies of data to be backed up.
[0143] The second preset threshold is determined according to the total storage space of a robot; the storage space occupied by each data to be backed up is not greater than the second preset threshold.
[0144] Step S102 includes:
[0145] Step 3: For each piece of data to be backed up, determine a robot from at least one robot whose current remaining storage space is not less than the storage space occupied by the data to be backed up as the robot used to store the data to be backed up.
[0146] Among them, for any two data to be backed up, the robots determined are different.
[0147] Step S103 includes:
[0148] Step 4: Send a data backup notification for the backup data that needs to be stored by the robot to each determined robot, so that the robot obtains and stores the backup data that needs to be stored from the robot control terminal.
[0149] In the embodiment of the present application, the second preset threshold may be determined in the same manner as the first preset threshold, and the first preset threshold and the second preset threshold may be the same.
[0150] If the storage space occupied by the original data is greater than the second preset threshold, the robot control end can divide the original data into multiple copies of data to obtain multiple copies of data to be backed up. The division method is not specifically limited, as long as it can ensure that the storage space occupied by each copy of the data obtained by the division is not greater than the second preset threshold. In the above process, after the original data is divided into multiple copies of data, for each copy of the data obtained by the division, the data can be packaged and compressed to obtain a file, which is also a copy of the data to be backed up.
[0151] For each piece of data to be backed up, the robot control end may determine a robot from the controlled robots whose current remaining storage space is not less than the storage space occupied by the data to be backed up, as the robot for storing the data to be backed up.
[0152] For example, the robot control end can sort multiple data to be backed up, such as sorting the multiple data to be backed up from large to small according to the storage space occupied, or randomly sorting the multiple data to be backed up. The robot control end can select a data to be backed up according to the above sorting, and determine a robot whose remaining storage space is not less than the storage space occupied by the data to be backed up from the robots that are not currently selected. Then, the next data to be backed up can be selected, and a robot whose remaining storage space is not less than the storage space occupied by the data to be backed up can be determined from the robots that are not currently selected. And so on, until the robot corresponding to the last data to be backed up is determined.
[0153] For the case where the storage space occupied by the original data is not greater than the second preset threshold, reference may be made to step 1 and step 2 in the above embodiment for the introduction of backing up the original data when the storage space occupied by the original data is not greater than the first preset threshold.
[0154] Based on the above processing, it is possible to ensure that the storage space occupied by the data to be backed up in a robot for storing the data to be backed up is not greater than the second preset threshold, and it is possible to avoid the storage space occupied by the data to be backed up stored in the robot being too large and affecting the performance of the robot in processing tasks. That is, while the robot stores the data to be backed up, it is possible to ensure that the robot can process tasks normally. In this way, the stability of the business can be further guaranteed.
[0155] In one embodiment, the determined robot's current remaining storage space is not less than the storage space occupied by the data to be backed up, and the data on the robot control end has not been backed up; or, among robots whose current remaining storage space is not less than the storage space occupied by the data to be backed up, the determined robot last backed up the data on the robot control end at the earliest.
[0156] In the embodiment of the present application, for a piece of data to be backed up, the robot control end can determine from the controlled robots a robot whose current remaining storage space is not less than the storage space occupied by the data to be backed up. If there is only one robot whose storage space meets the requirement, then the robot can be determined as the robot for storing the data to be backed up.
[0157] If there are multiple robots whose storage space meets the requirements, a robot that has not backed up the data of the robot control end can be selected from the robots whose storage space meets the requirements as the robot used to store the data to be backed up. Alternatively, the robot control end can select the robot whose last backup time of the data of the robot control end was the earliest from the robots whose storage space meets the requirements as the robot used to store the data to be backed up based on the time when the robot in the historical records obtained the data to be backed up (i.e., the time when the data of the robot control end was backed up).
[0158] The robot can delete the data with an earlier backup time from the local backed-up data of the robot control end, and store the current data to be backed up. In this way, it can avoid the situation where the backed-up data of the robot control end occupies a large amount of storage space and reduces the performance of the robot in processing tasks, ensuring that the robot can process tasks normally while backing up the data of the robot control end. It can also ensure that the generation time of the data to be backed up stored in the robot is relatively recent and has high validity.
[0159] Based on the above processing, the robot whose storage space meets the requirements and has not backed up the data on the robot control end can be preferentially selected, or the robot whose storage space meets the requirements and the last time the data on the robot control end was backed up was the earliest. In this way, the data to be backed up acquired at different times can be dispersed and stored in different robots, which can reduce the impact of robot failure on the backed up data and improve the reliability of data backup.
[0160] In one embodiment, see Figure 3 , Figure 3 A third flow chart of a data backup method applied to a robot control terminal provided in an embodiment of the present application. The data backup method may include:
[0161] Step S301: The scheduled backup task of the RCMS system starts. That is, the RCMS system can start data backup according to the backup cycle. The backup cycle can be one day, and the RCMS system can start data backup at 3 am every day.
[0162] Step S302: Obtain backup file information from each service, and pack and compress the backup file of RCMS itself. That is, obtain the data that needs to be backed up currently, pack and compress the data that needs to be backed up currently, and obtain a file (also called a backup file). This file is the original data to be backed up, that is, the data to be backed up.
[0163] Step S303: Save the file to the preset distributed storage system and delete the backup data 7 days ago. That is, store the data to be backed up in the preset distributed storage system according to the preset aging time. The preset aging time is 7 days.
[0164] Step S304: Determine whether the backup file is larger than 50MB. If the backup file is not larger than 50MB, execute step S305; if the backup file is larger than 50MB, end. That is, determine whether the storage space occupied by the original data is larger than the first preset threshold, which is 50MB.
[0165] Step S305: select a robot with sufficient storage space and the earliest last backup time to notify. That is, from at least one robot, determine a robot whose current remaining storage space is not less than the storage space occupied by the data to be backed up and whose last backup time of the data on the robot control end was the earliest, as the robot for storing the data to be backed up. And execute step S103 in the above embodiment.
[0166] Step S306: The robot downloads the backup file from the RCMS through the REST interface, and the RCMS records the download time and file information of the backup file. That is, the robot can download the data to be backed up through the REST interface provided by the robot control end. The RCMS can record the time when the robot obtains the data to be backed up (i.e., the time when the backup file is downloaded) and the file information of the data to be backed up.
[0167] Step S307: Check regularly whether a robot has downloaded the backup file on the day. If a robot has downloaded the backup file, execute step S308; if no robot has downloaded the backup file, return to execute step S305. That is, step S104-step S105 in the above embodiment.
[0168] Step S308: End.
[0169] In the embodiment of the present application, steps S301-S305 and step S307 may be executed by the robot control end through RCMS.
[0170] Based on the above processing, important production data in the robot control end can be backed up to the robot, which can reduce the risk of data loss, ensure data security in the production environment, and improve business stability.
[0171] Based on the same inventive concept, the embodiment of the present application also provides a data backup method, which is applied to any robot controlled by the robot control terminal. Figure 4 , Figure 4 A flowchart of a data backup method applied to a robot provided in an embodiment of the present application, the data backup method comprising:
[0172] Step S401: Receive a data backup notification sent by the robot control terminal.
[0173] Among them, the data backup notification is: the robot control end sends it to the robot when the robot determined to be used to store the backup data includes this robot; the current total remaining storage space of the determined robot is not less than the storage space occupied by the data to be backed up.
[0174] Step S402: Obtain the data to be backed up from the robot control terminal and store it locally.
[0175] Based on the above processing, the robot controlled by the robot control end can store the data to be backed up, so as to realize the backup of the data of the robot control end. In this way, even if the robot control end is abnormal and causes data loss, the backed-up data can be obtained from the robot, which can avoid the situation where the robot control end loses data due to abnormality and improve the stability of the business. In addition, the storage resources in the scene where the robot control end is located can be fully utilized, and there is no need to add additional storage resources for storing the data of the robot control end, which can reduce costs.
[0176] In one embodiment, the robot can also update the backup data stored in itself. Figure 5 , Figure 5 The flowchart of updating the backup data stored in the robot in the data backup method provided in the embodiment of the present application may include:
[0177] Step S501: Determine whether the remaining local storage space is greater than a third preset threshold.
[0178] Step S502: If the remaining local storage space is not greater than the third preset threshold, the data with the earliest backup time among the backed-up data of the robot control end is deleted from the local.
[0179] In the embodiment of the present application, the robot can also determine whether the local remaining storage space is greater than a third preset threshold. The third preset threshold can be determined according to the total storage space of a robot, for example, the third preset threshold can be one tenth or one ninth of the total storage space of a robot.
[0180] If the remaining local storage space is greater than the third preset threshold, no processing is performed. If the remaining local storage space is not greater than the third preset threshold, the data with the earliest backup time among the data of the backed-up robot control end can be deleted from the local. For the data with the earliest backup time among the data of the backed-up robot control end, the generation time of the data is also earlier, and the validity of the data is lower than the current data to be backed up. Therefore, the data can be deleted to ensure that the generation time of the data to be backed up stored in the robot is relatively recent and has a higher validity.
[0181] Based on the above processing, when the local remaining storage space is small, the robot can delete the less effective data in the locally backed up robot control end data to increase the local remaining storage space. In this way, it can avoid the situation where the backed up robot control end data occupies a large amount of storage space and reduces the robot's task processing performance, ensuring that the robot can process tasks normally while backing up the robot control end data, which can further ensure the stability of the business.
[0182] The embodiment of the present application also provides a data backup system, the system comprising a robot control terminal and at least one robot controlled by the robot control terminal.
[0183] The robot control terminal is used to execute any of the data backup methods applied to the robot control terminal described in the above embodiments.
[0184] Each robot is used to execute any data backup method described in any of the above embodiments applied to any robot controlled by the robot control end.
[0185] Based on the data backup system provided by the embodiment of the present application, the robot controlled by the robot control end can store the data to be backed up, so as to realize the backup of the data of the robot control end. In this way, even if the robot control end is abnormal and causes data loss, the backed-up data can be obtained from the robot, which can avoid the situation where the robot control end loses data due to abnormality, and improve the stability of the business. And it can make full use of the storage resources in the scene where the robot control end is located, without adding additional storage resources for storing the data of the robot control end, which can reduce costs.
[0186] The present application also provides a data backup device for use in a robot control terminal, wherein the robot control terminal is used to control at least one robot. Figure 6 , Figure 6 This is a schematic diagram of a data backup device for a robot control terminal provided in an embodiment of the present application. The device includes:
[0187] The data acquisition module 601 is used to acquire the data to be backed up;
[0188] A robot determination module 602 is used to determine a robot for storing the data to be backed up from the at least one robot; wherein the total remaining storage space of the determined robot is not less than the storage space occupied by the data to be backed up;
[0189] The notification sending module 603 is used to send a data backup notification to the determined robot, so that the determined robot obtains the data to be backed up from the robot control terminal and stores it locally.
[0190] Based on the data backup device provided in the embodiment of the present application, the robot controlled by the robot control end can store the data to be backed up to realize the backup of the data of the robot control end. In this way, even if the robot control end is abnormal and causes data loss, the backed-up data can be obtained from the robot, which can avoid the situation where the robot control end loses data due to abnormalities and improve the stability of the business. In addition, the storage resources in the scene where the robot control end is located can be fully utilized, and there is no need to add additional storage resources for storing the data of the robot control end, which can reduce costs.
[0191] In one embodiment, the data acquisition module 601 is specifically used to acquire the original data to be backed up as the data to be backed up; wherein the storage space occupied by the original data is not greater than a first preset threshold; the first preset threshold is determined according to the total storage space of a robot;
[0192] The robot determination module 602 is specifically used to determine a robot whose current remaining storage space is not less than the storage space occupied by the data to be backed up from the at least one robot as the robot used to store the data to be backed up.
[0193] In one embodiment, the data acquisition module 601 is specifically used to acquire the original data to be backed up;
[0194] In the case where the storage space occupied by the original data is greater than a second preset threshold, the original data is divided into multiple copies of data to obtain multiple copies of data to be backed up; wherein the second preset threshold is determined according to the total storage space of a robot; and the storage space occupied by each copy of data to be backed up is not greater than the second preset threshold;
[0195] The robot determination module 602 is specifically configured to determine, for each data to be backed up, from the at least one robot, a robot whose current remaining storage space is not less than the storage space occupied by the data to be backed up, as a robot for storing the data to be backed up; wherein, for any two data to be backed up, the determined robots are different;
[0196] The notification sending module 603 is specifically used to send a data backup notification for the backup data that needs to be stored by the robot to each determined robot, so that the robot obtains and stores the backup data that needs to be stored from the robot control terminal.
[0197] In one embodiment, the determined current remaining storage space of the robot is not less than the storage space occupied by the data to be backed up, and the data of the robot control terminal has not been backed up;
[0198] or,
[0199] Among the robots whose current remaining storage space is not less than the storage space occupied by the data to be backed up, the time when the robot that was determined last backed up the data of the robot control terminal was the earliest.
[0200] In one embodiment, the apparatus further comprises:
[0201] The backup judgment module is used to judge whether there is a determined robot that has not obtained the data to be backed up after the data backup notification is sent to the determined robot, when the moment of extending the preset time period backward from the moment of sending the data backup notification is reached; if there is a determined robot that has not obtained the data to be backed up, the robot determination module 602 is triggered.
[0202] In one embodiment, the apparatus further comprises:
[0203] A data recovery module is used to send a data backup notification to the determined robot so that the determined robot obtains the data to be backed up from the robot control terminal and stores it locally. When the data to be backed up needs to be restored, the data to be backed up is obtained from the robot that locally stores the data to be backed up.
[0204] In one embodiment, the apparatus further comprises:
[0205] A data storage module, configured to store the data to be backed up in a preset distributed storage system according to a preset aging time after the data to be backed up is acquired;
[0206] A first acquisition module is used to acquire the data to be backed up from the preset distributed storage system when the data to be backed up needs to be restored within the preset aging time, and / or acquire the data to be backed up from a robot that locally stores the data to be backed up;
[0207] The second acquisition module is used to acquire the data to be backed up from the robot that locally stores the data to be backed up when the data to be backed up needs to be restored after the preset aging time is reached.
[0208] The present application embodiment provides a data backup device, which is applied to any robot controlled by a robot control terminal, see Figure 7 , Figure 7 A schematic diagram of a data backup device for a robot provided in an embodiment of the present application, the device comprising:
[0209] The notification receiving module 701 is used to receive the data backup notification sent by the robot control end; wherein the data backup notification is: sent by the robot control end to the robot when the robot determined to store the data to be backed up includes the robot; the total remaining storage space of the robot determined is not less than the storage space occupied by the data to be backed up;
[0210] The to-be-backed-up data acquisition module 702 is used to acquire the to-be-backed-up data from the robot control terminal and store it locally.
[0211] Based on the data backup device provided in the embodiment of the present application, the robot controlled by the robot control end can store the data to be backed up to realize the backup of the data of the robot control end. In this way, even if the robot control end is abnormal and causes data loss, the backed-up data can be obtained from the robot, which can avoid the situation where the robot control end loses data due to abnormalities and improve the stability of the business. In addition, the storage resources in the scene where the robot control end is located can be fully utilized, and there is no need to add additional storage resources for storing the data of the robot control end, which can reduce costs.
[0212] In one embodiment, the apparatus further comprises:
[0213] A storage space determination module, used to determine whether the remaining local storage space is greater than a third preset threshold;
[0214] The data deletion module is used to delete the data with the earliest backup time from the locally backed up data of the robot control end if the local remaining storage space is not greater than the third preset threshold.
[0215] The present application also provides an electronic device, such as Figure 8 As shown, including:
[0216] Memory 801, used for storing computer programs;
[0217] The processor 802 is used to implement any data backup method applied to the robot control end or any data backup method applied to the robot in the above embodiments when executing the program stored in the memory 801.
[0218] Furthermore, the electronic device may further include a communication bus and / or a communication interface, and the processor 802, the communication interface, and the memory 801 communicate with each other via the communication bus.
[0219] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0220] The communication interface is used for communication between the above electronic device and other devices.
[0221] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0222] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0223] In another embodiment provided in the present application, a computer-readable storage medium is also provided, which stores a computer program. When the computer program is executed by a processor, it implements any of the above-mentioned data backup methods applied to the robot control end or any steps of the data backup method applied to the robot.
[0224] In another embodiment provided in the present application, a computer program product comprising instructions is also provided, which, when executed on a computer, enables the computer to execute any data backup method applied to a robot control terminal in the above-mentioned embodiments or any data backup method applied to a robot.
[0225] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.
[0226] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0227] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system, device, electronic device, storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0228] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims
1. A data backup method, characterized in that: Applied to a robot control terminal, the robot control terminal is used to control at least one robot, the method comprises: Get the data to be backed up; Determining a robot for storing the data to be backed up from the at least one robot; wherein the total current remaining storage space of the determined robot is not less than the storage space occupied by the data to be backed up; A data backup notification is sent to the determined robot, so that the determined robot obtains the data to be backed up from the robot control terminal and stores it locally.
2. The method according to claim 1, characterized in that The step of obtaining the data to be backed up includes: Acquire original data to be backed up as the data to be backed up; wherein the storage space occupied by the original data is not greater than a first preset threshold; the first preset threshold is determined according to the total storage space of a robot; Determining a robot for storing the data to be backed up from the at least one robot includes: A robot whose current remaining storage space is not less than the storage space occupied by the data to be backed up is determined from the at least one robot as the robot for storing the data to be backed up.
3. The method according to claim 1, characterized in that The step of obtaining the data to be backed up includes: Obtain the original data to be backed up; In the case where the storage space occupied by the original data is greater than a second preset threshold, the original data is divided into multiple copies of data to obtain multiple copies of data to be backed up; wherein the second preset threshold is determined according to the total storage space of a robot; and the storage space occupied by each copy of data to be backed up is not greater than the second preset threshold; Determining a robot for storing the data to be backed up from the at least one robot includes: For each data to be backed up, a robot whose current remaining storage space is not less than the storage space occupied by the data to be backed up is determined from the at least one robot as a robot for storing the data to be backed up; wherein, for any two data to be backed up, the determined robots are different; The sending of a data backup notification to the determined robot so that the determined robot obtains the data to be backed up from the robot control terminal and stores the data locally includes: A data backup notification for the data to be backed up that needs to be stored by the robot is sent to each determined robot, so that the robot obtains and stores the data to be backed up that needs to be stored from the robot control terminal.
4. The method according to claim 2 or 3, characterized in that: The determined current remaining storage space of the robot is not less than the storage space occupied by the data to be backed up, and the data of the robot control terminal has not been backed up; or, Among the robots whose current remaining storage space is not less than the storage space occupied by the data to be backed up, the time when the robot that was determined last backed up the data of the robot control terminal was the earliest.
5. The method according to claim 1, characterized in that After sending the data backup notification to the determined robot, the method further includes: When reaching a time point extending backward by a preset time period from the time point of sending the data backup notification, determining whether there is a determined robot that has not acquired the data to be backed up; If there is a determined robot that has not obtained the data to be backed up, the process returns to the step of determining a robot from the at least one robot for storing the data to be backed up.
6. The method according to claim 1, characterized in that After sending a data backup notification to the determined robot so that the determined robot obtains the data to be backed up from the robot control terminal and stores it locally, the method further includes: When the data to be backed up needs to be restored, the data to be backed up is obtained from the robot that locally stores the data to be backed up.
7. The method according to claim 1, characterized in that After obtaining the data to be backed up, the method further includes: According to a preset aging time, storing the data to be backed up in a preset distributed storage system; Within the preset aging time, when the data to be backed up needs to be restored, the data to be backed up is obtained from the preset distributed storage system, and / or the data to be backed up is obtained from a robot that locally stores the data to be backed up; After the preset aging time is reached, when the data to be backed up needs to be restored, the data to be backed up is obtained from the robot that locally stores the data to be backed up.
8. A data backup method, characterized in that: Applied to any robot controlled by a robot control terminal, the method comprises: receiving a data backup notification sent by the robot control end; wherein the data backup notification is sent by the robot control end to the robot when the robot determined to store the data to be backed up includes the robot; and the total remaining storage space of the determined robot is not less than the storage space occupied by the data to be backed up; The data to be backed up is obtained from the robot control terminal and stored locally.
9. The method according to claim 8, characterized in that The method further comprises: Determining whether the remaining local storage space is greater than a third preset threshold; If the remaining local storage space is not greater than the third preset threshold, the data with the earliest backup time among the backed-up data of the robot control end is deleted from the local.
10. A data backup system, characterized in that: The system comprises a robot control terminal and at least one robot controlled by the robot control terminal; wherein: The robot control terminal is used to execute the data backup method according to any one of claims 1 to 7; Each robot is used to execute the data backup method described in any one of claims 8-9.
11. A data backup device, characterized in that: Applied to a robot control terminal, the robot control terminal is used to control at least one robot, and the device comprises: A data acquisition module, used to acquire data to be backed up; A robot determination module, used to determine a robot for storing the data to be backed up from the at least one robot; wherein the total current remaining storage space of the determined robot is not less than the storage space occupied by the data to be backed up; The notification sending module is used to send a data backup notification to the determined robot, so that the determined robot obtains the data to be backed up from the robot control terminal and stores it locally.
12. A data backup device, characterized in that: Applicable to any robot controlled by a robot control terminal, the device comprises: a notification receiving module, configured to receive a data backup notification sent by the robot control end; wherein the data backup notification is sent by the robot control end to the robot when the robot determined to store the data to be backed up includes the robot; and the total remaining storage space of the determined robot is not less than the storage space occupied by the data to be backed up; The module for acquiring data to be backed up is used to acquire the data to be backed up from the robot control terminal and store it locally.
13. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, for implementing the method described in any one of claims 1-7 or 8-9 when executing a program stored in a memory.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1-7 or 8-9 is implemented.
