MySQL Enterprise Backup 8.4 User's Guide  / Appendixes  /  MySQL Enterprise Backup Glossary

MySQL Enterprise Backup Glossary

These terms are commonly used in information about the MySQL Enterprise Backup product.

A

.ARM file

Metadata for ARCHIVE tables. Contrast with.ARZ file. Files with this extension are always included in backups produced by themysqlbackup command of theMySQL Enterprise Backup product.

See Also.ARZ file.

.ARZ file

Data for ARCHIVE tables. Contrast with.ARM file. Files with this extension are always included in backups produced by themysqlbackup command of theMySQL Enterprise Backup product.

See Also.ARM file.

apply

The operation that transforms araw backup into aprepared backup by incorporating changes that occurred while the backup was running, using data from thelog.

See Alsolog,prepared backup,raw backup.

MySQL Enterprise Backup

A licensed products that performshot backups of MySQL database servers. It offers the most efficiency and flexibility when backing upInnoDB tables; it can also back up MyISAM and other kinds of tables. It is included as part of the MySQL Enterprise Edition subscription.

See Alsohot backup,InnoDB.

B

backup

The process of copying some or all table data and metadata from a MySQL instance, for safekeeping. Can also refer to the set of copied files. This is a crucial task for DBAs. The reverse of this process is therestore operation.

With MySQL,physical backups are performed by theMySQL Enterprise Backup product, andlogical backups are performed by themysqldump command. These techniques have different characteristics in terms of size and representation of the backup data, and speed (especially speed of the restore operation).

Backups are further classified ashot,warm, orcold depending on how much they interfere with normal database server operation. (Hot backups have the least interference, cold backups the most.)

See Alsocold backup,hot backup,logical backup,mysqldump,physical backup,warm backup.

backup directory

The directory under which the backup data and metadata are stored, permanently or temporarily. It is used in most kinds of backup and restore operations, including single-file backups and restores. See the description of the--backup-dir option on how the backup directory is used for different purposes and for different operations.

backup repository

Contrast withserver repository.

See Alsorepository,server repository.

backup-my.cnf

A smallconfiguration file generated byMySQL Enterprise Backup, containing a minimal set of configuration parameters. This file records the settings that apply to this backup data. Subsequent operations, such as theapply process, read options from this file to determine how the backup data is structured. This file always has the extension.cnf, rather than.cnf on Unix-like systems and.ini on Windows systems.

See Alsoapply,configuration file.

binary log

A file containing a record of all statements that attempt to change table data. These statements can be replayed to bring replica servers up to date in areplication scenario, or to bring a database up to date after restoring table data from a backup. The binary logging feature can be turned on and off, although Oracle recommends always enabling it if you use replication or perform backups.

You can examine the contents of the binary log, or replay those statements during replication or recovery, by using themysqlbinlog command. For full information about the binary log, seeThe Binary Log. For MySQL configuration options related to the binary log, seeBinary Logging Options and Variables.

For theMySQL Enterprise Backup product, the file name of the binary log and the current position within the file are important details. To record this information for the source server when taking a backup in a replication context, you can specify the--slave-info option.

The binary log, if enabled on the server, is backed up by default.

See Alsobinlog,relay log,replication.

binlog

An informal name for thebinary log file. For example, you might see this abbreviation used in e-mail messages or forum discussions.

See Alsobinary log.

C

cold backup

Abackup taken while the database is shut down.

MySQL Enterprise Backup 8.0 and later does not support cold backups.

See Alsobackup,connection,hot backup,warm backup.

compression

A technique that produces smallerbackup files, with size reduction influenced by thecompression level setting. Suitable for keeping multiple sets of non-critical backup files. (For recent backups of critical data, you might leave the data uncompressed, to allow fast restore speed in case of emergency.)

MySQL Enterprise Backup can apply compression to the contents ofInnoDB tables during the backup process, turning the.ibd files into.ibz files.

Compression adds CPU overhead to the backup process, and requires additional time and disk space during therestore process.

See Alsobackup,compression level,.ibd file,.ibz file,InnoDB,restore.

compression level

