MySQL Enterprise Backup User's Guide (Version 4.1.5)
The following table shows the different types of files that are
included in a single-file backup image or a directory backup. In
the case of a single-file backup, unpack the file into a
backup directory
structure using the extract
or the
image-to-backup-dir
command to view
the files.
Table 1.1 Types of Files in a Backup
File Name, Pattern, or Extension | Relation to Original Data Files | Notes |
---|---|---|
| The InnoDB system tablespace, containing multiple InnoDB tables and associated indexes. |
Because the original files might change while the
backup is in progress, the
|
| An InnoDB tablespace, which can be (a) a file-per-table tablespace, containing a single InnoDB table and associated indexes, or (b) a file-per-table external tablespace located outside of the server's data directory, containing a single InnoDB table and associated indexes, or (c) a general tablespace, containing one or more tables and their indexes. | Because the original files might change while the backup is in progress, the apply-log step applies the same changes to the corresponding backup files. |
| Compressed form of InnoDB data files from the MySQL data directory. |
Produced instead of
The |
| Hold metadata about all MySQL tables. | The database is put into a read-only state while these files are copied. These files are copied unmodified. |
| MyISAM table data. | The database is put into a read-only state while these files are copied. These files are copied unmodified. |
| MyISAM index data. | The database is put into a read-only state while these files are copied. These files are copied unmodified. |
| Metadata for CSV tables. |
These files are copied unmodified. The
|
| Data for CSV tables. |
These files are copied unmodified. The
|
| MERGE storage engine references to other tables. | The database is put into a read-only state while these files are copied. These files are copied unmodified. |
| Trigger parameters. | The database is put into a read-only state while these files are copied. These files are copied unmodified. |
| Trigger namespace information. | The database is put into a read-only state while these files are copied. These files are copied unmodified. |
| Database configuration information. | The database is put into a read-only state while these files are copied. These files are copied unmodified. |
| Definitions for partitioned tables. | The database is put into a read-only state while these files are copied. These files are copied unmodified. |
| ARCHIVE storage engine table metadata. | The database is put into a read-only state while these files are copied. These files are copied unmodified. |
| ARCHIVE storage engine table data. | The database is put into a read-only state while these files are copied. These files are copied unmodified. |
| Records the configuration parameters that specify the layout and other important information about the MySQL data files. |
The file is created during a backup, and it contains
crucial parameters describing the backed-up data like
|
|
Records names of the | This file is created during an incremental backup. During a restore, the information in the file is used to delete the tables from the full backup that has been removed between the time of the full backup and the time of the incremental backup. |
|
A condensed version of the
|
The InnoDB log files
( |
|
Created instead of the
| |
|
Created in the backup directory by
mysqlbackup during the
|
These files are not copied from the original data
directory, but rather re-created in the backup
directory during the
|
| Renamed version of each .isl file from the backed-up server. |
A
When restoring a backup created with
transportable
tablespaces (TTS), if the directory on the
target server pointed to by a |
Timestamped directory, such as
|
Created by the
|
Use the |
| A subdirectory that stores the data files and database subdirectories from the original MySQL instance. | Created under the backup directory by mysqlbackup. |
Binary log files from the server, which are included in a backup by
default (except when the backup is created with the
--use-tts option). They
allow a snapshot of the server to be taken, so a server
can be cloned to its exact state. Using a full backup as
a basis, the binary log files that are included with an
incremental backup can be used for a point-in-time
recovery (PITR), which restores a database to its state
at a certain point in time after the last full backup.
See Section 5.2, “Point-in-Time Recovery” for details. |
Saved under the
For offline backups, use the
For release 4.1.2 and later: By
default, the binary log files and the index file are
restored to the same locations they were found on the
backed-up server. Use the
For release 4.1.1 and earlier:
The binary log files and the index file are restored
to the data directory of the restored server. Use the
The binary log files are compressed and saved with the
Notes
| |
relay log files | Relay log files from a replica server, which are included in a backup of
a replica server by default (except when the backup is
created with the --use-tts
option). Their inclusion saves the time and resources
required for fetching the relay logs from the source
when the replica is being restored. |
Saved under the
For offline backup, use the
For release 4.1.2 and later: By
default, the relay log files and the index file are
restored to the same locations they were found on the
backed-up replica server. Use the
For release 4.1.1 and earlier:
The relay log files and the index file are restored to
the data directory of the restored server. Use the
The relay log files are compressed and saved with the
|
*.bz | Compressed binary log or relay log files. |
The binary log and relay log files are compressed and
saved with the |
*.bkt (for release 4.1.0, or release 4.1.1 and later working with MySQL 5.7.20 and earlier) | Transfer file created for an encrypted InnoDB table during backup . | It contains the reencrypted tablespace key and other information related to the encryption. See Chapter 6, Working with Encrypted InnoDB Tables for detail. |
encrypted keyring data file (for release 4.1.1 and later working with MySLQ 5.7.21 and later) |
For a server using the
For a server using the a keyring plugin other than
| An encrypted file containing the master key for InnoDB table encryption . See Chapter 6, Working with Encrypted InnoDB Tables for detail. |
replication metadata repository files | Usually named master.info and
relay-log.info , they are included
by default in a backup of a replica database in a
replication setup. See
Replication Metadata Repositories, for details. |
Saved under the
The copying of these files are skipped during a backup
or a restore when the
|
Backup image file |
A single-file backup produced by the
|
You can move the image file without losing or damaging
the contents inside it, then unpack it with
mysqlbackup using the
|
Any other files in subdirectories under the
| Copied from the database subdirectories under the MySQL data directory. |
By default, any unrecognized files in subdirectories
under the MySQL data directory are copied to the
backup. To omit such files, specify the
Note Some limitations apply to this behavior. See the discussion here in Appendix B, Limitations of MySQL Enterprise Backup. |
| A subdirectory that stores files with metadata about the backup. |
Created under the backup directory by
mysqlbackup. All files listed below
go inside the |
| Holds important information about the backup. For use by mysqlbackup only. | mysqlbackup consults and possibly updates this file during operations after the initial backup, such as the apply-log phase or the restore phase. |
|
Contains the list of all the files (except itself)
that are present in the single-file backup produced by
the | This file is not modified at any stage once generated. |
| Lists the command line arguments and environment in which the backup was created. For details about this file, see Section 13.4, “Using the MySQL Enterprise Backup Manifest”. |
This file is not modified once it is created. You can
prevent this file from being generated by specifying
the |
| Essential metadata for the files and database definitions of the backup data. It also contains details of all the plugins defined on the backed-up server, by which users should make sure the same plugins are defined in the same manner on the target server for restoration. For details about this file, see Section 13.4, “Using the MySQL Enterprise Backup Manifest”. |
This file is not modified once created. You can
prevent this file from being generated by specifying
the |
|
Produced by the | The comments are specified by you to document the purpose or special considerations for this backup job. |
| Signifies the backup came from a server with GTIDs enabled. |
GTIDs are a replication feature in MySQL 5.6 and
higher. See Replication with Global Transaction Identifiers for
details. When you back up a server with GTIDs enabled
using mysqlbackup, the file named
|
server-my.cnf |
Contains values of the backed-up server's global
variables that are set to non-default values. Use this
file or |
During a Warning
When using the file to restart the target server,
change parameters like |
server-all.cnf |
Contains values of all the global variables of the
backed-up server. Use this file or
|
During a Warning
When using the file to restart the target server,
change parameters like |
ib_buffer_pool |
The file produced on the server when
The actual file name might be different, as it can be
configured by the server's system variable
|
With the default setting on MySQL server 5.7.7 and
after
( |