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 Serialized Dictionary Information (SDI) for MyISAM tables, which is the tables' metadata. | 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. |
| 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 of the MySQL data files. | Used in restore operations to reproduce the same layout as when the backup was taken. |
|
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
|
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.3, “Point-in-Time Recovery” for details. |
Saved under the
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
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
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
No relay log files are restored onto a server with a partial restore.
The relay log files are compressed and saved with the
|
| Compressed binary log or relay log files. |
The binary log and relay log files are compressed and
saved with the |
Undo log files from the server. See Undo Tablespaces for details.
Both active and inactive undo tablespaces are included
in the backup. Also, when the
|
Saved by default under the
During a restore, the default undo tablespaces, as
well as any non-default undo tablespaces resided in
the backed-up server's data directory, are restored to
the location pointed to by the
mysqlbackup option
No undo log files are restored onto a server with a partial restore. | |
| Compressed undo log files. |
The undo log files are compressed and saved with the
|
encrypted keyring data file | For a server using the
For a server using a keyring plugin or component other
than
| An encrypted file containing the master key for InnoDB table encryption . See Chapter 6, Working with Encrypted InnoDB Tablespaces for detail. |
replica status log 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
Notes
|
| 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 17.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 17.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
Note
For TTS backups for
replica servers, use the
|
|
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 |
|
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 |
backup-auto.cnf |
Copy of the file |
The file is restored into the data directory of the
restored server. To use the UUID stored inside for
your restored server, rename the file back to
|
backup-mysqld-auto.cnf |
Copy of the file |
The file is restored into the data directory of the
restored server. To use the persisted system variables
stored inside for your restored server, rename the
file back to |
|
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
( |
The file tracks external tablespaces, recording their file paths on the backed-up server and their tablespace IDs. |
If any external tablespace exists on a backed up
server, the tracker file is going to be found in the
Warnings
After a restore is finished, if the restored server contains any external tablespace, a tracker file is going to be found in the data directory of the restored server. |