Download MySQL Enterprise Backup User`s Guide (Version 3.6.1)
Transcript
Subcommands 4.1.1.3 Restore an Existing Backup Restores the data files from a backup to their original locations within the database server. The MySQL instance must be shut down first. For usage and examples, see Chapter 5, Recovering or Restoring a Database. mysqlbackup [STD-OPTIONS] [SERVER-REPOSITORY-OPTIONS] [--backup-dir=PATH] copy-back copy-back Restores files from a backup to their original locations within the MySQL server. The database must be shut down before this operation is performed. 4.1.1.4 Work with Single-File Backups To simplify transfer and management of backup data, you can keep each backup in a single file (the backup image). The backup-to-image option performs a backup directly to a single file, or the options here can pack an existing backup into a single file or unpack a single-file backup to a full backup directory structure. For usage and examples, see Section 3.3.5, “Making a Single-File Backup”. mysqlbackup [STD-OPTIONS] [--backup-image=IMAGE] [--backup-dir=PATH] image-to-backup-dir mysqlbackup [STD-OPTIONS] [--backup-dir=PATH] [--backup-image=IMAGE] backup-dir-to-image mysqlbackup [STD-OPTIONS] [--backup-image=IMAGE] [--src-entry=PATH] list-image mysqlbackup [STD-OPTIONS] [--backup-image=IMAGE] [--backup-dir=PATH] [--src-entry=PATH] [--dst-entry=PATH] extract image-to-backup-dir backup-dir-to-image list-image extract Unpacks a single-file backup to a full backup directory structure. You specify the paths to both the image file and the destination directory in which to unpack. Packs an existing backup into a single file. Specify a --backupimage value of - (standard output) to stream an existing backup directory structure to a tape device or a command that transfers the backup to another server. The --backup-image parameter is either - or an absolute path outside the backup-dir directory. Display the contents of a single-file backup. Lists all files and directories in the image. The --src-entry=name can be used to list a specific file or directory. If the name is a directory, all its files and subdirectories inside the image are recursively listed. Unpacks an individual file or directory from a single-file backup. For troubleshooting or restoration operations that do not require the full set of backup data. The resulting file or directory goes in the current directory, or in backup-dir if specified. All files and directory 39