2.09 - Restore - Teradata QueryGrid

Teradata® QueryGrid™ 安装和用户指南

prodname
Teradata QueryGrid
vrm_release
2.09
created_date
2019 年 5 月
category
安装
用户指南
管理
配置
featnum
B035-5991-059K-CHS

restore 命令位于 /opt/teradata/tdqgm/bin/restore.sh 中,必须以 root 或 tdqgm 用户的身份运行。要还原的备份文件的名称是必填参数。

用法

要获取备份命令的帮助,请使用 --help 选项:

/opt/teradata/tdqgm/bin/restore.sh --help

结果︰

usage: restore [options] <backup-file>

Restores the QueryGrid manager configuration from a backup file in the event of a catastrophic failure.

options:

 -a,--public-address <address>   The address other managers and nodes use
                                 to access this manager instance.
 -d,--data-center <name>         The name of the data center to join.
 -f,--force                      Force the restore to start without requiring confirmation.
 -h,--help                       Print this message

示例:还原 Teradata QueryGrid

要还原系统,请运行:

/opt/teradata/tdqgm/bin/restore.sh <backup_file>
Enter public address for this manager instance [<public_address>]:

其中,<backup_file> 是备份 ZIP 文件的路径名称,类似于 ~/tdqgm-backup-2016-06-16.zip<public_address> 是 Teradata QueryGrid 管理器系统的主机名或 IP 地址;例如:test.mydomain.com 或 198.51.100.20。

结果(注意,出现提示时输入 y):

A restore from backup removes all data previously saved on this manager instance and 
all local manager services are restarted.  This manager instance becomes a standalone cluster. 
Other managers can join this instance using the join-cluster command.  

Do you wish to continue? [y/n]:   y 

Stopping QueryGrid Manager...

Deleting previous state...

Restoring configuration data...

Data Centers
------------
1.  San Diego

2.  Las Vegas

3.  Atlanta

4.  Richmond

Select data center of local manager instance [1-4]: 3

Restoring tdqg-node-16.00.00.00.DEV-30.tar.gz...
Restoring tdqg-teradata-connector-1.0-224-SNAPSHOT.tar.gz...
Restoring tdqg-fabric-1.00.00.00.tar.gz...
Restoring tdqg-teradata-connector-1.0-12-SNAPSHOT.zip...

Starting QueryGrid Manager...
Restore completed successfully.