Backup management method and device applied to end-side equipment, equipment and medium
By determining the data to be backed up before the end-edge device system is updated and selecting the appropriate hardware for backup processing, the data loss problem caused by system update is solved, and the accuracy and completeness of data backup is achieved.
Patent Information
- Application Number
- CN202411889639.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-25
AI Technical Summary
During the upgrade and update of the end-edge equipment system of the power system, equipment data may be lost, affecting the normal operation of subsequent equipment.
When receiving the system update instruction, the data to be backed up is determined, and based on the amount of data, the space where the hardware can be used, and the transmission parameter information, the target hardware is selected for backup processing. Set access policy parameters in the target hardware to ensure the accuracy and completeness of backup processing.
It effectively avoids data losses caused by system updates, ensures the accuracy and completeness of data backup, and ensures the normal operation of end-edge equipment after the system is upgraded.
Smart Images

Figure CN119883729A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a backup management method, device, equipment and medium applied to edge devices. Background Art
[0002] In the power system, end devices and edge devices are relative to the entire power Internet of Things architecture. End devices are devices used to sense state changes and perform control operations. They are usually deployed at the very end of the power grid and can be directly connected to the user's power equipment. The "edge" in edge devices refers to edge computing. Edge devices are usually deployed close to the data source or user end. Edge devices can process power data from end devices.
[0003] In order to better process the power data in the power system, the system used by the edge devices is usually upgraded and updated. However, during the system upgrade, the upgraded edge devices may lose device data due to software errors or hardware failures, which is not conducive to the normal operation of the subsequent edge devices. Summary of the invention
[0004] The present invention provides a backup management method, apparatus, device and medium applied to edge devices, which realizes the backup processing of devices undergoing system updates, avoids the problem of data loss due to system updates, and ensures the accuracy and integrity of data backup.
[0005] According to one aspect of the present invention, a backup management method applied to a terminal edge device is provided, the method comprising:
[0006] Upon receiving a system update instruction, determining data to be backed up corresponding to an edge device; wherein the edge device is a device to be updated by the system;
[0007] Determine target usable hardware for storing the data to be backed up based on data volume information of the data to be backed up, usable space information of at least one usable hardware, and transmission parameter information;
[0008] Access policy parameters are set for the data to be backed up in the target usable hardware, so as to perform backup processing on the data to be backed up based on the access policy parameters.
[0009] According to another aspect of the present invention, there is provided a backup management device applied to a terminal edge device, the device comprising:
[0010] A data determination module, configured to determine the data to be backed up corresponding to the edge device upon receiving the system update instruction; wherein the edge device is the device to be updated by the system;
[0011] An available hardware determination module, configured to determine target available hardware for storing the data to be backed up based on data volume information of the data to be backed up, available space information of at least one available hardware, and transmission parameter information;
[0012] The data backup module is used to set access policy parameters for the data to be backed up in the target usable hardware, so as to perform backup processing on the data to be backed up based on the access policy parameters.
[0013] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the backup management method applied to the edge device according to any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions, and the computer instructions are used to enable a processor to implement the backup management method applied to an edge device according to any embodiment of the present invention when executed.
[0018] According to another aspect of the present invention, there is provided a computer program product, comprising a computer program, characterized in that when the computer program is executed by a processor, the computer program implements a backup management method applied to an edge device as in any embodiment of the present invention.
[0019] The technical solution of the embodiment of the present invention provides data for subsequent backup processing by determining the data to be backed up corresponding to the edge device when a system update instruction is received. The target usable hardware for storing the data to be backed up is determined based on the data volume information of the data to be backed up, the usable space information of at least one usable hardware, and the transmission parameter information. Access policy parameters are set for the data to be backed up in the target usable hardware to perform backup processing on the data to be backed up according to the access policy parameters. The present invention solves the problem of device data loss caused by device system upgrades and updates in the prior art, realizes backup processing of devices subject to system updates, avoids the problem of data loss caused by system updates, and ensures the accuracy and completeness of data backup.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0022] Figure 1 is a flowchart of a backup management method applied to a terminal edge device provided by an embodiment of the present invention;
[0023] Figure 2 is a flowchart of a backup management method applied to a terminal edge device provided by an embodiment of the present invention;
[0024] Figure 3 It is a structural diagram of a backup management device applied to a terminal edge device provided by an embodiment of the present invention;
[0025] Figure 4 It is a structural schematic diagram of an electronic device for implementing the backup management method applied to an edge device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1This is a flowchart of a backup management method applied to an edge device provided by the first embodiment of the present invention. This embodiment is applicable to the case where a data backup process is performed on an edge device to be updated. The method can be executed by a backup management device applied to an edge device. The backup management device applied to an edge device can be implemented in the form of hardware and / or software. The backup management device applied to an edge device can be configured in an electronic device such as a mobile phone, a computer or a server. Figure 1 As shown, the method includes:
[0030] S110. When a system update instruction is received, determine the data to be backed up corresponding to the edge device; wherein the edge device is a device to be updated by the system.
[0031] Among them, the end-edge devices can be understood as the end devices and edge devices in the power system. The end devices can usually be deployed at the very end of the power grid and directly connected to the user's power equipment. For example, the end devices can measure and record the amount of electricity consumed by the user, and receive control signals from the smart grid system to achieve remote control of the user's power usage. The "edge" in the edge device is edge computing. Edge devices are usually deployed close to the data source or the user side, and can process power data from the end devices.
[0032] In order to optimize the performance of data processing on the edge device, the edge device can be subjected to system update processing. The system update instruction can be understood as an instruction to perform version update or upgrade processing on the system used by the edge device. When the system update instruction is received, it indicates that the current edge device is an electric power device to be updated by the system. In order to ensure the security and integrity of the device data of the edge device during the system upgrade process, the device data of the edge device can be backed up. The data to be backed up may include data information such as device operation data, user operation data, and log data of the edge device.
[0033] Specifically, when receiving a system update instruction, the system update instruction is parsed and processed to determine the end-edge device that currently needs a system update. To ensure that the system update process does not affect the device data of the end-edge device, the data that needs to be backed up on the current end-edge device, that is, the data to be backed up, can be selected according to actual needs. The data to be backed up of the current end-edge device can also be determined based on the actual usage of the application in the end-edge device, so as to back up these data to be backed up.
[0034] In an embodiment of the present invention, the method for determining the data to be backed up may be: determining the data to be backed up based on a trigger operation on at least one data on the edge device; and / or determining the data to be backed up based on usage data of at least one application deployed on the edge device and a trigger operation on at least one data.
[0035] The trigger operation can be understood as an operation of selecting corresponding data. The at least one application can be understood as an application deployed on the edge device. The usage data of the at least one application can include user interaction data, log data, and other data information of the application on the edge device.
[0036] Specifically, when it is detected that the current edge device is an electric power device to be updated by the system, the selected data to be backed up can be obtained based on the trigger operation of at least one data on the edge device. It is also possible to evaluate the usage corresponding to the data of each data type in each application based on the data on at least one application on the edge device, and determine the usage data corresponding to each application, so as to use these usage data and the data selected by the trigger operation of at least one data as the data to be backed up.
[0037] For example, the importance of each type of data of each application can be evaluated based on the usage frequency of each application on the edge device and the interaction data information, and the data that needs to be backed up in each application, that is, the usage data, can be determined. The data that needs to be backed up in the application and the data selected by the user are regarded as the data to be backed up.
[0038] S120: Determine target available hardware for storing the data to be backed up based on the data volume information of the data to be backed up, available space information of at least one available hardware, and transmission parameter information.
[0039] Among them, the data volume information of the data to be backed up can be understood as the data volume size of the data to be backed up. The usable hardware can be a backup device that stores the data to be backed up. For example, the usable hardware can be a mobile hard disk, a USB flash drive, and a solid-state hard disk. It should be noted that the storage space corresponding to the cloud storage service can also be used to store the data to be backed up. The usable space can be the storage capacity for storing data. The transmission parameter information can be used to characterize the data reading and writing speed of the usable hardware during data transmission. The target usable hardware can be hardware selected from at least one usable hardware. It should be noted that in order to ensure the security and fault tolerance of data storage, multiple target usable hardware can be selected to perform backup processing on the data to be backed up.
[0040] Specifically, based on the data volume information of the data to be backed up and the available space information of at least one available hardware, the available hardware to be determined is selected from at least one available hardware to ensure that the available space corresponding to the available hardware to be determined can store all the data to be backed up. Based on the transmission parameter information of at least one available hardware to be determined, the available hardware to be determined with a fast data reading and writing speed is determined as the target available hardware to increase the data backup rate. It should be noted that when selecting the target available hardware, the target available hardware can also be determined comprehensively from aspects such as the cost, quality, security and durability of data storage, and convenience of future expansion and data maintenance of the available hardware.
[0041] S130: Setting access policy parameters for the data to be backed up in the target available hardware, so as to perform backup processing on the data to be backed up based on the access policy parameters.
[0042] Among them, the access policy parameters include at least one of the following: access permission parameters, update cycle, full backup, incremental backup, differential backup and backup trigger parameters.
[0043] The access permission parameters may be predefined devices or users that can access or obtain the data to be backed up stored in the target usable hardware. The update cycle may be used to characterize the update frequency of the data to be backed up in the target usable hardware. Optionally, the corresponding update cycles for different data types of data to be backed up may differ. For example, the update cycle is 1 day, that is, the data in the target usable hardware is updated every other day based on the newly acquired data to be backed up to ensure the accuracy and timeliness of the data. The update cycle may be used to determine the shelf life of the data to be backed up in the target usable hardware. When the storage period of the data to be backed up in the target usable hardware exceeds the storage period, the data in the target usable hardware is updated.
[0044] Full backup, also called complete backup or comprehensive backup, is used to completely copy the data to be backed up at a certain point in time and store it in the target usable hardware. Full backup can ensure that in the event of data loss, damage or tampering, it can be restored to the complete data state at the time of backup. It should be noted that full backup should be used when backing up the data to be backed up on the edge device for the first time.
[0045] Incremental backup can be understood as backing up only the data that has changed since the last backup. Compared with full backup, incremental backup can save the available space in the target available hardware. It should be noted that when migrating the data of the target available hardware to the end-edge device after the system update is completed, it is necessary to apply each incremental backup data in turn, that is, start with the full backup data, and migrate the incremental backup data in chronological order.
[0046] Differential backup can be understood as backing up all data that has changed since the last full backup. Accordingly, when migrating the data of the target usable hardware to the end-edge device after the system update is completed, only the data of the last full backup and the last differential backup can be migrated to the end-edge device after the system update.
[0047] The backup trigger parameters can be used to define the parameters that trigger the backup process. The backup trigger parameters can be used to determine whether the backup process is based on time, based on events, or based on user operations. Time-based backup processing can be storing the data to be backed up in the target usable hardware at regular intervals. Event-based backup processing can be backing up the data to be backed up on the end-side device when it is detected that the current end-side device requires a system upgrade. Backup processing based on user operations can be backing up the data to be backed up based on operations manually triggered by the user.
[0048] Specifically, after determining the target accessible hardware, access permission parameters are configured for the data to be backed up in the target accessible hardware so that users or devices with access permission can obtain the data in the target accessible hardware, preventing illegal users or devices from maliciously tampering with the data in the target accessible hardware, thereby ensuring the integrity and confidentiality of the backup data.
[0049] In the target usable hardware, an update cycle is configured for each type of data to be backed up, so as to save and update each type of data to be backed up based on the update cycle. Optionally, the business importance of each type of data to be backed up can be evaluated, and the backup data can be stored in a hierarchical manner according to the evaluation results of the business importance, and the data retention period of the corresponding level of data to be backed up can be set to ensure that important data is not deleted by mistake and that important data can be traced for a long time.
[0050] In the target usable hardware, the processing methods of full backup, incremental backup or differential backup are periodically set for the data to be backed up, as well as the backup trigger parameters corresponding to each processing method, so as to determine the backup trigger mechanism according to the backup trigger parameters, and perform backup processing on the backup data through the backup trigger mechanism. Based on this, it can be ensured that the backup data is backed up in a timely and accurate manner, reduce redundant data in the target usable hardware, and improve the backup processing efficiency. Among them, the backup trigger mechanism is a mechanism determined according to the backup trigger parameters. The backup trigger mechanism may include a scheduled backup trigger mechanism, a backup trigger mechanism based on user operations, and a log-driven backup trigger mechanism. Through the above processing, the portability and compatibility of the data stored in the target usable hardware can be ensured, laying the foundation for the subsequent migration of the backed-up data in the target usable hardware to the end-edge device after the system is updated.
[0051] Optionally, after backing up the data to be backed up based on the access policy parameters, a backup duration for backing up the data to be backed up to the target available hardware is determined. If the backup duration exceeds a preset duration, the access policy parameters are adjusted to improve the efficiency of the backup process.
[0052] The technical solution of this embodiment provides data for subsequent backup processing by determining the data to be backed up corresponding to the edge device when a system update instruction is received. The target usable hardware for storing the data to be backed up is determined based on the data volume information of the data to be backed up, the usable space information of at least one usable hardware, and the transmission parameter information. Access policy parameters are set for the data to be backed up in the target usable hardware to perform backup processing on the data to be backed up according to the access policy parameters. The present invention solves the problem of device data loss caused by device system upgrades and updates in the prior art, realizes backup processing of devices subject to system updates, avoids the problem of data loss caused by system updates, and ensures the accuracy and completeness of data backup.
[0053] Embodiment 2
[0054] Figure 2 This is a flowchart of a backup management method applied to a terminal device provided by Embodiment 2 of the present invention. This embodiment is a preferred embodiment of the above embodiment. For its specific implementation, please refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above embodiment are not repeated here. Figure 2 As shown, the method includes:
[0055] S210. When a system update instruction is received, determine the data to be backed up corresponding to the edge device; wherein the edge device is a device to be updated by the system.
[0056] S220: Determine at least one hardware to be selected according to available space information of at least one available hardware, data volume information of the data to be backed up, and data increment information corresponding to the data to be backed up within a preset time period.
[0057] The preset duration may be a time length set according to actual needs. The data increment information may be understood as information about the data to be backed up that can be added by the end-edge device within the preset duration. The hardware to be selected may be available hardware whose available space information can meet the storage requirements corresponding to the data to be backed up and the data to be backed up that increases within the preset duration.
[0058] Specifically, the growth rate of the data to be backed up of the data type in the future preset time period can be determined based on the historical data of the same data type as the data to be backed up in the edge device and the growth rate of the historical data in the preset time period. The data increment information corresponding to all the data to be backed up within the preset time period is determined based on the data volume information of the data to be backed up of each data type and the corresponding growth rate.
[0059] The data increment information of the data to be backed up and the data volume information of the data to be backed up are summed up to determine the available space required for the data to be backed up. Based on the available space information of at least one available hardware, available hardware whose available space information satisfies the available space required for the data to be backed up is determined, and the available hardware is used as the hardware to be selected.
[0060] S230: Determine target available hardware based on hardware parameters and transmission parameter information of at least one hardware to be selected.
[0061] Among them, the hardware parameters may include storage capacity information, interface type information and power consumption information of the hardware to be selected. By comparing the hardware parameters of the hardware to be selected, the storage performance of the hardware to be selected in terms of data storage can be determined. The transmission parameter information includes at least one of the network transmission rate and the read-write parameter. The network transmission rate can be understood as the amount of data that the network can transmit per unit time. The read-write parameter information can be understood as the performance parameters of the hardware to be selected when performing data read and write operations. The read-write parameter information may include information such as the read-write rate and the seek time.
[0062] Specifically, the hardware parameters and transmission parameter information of at least one hardware to be selected are evaluated and processed from at least one evaluation dimension of the hardware performance, storage capacity, and cost-effectiveness of the hardware to be selected, and an evaluation result corresponding to each evaluation dimension is obtained. According to the evaluation result corresponding to each evaluation dimension and the weight coefficient corresponding to each evaluation dimension, a target evaluation result is determined. The hardware to be selected whose target evaluation result reaches a preset value is used as the target usable hardware.
[0063] S240: Setting access policy parameters for the data to be backed up in the target available hardware, so as to perform backup processing on the data to be backed up based on the access policy parameters.
[0064] S250: After backing up the data to be backed up to the target available hardware, remove the redundant data backed up in the target available hardware.
[0065] The redundant data includes at least one of duplicate data, invalid data and / or expired data. Duplicate data can be understood as the same data stored in the target usable hardware. Invalid data can be data corresponding to damaged files or incorrectly formatted files in the target usable hardware. Expired data can be data that has been stored in the target usable hardware for a period exceeding a preset storage period.
[0066] Specifically, after backing up the data to be backed up to the target usable hardware, duplicate data can be identified by comparing the contents of different files or data blocks in the target usable hardware, and the duplicate data can be eliminated. Optionally, each data block in the target usable hardware can be converted into a unique hash value by a hash algorithm, and the duplicate data can be determined by comparing the hash values. When it is detected that some files in the target usable hardware cannot be read or restored by conventional means, these files can be identified and processed to determine whether they are damaged files or files with incorrect formats. If so, these files and the data in the files are eliminated as invalid data. According to the starting storage time corresponding to each data in the target usable hardware and the current time, the storage time of each data in the target usable hardware is determined. When the storage time of the data exceeds the preset storage period, the data is eliminated as expired data, which helps to avoid the risk of sensitive data leakage caused by misoperation or system failure, and reduces potential data recovery problems. By eliminating redundant data in the target usable hardware, not only can the storage space of the target usable hardware be increased and the backup processing efficiency be optimized, but also the accuracy of the data in the target usable hardware can be guaranteed.
[0067] S260, partitioning and storing the backed up data according to the data type of the backed up data stored in the target usable hardware, and establishing an index identifier after the partition, so as to retrieve the backed up data from the corresponding partition based on the index identifier.
[0068] Among them, the backed up data can be understood as the data to be backed up corresponding to the edge device that has been stored in the target usable hardware. The data type of the backed up data may include multiple types such as document type, log type, and usage data type corresponding to the application. Partition storage can be understood as storing backed up data of different data types in different partitions in the target usable hardware. Different partitions are different storage areas in the target usable hardware. The index identifier can be an identifier for uniquely characterizing the data type of the data. The backed up data of the corresponding data type can be retrieved through the index identifier.
[0069] Specifically, the backed up data is partitioned and stored according to the data type of the backed up data stored in the target usable hardware, and the backed up data of different data types are stored in different storage areas of the target usable hardware to improve the access efficiency of the backed up data and reduce the complexity of the backed up data. After the partition storage, an index identifier is created for each partition to retrieve the backed up data of the corresponding data type from the corresponding partition through the index identifier.
[0070] Optionally, if partitioned storage processing has been performed on the data to be backed up of different data types when the data to be backed up is stored in the target usable hardware, then after the redundant data in the target usable hardware is eliminated, the backed up data in the target usable hardware with the redundant data eliminated can be structuredly stored again according to actual business needs, i.e., partitioned storage. The backed up data of different data types are stored in corresponding partitions, and index identifiers corresponding to the partitions are established.
[0071] It should be noted that when the backed up data is stored in partitions, if the data volume information of the backed up data corresponding to a certain data type is greater than the available space information of the corresponding partition, a compression algorithm can be used to compress the backed up data of the data type, and the compressed backed up data can be stored in the corresponding partition.
[0072] Optionally, detect whether there is data corruption or inconsistency in the backed up data; if so, repair the backed up data based on a pre-set repair method; and record the operation records corresponding to each backed up data.
[0073] Among them, the pre-set repair method can be a method for repairing or replacing damaged data or inconsistent data. Optionally, if the damaged data is data in a document, the file system tool can be used to repair the damaged file to achieve the purpose of repairing the data in the document. Optionally, the damaged or inconsistent backed-up data in the current target usable hardware can also be replaced by the backed-up data stored in other target usable hardware. The operation record may include record information such as the storage record, modification record, and update record of the backed-up data. The storage record may include information such as the storage time and retention period of the backed-up data. The modification record may include information such as the modification date of the backed-up data, the backed-up data before modification, the backed-up data after modification, and the repair method for modifying the backed-up data. The update record may include information such as the date of updating the backed-up data, the backed-up data after update, and the backed-up data before update
[0074] Specifically, when determining the data to be backed up, the standard hash value corresponding to the data to be backed up can be determined according to the hash algorithm. After the data to be backed up is stored in the target usable hardware, the backed up data corresponding to the data to be backed up is hashed to obtain the hash value to be verified. When the hash value to be verified is consistent with the standard hash value, it means that there is no data inconsistency or data damage in the backed up data. If the hash value to be verified is inconsistent with the standard hash value, the damaged or inconsistent backed up data in the current target usable hardware can be replaced by the backed up data stored in other target usable hardware. And recalculate the hash value corresponding to the replaced backed up data. When the hash value is consistent with the standard hash value, it means that the backed up data has been repaired. The storage information, modification information and update information of each backed up data are recorded and processed to obtain the operation record corresponding to each backed up data. Based on this, it can be ensured that after the end-edge device system upgrade is completed, the complete backed up data can be obtained from the target usable hardware, reducing the subsequent business interruption or service failure caused by data errors.
[0075] S270: After the system upgrade of the edge device is completed and the backed-up data is imported from the target usable hardware to the edge device, an integrity check is performed on the imported backed-up data and the backed-up data stored in the target usable hardware.
[0076] Specifically, after the system upgrade of the edge device is completed, the migration risk value corresponding to each migration moment when the backed-up data is migrated to the upgraded edge device can be determined according to the network state corresponding to at least one migration moment. When the migration risk value meets the preset risk threshold, the migration moment corresponding to the migration risk value is used as the target migration moment, so that the backed-up data in the target usable hardware is imported into the edge device according to the target migration moment.
[0077] Before migrating the backed-up data from the target usable hardware to the end-edge device after the system upgrade, the backed-up data before the migration can be hashed to obtain the hash value corresponding to the backed-up data before the migration. After importing the backed-up data from the target usable hardware to the end-edge device after the system upgrade, the hash value corresponding to the imported backed-up data can be calculated. When the hash value corresponding to the backed-up data before the migration is consistent with the hash value corresponding to the imported backed-up data, it is determined that the imported backed-up data is complete backed-up data, which ensures the data integrity and consistency during the data migration process and avoids data loss or data corruption during the data migration process due to misoperation or system failure.
[0078] Exemplarily, after the system upgrade of the edge device is completed and the backed-up data is imported from the target usable hardware to the edge device, it is detected whether the amount of data of each data type is consistent with the backed-up data previously stored in the target usable hardware, and whether the data content is consistent, so as to ensure the consistency and integrity of the data before and after the edge device system upgrade, and avoid data loss and illegal tampering caused by the system upgrade. If it is detected that the imported backed-up data is damaged, you can use specific software tools or command lines to try to restore the data, and check whether the restored data is consistent with the data to be backed up before the system upgrade.
[0079] It should be noted that in the process of migrating the backed-up data from the target available hardware to the end-edge device after the system upgrade, information such as the read and write speed of the imported backed-up data and the storage space capacity used to store the backed-up data in the end-edge device after the system upgrade can be monitored in real time, so that when an abnormal situation of insufficient storage space capacity or decreased read and write speed is detected, the preset emergency processing strategy can be used to handle the corresponding abnormal situation.
[0080] For example, when the threshold warning system detects that the storage space capacity has reached the storage capacity threshold corresponding to the end-edge device after the system upgrade, a warning prompt information is generated based on the storage space capacity information, so as to expand the storage space used to store the backed-up data in the end-edge device based on the warning prompt information, so as to increase the storage space to meet the storage needs of the backed-up data, and avoid the problem that the backed-up data cannot be written or the imported backed-up data is overwritten due to insufficient storage space. When it is detected that the read and write speed of the imported backed-up data has dropped significantly, the storage space can be replaced, or the time for importing the backed-up data can be adjusted, or the backed-up data can be compressed and then imported into the end-edge device after the system upgrade.
[0081] Optionally, after migrating the backed up data from the target available hardware to the end-edge device after the system upgrade, the imported backed up data of different data types can be partitioned or encrypted in partitions according to actual business needs.
[0082] Optionally, the storage space capacity used to store the backed-up data in the upgraded end-edge device can be expanded according to the actual needs of subsequent business. In addition, the imported backed-up data can be regularly scanned, verified and sorted using the automated data detection tools in the upgraded end-edge device to ensure the accuracy and availability of the backed-up data.
[0083] S280: When the verification result is consistent with the preset result, the backed-up data is applied in the end-edge device.
[0084] Among them, the preset result can be a verification passing result.
[0085] Specifically, if the integrity check result of the imported backup data and the backup data stored in the target available hardware is consistent with the preset result, the data integrity check passes, and the backup data can be applied in the end-edge device after the system upgrade.
[0086] Optionally, before applying the backed-up data in the end-edge device, the end-edge device can be tested for system performance based on the backed-up data to detect whether the backed-up data is compatible with the end-edge device after the system upgrade. The specific method can be: simulate normal business processing operations to test whether the time length between the end-edge device after the system upgrade receives the business processing request and feeds back the data corresponding to the business processing request exceeds the preset business processing time length, so as to evaluate the speed of the end-edge device after the system upgrade to process the request. Monitor the CPU usage rate, memory occupancy rate, disk read and write speed and other information when the end-edge device after the system upgrade processes the business, so as to determine whether there is a resource bottleneck or resource waste in the process of processing the business of the end-edge device after the system upgrade. Accordingly, if it is detected that the time length of the business processing exceeds the preset business processing time length, or the end-edge device has a resource bottleneck or resource waste in the process of processing the business, the system configuration parameters of the end-edge device after the system upgrade can be adjusted or the hardware of the end-edge device can be replaced to make the backed-up data compatible with the end-edge device after the system upgrade, so as to improve the overall performance and stability of the end-edge device after the system upgrade.
[0087] The technical solution of this embodiment provides data for subsequent backup processing by determining the data to be backed up corresponding to the edge device when receiving a system update instruction. At least one hardware to be selected is determined based on the available space information of at least one available hardware, the data volume information of the data to be backed up, and the data increment information corresponding to the data to be backed up within a preset time. The target available hardware is determined based on the hardware parameters and transmission parameter information of at least one hardware to be selected. Access policy parameters are set for the data to be backed up in the target available hardware, so that the backup data can be backed up based on the access policy parameters, thereby ensuring the accuracy and completeness of the data backup processing. After backing up the data to be backed up to the target available hardware, the redundant data backed up in the target available hardware is eliminated. The backed up data is partitioned and stored according to the data type of the backed up data stored in the target available hardware, and an index identifier after the partition is established to retrieve the backed up data from the corresponding partition based on the index identifier. After the system upgrade of the edge device is completed and the backed up data is imported from the target available hardware to the edge device, the imported backed up data and the backed up data stored in the target available hardware are checked for integrity, thereby ensuring the timeliness of data migration and the consistency of the backed up data before and after migration. When the verification result is consistent with the preset result, the backed-up data is applied in the end-edge device. The present invention solves the problem of device data loss caused by device system upgrade in the prior art, realizes the backup processing of the device for system update, avoids the problem of data loss caused by system update, and ensures the accuracy and integrity of data backup.
[0088] Embodiment 3
[0089] Figure 3 Schematic diagram of a backup management device applied to a terminal device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a data determination module 310 , an available hardware determination module 320 , and a data backup module 330 .
[0090] The data determination module 310 is used to determine the data to be backed up corresponding to the edge device when receiving the system update instruction; wherein the edge device is the device to be updated by the system. The usable hardware determination module 320 is used to determine the target usable hardware for storing the data to be backed up based on the data volume information of the data to be backed up, the usable space information of at least one usable hardware, and the transmission parameter information. The data backup module 330 is used to set the access policy parameters for the data to be backed up in the target usable hardware, so as to perform the backup processing on the data to be backed up based on the access policy parameters.
[0091] The technical solution of this embodiment provides data for subsequent backup processing by determining the data to be backed up corresponding to the edge device when a system update instruction is received. The target usable hardware for storing the data to be backed up is determined based on the data volume information of the data to be backed up, the usable space information of at least one usable hardware, and the transmission parameter information. Access policy parameters are set for the data to be backed up in the target usable hardware to perform backup processing on the data to be backed up according to the access policy parameters. The present invention solves the problem of device data loss caused by device system upgrades and updates in the prior art, realizes backup processing of devices subject to system updates, avoids the problem of data loss caused by system updates, and ensures the accuracy and completeness of data backup.
[0092] Based on the above embodiments, optionally, a data determination module is used to determine the data to be backed up based on a trigger operation on at least one data on the edge device; and / or to determine the data to be backed up based on usage data of at least one application deployed on the edge device and a trigger operation on at least one data.
[0093] Optionally, a hardware determination module can be used to determine at least one hardware to be selected based on the available space information of at least one available hardware, the data volume information of the data to be backed up, and the data increment information corresponding to the data to be backed up within a preset time period; based on the hardware parameters and transmission parameter information of at least one hardware to be selected, determine the target available hardware; wherein the transmission parameter information includes at least one of the network transmission rate and the read-write parameters.
[0094] Optionally, the access policy parameters include at least one of the following: access permission parameters, update cycle, full backup, incremental backup, differential backup, and backup trigger parameters.
[0095] Optionally, after backing up the data to be backed up to the target usable hardware, the device also includes: a backup data sorting module, used to eliminate redundant data backed up in the target usable hardware; wherein the redundant data includes at least one of duplicate data, invalid data and / or expired data; partitioning the backed up data according to the data type of the backed up data stored in the target usable hardware, and establishing an index identifier after the partition to retrieve the backed up data from the corresponding partition based on the index identifier.
[0096] Optionally, the device also includes: a data repair processing module, used to detect whether there is data damage or inconsistency in the backed up data; if so, repair the backed up data based on a pre-set repair method; and record the operation records corresponding to each backed up data.
[0097] Optionally, after the system upgrade of the edge device is completed and the backed-up data is imported from the target usable hardware to the edge device, the device also includes: a data integrity verification module, which is used to perform integrity verification on the imported backed-up data and the backed-up data stored in the target usable hardware; when the verification result is consistent with the preset result, the backed-up data is applied in the edge device.
[0098] The backup management device applied to the edge device provided in the embodiment of the present invention can execute the backup management method applied to the edge device provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0099] Embodiment 4
[0100] Figure 4 1 is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0101] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0102] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0103] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the backup management method applied to the edge device.
[0104] In some embodiments, the backup management method applied in the edge device may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the backup management method applied in the edge device described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the backup management method applied in the edge device in any other appropriate manner (for example, by means of firmware).
[0105] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0106] The computer program for implementing the backup management method applied to the edge device of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed completely on the machine, partially on the machine, as an independent software package, partially on the machine and partially on a remote machine, or completely on a remote machine or server.
[0107] Embodiment 5
[0108] Embodiment 5 of the present invention further provides a computer-readable storage medium, the computer-readable storage medium storing computer instructions, the computer instructions being used to cause a processor to execute a backup management method applied to a terminal edge device, the method comprising:
[0109] When a system update instruction is received, the data to be backed up corresponding to the edge device is determined; wherein the edge device is a device to be updated by the system; based on the data volume information of the data to be backed up, the available space information of at least one available hardware and the transmission parameter information, the target available hardware for storing the data to be backed up is determined; access policy parameters are set for the data to be backed up in the target available hardware, so as to perform backup processing on the data to be backed up based on the access policy parameters.
[0110] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0111] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0112] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0113] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0114] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0115] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A backup management method applied to a terminal device, characterized in that: include: Upon receiving a system update instruction, determining data to be backed up corresponding to an edge device; wherein the edge device is a device to be updated by the system; Determine target usable hardware for storing the data to be backed up based on data volume information of the data to be backed up, usable space information of at least one usable hardware, and transmission parameter information; Access policy parameters are set for the data to be backed up in the target usable hardware, so as to perform backup processing on the data to be backed up based on the access policy parameters.
2. The method according to claim 1, characterized in that The determining the data to be backed up corresponding to the edge device includes: Determining the data to be backed up based on a triggering operation on at least one data on the edge device; and / or, The data to be backed up is determined according to usage data of at least one application deployed on the edge device and a triggering operation on at least one data.
3. The method according to claim 1, characterized in that The determining, based on the data volume information of the data to be backed up, the available space information of at least one available hardware, and the transmission parameter information, of the target available hardware for storing the data to be backed up comprises: Determine at least one hardware to be selected according to the available space information of the at least one available hardware, the data volume information of the data to be backed up, and the data increment information corresponding to the data to be backed up within a preset time period; Determining the target available hardware based on the hardware parameters and transmission parameter information of the at least one hardware to be selected; The transmission parameter information includes at least one of a network transmission rate and a read / write parameter.
4. The method according to claim 1, characterized in that: The access policy parameters include at least one of the following: Access permission parameters, update cycle, full backup, incremental backup, differential backup, and backup trigger parameters.
5. The method according to claim 1, characterized in that After backing up the data to be backed up to the target usable hardware, the method further includes: Eliminate redundant data backed up in the target usable hardware; wherein the redundant data includes at least one of duplicate data, invalid data and / or expired data; The backed up data is partitioned and stored according to the data type of the backed up data stored in the target usable hardware, and an index identifier is established after the partition to retrieve the backed up data from the corresponding partition based on the index identifier.
6. The method according to claim 5, characterized in that The method further comprises: Detecting whether there is data corruption or inconsistency in the backed up data; If yes, repairing the backed-up data based on a preset repair method; Record the operation records corresponding to each backed-up data.
7. The method according to claim 5, characterized in that After the system upgrade of the edge device is completed and the backed-up data is imported from the target usable hardware into the edge device, the method further includes: Performing integrity check on the imported backed-up data and the backed-up data stored in the target available hardware; When the verification result is consistent with the preset result, the backed-up data is applied in the edge device.
8. A backup management device applied to a terminal device, characterized in that: include: A data determination module, configured to determine the data to be backed up corresponding to the edge device upon receiving the system update instruction; wherein the edge device is a device to be updated by the system; An available hardware determination module, configured to determine target available hardware for storing the data to be backed up based on data volume information of the data to be backed up, available space information of at least one available hardware, and transmission parameter information; The data backup module is used to set access policy parameters for the data to be backed up in the target usable hardware, so as to perform backup processing on the data to be backed up based on the access policy parameters.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the backup management method applied to the edge device as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the backup management method applied to an edge device according to any one of claims 1 to 7 when executed.