A setting that determines how muchcompression to apply to a compressed backup. This setting ranges from 0 (none), 1 (default level when compression is enabled) to 9 (maximum). The amount of compression for a given compression level depends on the nature of your data values. Higher compression levels do impose additional CPU overhead, so ideally you use the lowest value that produces a good balance of compression with low CPU overhead.

See Alsocompression.

configuration file

The file that holds the startup options of the MySQL server and related products and components. Often referred to by its default file name,my.cnf on Linux, Unix, and macOS systems, andmy.ini on Windows systems. TheMySQL Enterprise Backup stores its default configuration settings in this file, under a[mysqlbackup] section. For convenience, MySQL Enterprise Backup can also read settings from the[client] section, for configuration options that are common between MySQL Enterprise Backup and other programs that connect to the MySQL server.

See Alsomy.cnf,my.ini.

connection

The mechanism used by certain backup operations to communicate with a running MySQLserver. For example, themysqlbackup command can log into the server being backed up to insert and update data in theprogress table and thehistory table. Ahot backup typically uses a database connection for convenience, but can proceed anyway if the connection is not available. Awarm backup always uses a database connection, because it must put the server into a read-only state. Acold backup is taken while the MySQL server is shut down.

Cold backups are not supported byMySQL Enterprise Backup 8.0 or later. Therefore a connection to the server is always needed forMySQL Enterprise Backup 8.0 and later to back it up.

See Alsocold backup,history table,hot backup,progress table,server,warm backup.

crash recovery

The cleanup activities for InnoDB tables that occur when MySQL is started again after a crash. Changes that were committed before the crash, but not yet written to the tablespace files, are reconstructed from thedoublewrite buffer. When the database is shut down normally, this type of activity is performed during shutdown by thepurge operation.

D

data dictionary

A set of tables, controlled by the InnoDB storage engine, that keeps track of InnoDB-related objects such as tables, indexes, and table columns. These tables are part of the InnoDBsystem tablespace.

Because theMySQL Enterprise Backup product always backs up the system tablespace, all backups include the contents of the data dictionary.

See Alsohot backup,MySQL Enterprise Backup,system tablespace.

database

A set of tables and related objects owned by a MySQL user. Equivalent toschema in Oracle Database terminology.MySQL Enterprise Backup can perform apartial backup that includes some databases and not others. The full set of databases controlled by a MySQL server is known as aninstance.

See Alsoinstance,partial backup.

downtime

A period when the database is unresponsive. The database might be entirely shut down, or in a read-only state when applications are attempting to insert, update, or delete data. The goal for your backup strategy is to minimize downtime, using techniques such ashot backup forInnoDB tables and minimizing the duration of thesuspend stage where you run customized backup logic while the MySQL server islocked.

See Alsocold backup,hot backup,InnoDB,locking,replica,replication,suspend.

E

exclude

In apartial backup, to select a set of tables, databases, or a combination of both to be omitted from the backup. Contrast withinclude.

See Alsopartial backup.

extract

The operation that retrieves some content from animage file produced by asingle-file backup. It can apply to a single file (unpacked to an arbitrary location) or to the entire backup (reproducing the original directory structure of the backup data). These two kinds of extraction are performed by themysqlbackup optionsextract andimage-to-backup-dir, respectively.

See Alsoimage,single-file backup.

F

.frm file

A file containing the metadata, such as the table definition, of a MySQL table..frm files were removed in MySQL 8.0 and later but are still used in earlier MySQL releases. In MySQL 8.0 and later, data that was previously stored in.frm files is stored indata dictionary tables.

file format

The format used by InnoDB for its data files namedibdata1,ibdata2, and so on. Each file format supports one or more row formats.

See Alsoibdata file,row format.

full backup

Abackup that includes all thetables in each MySQL database, and all the databases in a MySQL instance. Contrast withpartial backup andincremental backup. Full backups take the longest, but also require the least amount of followup work and administration complexity. Thus, even when you primarily do partial or incremental backups, you might periodically do a full backup.

See Alsobackup,incremental backup,partial backup,table.

H

history table

The tablemysql.backup_history that holds details of completedbackup operations. While a backup job is running, the details (especially the changing status value) are recorded in theprogress table.

See Alsobackup,progress table.

hot backup

A backup taken while the MySQLinstance and is running and applications are reading and writing to it. Contrast withwarm backup andcold backup.

