Lecture 84: Core concepts of MySQL database backup tools and backup strategies

1. MySQL database data backup concept

Data backup is an essential part of operation and maintenance. Both database data and program middleware need to be backed up regularly.

Before performing a backup, you must first design whether you want an incremental backup or a full backup, whether you want a full backup, or a full backup once a week. The remaining incremental backups every day, and whether the backup cycle will automatically back up, etc., all need to be done in advance. Well designed.

Although the data is backed up, we need to check the existence of the backup every day, that is, check whether the backup is successful.

It is also necessary to make detailed warnings about the backup space to avoid insufficient disk space and failure to back up.

Although we are backing up every day, if we don't conduct regular recovery drills, we don't know whether the backed up data is available. We need to take the backup files to the test environment for drills.

MySQL backup types are divided into the following types:

  • Hot Standby
    • When the database is working normally, only the InnoDB storage engine can back up the data and perform consistent recovery.
  • Warm preparation
    • When the table is locked, the data is backed up. It can only be queried but not modified, which affects the write operation. Only the myisam storage engine

Supongo que te gusta

Origin blog.csdn.net/weixin_44953658/article/details/135333069
Recomendado
Clasificación