Introduction Incremental backup means that after a full backup or the last incremental backup, each subsequent backup only needs to back up the files that have been added or modified compared to the previous one. This means that the object of the first incremental backup is the added and modified files generated after the full backup; the object of the second incremental backup is the added and modified files generated after the first incremental backup, and so on. Purpose To solve the problem of long time and slow recovery in full backup, incremental backup is adopted Features Advantages: No duplicate data, small backup volume, short time: Need to restore from the last full backup and the incremental backup after the full backup, need to restore the incremental backups one by one repeatedly, cumbersome operation Implementation Indirect incremental backup through mysql binary log: Experimental environment: A centos7 virtual machine with mysql5.7 database installed Operation process: 1. Incremental backup 1. Add binary log to the configuration file
2. Restart the service and view the binary log
3. Create databases and tables freely in the database as experimental templates 4. Make a complete backup of the school database
5. Refresh the log and generate a new log. Note: the previous database operation is written to the log numbered 000001, and the newly generated log numbered 000002 is empty.
6. Add new MySQL database operations, then refresh the logs and perform incremental backups
7. Delete the info table
8. Restore the full backup, then restore the incremental backup
Well, here there is a problem. If an error occurs, an error will occur when restoring the backup, and the ideal backup cannot be achieved to achieve the real purpose. At this time, broken-chain recovery is required (a special method of restoring incremental backups), that is, only correct database operations are restored during restoration. 2. Broken Link Recovery Before operating a broken link recovery, you need to restore to the state without incremental backup and restore, as shown in the figure Based on time point 2018-09-04 16:43:52 Error operation time (the beginning of the loading ends at this time point)
Based on location point at 565 The last correct execution position --stop-position
You may also be interested in:
|
<<: A brief analysis of controlled and uncontrolled components in React
>>: How to install ZSH terminal in CentOS 7.x
I just joined a new company recently. After getti...
<meta http-equiv="X-UA-Compatible" c...
1. Install tomcat8 with docker 1. Find the tomcat...
<br />In previous tutorials of 123WORDPRESS....
I just installed Ubuntu and there was no network ...
There is no doubt that containers have become an ...
This article records the specific steps for downl...
This article shares the specific code for impleme...
This article shares the specific code for impleme...
Preface To modify file permissions in the termina...
Note: This article is about the basic knowledge p...
Chapter 1 Source Code Installation The installati...
RDF and OWL are two important semantic web techno...
Docker-compose deployment configuration jenkins 1...
Virtual machines are very convenient testing soft...