MySQL Enterprise Backup User's Guide (Version 3.9.0)


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.9 Release Notes.

For legal information, see the Legal Notices.

Document generated on: 2015-07-02 (revision: 5780)

Table of Contents

Preface and Legal Notices
I Getting Started with MySQL Enterprise Backup
1 Introduction to MySQL Enterprise Backup
1.1 Types of Backups
1.2 The mysqlbackup Command
1.3 Overview of Backup Performance and Capacity Considerations
1.4 Files that Are Backed Up
1.5 Overview of Restoring a Database
2 Installing MySQL Enterprise Backup
II Using MySQL Enterprise Backup
3 Backing Up a Database Server
3.1 Before the First Backup
3.1.1 Collect Database Information
3.1.2 Grant MySQL Privileges to Backup Administrator
3.1.3 Designate a Location for Backup Data
3.2 The Typical Backup / Verify / Restore Cycle
3.2.1 Backing Up an Entire MySQL Instance
3.2.2 Verifying a Backup
3.2.3 Restoring a Database at its Original Location
3.3 Backup Scenarios and Examples
3.3.1 Making a Full Backup
3.3.2 Making an Incremental Backup
3.3.3 Making a Compressed Backup
3.3.4 Making a Partial Backup
3.3.5 Making a Single-File Backup
3.3.6 Backing Up In-Memory Database Data
4 mysqlbackup Command Reference
4.1 mysqlbackup Command-Line Options
4.1.1 Subcommands
4.1.2 Standard Options
4.1.3 Connection Options
4.1.4 Server Repository Options
4.1.5 Backup Repository Options
4.1.6 Metadata Options
4.1.7 Compression Options
4.1.8 Incremental Backup Options
4.1.9 Partial Backup Options
4.1.10 Single-File Backup Options
4.1.11 Performance / Scalability / Capacity Options
4.1.12 Message Logging Options
4.1.13 Progress Report Options
4.1.14 Options for Special Backup Types
4.2 Configuration Files and Parameters
4.2.1 Source Repository Parameters
4.2.2 Backup Repository Parameters
4.2.3 Other Parameters
5 Recovering or Restoring a Database
5.1 Preparing the Backup to be Restored
5.2 Performing a Restore Operation
5.3 Point-in-Time Recovery from a Hot Backup
5.4 Backing Up and Restoring a Single .ibd File
5.5 Restoring a Backup with a Database Upgrade or Downgrade
6 Using MySQL Enterprise Backup with Replication
6.1 Setting Up a New Replication Slave
6.2 Restoring a Master Database in Replication
7 Performance Considerations for MySQL Enterprise Backup
7.1 Optimizing Backup Performance
7.2 Optimizing Restore Performance
8 Using MySQL Enterprise Backup with Media Management Software (MMS) Products
8.1 Backing Up to Tape with Oracle Secure Backup
9 Troubleshooting for MySQL Enterprise Backup
9.1 Monitoring Backups with MySQL Enterprise Monitor
9.2 Error codes of MySQL Enterprise Backup
9.3 Working Around Corruption Problems
9.4 Using the MySQL Enterprise Backup Logs
9.5 Using the MySQL Enterprise Backup Manifest
10 Frequently Asked Questions for MySQL Enterprise Backup
III Appendixes
A MySQL Enterprise Backup Limitations
A.1 Limitations of MySQL Enterprise Backup
A.2 Limitations Related to Installation
B Compatibility Information for MySQL Enterprise Backup
B.1 Cross-Platform Compatibility
B.2 File Compatibility with Older MySQL or InnoDB Versions
B.3 Compatibility Notes for MySQL Versions
B.4 Compatibility of Backup Data with Other MySQL Enterprise Backup Versions
C Extended Examples
C.1 Sample Directory Structure for Full Backup
C.2 Sample Directory Structure for Compressed Backup
C.3 Sample Directory Structure for Incremental Backup
C.4 Validating a Single-File Backup Image
D MySQL Enterprise Backup Release Notes
E Licenses for Third-Party Components
E.1 RegEX-Spencer Library License
E.2 zlib License
E.3 Percona Multiple I/O Threads Patch License
E.4 Google SMP Patch License
E.5 Google Controlling Master Thread I/O Rate Patch License
E.6 RFC 3174 - US Secure Hash Algorithm 1 (SHA1) License
MySQL Enterprise Backup Glossary

List of Tables

1.1 Files in a MySQL Enterprise Backup Output Directory
3.1 Information Needed to Back Up a Database

List of Examples

3.1 Making an Uncompressed Backup of InnoDB Tables
3.2 Making an Uncompressed Partial Backup of InnoDB Tables
3.3 Making a Compressed Partial Backup
3.4 Single-File Backup to Absolute Path
3.5 Single-File Backup to Relative Path
3.6 Single-File Backup to Standard Output
3.7 Convert Existing Backup Directory to Single Image
3.8 Extract Existing Image to Backup Directory
3.9 List Single-File Backup Contents
3.10 Extract Single-File Backup into Current Directory
3.11 Extract Single-File Backup into a Backup Directory
3.12 Selective Extract of Single File
3.13 Selective Extract of Single Directory
3.14 Checking a Single-File Backup for Corruption Problems
3.15 Dealing with Absolute Path Names
3.16 Single-File Backup to a Remote Host
4.1 Simple Backup with Connection Parameters from Default Configuration File
4.2 Basic Incremental Backup
4.3 Apply Log to Full Backup
4.4 Incremental Backup
4.5 Example backup-my.cnf file
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
8.1 Sample mysqlbackup Commands Using MySQL Enterprise Backup with Oracle Secure Backup