25.5.17 ndb_print_backup_file — Print NDB Backup File Contents (original) (raw)

25.5.17 ndb_print_backup_file — Print NDB Backup File Contents

ndb_print_backup_file obtains diagnostic information from a cluster backup file.

Table 25.39 Command-line options used with the program ndb_print_backup_file

Format Description Added, Deprecated, or Removed
--backup-key=key, -K password Use this password to decrypt file ADDED: NDB 8.0.31
--backup-key-from-stdin Get decryption key in a secure fashion from STDIN ADDED: NDB 8.0.31
--backup-password=password, -P password Use this password to decrypt file ADDED: NDB 8.0.22
--backup-password-from-stdin Get decryption password in a secure fashion from STDIN ADDED: NDB 8.0.24
--control-directory-number=#, -c # Control directory number ADDED: NDB 8.0.24
--defaults-extra-file=path Read given file after global files are read (Supported in all NDB releases based on MySQL 8.0)
--defaults-file=path Read default options from given file only (Supported in all NDB releases based on MySQL 8.0)
--defaults-group-suffix=string Also read groups with concat(group, suffix) (Supported in all NDB releases based on MySQL 8.0)
--fragment-id=#, -f # Fragment ID ADDED: NDB 8.0.24
--help, --usage, -h, -? Print usage information ADDED: NDB 8.0.24
--login-path=path Read given path from login file (Supported in all NDB releases based on MySQL 8.0)
--no-defaults Do not read default options from any option file other than login file (Supported in all NDB releases based on MySQL 8.0)
--no-print-rows, -u Do not print rows ADDED: NDB 8.0.24
--print-defaults Print program argument list and exit (Supported in all NDB releases based on MySQL 8.0)
--print-header-words, -h Print header words ADDED: NDB 8.0.24
--print-restored-rows Print restored rows ADDED: NDB 8.0.24
--print-rows, -U Print rows. Enabled by default; disable with --no-print-rows ADDED: NDB 8.0.24
--print-rows-per-page Print rows per page ADDED: NDB 8.0.24
--rowid-file=path, -n path File containing row ID to check for ADDED: NDB 8.0.24
--show-ignored-rows, -i Show ignored rows ADDED: NDB 8.0.24
--table-id=#, -t # Table ID; used with --print-restored rows ADDED: NDB 8.0.24
--usage, -? Display help text and exit; same as --help (Supported in all NDB releases based on MySQL 8.0)
--verbose[=#], -v Verbosity level ADDED: NDB 8.0.24
--version, -V Display version information and exit (Supported in all NDB releases based on MySQL 8.0)

Usage

ndb_print_backup_file [-P password] file_name

filename is the name of a cluster backup file. This can be any of the files (.Data, .ctl, or.log file) found in a cluster backup directory. These files are found in the data node's backup directory under the subdirectoryBACKUP-_`#`_, where_#_ is the sequence number for the backup. For more information about cluster backup files and their contents, seeSection 25.6.8.1, “NDB Cluster Backup Concepts”.

Like ndb_print_schema_file andndb_print_sys_file (and unlike most of the other NDB utilities that are intended to be run on a management server host or to connect to a management server) ndb_print_backup_file must be run on a cluster data node, since it accesses the data node file system directly. Because it does not make use of the management server, this utility can be used when the management server is not running, and even when the cluster has been completely shut down.

In NDB 8.0, this program can also be used to read undo log files.

Options

Prior to NDB 8.0.24, ndb_print_backup_file supported only the -P option. Beginning with NDB 8.0.24, the program supports a number of options, which are described in the following list.