MySQL Enterprise Backup User's Guide (Version 3.10.2)

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

For legal information, see the Legal Notices.

Document generated on: 2014-12-14 (revision: 5335)


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 Making a Back Up of In-Memory Database Data
3.3.7 Making Scheduled Backups
4 Recovering or Restoring a Database
4.1 Preparing the Backup to be Restored
4.2 Performing a Restore Operation
4.3 Point-in-Time Recovery from a Hot Backup
4.4 Backing Up and Restoring a Single .ibd File
4.5 Restoring a Backup with a Database Upgrade or Downgrade
5 mysqlbackup Command Reference
5.1 mysqlbackup Command-Line Options
5.1.1 Subcommands
5.1.2 Standard Options
5.1.3 Connection Options
5.1.4 Server Repository Options
5.1.5 Backup Repository Options
5.1.6 Metadata Options
5.1.7 Compression Options
5.1.8 Incremental Backup Options
5.1.9 Partial Backup Options
5.1.10 Single-File Backup Options
5.1.11 Performance / Scalability / Capacity Options
5.1.12 Message Logging Options
5.1.13 Progress Report Options
5.1.14 Encryption Options
5.1.15 Cloud Storage Options
5.1.16 Options for Special Backup Types
5.2 Configuration Files and Parameters
6 Using MySQL Enterprise Backup with Replication
6.1 Setting Up a New Replication Slave
6.2 Backing up and Restoring a Slave Database
6.3 Restoring a Master Database
7 Performance Considerations for MySQL Enterprise Backup
7.1 Optimizing Backup Performance
7.2 Optimizing Restore Performance
8 Encryption for Backups
9 Using MySQL Enterprise Backup with Media Management Software (MMS) Products
9.1 Backing Up to Tape with Oracle Secure Backup
10 Troubleshooting for MySQL Enterprise Backup
10.1 Monitoring Backups with MySQL Enterprise Monitor
10.2 Error codes of MySQL Enterprise Backup
10.3 Working Around Corruption Problems
10.4 Using the MySQL Enterprise Backup Logs
10.5 Using the MySQL Enterprise Backup Manifest
11 Frequently Asked Questions for MySQL Enterprise Backup
III Appendixes
A MySQL Enterprise Backup Limitations
A.1 Limitations of MySQL Enterprise Backup
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
D MySQL Enterprise Backup Release Notes
E Licenses for Third-Party Components
E.1 RegEX-Spencer Library License
E.2 zlib License
E.3 LZ4 License
E.4 Percona Multiple I/O Threads Patch License
E.5 Google SMP Patch License
E.6 Google Controlling Master Thread I/O Rate Patch License
E.7 RFC 3174 - US Secure Hash Algorithm 1 (SHA1) License
E.8 OpenSSL v1.0 License
E.9 cURL (libcurl) License
MySQL Enterprise Backup Glossary
Index

List of Tables

1.1 Files in a MySQL Enterprise Backup Output Directory
3.1 Information Needed to Back Up a Database
5.1 List of All Options

List of Examples

3.1 Making an Uncompressed Partial Backup of InnoDB Tables
3.2 Making a Compressed Partial Backup
3.3 Single-File Backup to Absolute Path
3.4 Single-File Backup to Relative Path
3.5 Single-File Backup to Standard Output
3.6 Convert Existing Backup Directory to Single Image
3.7 Extract Existing Image to Backup Directory
3.8 List Single-File Backup Contents
3.9 Extract Single-File Backup into Current Directory
3.10 Extract Single-File Backup into a Backup Directory
3.11 Selective Extract of Single File
3.12 Selective Extract of Single Directory
3.13 Dealing with Absolute Path Names
3.14 Single-File Backup to a Remote Host
3.15 Single-file Backup to a Remote MySQL Server
3.16 Creating a Cloud Backup
3.17 Extract an Existing Image from Cloud Storage to Backup Directory
4.1 Applying the Log to a Backup
4.2 Applying the Log to a Compressed Backup
4.3 Applying an Incremental Backup to a Full Backup
4.4 Shutting Down and Restoring a Database
4.5 Restoring a Compressed Backup
4.6 Restoring an Encrypted Backup Image
4.7 Restoring an Incremental Backup Image
4.8 Restoring a Single-file Backup from Cloud Storage to a MySQL Server
5.1 Simple Backup with Connection Parameters from Default Configuration File
5.2 Basic Incremental Backup
5.3 Apply Log to Full Backup
5.4 Incremental Backup
5.5 Example backup-my.cnf file
9.1 Sample mysqlbackup Commands Using MySQL Enterprise Backup with Oracle Secure Backup