gcloud backup-dr backup-plan-associations update (BACKUP_PLAN_ASSOCIATION : --location=LOCATION --workload-project=WORKLOAD_PROJECT) --backup-plan=BACKUP_PLAN [--async] [GCLOUD_WIDE_FLAG …]
sample-bpa in project
sample-project and location us-central1 with backup
plan sample-backup-plan in the same project and location, run:
gcloud backup-dr backup-plan-associations update sample-bpa --project=sample-project --location=us-central1 --backup-plan=sample-backup-plan
To update backup plan association sample-bpa-uri with backup plan
sample-backup-plan-uri (using full URIs), run:
gcloud backup-dr backup-plan-associations update sample-bpa-uri --backup-plan=sample-backup-plan-uri
To update backup plan association sample-bpa in location
us-central1 with backup plan sample-backup-plan-uri,
run:
gcloud backup-dr backup-plan-associations update sample-bpa --location=us-central1 --backup-plan=sample-backup-plan-uri
To update backup plan association sample-bpa in project
workload-project and location us-central1 with backup
plan sample-backup-plan in project sample-project,
run:
gcloud backup-dr backup-plan-associations update sample-bpa --workload-project=workload-project --location=us-central1 --backup-plan=sample-backup-plan --project=sample-projectBACKUP_PLAN_ASSOCIATION
To set the name attribute:
BACKUP_PLAN_ASSOCIATION on the command line.
--location=LOCATIONlocation attribute:
BACKUP_PLAN_ASSOCIATION on the command line
with a fully specified name;
--location on the command line.
--workload-project=WORKLOAD_PROJECTworkload-project attribute:
BACKUP_PLAN_ASSOCIATION on the command line
with a fully specified name;
--workload-project on the command line;
--project on the command line;
core/project.
To set the project attribute:
--backup-plan on the command line with a fully
specified name;
--project on the command line;
core/project.
To set the location attribute:
--backup-plan on the command line with a fully
specified name;
--location on the command line.
--backup-plan=BACKUP_PLANname attribute:
--backup-plan on the command line.
--asyncTrue. Enabled by default, use
--no-async to disable.
--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.
gcloud alpha backup-dr backup-plan-associations updategcloud beta backup-dr backup-plan-associations 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.