A hot backup involves more than simply copying data files: it must include any data that was inserted or updated while the backup was in process; it must exclude any data that was deleted while the backup was in process; and it must ignore any changes started bytransactions but not committed.

The Oracle product that performs hot backups, ofInnoDB tables especially but also tables from MyISAM and other storage engines, isMySQL Enterprise Backup.

The hot backup process consists of two stages. The initial copying of the InnoDB data files produces araw backup. Theapply step incorporates any changes to the databases that happened while the backup was running. Applying the changes produces aprepared backup; these files are ready to be restored whenever necessary.

Afull backup consists of a hot backup phase that copies the InnoDB data, followed by awarm backup phase that copies any non-InnoDB data such as MyISAM tables and the associated.sdi files.

See Alsoapply,cold backup,.frm file,full backup,InnoDB,instance,prepared backup,raw backup,warm backup.

I

.ibd file

Each InnoDBtablespace created using thefile-per-table setting has a filename with a.ibd extension. This extension does not apply to thesystem tablespace, which is made up of files namedibdata1,ibdata2, and so on.

See Also.ibz file,system tablespace,tablespace.

.ibz file

When theMySQL Enterprise Backup product performs acompressed backup, it transforms eachtablespace file that is created using thefile-per-table setting from a.ibd extension to a.ibz extension.

The compression applied during backup is distinct from thecompressed row format that keeps table data compressed during normal operation. An InnoDB tablespace that is already in compressed row format is not compressed a second time, but is, nevertheless, still saved as an.ibz file in the compressed backup.

See Alsocompression,compression level,.ibd file,.ibz file,MySQL Enterprise Backup,tablespace.

ibdata file

A set of files with names such asibdata1,ibdata2, and so on, that make up the InnoDBsystem tablespace. These files contain metadata about InnoDB tables, and can contain some or all of the table and index data also (depending on whether thefile-per-table option is in effect when each table is created). For backward compatibility these files always use theAntelope file format.

See Alsosystem tablespace.

image

The file produced as part of asingle-file backup operation. It can be a real file that you store locally, or standard output (specified as-) when the backup data isstreamed directly to another command or remote server. This term is referenced in severalmysqlbackup options such asbackup-dir-to-image andimage-to-backup-dir.

See Alsosingle-file backup,streaming.

include

In apartial backup, to select a set of tables, databases, or a combination of both to be backed up. Contrast withexclude.

See Alsopartial backup.

incremental backup

A backup that captures only data changed since the previous backup. It has the potential to be smaller and faster than afull backup. The incremental backup data must be merged with the contents of the previous backup before it can be restored. SeeSection 4.3.3, “Making a Differential or Incremental Backup” for usage details. Relatedmysqlbackup options are--incremental,--incremental-with-redo-log-only,--incremental-backup-dir,--incremental-base, and--start-lsn.

See Alsofull backup.

InnoDB

The type of MySQLtable that works best withMySQL Enterprise Backup. These tables can be backed up using thehot backup technique that avoids interruptions in database processing. For this reason, and because of the higher reliability and concurrency possible with InnoDB tables, most deployments should use InnoDB for the bulk of their data and their most important data. In MySQL 5.5 and higher, theCREATE TABLE statement creates InnoDB tables by default.

See Alsohot backup,table.

instance

The full contents of a MySQL server, possibly including multipledatabases. Abackup operation can back up an entire instance, or apartial backup can include selected databases and tables.

See Alsodatabase,partial backup.

L

locking

See Alsosuspend,warm backup.

log

Several types of log files are used within the MySQL Enterprise Backup product. The most common is the InnoDBredo log that is consulted duringincremental backups.

See Alsoincremental backup,redo log.

log sequence number

SeeLSN.

logical backup

Abackup that reproduces table structure and data, without copying the actual data files. For example, themysqldump command produces a logical backup, because its output contains statements such asCREATE TABLE andINSERT that can re-create the data. Contrast withphysical backup.

See Alsobackup,physical backup.

LSN

Acronym forlog sequence number. This arbitrary, ever-increasing value represents a point in time corresponding to operations recorded in theredo log. (This point in time is regardless of transaction boundaries; it can fall in the middle of one or more transactions.) It is used internally by InnoDB duringcrash recovery and for managing the buffer pool.

