Data recovery method and device based on incremental backup and medium
A technology of incremental backup and recovery methods, applied in the computer field, can solve problems such as incomplete operation statement interception, large time and space consumption, and incomplete data recovery, so as to save backup time and space, improve quality and efficiency, and save The effect of storage space
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] This embodiment provides a data recovery method based on incremental backup, such as figure 1 shown, including the following steps:
[0045] Step S10, periodically incrementally backing up the data to obtain several backup data packets;
[0046] Step S20, obtain the deadline for data recovery, and use the backup time of the last backup data package as the start time for data recovery; the deadline for data recovery can be automatically obtained through a script;
[0047] Step S30, based on the data recovery start time and the data recovery deadline, automatically extract the start GTID and the end GTID from the corresponding backup data package and the binary log file (binlog file);
[0048] Step S40, deriving logical statements from the corresponding binary log file based on the start GTID and the end GTID;
[0049]Step S50, display the start GTID, end GTID and logic statement, and obtain the operation instruction input by the user; since the data recovery will affec...
Embodiment 2
[0073] This embodiment provides a data recovery device based on incremental backup, such as figure 2 As shown, it includes a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, any implementation manner in Embodiment 1 can be realized.
[0074] Since the electronic device introduced in this embodiment is the device used to implement the method in Embodiment 1 of this application, based on the method described in Embodiment 1 of this application, those skilled in the art can understand the electronic device of this embodiment. Specific implementation methods and various variations thereof, so how the electronic device implements the method in the embodiment of the present application will not be described in detail here. As long as a person skilled in the art implements the equipment used by the method in the embodiment of the present application, it all belongs to the protection scop...
Embodiment 3
[0077] This embodiment provides a data recovery medium based on incremental backup, such as image 3 As shown, a computer program is stored thereon, and when the computer program is executed by a processor, any implementation manner in the first embodiment can be realized.
[0078] The technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0079] 1. By periodically incrementally backing up the data, and then extracting the start GTID and the end GTID from the corresponding binary log file according to the data recovery start time and the data recovery deadline, use the start GTID and the end GTID from the corresponding binary log file The logical statement is exported from the log file, and finally the logical statement is integrated with all the backup data packages corresponding to the data recovery start time to complete the data recovery. Since the GTID is globally unique, incomplete data re...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


