gcloud beta container backup-restore backups update (BACKUP : --backup-plan=BACKUP_PLAN --location=LOCATION) [--async] [--delete-lock-days=DELETE_LOCK_DAYS] [--description=DESCRIPTION] [--etag=ETAG] [--retain-days=RETAIN_DAYS] [--update-labels=[KEY=VALUE,…]] [--clear-labels | --remove-labels=[KEY,…]] [GCLOUD_WIDE_FLAG …]
(BETA) Update a Backup for GKE backup.
my-backup in project
my-project in location
us-central1 under backup plan
my-backup-plan to add new description, run:
gcloud beta container backup-restore backups update 'my-backup' --backup-plan=my-backup-plan --project=my-project --location=us-central1 --description="New description"projects/<project>/locations/<location>/backupPlans/<backupPlan>/backups/<backup>
or as a single ID name (with the parent resources provided via options or
through properties), e.g. BACKUP --project=<project>
--location=<location> --backup-plan=<backupPlan>. The
arguments in this group can be used to specify the attributes of this resource.
(NOTE) Some attributes are not given arguments in this group but can be set in
other ways.
To set the project attribute:
backup on the command line with a fully
specified name;
--project on the command line;
core/project.
BACKUP
To set the backup attribute:
backup on the command line.
--backup-plan=BACKUP_PLANbackup-plan attribute:
backup on the command line with a fully
specified name;
--backup-plan on the command line;
gkebackup/backup_plan.
--location=LOCATIONlocation attribute:
backup on the command line with a fully
specified name;
--location on the command line;
gkebackup/location.
--async--delete-lock-days=DELETE_LOCK_DAYS--description=DESCRIPTION--etag=ETAG--retain-days=RETAIN_DAYS--update-labels=[KEY=VALUE,…]-), underscores (_), lowercase characters, and
numbers. Values must contain only hyphens (-), underscores
(_), lowercase characters, and numbers.
--clear-labels--update-labels is also specified then
--clear-labels is applied first.
For example, to remove all labels:
gcloud beta container backup-restore backups update --clear-labels
To remove all existing labels and create two new labels,
and
foo:
baz
gcloud beta container backup-restore backups update --clear-labels --update-labels foo=bar,baz=qux--remove-labels=[KEY,…]--update-labels is also specified then
--update-labels is applied first.
--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
gkebackup/v1 API. The full documentation for
this API can be found at: https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke
gcloud alpha container backup-restore backups update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.