NetBackup™ 命令参考指南
- 介绍
- 附录 A. NetBackup 命令
名称
nbshvault — 根据 Sheltered Harbor 规范执行数据保管操作
大纲
-h | --help
-b [filename] | -b filename [--force] | -b [filename] [--config-dir config-dir-path] [--force]
-r [filename] | -r [filename] [--config-dir config-dir-path]
--report | --report -n | --report -n number[--config-dir config-dir-path]
--show-config -i institution ID [--config-dir config-dir-path]
–register -i institution ID -reg-key registration ID [--config-dir config-dir-path]
--attest [-k keyword] -i institution ID [--config-dir config-dir-path]
--configure [filename] [--config-dir config-dir-path]
--generate-template -path path
--export-key -i institution ID -path path [--config-dir config-dir-path]
--import-key -i institution ID -key-file filename [--config-dir config-dir-path]
On UNIX systems, the directory path to this command is /usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is install_path\NetBackup\bin\
描述
使用 nbshvault 命令可执行 NetBackup Sheltered Harbor 解决方案数据保管操作。可能的数据保管操作包括配置、注册、备份和还原操作。可以在交互模式或非交互模式下执行这些操作。
在交互模式下,必须在控制台上手动指定输入。使用交互式 CLI 进程执行数据保管操作。
在非交互模式下,在 JSON 文件中提供输入。JSON 文件名作为参数传递到命令行。如果未在命令中指定 JSON 文件名,则数据保管操作将进入交互模式。
选项
- --attest
使用此选项可使用提供的机构 ID 或关键字来证明备份消息。如果未提供机构 ID 或关键字,则会针对最新备份进行证明。如果在配置期间提供了 config-dir 选项,则还需使用 config-dir 选项证明备份消息。
- -b | --backup
读取给定备份 JSON 文件中提供的配置,并根据 Sheltered Harbor 合规性规范备份数据。如果未提供文件名,则必须根据交互式 CLI 进程的提示提供输入。如果在配置期间提供了 config-dir 选项,则还必须使用 config-dir 选项备份数据。即使证明上次备份失败,也可使用强制选项继续进行备份。
- --config-dir config-dir-path
使用此选项可提供用于存储解决方案配置的自定义配置目录。
- --configure
使用此选项可从指定文件添加与 NetBackup、保管库和 KMS 相关的配置。如果未提供文件名,则必须根据交互式 CLI 进程的提示提供输入。还可以在配置时使用 config-dir 选项为配置文件指定自定义路径。
- --export-key
使用此选项可将证明消息签名密钥从 NetBackup 路径复制到指定路径。如果未提供机构 ID 和路径,则必须根据交互式 CLI 进程的提示提供输入。如果在配置期间提供了 config-dir 选项,则使用 config-dir 选项将证明消息的签名密钥从自定义路径复制到指定路径。
- --force
即使证明上次备份失败,也可使用此选项继续进行备份。
- --generate-template
为配置、备份和还原选项生成 JSON 模板。JSON 模板是在指定的 -path 位置创建的。
- -h | --help
显示实用程序的使用情况。
- -i institution ID
您要为其配置解决方案的给定金融机构的机构 ID。
- --import-key
使用此选项可将证明消息签名密钥从指定路径复制到 NetBackup 路径。如果未提供机构 ID 和密钥文件,则必须根据交互式 CLI 进程的提示提供输入。如果在配置期间提供了 config-dir 选项,则使用 config-dir 选项将证明消息的签名密钥从指定路径复制到自定义路径。
- -k keyword
在备份过程中为解决方案使用的关键字短语。可在报告选项中看到此内容。
- -n number
报告选项中存在的记录数。
- -path path
证明消息签名密钥的导出路径。
- -reg-key registration ID
Sheltered Harbor 已提供给每个金融机构的注册 ID。
- -r | --restore
读取给定 JSON 还原文件中提供的配置,并根据 Sheltered Harbor 合规性规范执行数据还原。如果未提供文件名,则必须根据交互式 CLI 进程的提示提供输入。如果在配置期间提供了 config-dir 选项,则还必须使用 config-dir 选项还原数据。
- –-register
使用此选项,以使用 Sheltered Harbor 提供的机构 ID 和注册 ID 在 Sheltered Harbor 中注册机构。如果未提供机构 ID 和注册 ID,则必须根据交互式 CLI 进程的提示提供输入。如果在配置期间提供了 config-dir 选项,则还必须使用 config-dir 选项在 Sheltered Harbor 中注册机构。
- --report
在报告中显示备份或还原操作的最新给定记录数。默认数字为 10。如果在配置期间提供了 config-dir 选项,则必须使用 config-dir 显示备份或还原操作的最新给定记录数。
- --show-config
使用此选项可在 Sheltered Harbor 解决方案中查看给定机构 ID 的配置。如果在配置期间提供了 config-dir 选项,则还必须使用 config-dir 选项查看给定机构 ID 的配置。
示例
示例 1:执行备份操作。
nbshvault -b This command backs up the data as per the Sheltered Harbor compliance specifications. Do you want to continue? [y,n] (y) Enter the institution ID provided by the Sheltered Harbor: Enter the input storage path: Enter the transfer storage path:
示例 1:执行还原操作。
nbshvault -r This command performs data restoration as per the Sheltered Harbor compliance specifications. Do you want to continue? [y,n] (y) Enter the institution ID provided by the Sheltered Harbor: Enter the recovery storage path: Enter the restored data storage path: