Download MySQL Enterprise Backup User`s Guide (Version 3.11.1)

Transcript
Partial Backup and Restore Options
Permitted Values
Type
string
Exclude for backup or restoration all tables (both innodb and non-innodb) whose fully qualified names
(in the form of db_name.table_name) match the regular expression REGEXP. The regular expression
syntax is the extended form specified in the POSIX 1003.2 standard. For example, --excludetables=^mydb\.t[12]$ matches the tables t1 and t2 in the database mydb. On Unix-like systems,
quote the regular expression appropriately to prevent interpretation of shell meta-characters. Some
limitations apply when using the option to select database names or file names that contain special
characters (spaces, dashes, periods, etc.); see this description in Appendix A, MySQL Enterprise
Backup Limitations for details. mysqlbackup throws an error when the option is used without a regular
expression being supplied with it.
While the option can be used for different kinds of backups, selective restore is only supported for
backups created using transportable tablespaces (TTS) (that is, backups created with the --use-tts
option).
The option cannot be used together with the --include, --databases, --databases-list-file,
or --only-innodb-with-frm option.
When used together with the --include-tables option, --include-tables is applied first,
meaning mysqlbackup first select all tables specified by --include-tables, and then exclude from
the set those tables specified by --exclude-tables for backup.
• --only-known-file-types
For back up only. By default, all files in the database subdirectories under the data directory of the
server are included in the backup (see Section 1.4, “Files that Are Backed Up” for details). If the -only-known-file-types option is specified, mysqlbackup only backs up those types of files that
are data files for MySQL or its built-in storage engines, which have the following extensions:
• .ARM: Archive storage engine metadata
• .ARZ: Archive storage engine data
• .CSM: CSV storage engine data
• .CSV: CSV storage engine data
• .frm: table definitions
• .ibd: InnoDB tablespace created using the file-per-table mode
• .MRG: Merge storage engine references to other tables
• .MYD: MyISAM data
• .MYI: MyISAM indexes
• .opt: database configuration information
• .par: partition definitions
• .TRG: trigger parameters
• .TRN: trigger namespace information
• --only-innodb
85