25.5.17 NDB 备份文件内容打印 — ndb_print_backup_file
ndb_print_backup_file 从集群备份文件中获取诊断信息。
ndb_print_backup_file [-P password] file_name
file_name 是一个集群备份文件的名称。这可以是数据节点备份目录下的任何文件(.Data、.ctl 或 .log 文件),这些文件在数据节点备份目录下的子目录BACKUP-下找到,其中## 是备份的顺序号。关于集群备份文件和内容的更多信息,请见第25.6.8.1节,“NDB 集群备份概念”。
类似于ndb_print_schema_file和ndb_print_sys_file(与大多数其他NDB实用工具不同,这些实用工具旨在在管理服务器主机上运行或连接到管理服务器),ndb_print_backup_file必须在集群数据节点上运行,因为它直接访问数据节点文件系统。由于它不使用管理服务器,这个实用工具可以在管理服务器未运行时使用,即使整个集群已经完全关闭。
这个程序也可以用于读取undo日志文件。
ndb_print_backup_file支持以下列表中描述的选项。
-
--backup-key,-KCommand-Line Format --backup-key=key指定解密加密备份所需的密钥。
-
Command-Line Format --backup-key-from-stdin允许从标准输入中输入解密密钥,类似于在调用mysql时不提供密码后输入密码。
-
Command-Line Format --backup-password=passwordType 字符串 Default Value [none]指定解密加密备份所需的密码。
-
Command-Line Format --backup-password-from-stdin允许从标准输入中输入密码,类似于在调用mysql时不提供密码后输入密码。
-
Command-Line Format --control-directory-number=#Type 整数 Default Value 0控制文件目录号。与
--print-restored-rows一起使用。 -
Command-Line Format --defaults-extra-file=路径Type 字符串 Default Value [none]在读取全局文件后读取给定的文件。
-
Command-Line Format --defaults-file=路径Type 字符串 Default Value [none]从给定的文件中只读取默认选项。
-
Command-Line Format --defaults-group-suffix=字符串Type 字符串 Default Value [none]还可以读取组合的 read groups 使用 concat(组, 后缀)。
-
Command-Line Format --fragment-id=#Type 整数 Default Value 0Fragment ID。与
--print-restored-rows一起使用。 -
Command-Line Format --help--usage打印程序使用信息。
-
Command-Line Format --login-path=pathType 字符串 Default Value [none]从登录文件中读取给定的路径。
-
Command-Line Format --no-login-paths跳过从登录路径文件中读取选项。
-
Command-Line Format --no-defaults不从任何选项文件中读取默认选项,除了登录文件。
-
Command-Line Format --no-print-rows不包括行在输出中。
-
Command-Line Format --print-defaults打印程序参数列表并退出。
-
Command-Line Format --print-header-words将头部单词包括在输出中。
-
Command-Line Format --print-restored-rows将恢复的行包括在输出中,使用文件
LCP/c/TtFf.ctl,其中的值设置如下:-
c是使用--control-directory-number设置的控制文件号码。
-
t是使用--table-id设置的表ID。
-
f是使用--fragment-id设置的分片ID。
-
-
Command-Line Format --print-rows 打印行。这是一个默认启用的选项;要禁用它,请使用--no-print-rows。
-
Command-Line Format --print-rows-per-page 每页打印行。
-
Command-Line Format --rowid-file=路径Type 文件名 Default Value [无]检查行ID的文件。
-
Command-Line Format --show-ignored-rows显示忽略的行。
-
Command-Line Format --table-id=#Type 整数 Default Value [无]表ID。与
--print-restored-rows一起使用。 -
Command-Line Format --usage显示帮助文本并退出;与
--help相同。 -
Command-Line Format --verbose[=#]Type 整数 Default Value 0输出的详细程度。值越大,表示输出的详细程度越高。
-
Command-Line Format --version显示版本信息并退出。