Abstract
This is the User's Guide for the MySQL Enterprise Backup product. This manual describes the procedures to back up and restore MySQL databases. It covers techniques for minimizing time and storage overhead during backups, and to keep the database available during backup operations. It illustrates the features and syntax of the mysqlbackup command, for example, how to back up selected databases or tables, how to back up only the changes since a previous backup, and how to transfer the backup data efficiently to a different server.
For notes detailing the changes in each release, see the MySQL Enterprise Backup 3.12 Release Notes.
For legal information, see the Legal Notices.
For help with using MySQL, please visit the MySQL Forums, where you can discuss your issues with other MySQL users.
Licensing information. This product may include third-party software, used under license. See the MySQL Enterprise Backup 3.12 License Information User Manual for licensing information, including licensing information relating to third-party software that may be included in this MySQL Enterprise Backup release.
Document generated on: 2023-01-27 (revision: 8496)
Table of Contents
- Preface and Legal Notices
- I Getting Started with MySQL Enterprise Backup
- II Using MySQL Enterprise Backup
- 4 Backing Up a Database Server
- 5 Recovering or Restoring a Database
- 6 Using MySQL Enterprise Backup with Replication
- 7 Performance Considerations for MySQL Enterprise Backup
- 8 Encryption for Backups
- 9 Using MySQL Enterprise Backup with Media Management Software (MMS) Products
- 10 Monitoring Backups with MySQL Enterprise Monitor
- 11 Troubleshooting for MySQL Enterprise Backup
- III mysqlbackup Command Reference
- 12 mysqlbackup
- 13 mysqlbackup commands
- 14 mysqlbackup Command-Line Options
- 14.1 Standard Options
- 14.2 Connection Options
- 14.3 Server Repository Options
- 14.4 Backup Repository Options
- 14.5 Metadata Options
- 14.6 Compression Options
- 14.7 Incremental Backup Options
- 14.8 Partial Backup and Restore Options
- 14.9 Single-File Backup Options
- 14.10 Performance / Scalability / Capacity Options
- 14.11 Message Logging Options
- 14.12 Progress Report Options
- 14.13 Encryption Options
- 14.14 Cloud Storage Options
- 14.15 Options for Special Backup Types
- 15 Configuration Files and Parameters
- IV Appendixes
- Index
List of Tables
List of Examples
- 4.1 Making an Uncompressed Partial Backup of InnoDB Tables
- 4.2 Making a Compressed Partial Backup
- 4.3 Single-File Backup to Absolute Path
- 4.4 Single-File Backup to Relative Path
- 4.5 Single-File Backup to Standard Output
- 4.6 Convert Existing Backup Directory to Single Image
- 4.7 Extract Existing Image to Backup Directory
- 4.8 List Single-File Backup Contents
- 4.9 Validate a Single-File Backup
- 4.10 Extract Single-File Backup into Current Directory
- 4.11 Extract Single-File Backup into a Backup Directory
- 4.12 Selective Extract of Single File
- 4.13 Selective Extract of Single Directory
- 4.14 Dealing with Absolute Path Names
- 4.15 Single-File Backup to a Remote Host
- 4.16 Single-file Backup to a Remote MySQL Server
- 4.17 Stream a Backup Directory to a Remote MySQL Server
- 4.18 Creating a Cloud Backup on Oracle Cloud Infrastructure Object Storage Classic
- 4.19 Creating a Cloud Backup on Oracle Cloud Infrastructure Object Storage
- 4.20 Creating a Cloud Incremental Backup on Oracle Cloud Infrastructure Object Storage
- 4.21 Creating a Cloud Backup on an OpenStack Object Storage
- 4.22 Creating a Cloud Backup on Amazon S3
- 4.23 Extract an Existing Image from an Oracle Cloud Infrastructure Object Storage Classic Container to a Backup Directory
- 4.24 Extract an Existing Image from Amazon S3 Cloud Storage to a Backup Directory
- 4.25 Optimistic Backup Using the Option
optimistic-time=
YYMMDDHHMMSS
- 4.26 Optimistic Backup Using the Option
optimistic-time=now
- 4.27 Optimistic Backup Using the
optimistic-busy-tables
Option - 4.28 Optimistic and Partial Backup Using both the
optimistic-busy-tables
andoptimistic-time
Options - 5.1 Applying the Log to a Backup
- 5.2 Applying the Log to a Compressed Backup
- 5.3 Applying an Incremental Backup to a Full Backup
- 5.4 Shutting Down and Restoring a Database
- 5.5 Restoring a Backup Directory using copy-back-and-apply-log
- 5.6 Restoring a Single-file Backup using copy-back-and-apply-log
- 5.7 Restoring a Compressed Backup
- 5.8 Restoring an Encrypted Backup Image
- 5.9 Restoring an Incremental Backup Image
- 5.10 Restoring Selected Tables from a TTS Backup
- 5.11 Restoring and Renaming a Table from a TTS Backup
- 5.12 Restoring a Single-file Backup from an Oracle Cloud Infrastructure (OCI) Object Storage Classic Container to a MySQL Server
- 5.13 Restoring a Single-file Backup from an Oracle Cloud Infrastructure (OCI) Object Storage to a MySQL Server
- 5.14 Restoring a Cloud Incremental Backup from an Oracle Cloud Infrastructure (OCI) Object Storage Service to a MySQL Server
- 5.15 Restoring a Single-file Backup from an OpenStack Object Storage to a MySQL Server
- 5.16 Restoring a Single-file Backup from Amazon S3 to a MySQL Server
- 9.1 Sample mysqlbackup Commands Using MySQL Enterprise Backup with Oracle Secure Backup
- 13.1 Apply Log to Full Backup
- 15.1 Example
backup-my.cnf
file