backup_application_gcp - BAR - Data Stream Architecture

Teradata® DSA 用户指南

Product
BAR
Data Stream Architecture
Release Number
17.20
Published
2022 年 3 月
Language
中文 (简体)
Last Update
2022-04-14
dita:mapPath
zh-CH/bis1632417576364.ditamap
dita:ditavalPath
zh-CH/vwp1576617377804.ditaval
dita:id
B035-3150
Product Category
Software
Teradata Tools and Utilities

用途

backup_application_gcp 命令根据参数文件配置 GCP 存储。

语法

backup_application_gcp -f|-file filename

示例

backup_application_gcp -f file1.xml

参数

f|file filename
包含必要配置参数的文件的完整路径和文件名。
u|user_authentication User
如果启用了安全管理,则需要使用此参数。为命令提供 Viewpoint 用户,并触发用于身份验证的密码提示。

所需权限:管理员角色

用法说明

您需要 XML 文件的以下信息。

XML 文件示例

下面显示了一个典型的 XML 文件。请注意以下事项:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dscBackupApplicationGcp xmlns="http://schemas.teradata.com/v2012/DSC">
  <config_gcp_storage_list>
      <account>sa-name@project-id.iam.gserviceaccount.com</account>
      <!-- 'account_key' - Required, max length 4,096 -->
      <account_key>long_account_key</account_key>
      <encryption_key>customer_managed_key</encryption_key>
      <buckets>
          <!--
              'Bucket name' - Required,
              - only lowercase letters, numbers, dashes (-), underscores (_),  
                and dots (.). Spaces are not allowed
              - start and end with a number or letter
              - contain 3-63 characters. Names containing dots can contain up 
                to 222 characters, but each dot-separated component can be no 
                longer than 63 characters
              - cannot be represented as an IP address in dotted-decimal 
                notation (for example, 192.168.5.4)
              - cannot begin with the "google" prefix
              - cannot contain "google" or close misspellings, such as "g00gle"
          -->
          <bucket_name>bucket1</bucket_name>
          <!-- 'Location enumeration ' - Required, valid values: us, eu, asia -->
          <location>us</location>
          <!-- 'Storage class enumeration ' - Required, valid values: standard,
                nearline, coldline, archive -->
          <storage_class>standard</storage_class>
          <prefix_list>
              <!--
                  'Folder name' - Required
                  - may contain letters, digits, spaces, hyphens and underscores
                  - start and end with a letter or digit
                  - 30 characters or less
                  - distinct from all other folders that share its parent
              -->
              <prefix_name>folder1/</prefix_name>
              <storage_devices>2</storage_devices>
          </prefix_list>
      </buckets>
 
      <buckets>
          <bucket_name>bucket2</bucket_name>
          <location>us</location>
          <storage_class>standard</storage_class>
          <prefix_list>
              <prefix_name>folder2/</prefix_name>
              <storage_devices>10</storage_devices>
          </prefix_list>
      </buckets>
  </config_gcp_storage_list>
</dscBackupApplicationGcp>