In theMySQL Enterprise Backup product, you can specify an LSN to represent the point in time from which to take anincremental backup. The relevant LSN is displayed by the output of themysqlbackup command. Once you have the LSN corresponding to the time of a full backup, you can specify that value to take a subsequent incremental backup, whose output contains another LSN for the next incremental backup.

See Alsocrash recovery,hot backup,incremental backup,redo log.

M

.MRG file

A file containing references to other tables, used by theMERGE storage engine. Files with this extension are always included in backups produced by themysqlbackup command of theMySQL Enterprise Backup product.

.MYD file

A file that MySQL uses to store data for a MyISAM table.

See Also.MYI file.

.MYI file

A file that MySQL uses to store indexes for a MyISAM table.

See Also.MYD file.

manifest

The record of the environment (for example, command-line arguments) and data files involved in a backup, stored in the filesmeta/backup_create.xml andmeta/backup_content.xml, respectively. This data can be used by management tools during diagnosis and troubleshooting procedures.

master

Seesource.

media management software

A class of software programs for managing backup media, such as libraries of tape backups. One example isOracle Secure Backup. AbbreviatedMMS.

See AlsoOracle Secure Backup.

my.cnf

The typical name for the MySQLconfiguration file on Linux, Unix, and macOS systems.

See Alsoconfiguration file,my.ini.

my.ini

The typical name for the MySQLconfiguration file on Windows systems.

See Alsoconfiguration file,my.cnf.

MyISAM

A MySQL storage engine, formerly the default for new tables. In MySQL 5.5 and higher,InnoDB becomes the default storage engine. MySQL Enterprise Backup can back up both types of tables, and tables from other storage engines also. The backup process for InnoDB tables (hot backup) is less disruptive to database operations than for MyISAM tables (warm backup).

See Alsohot backup,InnoDB,warm backup.

mysqlbackup

The primary command of theMySQL Enterprise Backup product. Different options performbackup andrestore operations.

See Alsobackup,restore.

mysqldump

A MySQL command that performslogical backups, producing a set of SQL commands to recreate tables and data. Suitable for smaller backups or less critical data, because therestore operation takes longer than with aphysical backup produced byMySQL Enterprise Backup.

See Alsological backup,physical backup,restore.

N

non-TTS backup

A backup that is NOT created usingtransportable tablespace (TTS), that is, not with the--use-tts option.

See Alsotransportable tablespace,TTS backup.

O

.opt file

A file containing database server configuration information. Files with this extension are always included in backups produced by the backup operations of theMySQL Enterprise Backup product.

offline

A type of operation performed while the database server is stopped. With theMySQL Enterprise Backup product, the main offline operation is therestore step. You cannot perform acold backup withMySQL Enterprise Backup 8.0 or later. Contrast withonline.

See Alsocold backup,online,restore.

online

A type of operation performed while the database server is running. Ahot backup is the ideal example, because the database server continues to run and no read or write operations are blocked. For that reason, sometimeshot backup andonline backup are used as synonyms. Acold backup is the opposite of an online operation; by definition, the database server is shut down while the backup happens (MySQL Enterprise Backup 8.0 and later does not supportcold backups). Awarm backup is also a kind of online operation, because the database server continues to run, although some write operations could be blocked while a warm backup is in progress. Contrast withoffline.

See Alsocold backup,hot backup,offline,warm backup.

Oracle Secure Backup

An Oracle product for managingbackup media, and so classified asmedia management software (MMS). AbbreviatedOSB. ForMySQL Enterprise Backup, OSB is typically used to manage tape backups.

See Alsobackup,media management software,OSB.

OSB

Abbreviation forOracle Secure Backup, amedia management software product (MMS).

See AlsoOracle Secure Backup.

P

.par file

A file containing partition definitions. Files with this extension are always included in backups produced by themysqlbackup command of theMySQL Enterprise Backup product.

parallel backup

The default processing mode in MySQL Enterprise Backup 3.8 and higher, employing multiple threads for different classes of internal operations (read, process, and write). SeeSection 1.2, “Overview of Backup Types” for an overview,Section 20.10, “Performance / Scalability / Capacity Options” for the relevantmysqlbackup options, andChapter 13,Performance Considerations for MySQL Enterprise Backup for performance guidelines and tips.

