cockroachdb / cockroachdb/cockroach

backupccl: allow by-name references in BACKUP/RESTORE TENANT

Open
#95,279 2 comments 0 reactions 0 assignees View on GitHub
A-disaster-recovery C-enhancement P-2 T-disaster-recovery
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

Requested by @dt .

In #95272 we have made progress elevating _tenant names_ as the main way to refer to crdb tenants.
However, the first argument in the syntax for `BACKUP/RESTORE TENANT` is still a simple number.

This should be changed to refer to tenant names instead.

The complexity is in the RESTORE case, where the name -> id mapping should be done using the backup metadata instead of the `system.tenants` table on the target cluster.

cc @stevendanna for triage.

Jira issue: CRDB-23443

Epic CRDB-27614

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.