有什么方法可以一次备份 bigtable 实例中的所有表吗?

Is there any way to backup all the tables from bigtable instance at once?

我们已经创建了一个实例,我们希望使用 gcloud 命令备份该实例中的所有 table,因为我们已经创建了一个管道来执行该备份操作,但是 运行备份命令 gcloud bigtable backups create BACKUP_ID --instance=INSTANCE_ID --cluster=CLUSTER_ID --table=TABLE_ID --async --expiration-date=EXPIRATION_DATE | --retention-period=RETENTION_PERIOD

我们只能备份一个 table,之后我们收到一个错误

 ERROR: (gcloud.bigtable.backups.create) {
  "code": 6,
  "details": [
    {
      "@type": "type.googleapis.com/bigtable.anviltop.proto.FailureTrace",
      "frames": [
        {
          "targetName": "projects/dir/instances/ledger/clusters/ledger-x/backups/bigtable-backup",
          "workflowGuid": "xxxxx84762xxxxxxx/snapshot-replica/",
          "zoneId": "us-west1"
        },
        {
          "targetName": "projects/dir/instances/ledger/clusters/ledger-x/backups/bigtable-backup",
          "workflowGuid": "x4426xxxxxxxxx",
          "zoneId": "us-west1-b"
        }
      ]
    }
  ],
  "message": "Backup bigtable-backup already exists."
}

根据您收到的错误消息:

"message": "Backup bigtable-backup already exists."

您似乎已经有一个名为 bigtable-backupBACKUP_ID

BACKUP_ID 应该是唯一的。如 Cloud Bigtable documentation

中所述

BACKUP_ID: The ID you assign to the backup.

尝试对后续备份使用不同的BACKUP_ID