partial backup

Abackup that contains some of thetables in a MySQL database, or some of the databases in a MySQL instance. Contrast withfull backup. Relatedmysqlbackup options are--include-tables,--exclude-tables,--use-tts,--only-known-file-types, and--only-innodb.

See Alsobackup,database,full backup,partial restore,table.

partial restore

Arestore operation that applies to one or moretables ordatabases, but not the entire contents of a MySQL server. The data being restored could come from either apartial backup or afull backup. Relatedmysqlbackup options are--include-tables,--exclude-tables, and--rename.

See Alsodatabase,full backup,partial backup,restore,table.

physical backup

Abackup that copies the actual data files. For example, theMySQL Enterprise Backup command produces a physical backup, because its output contains data files that can be used directly by themysqld server. Contrast withlogical backup.

See Alsobackup,logical backup.

point in time

The time corresponding to the end of abackup operation. Aprepared backup includes all the changes that occurred while the backup operation was running.Restoring the backup brings the data back to the state at the moment when the backup operation completed.

See Alsobackup,prepared backup,restore.

prepared backup

The set of backup data that is entirely consistent and ready to be restored. It is produced by performing theapply operation on theraw backup.

See Alsoapply,raw backup.

progress table

The tablemysql.backup_progress that holds details of runningbackup operations. When a backup job finishes, the details are recorded in thehistory table.

See Alsobackup,history table.

R

raw backup

The initial set of backup data, not yet ready to be restored because it does not incorporate changes that occurred while the backup was running. Theapply operation transforms the backup files into aprepared backup that is ready to be restored.

See Alsoapply,prepared backup.

redo log

A set of files, typically namedib_logfile0 andib_logfile1, that record statements that attempt to change data in InnoDB tables. These statements are replayed automatically to correct data written by incomplete transactions, on startup following a crash. The passage of data through the redo logs is represented by the ever-increasingLSN value. The 4GB limit on maximum size for the redo log is raised in MySQL 5.6.

See AlsoLSN.

regular expression

Some MySQL Enterprise Backup features use POSIX-style regular expressions, for example to specify tables, databases, or both toinclude orexclude from apartial backup. Regular expressions require escaping for dots in filenames, because the dot is the single-character wildcard; no escaping is needed for forward slashes in path names. When specifying regular expressions on the command line, surround them with quotation marks as appropriate for the shell environment, to prevent expansion of characters such as asterisks by the shell wildcard mechanism.

See Alsoexclude,include,partial backup.

relay log

A record on areplica server for the events read from thebinary log of the source server and written by the replication I/O thread. The relay log, like thebinary log, consists of a set of numbered files containing events that describe database changes, and an index file that contains the names of all used relay log files. For more information on relay log, seeThe Relay Log. The relay log on a server is backed up by default.

See Alsobinary log,replication.

replica

In areplication configuration, a database server that receives updates from asource server. Typically used to service user queries, to minimize the query load on the source server. WithMySQL Enterprise Backup, you might take a backup on one server, and restore on a different system to create a new replica server with the data already in place. You might also back up data from a replica server rather than the source, to minimize any slowdown of the overall system.

See Alsoreplication,source.

replication

A common configuration for MySQL deployments, with data and DML operations from asource server synchronized with a set ofreplica servers. With MySQLEnterprise Backup, you might take a backup on one server, and restore on a different system to create a new replica server with the data already in place. You might also back up data from a replica server rather than the source, to minimize any slowdown of the overall system.

See Alsoreplica,source.

repository

We distinguish between theserver repository and thebackup repository.

See Alsobackup repository,server repository.

restore

The converse of thebackup operation. The data files from aprepared backup are put back into place to repair a data issue or bring the system back to an earlier state.

See Alsobackup,prepared backup.

row format

The disk storage format for a row from an InnoDB table. As InnoDB gains new capabilities such as compression, new row formats are introduced to support the resulting improvements in storage efficiency and performance.

Each table has its own row format, specified through theROW_FORMAT option. To see the row format for each InnoDB table, issue the commandSHOW TABLE STATUS. Because all the tables in the system tablespace share the same row format, to take advantage of other row formats typically requires setting theinnodb_file_per_table option, so that each table is stored in a separate tablespace.

