Logical backup

A logical backup exports database schema objects and records into a portable representation, commonly SQL statements. In this course, mysqldump exports InnoDB data together with routines and triggers, and gzip compresses the resulting timestamped backup file.

Minimal example

bash
mysqldump --single-transaction --routines --triggers \
  -h mysql -u app -p"$MYSQL_PASSWORD" zomato | \
  gzip > /backups/zomato-2026-11-04-020000.sql.gz

Learn this concept

Lesson 7.5 · HTTPS health and migration gates

Used in exercises

Exercise 7.7 · Nightly mysqldump and one restore test
Prerequisite conceptsInnoDBTransaction