备份命令位于 /opt/teradata/tdqgm/bin/backup.sh 中,必须以 root 或 tdqgm 用户的身份运行。缺省情况下,备份放置在 /var/opt/teradata/tdqgm/backups 目录中,并命名为 tdqgm-backup-YYYY-MM-DD.zip,其中 YYYY-MM-DD 为当前日期。备份文件包括上载到 Teradata QueryGrid 管理器的所有配置详细信息和软件包。
用法
要获取备份命令的帮助,请使用 --help 选项:
/opt/teradata/tdqgm/bin/backup.sh --help结果︰
usage: backup [-f <file>] [-h] [-x] Creates a backup file that enables the QueryGrid manager configuration to be restored in the event of a catastrophic failure. options: -f,--file <file> The path to the backup file to create. -h,--help Print this message. -x,--exclude-software Flags if software files should be excluded from the backup.
示例:备份 Teradata QueryGrid
要执行备份,请运行:
/opt/teradata/tdqgm/bin/backup.sh结果︰
Starting backup... Backup completed: /var/opt/teradata/tdqgm/backups/tdqgm-backup-2016-06-16.zip