S

SBT

Acronym forsystem backup to tape.

See Alsosystem backup to tape.

selective backup

Another name forpartial backup

See Alsopartial backup,selective restore.

selective restore

Another name forpartial restore

See Alsopartial restore,selective backup.

server

A MySQLinstance controlled by amysqld daemon. A physical machine can host multiple MySQL servers, each requiring its ownbackup operations and schedule. Some backup operations communicate with the server through aconnection.

See Alsoconnection,instance.

server repository

Contrast withbackup repository.

See Alsobackup repository,repository.

single-file backup

A backup technique that packs all the backup data into one file (the backupimage), for ease of storage and transfer. Thestreaming backup technique requires using a single-file backup.

See Alsoimage,streaming.

slave

Seereplica.

source

In areplication configuration, a database server that sends updates to a set ofreplica servers. It typically dedicates most of its resources to write operations, leaving user queries to the replicas. WithMySQL Enterprise Backup, typically you perform backups on the replica servers rather than the source, to minimize any slowdown of the overall system.

See Alsoreplica,replication.

streaming

A backup technique that transfers the data immediately to another server, rather than saving a local copy. Uses mechanisms such as Unix pipes. Requires asingle-file backup, with the destination file specified as- (standard output).

See Alsosingle-file backup.

suspend

An optional stage within the backup where the MySQL Enterprise Backup processing stops, to allow for user-specific operations to be run. Themysqlbackup command has options that let you specify commands to be run while the backup is suspended.

See Also.frm file,InnoDB.

system backup to tape

An API formedia management software. AbbreviatedSBT. Severalmysqlbackup options (withsbt in their names) pass information tomedia management software products such asOracle Secure Backup.

See AlsoOracle Secure Backup,SBT.

system tablespace

By default, this single data file stores all the table data for a database server, as well as all the metadata for InnoDB-related objects (thedata dictionary).

Turning on theinnodb_file_per_table option causes each newly created table to be stored in its owntablespace, reducing the size of, and dependencies on, the system tablespace.

Keeping all table data in the system tablespace has implications for theMySQL Enterprise Backup product (backing up one large file rather than several smaller files), and prevents you from using certain InnoDB features that require the newerBarracuda file format. on the

See Alsodata dictionary,file format,ibdata file,tablespace.

T

.TRG file

A file containingtrigger parameters. Files with this extension are always included in backups produced by themysqlbackup command of theMySQL Enterprise Backup product.

table

Although a table is a distinct, addressable object in the context of SQL, forbackup purposes we are often concerned with whether the table is part of thesystem tablespace, or was created under thefile-per-table setting and so resides in its owntablespace.

See Alsobackup,system tablespace,tablespace.

tablespace

ForInnoDB tables, the file that holds the data and indexes for a table. Can be either thesystem tablespace containing multiple tables, or a table created with thefile-per-table setting that resides in its own tablespace file.

See AlsoInnoDB,system tablespace.

transportable tablespace

A feature that allows atablespace to be moved from one instance to another. Traditionally, this has not been possible for InnoDB tablespaces because all table data was part of thesystem tablespace. In MySQL 5.6 and higher, theFLUSH TABLES ... FOR EXPORT syntax prepares an InnoDB table for copying to another server; runningALTER TABLE ... DISCARD TABLESPACE andALTER TABLE ... IMPORT TABLESPACE on the other server brings the copied data file into the other instance. A separate.cfg file, copied along with the.ibd file, is used to update the table metadata (for example thespace ID) as the tablespace is imported. SeeImporting InnoDB Tables for usage information.

Use the--use-tts option to create a backup with transportable tablespace. See alsoSection 5.1.5, “Restoring Backups Created with the--use-tts Option”.

See Alsopartial backup.

TTS

Short form fortransportable tablespace.

See Alsopartial backup,transportable tablespace.

TTS backup

A backup that is created usingtransportable tablespace (TTS), that is, with the--use-tts option.

See Alsonon-TTS backup,partial backup,transportable tablespace.

W

warm backup

Abackup taken while the database server is running, but that restricts some database operations during the backup process. For example, tables might become read-only. For busy applications and websites, you might prefer ahot backup.

See Alsobackup,cold backup,hot backup.