Data backup method and system based on artificial intelligence
By building a data importance and security calculation model to evaluate the backup needs of historical data, we solve the problem of inability to effectively evaluate data backup in existing technologies, achieve efficient, automated and intelligent data backup, and improve data security. and reliability.
Patent Information
- Application Number
- CN202410615646.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-05-17
AI Technical Summary
Existing technology cannot effectively evaluate whether historical data during storage needs to be backed up, resulting in data backup defects and device storage errors.
By obtaining historical backup data and historical retrieval data, we build a data importance calculation model and a data security calculation strategy, calculate the backup coefficient, and make data backup reminder judgments based on the backup coefficient to achieve efficient, automated, and intelligent data backup.
Improved data security and reliability, ensuring the integrity and accuracy of data backup.
Smart Images

Figure CN118210658B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electronic digital data processing, and in particular to a data backup method and system based on artificial intelligence. Background Art
[0002] With the continuous development of science and technology, data backup refers to the process of copying all or part of the data set from the hard disk or array of the application host to other storage media to prevent data loss due to system operation errors or system failures. This effectively improves the accuracy of the data, and when the relevant data is extracted again, there will be no problem of inaccurate relevant data. However, there are still some defects in the process of relevant data backup.
[0003] For example, the patent with publication number CN113312215A discloses a data backup method, system and cloud platform based on artificial intelligence. By configuring key features according to data description content, using a neural network training model to construct key description content, and using a neural network training model to control the key identifier to load the program on the matching trajectory according to the screening interaction index, when it is judged that the key identifier moves along the matching trajectory to the target folder, when the matching target key movement direction and the key identifier have data backup, the key identifier is controlled to perform data backup, so as to effectively avoid the mutual influence of data paths caused by the key identifier and the key identifier controlled by other devices during the data process, thereby avoiding the situation where the device storage error is caused by the mutual influence of the data path, thereby improving the integrity of the device's related data storage;
[0004] At the same time, for example, a Chinese patent with publication number CN116501548A involves an Internet data disaster recovery backup method and server applied to artificial intelligence. This application obtains a target data representation carrier extraction algorithm through training optimization. In the process of backing up data, data feature mining is performed on the backup data based on the artificial intelligence algorithm, so as to facilitate the determination of the priority of the backup data, complete targeted, efficient and reliable data backup, and help provide a security foundation for data governance. Furthermore, in the iterative optimization process of the artificial intelligence algorithm, no additional data examples and markers are required for algorithm adjustment, so that the optimization efficiency of the algorithm is improved, so as to quickly enter the subsequent data backup, and the disaster recovery backup technology of this application is highly applicable and can be applied to business service fields such as e-commerce, digital virtual space, and smart finance.
[0005] The above patents all have the problem raised by this background technology: the prior art cannot effectively evaluate whether the imported data needs to be backed up based on the historical data in the storage process. The above problems exist in the prior art. In order to solve these problems, this application designs a data backup method and system based on artificial intelligence. Summary of the invention
[0006] In view of the deficiencies of the prior art, the present invention proposes a data backup method and system based on artificial intelligence.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] The data backup method based on artificial intelligence includes the following specific steps:
[0009] S1. Obtain the historical backup data and historical retrieval data of the corresponding device, obtain the specific information of the historical backup data and the historical retrieval data, and obtain the import file data at the same time;
[0010] S2. Build a data importance calculation model based on the specific information of the historical backup data, and substitute the imported file data into the built data importance calculation model to derive the data importance;
[0011] S3, substituting historical retrieved data and imported file data into the data security calculation strategy to calculate the data security;
[0012] S4, substituting the calculated data importance and data security of the imported file data into the backup coefficient calculation model to calculate the backup coefficient;
[0013] S5. Determine the data backup reminder based on the backup coefficient.
[0014] A further improvement of the present invention is that S1 comprises the following specific steps:
[0015] S11, obtaining historical backup data and historical retrieved data on the corresponding device, obtaining the type and content data of the historical backup data, and simultaneously obtaining the type and content data of the historical retrieved data, wherein the types of data include documents, pictures, and videos, and the content of the data includes text content of the document, pixel value content of the picture, and frame image data of each frame of the video;
[0016] S12. Obtain the type and content data of the imported file.
[0017] A further improvement of the present invention is that the specific content of the data importance calculation model in S2 is as follows:
[0018] S21, obtaining the type and content data of historical backup data, the type and content data of imported files, and importing the obtained type data of historical backup data and the type data of imported files into a first backup coefficient calculation formula to calculate the first backup coefficient. The first backup coefficient calculation formula is: , where n is the number of historical backup data, is the number of types of data in the i-th historical backup data that are the same as the data types in the import file, is the number of data types in the i-th historical backup data;
[0019] S22, importing the obtained content data of the historical backup data and the content data of the imported file into a second backup coefficient calculation formula to calculate the second backup coefficient, wherein the second backup coefficient calculation formula is: , where S() is the number of content data in brackets, is the content data in the i-th historical backup data, is the content data in the import file, where: For the intersection, is a union;
[0020] S23, substituting the calculated first backup coefficient and the second backup coefficient into the data importance calculation formula to calculate the data importance, the data importance calculation formula is: ,in, is the first proportion coefficient, is the second proportion coefficient, where .
[0021] A further improvement of the present invention is that the specific content of the data security calculation strategy in S3 is:
[0022] S31, obtaining the type, content data and number of retrievals of historical retrieved data, and simultaneously obtaining the type and content data of imported file data;
[0023] S32, import the acquired historical retrieved data type, content data, retrieved times data, imported file data type and content data into the data security calculation formula to calculate the data security. The data security calculation formula is: ,in, is the number of times the j-th historical data is retrieved, is the content data of the jth historical retrieved data, and m is the number of historical retrieved data.
[0024] A further improvement of the present invention is that the backup coefficient calculation model in S4 includes the following specific contents:
[0025] The calculated data importance and data security are imported into the backup coefficient calculation formula to calculate the backup coefficient, where the backup coefficient calculation formula is: .
[0026] A further improvement of the present invention is that S5 includes the following specific contents:
[0027] The calculated backup coefficient is compared with the set backup coefficient threshold. If the obtained backup coefficient is greater than or equal to the set backup coefficient threshold, a data backup reminder is issued. If the obtained backup coefficient is less than the set backup coefficient threshold, no data backup reminder is issued.
[0028] It should be noted here that the first proportion coefficient, the second proportion coefficient and the backup coefficient threshold are determined as follows: 5000 sets of historical backup data and historical retrieval data are obtained during the storage process, and the obtained data are substituted into the backup coefficient calculation formula to calculate the backup coefficient. The calculated backup coefficient and backup judgment result are imported into the fitting software to output the optimal first proportion coefficient, second proportion coefficient and backup coefficient threshold that meet the judgment accuracy.
[0029] The artificial intelligence-based data backup system is implemented based on the above-mentioned artificial intelligence-based data backup method, and specifically includes: a data acquisition module, a data importance calculation module, a data safety calculation module, a backup coefficient calculation module, a backup reminder module and a control module. The data acquisition module is used to obtain the historical backup data and historical retrieval data of the corresponding device, obtain the specific information of the historical backup data and the historical retrieval data, and simultaneously obtain the imported file data. The data importance calculation module is used to construct a data importance calculation model based on the specific information of the historical backup data, and substitute the imported file data into the constructed data importance calculation model to export the data importance.
[0030] A further improvement of the present invention is that the data security calculation module is used to substitute the historical retrieved data and the imported file data into the data security calculation strategy to calculate the data security, the backup coefficient calculation module is used to substitute the calculated data importance and data security of the imported file data into the backup coefficient calculation model to calculate the backup coefficient, and the backup reminder module is used to judge the data backup reminder based on the backup coefficient.
[0031] A further improvement of the present invention is that the control module is used to control the operation of the data acquisition module, the data importance calculation module, the data security calculation module, the backup coefficient calculation module and the backup reminder module.
[0032] An electronic device comprises: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0033] The processor executes the above-mentioned artificial intelligence-based data backup method by calling the computer program stored in the memory.
[0034] A computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the artificial intelligence-based data backup method as described above.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] The present invention obtains historical backup data and historical retrieval data of the corresponding device, obtains specific information of the historical backup data and the historical retrieval data, and simultaneously obtains imported file data, constructs a data importance calculation model based on the specific information of the historical backup data, substitutes the imported file data into the constructed data importance calculation model to derive the data importance, substitutes the historical retrieval data and the imported file data into the data security calculation strategy to calculate the data security, substitutes the calculated data importance and data security of the imported file data into the backup coefficient calculation model to calculate the backup coefficient, and determines the data backup reminder according to the backup coefficient. Through the above method, efficient, automatic and intelligent data backup can be achieved, and data security and reliability can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a flow chart of the data backup method based on artificial intelligence of the present invention;
[0038] Figure 2 This is a schematic diagram of the specific process of step S2 of the data backup method based on artificial intelligence of the present invention;
[0039] Figure 3 This is a schematic diagram of the specific process of step S3 of the data backup method based on artificial intelligence of the present invention;
[0040] Figure 4 This is a schematic diagram of the framework of the data backup system based on artificial intelligence of the present invention. DETAILED DESCRIPTION
[0041] The technical solutions in the embodiments of the present invention will be described clearly and completely 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, rather than all the embodiments.
[0042] Example 1
[0043] See also Figure 1-Figure 3 , an embodiment of the present invention provides: a data backup method based on artificial intelligence, which includes the following specific steps:
[0044] S1. Obtain the historical backup data and historical retrieval data of the corresponding device, obtain the specific information of the historical backup data and the historical retrieval data, and obtain the import file data at the same time;
[0045] S2. Build a data importance calculation model based on the specific information of the historical backup data, and substitute the imported file data into the built data importance calculation model to derive the data importance;
[0046] S3, substituting historical retrieved data and imported file data into the data security calculation strategy to calculate the data security;
[0047] S4, substituting the calculated data importance and data security of the imported file data into the backup coefficient calculation model to calculate the backup coefficient;
[0048] S5. Determine the data backup reminder based on the backup coefficient.
[0049] In this embodiment, S1 includes the following specific steps:
[0050] S11, obtaining historical backup data and historical retrieved data on the corresponding device, obtaining the type and content data of the historical backup data, and simultaneously obtaining the type and content data of the historical retrieved data, wherein the types of data include documents, pictures, and videos, and the content of the data includes text content of the document, pixel value content of the picture, and frame image data of each frame of the video;
[0051] S12. Obtain the type and content data of the imported file.
[0052] In this embodiment, the specific content of the data importance calculation model in S2 is as follows:
[0053] S21, obtaining the type and content data of historical backup data, the type and content data of imported files, and importing the obtained type data of historical backup data and the type data of imported files into a first backup coefficient calculation formula to calculate the first backup coefficient. The first backup coefficient calculation formula is: , where n is the number of historical backup data, is the number of types of data in the i-th historical backup data that are the same as the data types in the import file, is the number of data types in the i-th historical backup data;
[0054] S22, importing the obtained content data of the historical backup data and the content data of the imported file into a second backup coefficient calculation formula to calculate the second backup coefficient, wherein the second backup coefficient calculation formula is: , where S() is the number of content data in brackets, is the content data in the i-th historical backup data, The content data in the import file, where For the intersection, is a union;
[0055] S23, substituting the calculated first backup coefficient and the second backup coefficient into the data importance calculation formula to calculate the data importance, the data importance calculation formula is: ,in, is the first proportion coefficient, is the second proportion coefficient, where .
[0056] In this embodiment, the specific content of the data security calculation strategy in S3 is:
[0057] S31, obtaining the type, content data and number of retrievals of historical retrieved data, and simultaneously obtaining the type and content data of imported file data;
[0058] S32, import the acquired historical retrieved data type, content data, retrieved times data, imported file data type and content data into the data security calculation formula to calculate the data security. The data security calculation formula is: ,in, is the number of times the j-th historical data is retrieved, is the content data of the jth historical retrieved data, and m is the number of historical retrieved data.
[0059] In this embodiment, the backup coefficient calculation model in S4 includes the following specific contents:
[0060] The calculated data importance and data security are imported into the backup coefficient calculation formula to calculate the backup coefficient, where the backup coefficient calculation formula is: .
[0061] In this embodiment, S5 includes the following specific contents:
[0062] The calculated backup coefficient is compared with the set backup coefficient threshold. If the obtained backup coefficient is greater than or equal to the set backup coefficient threshold, a data backup reminder is issued. If the obtained backup coefficient is less than the set backup coefficient threshold, no data backup reminder is issued.
[0063] It should be noted here that the first proportion coefficient, the second proportion coefficient and the backup coefficient threshold are determined as follows: 5000 sets of historical backup data and historical retrieval data are obtained during the storage process, and the obtained data are substituted into the backup coefficient calculation formula to calculate the backup coefficient. The calculated backup coefficient and backup judgment result are imported into the fitting software to output the optimal first proportion coefficient, second proportion coefficient and backup coefficient threshold that meet the judgment accuracy.
[0064] Through this embodiment, it is possible to achieve the following: obtaining the historical backup data and historical retrieval data of the corresponding device, obtaining the specific information of the historical backup data and the historical retrieval data, and simultaneously obtaining the imported file data, constructing a data importance calculation model based on the specific information of the historical backup data, substituting the imported file data into the constructed data importance calculation model to export the data importance, substituting the historical retrieval data and the imported file data into the data security calculation strategy to calculate the data security, substituting the calculated data importance and data security of the imported file data into the backup coefficient calculation model to calculate the backup coefficient, and judging the data backup reminder based on the backup coefficient. Through the above method, efficient, automatic and intelligent data backup can be achieved, and data security and reliability can be improved.
[0065] Example 2
[0066] like Figure 4 As shown, the artificial intelligence-based data backup system is implemented based on the artificial intelligence-based data backup method, which specifically includes: a data acquisition module, a data importance calculation module, a data security calculation module, a backup coefficient calculation module, a backup reminder module and a control module. The data acquisition module is used to obtain the historical backup data and historical retrieval data of the corresponding device, obtain the specific information of the historical backup data and the historical retrieval data, and obtain the imported file data at the same time. The data importance calculation module is used to construct a data importance calculation model based on the specific information of the historical backup data, and substitute the imported file data into the constructed data importance calculation model to derive the data importance;
[0067] In this embodiment, the data security calculation module is used to substitute the historical retrieved data and the imported file data into the data security calculation strategy to calculate the data security, the backup coefficient calculation module is used to substitute the calculated data importance and data security of the imported file data into the backup coefficient calculation model to calculate the backup coefficient, and the backup reminder module is used to determine the data backup reminder according to the backup coefficient;
[0068] In this embodiment, the control module is used to control the operation of the data acquisition module, the data importance calculation module, the data security calculation module, the backup coefficient calculation module and the backup reminder module.
[0069] Example 3
[0070] This embodiment provides an electronic device, including: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0071] The processor executes the above-mentioned artificial intelligence-based data backup method by calling the computer program stored in the memory.
[0072] The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) and one or more memories, wherein the memory stores at least one computer program, and the computer program is loaded and executed by the processor to implement the artificial intelligence-based data backup method provided by the above method embodiment. The electronic device may also include other components for implementing the functions of the device, for example, the electronic device may also have components such as a wired or wireless network interface and an input and output interface to input and output data. This embodiment will not be described in detail here.
[0073] Example 4
[0074] This embodiment provides a computer-readable storage medium having a rewritable computer program stored thereon;
[0075] When the computer program runs on a computer device, the computer device executes the above-mentioned artificial intelligence-based data backup method.
[0076] For example, the computer readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0077] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0078] It should be understood that determining B based on A does not mean determining B only based on A. B can also be determined based on A and / or other information.
[0079] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments 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 or computer programs. When a computer instruction or computer program is loaded or executed on a computer, a process or function according to an embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through a wired network or / and a wireless network. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD) or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0080] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0081] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0082] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only one way of division, and there may be other ways of division in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0083] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0084] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0085] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0086] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A data backup method based on artificial intelligence, characterized in that: It includes the following specific steps: S1. Obtain the historical backup data and historical retrieval data of the corresponding device, obtain the specific information of the historical backup data and the historical retrieval data, and obtain the import file data at the same time; S2. Build a data importance calculation model based on the specific information of the historical backup data, and substitute the imported file data into the built data importance calculation model to derive the data importance; The specific content of the data importance calculation model in S2 is as follows: S21, obtaining the type and content data of historical backup data, the type and content data of imported files, and importing the obtained type data of historical backup data and the type data of imported files into a first backup coefficient calculation formula to calculate the first backup coefficient. The first backup coefficient calculation formula is: , where n is the number of historical backup data, is the number of types of data in the i-th historical backup data that are the same as the data types in the import file, is the number of data types in the i-th historical backup data; S22, importing the obtained content data of the historical backup data and the content data of the imported file into a second backup coefficient calculation formula to calculate the second backup coefficient, wherein the second backup coefficient calculation formula is: , where S() is the number of content data in brackets, is the content data in the i-th historical backup data, The content data in the import file, where For the intersection, is a union; S23, substituting the calculated first backup coefficient and the second backup coefficient into the data importance calculation formula to calculate the data importance, the data importance calculation formula is: ,in, is the first proportion coefficient, is the second proportion coefficient, where ; S3, substituting historical retrieved data and imported file data into the data security calculation strategy to calculate the data security; The specific content of the data security calculation strategy in S3 is: S31, obtaining the type, content data and number of retrievals of historical retrieved data, and simultaneously obtaining the type and content data of imported file data; S32, import the acquired historical retrieved data type, content data, retrieved times data, imported file data type and content data into the data security calculation formula to calculate the data security. The data security calculation formula is: ,in, is the number of times the j-th historical data is retrieved, is the content data of the jth historical retrieved data, and m is the number of historical retrieved data; S4, substituting the calculated data importance and data security of the imported file data into the backup coefficient calculation model to calculate the backup coefficient; The backup coefficient calculation model in S4 includes the following specific contents: The calculated data importance and data security are imported into the backup coefficient calculation formula to calculate the backup coefficient, where the backup coefficient calculation formula is: ; S5. Determine the data backup reminder based on the backup coefficient.
2. The artificial intelligence-based data backup method according to claim 1, characterized in that: The S1 comprises the following specific steps: S11, obtaining historical backup data and historical retrieved data on the corresponding device, obtaining the type and content data of the historical backup data, and simultaneously obtaining the type and content data of the historical retrieved data, wherein the types of data include documents, pictures, and videos, and the content of the data includes the text content of the document, the pixel value content of the picture, and the frame image data content of each frame of the video; S12. Obtain the type and content data of the imported file.
3. The artificial intelligence-based data backup method according to claim 2, characterized in that: The S5 includes the following specific contents: The calculated backup coefficient is compared with the set backup coefficient threshold. If the obtained backup coefficient is greater than or equal to the set backup coefficient threshold, a data backup reminder is issued. If the obtained backup coefficient is less than the set backup coefficient threshold, no data backup reminder is issued.
4. An artificial intelligence-based data backup system, which is implemented based on the artificial intelligence-based data backup method according to any one of claims 1 to 3, characterized in that: It specifically includes: a data acquisition module, a data importance calculation module, a data security calculation module, a backup coefficient calculation module, a backup reminder module and a control module. The data acquisition module is used to obtain the historical backup data and historical retrieval data of the corresponding device, obtain the specific information of the historical backup data and the historical retrieval data, and simultaneously obtain the imported file data. The data importance calculation module is used to construct a data importance calculation model based on the specific information of the historical backup data, and substitute the imported file data into the constructed data importance calculation model to export the data importance.
5. The artificial intelligence-based data backup system as claimed in claim 4, characterized in that: The data security calculation module is used to substitute the historical retrieved data and the imported file data into the data security calculation strategy to calculate the data security; the backup coefficient calculation module is used to substitute the calculated data importance and data security of the imported file data into the backup coefficient calculation model to calculate the backup coefficient; the backup reminder module is used to determine the data backup reminder based on the backup coefficient.
6. The artificial intelligence-based data backup system as claimed in claim 5, characterized in that: The control module is used to control the operation of the data acquisition module, the data importance calculation module, the data safety calculation module, the backup coefficient calculation module and the backup reminder module.
7. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores a computer program that can be called by the processor; The processor executes the artificial intelligence-based data backup method described in any one of claims 1 to 3 by calling the computer program stored in the memory.
